AMP-SCZ / utility

Storehouse for all utility scripts
Apache License 2.0
0 stars 4 forks source link

RPMS None values are pushed to REDCap #51

Open tashrifbillah opened 2 years ago

tashrifbillah commented 2 years ago

Variables with None values should not be pushed to REDCap but they are: https://github.com/AMP-SCZ/utility/blob/2ec80e1ea701d1bd71d206b5891524e6062420e9/rpms_to_redcap.py#L173-L177

[{'chric_record_id': 'AB01010', 'redcap_event_name': 'baseline_arm_1', 'chrmri_entry_date': '2022-09-02', 'chrmri_tech': 'Michael Kean', 'chrmri_assistant': 'Adibah Amani Nasarudin ', 'chrmri_scanner': '1', 'chrmri_session_num': '1', 'chrmri_session_year': '2022', 'chrmri_session_month': '9', 'chrmri_session_day': '2', 'chrmri_starttime': '16:20', 'chrmri_headcoil': '1', 'chrmri_confirm': '-3', 'chrmri_consent': '1', 'chrmri_mockscan': '0', 'chrmri_metal': '1', 'chrmri_physicalmetal': '1', 'chrmri_earplugs': '1', 'chrmri_ball': '1', 'chrmri_leg': '1', 'chrmri_head': '1', 'chrmri_dental': '0', 'chrmri_localizerseq': '2', 'chrmri_aahscout': '2', 'chrmri_localizeraligned': '2', 'chrmri_dmap': '2', 'chrmri_dmap_qc': '1', 'chrmri_comments_4': 'None ', 'chrmri_dmpa': '2', 'chrmri_dmpa_qc': '1', 'chrmri_comments_16': 'None ', 'chrmri_t1': '2', 'chrmri_t1_qc': '2', 'chrmri_comments_5': 'None ', 'chrmri_t2': '2', 'chrmri_t2_qc': '2', 'chrmri_comments_6': 'None ', 'chrmri_dmap2': '2', 'chrmri_dmap_qc_2': '1', 'chrmri_comments_7': 'None ', 'chrmri_dmpa2': '2', 'chrmri_dmpa_qc_2': '1', 'chrmri_comments_8': 'None ', 'chrmri_cross': '1', 'chrmri_cross_issues': 'None ', 'chrmri_rfmriap': '2', 'chrmri_rfmriap_qc': '1', 'chrmri_rate_3': '2', 'chrmri_comments_9': 'None ', 'chrmri_cross_2': '1', 'chrmri_cross_issues_2': 'None ', 'chrmri_rfmripa': '2', 'chrmri_rfmripa_qc': '1', 'chrmri_rate': '2', 'chrmri_comments_10': 'None ', 'chrmri_dmri_b0': '2', 'chrmri_dmri_b0_qc': '1', 'chrmri_comments_11': 'None ', 'chrmri_dmri176': '2', 'chrmri_dmri176_qc': '1', 'chrmri_comments_12': 'None ', 'chrmri_dmri_b0_2': '2', 'chrmri_dmri_b0_qc_2': '1', 'chrmri_comments_17': 'None ', 'chrmri_dmap3': '2', 'chrmri_dmap_qc_3': '1', 'chrmri_comments10': 'None ', 'chrmri_dmpa3': '2', 'chrmri_dmpa_qc_3': '1', 'chrmri_comments_13': 'None ', 'chrmri_cross_3': '1', 'chrmri_cross_issues_3': 'None ', 'chrmri_rfmriap2': '2', 'chrmri_rfmriap2_qc': '1', 'chrmri_rate_4': '3', 'chrmri_comments_14': 'None ', 'chrmri_cross_4': '1', 'chrmri_cross_issues_4': 'None ', 'chrmri_rfmripa2': '2', 'chrmri_rfmripa2_qc': '1', 'chrmri_rate_2': '2', 'chrmri_comments_15': 'None ', 'chrmri_addcomments': 'None ', 'chrmri_endtime': '16:37', 'mri_run_sheet_complete': 0}]