Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
elixir
metadata-tools
Commits
5211c0dc
Commit
5211c0dc
authored
Sep 06, 2021
by
Nene Barry
Browse files
update datadeclarations fields
parent
d3ab4195
Changes
1
Hide whitespace changes
Inline
Side-by-side
metadata_tools/importxls/dish_xls_exporter.py
View file @
5211c0dc
...
...
@@ -262,13 +262,13 @@ class DishXlsExporter:
if
sheet
[
45
,
1
]
and
(
'not'
in
sheet
[
45
,
1
]):
if
sheet
[
44
,
1
]
and
(
'no'
in
sheet
[
44
,
1
]):
datadec_dict
[
"access_category"
]
=
"open
-
access"
#this is just an initial interpretation and should be further curated in catalog
datadec_dict
[
"access_category"
]
=
"open
_
access"
#this is just an initial interpretation and should be further curated in catalog
datadec_dict
[
"access_procedure"
]
=
datadec_dict
[
"access_procedure"
]
+
"No additional form is needed to request access."
else
:
datadec_dict
[
"access_category"
]
=
"registered
-
access"
#this is just an initial interpretation and should be further curated in catalog
datadec_dict
[
"access_category"
]
=
"registered
_
access"
#this is just an initial interpretation and should be further curated in catalog
datadec_dict
[
"access_procedure"
]
=
datadec_dict
[
"access_procedure"
]
+
"Additional form is needed to request access."
else
:
datadec_dict
[
"access_category"
]
=
"controlled
-
access"
datadec_dict
[
"access_category"
]
=
"controlled
_
access"
datadec_dict
[
"access_procedure"
]
=
datadec_dict
[
"access_procedure"
]
+
sheet
[
46
,
1
]
...
...
@@ -354,9 +354,9 @@ class DishXlsExporter:
def
process_deidentification
(
self
,
deid_str
):
if
'seu'
in
deid_str
:
return
'pseudonymiz
ed
'
return
'pseudonymiz
ation
'
elif
'non'
in
deid_str
:
return
'anonymiz
ed
'
return
'anonymiz
ation
'
def
process_consent_status
(
self
,
consent_str
):
if
'et'
in
consent_str
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment