Esempio n. 1
0
def test__create_base_data__participant_import_definitions__multiple_projects(
        initialised_app, faker):
    definition = RedCapEcrfDefinition(EXAMPLE_DEFINITION)
    definition.crfs = [
        {
            'instance': REDCapInstanceDetail.UHL_LIVE,
            'study': StudyName.MARI,
            'projects': [1, 2],
        },
    ]

    _test__create_base_data__participant_import_definitions(definition)
Esempio n. 2
0
crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UHL_LIVE,
                'study': StudyName.ELASTIC_AS,
                'projects': [94],
            },
        ],
        'recruitment_date_column_name':
        'date_of_visit',
        'birth_date_column_name':
        'dob',
        'withdrawal_date_column_name':
        'notification_withdraw_date',
        'withdrawn_from_study_column_name':
        'notification_withdraw_date',
        'withdrawn_from_study_values': ['<isnotnull>'],
        **SEX_MAP_0F1M_GENDER, 'post_withdrawal_keep_samples_column_name':
        'participant_choice',
        'post_withdrawal_keep_samples_values': ['0', '1'],
        'post_withdrawal_keep_data_column_name':
        'participant_choice',
        'post_withdrawal_keep_data_values': ['0', '2'],
        'brc_opt_out_column_name':
        'participant_choice',
        'brc_opt_out_values': ['4'],
        'identity_map': {
            ParticipantIdentifierTypeName.ELASTIC_AS_ID: 'record',
        }
    }),
    RedCapEcrfDefinition({
Esempio n. 3
0
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup.standard import SEX_MAP_0F1M_GENDER
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UHL_LIVE,
                'study': StudyName.Pre_Eclampsia,
                'projects': [39],
            },
        ],
        'recruitment_date_column_name':
        'visit_date',
        'birth_date_column_name':
        'dob',
        'withdrawn_from_study_column_name':
        'non_complete_rsn',
        'withdrawn_from_study_values': ['5'],
        **SEX_MAP_0F1M_GENDER, 'complete_or_expected_column_name':
        'study_status',
        'complete_or_expected_values': ['<isnull>', '1'],
        'identity_map': {
            ParticipantIdentifierTypeName.PREECLAMPSIA_ID: 'record',
            ParticipantIdentifierTypeName.UHL_SYSTEM_NUMBER: 's_number',
        }
    })
])
Esempio n. 4
0
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup.standard import SEX_MAP_0F1M_GENDER, STANDARD_WITHDRAWAL
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
    'crfs': [
        {
            'instance': REDCapInstanceDetail.UHL_LIVE,
            'study': StudyName.LENTEN,
            'projects': [56],
        },
    ],

    'recruitment_date_column_name': 'v1_visit_date',
    'birth_date_column_name': 'dob',

    **SEX_MAP_0F1M_GENDER,

    'complete_or_expected_column_name': 'study_status',
    'complete_or_expected_values': ['1'],

    **STANDARD_WITHDRAWAL,

    'identity_map': {
        ParticipantIdentifierTypeName.LENTEN_ID: 'record',
        ParticipantIdentifierTypeName.UHL_SYSTEM_NUMBER: 's_number',
    }
})])
Esempio n. 5
0
from identity.ecrfs.setup.standard import SEX_MAP_1M2F_SEX
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UHL_LIVE,
                'study': StudyName.CVLPRIT,
                'projects': [23],
            },
        ],
        **SEX_MAP_1M2F_SEX, 'identity_map': {
            ParticipantIdentifierTypeName.CVLPRIT_ID: 'patient_id',
            ParticipantIdentifierTypeName.CVLPRIT_LOCAL_ID: 'local_id',
        }
    })
])
Esempio n. 6
0
    RedCapEcrfDefinition({
    'crfs': [
        {
            'instance': REDCapInstanceDetail.UOL_INTERNET,
            'study': StudyName.DESMOND,
            'projects': [19],
        },
    ],

    'recruitment_date_column_name': 'consent_date',
    'first_name_column_name': 'first_name',
    'last_name_column_name': 'surname',
    'postcode_column_name': 'postcode',
    'birth_date_column_name': 'birthdate',

    **SEX_MAP_1M2F_GENDER,

    'withdrawal_date_column_name': 'wthdrw_date',
    'withdrawn_from_study_column_name': 'wthdrw_date',
    'withdrawn_from_study_values': ['<isnotnull>'],

    'complete_or_expected_column_name': 'withdrawal_date',
    'complete_or_expected_values': ['<isnotnull>'],

    'post_withdrawal_keep_samples_column_name': 'withdrawal_type',
    'post_withdrawal_keep_samples_values': ['<isnull>', '2', '3'],

    'post_withdrawal_keep_data_column_name': 'withdrawal_type',
    'post_withdrawal_keep_data_values': ['<isnull>', '2', '3'],

    'identity_map': {
        ParticipantIdentifierTypeName.DESMOND_ID: 'record',
        ParticipantIdentifierTypeName.NHS_NUMBER: 'nhs_no',
    }
})])
Esempio n. 7
0
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup.standard import SEX_MAP_0F1M_GENDER, STANDARD_DEMOGRAPHICS, STANDARD_STATUS, STANDARD_WITHDRAWAL
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UOL_CRF,
                'study': StudyName.LIMb,
                'projects': [31, 32],
            },
        ],
        'recruitment_date_column_name':
        'pat_consent_date',
        **STANDARD_STATUS,
        **STANDARD_WITHDRAWAL, 'identity_map': {
            ParticipantIdentifierTypeName.LIMB_ID: 'record',
        }
    }),
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UOL_CRF,
                'study': StudyName.LIMb,
                'projects': [34],
            },
        ],
        **STANDARD_DEMOGRAPHICS, 'identity_map': {
Esempio n. 8
0
from identity.ecrfs.setup.standard import STANDARD_DEMOGRAPHICS
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UHL_LIVE,
                'study': StudyName.CMR_Guide,
                'projects': [59],
            },
        ],
        **STANDARD_DEMOGRAPHICS, 'identity_map': {
            ParticipantIdentifierTypeName.UHL_SYSTEM_NUMBER: 'record',
        }
    })
])
Esempio n. 9
0
from identity.ecrfs.setup.standard import SEX_MAP_1M2F_GENDER
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UOL_INTERNET,
                'study': StudyName.Multi_Morbid_Priorities,
                'projects': [38],
            },
        ],
        **SEX_MAP_1M2F_GENDER, 'identity_map': {
            ParticipantIdentifierTypeName.MULTI_MORBID_PRIORITIES_ID: 'record',
        }
    })
])
Esempio n. 10
0
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup.standard import SEX_MAP_0F1M, STANDARD_STATUS, STANDARD_WITHDRAWAL
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UHL_LIVE,
                'study': StudyName.TMAO,
                'projects': [25],
            },
        ],
        'birth_date_column_name':
        'tmao_dob',
        'sex_column_name':
        'tmao_gender',
        **SEX_MAP_0F1M,
        **STANDARD_STATUS,
        **STANDARD_WITHDRAWAL, 'identity_map': {
            ParticipantIdentifierTypeName.TMAO_ID: 'record',
        }
    })
])
Esempio n. 11
0
from identity.setup.studies import StudyName
from identity.ecrfs.setup import CiviCrmEcrfDefinition, crfs, RedCapEcrfDefinition
from identity.model.sex import SexName


crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UHL_LIVE,
                'study': StudyName.GENVASC,
                'projects': [66],
            },
        ],

        'recruitment_date_column_name': 'recruitment_date',
        'first_name_column_name': 'first_name',
        'last_name_column_name': 'last_name',

        'identity_map': {
            ParticipantIdentifierTypeName.GENVASC_ID: 'genvasc_id',
            ParticipantIdentifierTypeName.UHL_SYSTEM_NUMBER: 'record',
            ParticipantIdentifierTypeName.NHS_NUMBER: 'nhs_number',
        }
    }),
    CiviCrmEcrfDefinition(
        config={
            'crfs': [{
                'name': 'GENVASC Enrolments',
                'case_type_id': 3,
                'study': StudyName.GENVASC,
Esempio n. 12
0
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup.standard import SEX_MAP_0F1M_SEX
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UHL_LIVE,
                'study': StudyName.Pilot,
                'projects': [5],
            },
        ],
        'recruitment_date_column_name':
        'date_time_of_admission',
        **SEX_MAP_0F1M_SEX, 'identity_map': {
            ParticipantIdentifierTypeName.PILOT_ID: 'record',
        }
    })
])
Esempio n. 13
0
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup.standard import SEX_MAP_0F1M_GENDER, STANDARD_DEMOGRAPHICS, STANDARD_STATUS, STANDARD_WITHDRAWAL
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
    'crfs': [
        {
            'instance': REDCapInstanceDetail.UHL_LIVE,
            'study': StudyName.DISCORDANCE,
            'projects': [84],
        },
    ],

    **STANDARD_DEMOGRAPHICS,

    'identity_map': {
        ParticipantIdentifierTypeName.DISCORDANCE_ID: 'record',
        ParticipantIdentifierTypeName.NHS_NUMBER: 'nhs_no',
        ParticipantIdentifierTypeName.UHL_SYSTEM_NUMBER: 's_no',
    }
    }),
    RedCapEcrfDefinition({
    'crfs': [
        {
            'instance': REDCapInstanceDetail.UHL_LIVE,
            'study': StudyName.DISCORDANCE,
            'projects': [85],
        },
Esempio n. 14
0
from identity.ecrfs.setup.standard import SEX_MAP_1M2F_GENDER
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UOL_CRF,
                'study': StudyName.Breathe_Deep,
                'projects': [43],
            },
        ],
        'recruitment_date_column_name':
        'consent_date',
        'birth_date_column_name':
        'dob',
        **SEX_MAP_1M2F_GENDER, 'identity_map': {
            ParticipantIdentifierTypeName.BREATHE_DEEP_ID: 'record',
        }
    })
])
Esempio n. 15
0
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup.standard import SEX_MAP_0F1M_GENDER
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UOL_CRF,
                'study': StudyName.VasCeGenS,
                'projects': [19],
            },
        ],
        **SEX_MAP_0F1M_GENDER, 'identity_map': {
            ParticipantIdentifierTypeName.VASCEGENS_ID: 'record',
        }
    })
])
Esempio n. 16
0
from identity.ecrfs.setup.standard import SEX_MAP_1M2F_GENDER
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UOL_INTERNET,
                'study': StudyName.PARC,
                'projects': [28],
            },
        ],
        'recruitment_date_column_name':
        'visit_date',
        'birth_date_column_name':
        'date_of_birth',
        'withdrawn_from_study_column_name':
        'outcome_withdrawn_trial',
        'withdrawn_from_study_values': ['1'],
        **SEX_MAP_1M2F_GENDER, 'complete_or_expected_column_name':
        'outcome_completed_trial',
        'complete_or_expected_values': ['<isnull>', '1'],
        'identity_map': {
            ParticipantIdentifierTypeName.PARC_ID: 'record',
        }
    })
])
Esempio n. 17
0
from identity.ecrfs.setup.standard import SEX_MAP_1M2F_GENDER
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UOL_INTERNET,
                'study': StudyName.HAD,
                'projects': [23],
            },
        ],
        'recruitment_date_column_name':
        'consent_date',
        'birth_date_column_name':
        'dob',
        'withdrawal_date_column_name':
        'withdrawal_date',
        'withdrawn_from_study_column_name':
        'withdrawal_date',
        'withdrawn_from_study_values': ['<isnotnull>'],
        **SEX_MAP_1M2F_GENDER, 'identity_map': {
            ParticipantIdentifierTypeName.HAD_ID: 'record',
        }
    })
])
Esempio n. 18
0
from identity.ecrfs.setup.standard import SEX_MAP_0F1M_GENDER, STANDARD_DEMOGRAPHICS, STANDARD_STATUS
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UHL_LIVE,
                'study': StudyName.FAST,
                'projects': [43],
            },
        ],
        'recruitment_date_column_name':
        'date',
        'birth_date_column_name':
        'dob',
        'withdrawal_date_column_name':
        'wthdrwl_date',
        'withdrawn_from_study_column_name':
        'wthdrwl_date',
        'withdrawn_from_study_values': ['<isnotnull>'],
        **SEX_MAP_0F1M_GENDER,
        **STANDARD_STATUS, 'identity_map': {
            ParticipantIdentifierTypeName.FAST_ID: 'record',
            ParticipantIdentifierTypeName.NHS_NUMBER: 'nhs_number',
        }
    }),
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UHL_LIVE,
Esempio n. 19
0
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup.standard import SEX_MAP_0F1M_GENDER
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UHL_LIVE,
                'study': StudyName.GRAPHIC2,
                'projects': [20],
            },
        ],
        'recruitment_date_column_name':
        'date_interview',
        'birth_date_column_name':
        'dob',
        **SEX_MAP_0F1M_GENDER, 'excluded_from_analysis_column_name':
        'exclude_from_analysis',
        'excluded_from_analysis_values': ['1'],
        'identity_map': {
            ParticipantIdentifierTypeName.GRAPHIC2_ID: 'record',
        }
    })
])
Esempio n. 20
0
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UHL_LIVE,
                'study': StudyName.EDIFY,
                'projects': [30],
            },
        ],
        'identity_map': {
            ParticipantIdentifierTypeName.EDIFY_ID: 'h1_record_id',
        }
    })
])
Esempio n. 21
0
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UHL_LIVE,
                'study': StudyName.Dal_Gene,
                'projects': [47],
            },
        ],
        'recruitment_date_column_name':
        'date_main_consent',
        'first_name_column_name':
        'first_name',
        'last_name_column_name':
        'last_name',
        'birth_date_column_name':
        'dob',
        'identity_map': {
            ParticipantIdentifierTypeName.DAL_GENE_ID: 'record',
            ParticipantIdentifierTypeName.UHL_SYSTEM_NUMBER: 's_number',
        }
    })
])
Esempio n. 22
0
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UHL_LIVE,
                'study': StudyName.BRICCS,
                'projects': [24],
            },
            {
                'instance': REDCapInstanceDetail.UHL_HSCN,
                'study': StudyName.BRICCS,
                'projects': [13, 14, 15, 16, 17, 18, 19, 25, 26, 27],
            },
        ],

        'active': True,

        'recruitment_date_column_name': 'int_date',
        'first_name_column_name': 'first_name',
        'last_name_column_name': 'last_name',
        'post_code_column_name': 'address_postcode',
        'birth_date_column_name': 'dob',

        **SEX_MAP_0F1M_GENDER,

        **STANDARD_STATUS,
        **STANDARD_WITHDRAWAL,

        'identity_map': {
            ParticipantIdentifierTypeName.BRICCS_ID: 'record',
            ParticipantIdentifierTypeName.NHS_NUMBER: 'nhs_number',
            ParticipantIdentifierTypeName.UHL_SYSTEM_NUMBER: 's_number',
        },
    }),
Esempio n. 23
0
from identity.ecrfs.setup.standard import SEX_MAP_1M2F_GENDER
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UOL_INTERNET,
                'study': StudyName.COHERE,
                'projects': [22],
            },
        ],
        'recruitment_date_column_name':
        'assessment_date_bl',
        'birth_date_column_name':
        'dob',
        'withdrawn_from_study_column_name':
        'cot_outcome',
        'withdrawn_from_study_values': ['2'],
        **SEX_MAP_1M2F_GENDER, 'complete_or_expected_column_name':
        'cot_outcome',
        'complete_or_expected_values': ['<isnull>', '1'],
        'identity_map': {
            ParticipantIdentifierTypeName.COHERE_ID: 'record',
        }
    })
])
Esempio n. 24
0
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'study': StudyName.ALLEVIATE,
                'instance': REDCapInstanceDetail.UHL_LIVE,
                'projects': [98],
            },
            {
                'study': StudyName.ALLEVIATE,
                'instance': REDCapInstanceDetail.UOL_CRF,
                'projects': [45],
            },
        ],
        'recruitment_date_column_name':
        'consent_date',
        'birth_date_column_name':
        'dob',
        **STANDARD_STATUS,
        **STANDARD_WITHDRAWAL,
        **SEX_MAP_0F1M_GENDER, 'excluded_from_analysis_column_name':
        'inc_in_eos_analysis',
        'excluded_from_analysis_values': ['0'],
        'identity_map': {
            ParticipantIdentifierTypeName.ALLEVIATE_ID: 'record',
        }
    }),
    RedCapEcrfDefinition({
        'crfs': [
            {
Esempio n. 25
0
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup.standard import SEX_MAP_0F1M_GENDER
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UHL_LIVE,
                'study': StudyName.DHF,
                'projects': [70],
            },
        ],
        'recruitment_date_column_name':
        'visit_date',
        'birth_date_column_name':
        'dob',
        **SEX_MAP_0F1M_GENDER, 'identity_map': {
            ParticipantIdentifierTypeName.DHF_ID: 'record',
        }
    })
])
Esempio n. 26
0
from identity.ecrfs.setup.standard import SEX_MAP_0F1M_GENDER
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UOL_CRF,
                'study': StudyName.MI_ECMO,
                'projects': [14],
            },
        ],
        'birth_date_column_name':
        'dob',
        'withdrawal_date_column_name':
        'withdrl_date',
        'withdrawn_from_study_column_name':
        'withdrl_date',
        'withdrawn_from_study_values': ['<isnotnull>'],
        **SEX_MAP_0F1M_GENDER, 'complete_or_expected_column_name':
        'eos_study_comp_yn',
        'complete_or_expected_values': ['<isnull>', '1'],
        'excluded_from_study_column_name':
        'eos_study_not_comp_rsn',
        'excluded_from_study_values': ['5'],
        'identity_map': {
            ParticipantIdentifierTypeName.MI_ECMO_ID: 'record',
        }
    })
])
Esempio n. 27
0
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup.standard import SEX_MAP_0F1M_SEX, STANDARD_STATUS, STANDARD_WITHDRAWAL
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UOL_CRF,
                'study': StudyName.Upfor5,
                'projects': [24],
            },
        ],
        'recruitment_date_column_name':
        'consent_date',
        'postcode_column_name':
        'postcode',
        'birth_date_column_name':
        'birth_date',
        **SEX_MAP_0F1M_SEX, 'identity_map': {
            ParticipantIdentifierTypeName.UPFOR5_ID: 'record',
        }
    })
])
Esempio n. 28
0
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup.standard import SEX_MAP_0F1M_GENDER, STANDARD_STATUS
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UOL_CRF,
                'study': StudyName.COPD_INTROL,
                'projects': [41],
            },
        ],
        'recruitment_date_column_name':
        'consent_date',
        'withdrawn_from_study_column_name':
        'non_complete_rsn',
        'withdrawn_from_study_values':
        '5',
        **SEX_MAP_0F1M_GENDER,
        **STANDARD_STATUS, 'identity_map': {
            ParticipantIdentifierTypeName.COPD_INTRO_ID: 'record',
        }
    })
])
Esempio n. 29
0
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup.standard import SEX_MAP_0F1M_SEX, STANDARD_STATUS, STANDARD_WITHDRAWAL
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UHL_LIVE,
                'study': StudyName.NON_ADHERENCE,
                'projects': [87],
            },
        ],
        'recruitment_date_column_name':
        'visit_date',
        'birth_date_column_name':
        'dob',
        **SEX_MAP_0F1M_SEX,
        **STANDARD_STATUS,
        **STANDARD_WITHDRAWAL, 'identity_map': {
            ParticipantIdentifierTypeName.NON_ADHERENCE_ID: 'record',
        }
    })
])
Esempio n. 30
0
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup.standard import SEX_MAP_1M2F_GENDER, STANDARD_STATUS, STANDARD_WITHDRAWAL
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition

crfs.extend([
    RedCapEcrfDefinition({
        'crfs': [
            {
                'instance': REDCapInstanceDetail.UHL_LIVE,
                'study': StudyName.Bioresource,
                'projects': [9],
            },
        ],
        'recruitment_date_column_name':
        'date_of_sig',
        'birth_date_column_name':
        'date_of_birth',
        **SEX_MAP_1M2F_GENDER,
        **STANDARD_STATUS,
        **STANDARD_WITHDRAWAL, 'identity_map': {
            ParticipantIdentifierTypeName.BIORESOURCE_ID: 'record',
        }
    })
])