Commit 2f63de8c authored by Vilem Ded's avatar Vilem Ded
Browse files

add questions from DISH ass code comments

parent 8d92b2ff
...@@ -150,6 +150,7 @@ class DishXlsExporter: ...@@ -150,6 +150,7 @@ class DishXlsExporter:
datadec_dict['special_subject_notes'] = sheet[22, 1] datadec_dict['special_subject_notes'] = sheet[22, 1]
use_restrictions = [] use_restrictions = []
# Is data consented to be used only in specific research/disease areas?
if process_yes_no_dontknow_answer(sheet[24, 1]): if process_yes_no_dontknow_answer(sheet[24, 1]):
use_restrictions.append({'use_class': 'RS-[XX]', use_restrictions.append({'use_class': 'RS-[XX]',
'use_restriction_rule': "CONSTRAINTS", 'use_restriction_rule': "CONSTRAINTS",
...@@ -160,6 +161,7 @@ class DishXlsExporter: ...@@ -160,6 +161,7 @@ class DishXlsExporter:
'use_restriction_rule': "NO_CONSTRAINTS", 'use_restriction_rule': "NO_CONSTRAINTS",
'use_class_note': sheet[24, 0]}) 'use_class_note': sheet[24, 0]})
# Does consent contain clauses that put geographical restrictions to the sharing of data?
if process_yes_no_dontknow_answer(sheet[26, 1]): if process_yes_no_dontknow_answer(sheet[26, 1]):
use_restrictions.append({'use_class': 'GS-[XX]', use_restrictions.append({'use_class': 'GS-[XX]',
'use_restriction_rule': "CONSTRAINTS", 'use_restriction_rule': "CONSTRAINTS",
...@@ -170,6 +172,7 @@ class DishXlsExporter: ...@@ -170,6 +172,7 @@ class DishXlsExporter:
'use_restriction_rule': "NO_CONSTRAINTS", 'use_restriction_rule': "NO_CONSTRAINTS",
'use_class_note': sheet[26, 0]}) 'use_class_note': sheet[26, 0]})
# Does the consent limit the type of recipients?
if process_yes_no_dontknow_answer(sheet[28, 1]): if process_yes_no_dontknow_answer(sheet[28, 1]):
use_restrictions.append({'use_class': 'IS', use_restrictions.append({'use_class': 'IS',
'use_restriction_rule': "CONSTRAINTS", 'use_restriction_rule': "CONSTRAINTS",
...@@ -180,6 +183,7 @@ class DishXlsExporter: ...@@ -180,6 +183,7 @@ class DishXlsExporter:
'use_restriction_rule': "NO_CONSTRAINTS", 'use_restriction_rule': "NO_CONSTRAINTS",
'use_class_note': sheet[28, 0]}) 'use_class_note': sheet[28, 0]})
# Does the consent contain clauses that put time-limits on the use of data?
if process_yes_no_dontknow_answer(sheet[30, 1]): if process_yes_no_dontknow_answer(sheet[30, 1]):
use_restrictions.append({'use_class': 'TS-[XX]', use_restrictions.append({'use_class': 'TS-[XX]',
'use_restriction_rule': "CONSTRAINTS", 'use_restriction_rule': "CONSTRAINTS",
...@@ -190,6 +194,7 @@ class DishXlsExporter: ...@@ -190,6 +194,7 @@ class DishXlsExporter:
'use_restriction_rule': "NO_CONSTRAINTS", 'use_restriction_rule': "NO_CONSTRAINTS",
'use_class_note': sheet[30, 0]}) 'use_class_note': sheet[30, 0]})
# Is the use of data limited to the project named in the Submission sheet?
if process_yes_no_answer(sheet[35, 1]): if process_yes_no_answer(sheet[35, 1]):
use_restrictions.append({'use_class': 'PS', use_restrictions.append({'use_class': 'PS',
'use_restriction_rule': "CONSTRAINTS", 'use_restriction_rule': "CONSTRAINTS",
...@@ -200,6 +205,7 @@ class DishXlsExporter: ...@@ -200,6 +205,7 @@ class DishXlsExporter:
'use_restriction_rule': "NO_CONSTRAINTS", 'use_restriction_rule': "NO_CONSTRAINTS",
'use_class_note': sheet[35, 0]}) 'use_class_note': sheet[35, 0]})
# Is the data being sent to ELIXIR-LU/LCSB for a limited duration?
if process_yes_no_answer(sheet[36, 1]): if process_yes_no_answer(sheet[36, 1]):
datadec_dict["storage_end_date"] = process_possible_date(sheet[37, 1]) datadec_dict["storage_end_date"] = process_possible_date(sheet[37, 1])
use_restrictions.append({'use_class': 'TS-[XX]', use_restrictions.append({'use_class': 'TS-[XX]',
...@@ -211,6 +217,7 @@ class DishXlsExporter: ...@@ -211,6 +217,7 @@ class DishXlsExporter:
'use_restriction_rule': "NO_CONSTRAINTS", 'use_restriction_rule': "NO_CONSTRAINTS",
'use_class_note': sheet[36, 0]}) 'use_class_note': sheet[36, 0]})
# Are there any requirements in case of publications based on the DATA?
if process_yes_no_answer(sheet[38, 1]): if process_yes_no_answer(sheet[38, 1]):
use_restrictions.append({'use_class': 'PUB', use_restrictions.append({'use_class': 'PUB',
'use_restriction_rule': "CONSTRAINTS", 'use_restriction_rule': "CONSTRAINTS",
...@@ -221,6 +228,7 @@ class DishXlsExporter: ...@@ -221,6 +228,7 @@ class DishXlsExporter:
'use_restriction_rule': "NO_CONSTRAINTS", 'use_restriction_rule': "NO_CONSTRAINTS",
'use_class_note': sheet[38, 0]}) 'use_class_note': sheet[38, 0]})
# Is there a requirement to return data or documents to the database/resource?
if process_yes_no_answer(sheet[40, 1]): if process_yes_no_answer(sheet[40, 1]):
use_restrictions.append({'use_class': 'RTN', use_restrictions.append({'use_class': 'RTN',
'use_restriction_rule': "CONSTRAINTS", 'use_restriction_rule': "CONSTRAINTS",
...@@ -238,6 +246,7 @@ class DishXlsExporter: ...@@ -238,6 +246,7 @@ class DishXlsExporter:
'use_class_note': sheet[42, 0], 'use_class_note': sheet[42, 0],
'use_restriction_note': sheet[42, 1]}) 'use_restriction_note': sheet[42, 1]})
# Are there any IP restrictions/requirements when using the DATA?
if process_yes_no_answer(sheet[47, 1]): if process_yes_no_answer(sheet[47, 1]):
use_restrictions.append({'use_class': 'IP', use_restrictions.append({'use_class': 'IP',
'use_restriction_rule': "CONSTRAINTS", 'use_restriction_rule': "CONSTRAINTS",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment