meta-edc 0.3.7__py3-none-any.whl → 0.3.50__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- meta_ae/action_items.py +2 -2
- meta_ae/migrations/0017_auto_20221130_2257.py +12 -7
- meta_ae/tests/holidays.csv +1 -1
- meta_analytics/README.rst +17 -0
- meta_analytics/dataframes/__init__.py +19 -0
- meta_analytics/dataframes/constants.py +33 -0
- meta_analytics/dataframes/enrolled/__init__.py +1 -0
- meta_analytics/dataframes/enrolled/get_glucose_df.py +122 -0
- meta_analytics/dataframes/get_eos_df.py +26 -0
- meta_analytics/dataframes/get_last_imp_visits_df.py +101 -0
- meta_analytics/dataframes/glucose_endpoints/__init__.py +2 -0
- meta_analytics/dataframes/glucose_endpoints/endpoint_by_date.py +183 -0
- meta_analytics/dataframes/glucose_endpoints/glucose_endpoints_by_date.py +531 -0
- meta_analytics/dataframes/screening/__init__.py +2 -0
- meta_analytics/dataframes/screening/get_glucose_tested_only_df.py +20 -0
- meta_analytics/dataframes/screening/get_screening_df.py +163 -0
- meta_analytics/dataframes/utils.py +65 -0
- meta_analytics/get_tables.py +81 -0
- meta_analytics/tables/__init__.py +2 -0
- meta_analytics/tables/eligible.py +106 -0
- meta_analytics/tables/enrolled/__init__.py +0 -0
- meta_analytics/tables/enrolled/glucose.py +28 -0
- meta_analytics/tables/has_dm.py +61 -0
- meta_analytics/tests/__init__.py +0 -0
- meta_analytics/tests/test_endpoints_by_date.py +94 -0
- meta_auth/auth_objects.py +32 -3
- meta_auth/auths.py +18 -3
- meta_consent/action_items.py +18 -1
- meta_consent/admin/__init__.py +1 -0
- meta_consent/admin/subject_consent_v1_ext_admin.py +45 -0
- meta_consent/baker_recipes.py +5 -4
- meta_consent/consents.py +21 -2
- meta_consent/constants.py +1 -0
- meta_consent/forms/__init__.py +1 -0
- meta_consent/forms/subject_consent_v1_ext_form.py +16 -0
- meta_consent/locale/lg/LC_MESSAGES/django.po +69 -0
- meta_consent/locale/sw/LC_MESSAGES/django.po +12 -12
- meta_consent/migrations/0025_alter_historicalsubjectconsent_first_name_and_more.py +151 -0
- meta_consent/migrations/0026_historicalsubjectconsentv1ext_subjectconsentv1ext.py +544 -0
- meta_consent/migrations/0027_auto_20250111_0344.py +30 -0
- meta_consent/models/__init__.py +1 -0
- meta_consent/models/signals.py +34 -13
- meta_consent/models/subject_consent_v1.py +1 -3
- meta_consent/models/subject_consent_v1_ext.py +29 -0
- meta_consent/tests/holidays.csv +1 -1
- meta_consent/tests/tests/test_form_validators.py +1 -1
- meta_dashboard/locale/lg/LC_MESSAGES/django.po +30 -0
- meta_dashboard/locale/sw/LC_MESSAGES/django.po +11 -2
- meta_dashboard/navbars.py +3 -1
- meta_dashboard/templates/meta_dashboard/bootstrap3/buttons/eligibility_button.html +1 -1
- meta_dashboard/templates/meta_dashboard/bootstrap3/buttons/screening_button.html +1 -1
- meta_dashboard/templates/meta_dashboard/bootstrap3/screening/listboard.html +4 -4
- meta_dashboard/templates/meta_dashboard/bootstrap3/subject/dashboard/sidebar.html +24 -0
- meta_dashboard/templates/meta_dashboard/bootstrap3/subject/dashboard.html +3 -0
- meta_dashboard/templates/meta_dashboard/bootstrap3/subject/listboard.html +1 -2
- meta_dashboard/templatetags/meta_dashboard_extras.py +1 -1
- meta_dashboard/tests/holidays.csv +1 -1
- meta_dashboard/tests/urls.py +0 -1
- meta_dashboard/view_utils/__init__.py +6 -0
- meta_dashboard/view_utils/subject_screening_button.py +2 -2
- meta_dashboard/views/subject/dashboard/dashboard_view.py +38 -0
- meta_edc/__init__.py +7 -0
- meta_edc/celery.py +4 -13
- meta_edc/celery_live.py +18 -0
- meta_edc/celery_uat.py +24 -0
- meta_edc/management/commands/update_forms_reference.py +6 -2
- meta_edc/migrations/__init__.py +0 -0
- meta_edc/navbars.py +2 -1
- meta_edc/settings/debug.py +17 -9
- meta_edc/settings/defaults.py +82 -60
- meta_edc/settings/live.py +1 -9
- meta_edc/settings/uat.py +1 -14
- meta_edc/templates/meta_edc/bootstrap3/home.html +13 -7
- meta_edc/tests/tests/test_endpoints.py +22 -19
- meta_edc/urls.py +5 -2
- meta_edc/wsgi.py +1 -1
- meta_edc/wsgi_live.py +1 -1
- meta_edc/wsgi_uat.py +1 -1
- meta_edc-0.3.50.dist-info/AUTHORS +0 -0
- meta_edc-0.3.50.dist-info/METADATA +766 -0
- {meta_edc-0.3.7.dist-info → meta_edc-0.3.50.dist-info}/RECORD +400 -157
- {meta_edc-0.3.7.dist-info → meta_edc-0.3.50.dist-info}/WHEEL +1 -1
- {meta_edc-0.3.7.dist-info → meta_edc-0.3.50.dist-info}/top_level.txt +1 -0
- meta_pharmacy/admin/__init__.py +2 -0
- meta_pharmacy/admin/rx_admin.py +75 -0
- meta_pharmacy/admin/substitutions_admin.py +67 -0
- meta_pharmacy/admin_site.py +9 -0
- meta_pharmacy/apps.py +5 -0
- meta_pharmacy/constants.py +10 -0
- meta_pharmacy/forms/__init__.py +2 -0
- meta_pharmacy/forms/rx_form.py +16 -0
- meta_pharmacy/forms/substitutions_form.py +54 -0
- meta_pharmacy/label_configs.py +30 -0
- meta_pharmacy/labels/__init__.py +5 -0
- meta_pharmacy/labels/draw_label_for_subject_with_barcode.py +62 -0
- meta_pharmacy/labels/draw_label_for_subject_with_code128.py +14 -0
- meta_pharmacy/labels/draw_label_with_test_data.py +26 -0
- meta_pharmacy/labels/label_data.py +14 -0
- meta_pharmacy/labels/print_sheets.py +97 -0
- meta_pharmacy/list_data.py +8 -0
- meta_pharmacy/management/__init__.py +0 -0
- meta_pharmacy/management/commands/__init__.py +0 -0
- meta_pharmacy/management/commands/update_initial_pharmacy_data.py +10 -0
- meta_pharmacy/migrations/0002_initial.py +695 -0
- meta_pharmacy/migrations/0003_auto_20240909_2335.py +64 -0
- meta_pharmacy/migrations/0004_alter_historicalsubstitutions_report_datetime_and_more.py +23 -0
- meta_pharmacy/migrations/0005_auto_20240911_0352.py +17 -0
- meta_pharmacy/migrations/0006_lotnumber_label.py +289 -0
- meta_pharmacy/migrations/0007_lotnumber_medication.py +24 -0
- meta_pharmacy/migrations/0008_remove_lotnumber_medication_and_more.py +390 -0
- meta_pharmacy/migrations/0009_remove_historicalrx_slug.py +17 -0
- meta_pharmacy/models/__init__.py +3 -0
- meta_pharmacy/models/label_data.py +38 -0
- meta_pharmacy/models/rx.py +18 -0
- meta_pharmacy/models/rx_label.py +39 -0
- meta_pharmacy/models/substitutions.py +88 -0
- meta_pharmacy/urls.py +8 -0
- meta_pharmacy/utils/__init__.py +1 -0
- meta_pharmacy/utils/update_initial_pharmacy_data.py +146 -0
- meta_prn/action_items.py +52 -2
- meta_prn/admin/__init__.py +3 -0
- meta_prn/admin/dm_referral_admin.py +49 -0
- meta_prn/admin/offschedule_dm_referral_admin.py +47 -0
- meta_prn/admin/onschedule_dm_referral_admin.py +39 -0
- meta_prn/admin/pregnancy_notification_admin.py +6 -2
- meta_prn/baker_recipes.py +8 -1
- meta_prn/choices.py +2 -1
- meta_prn/constants.py +4 -1
- meta_prn/forms/__init__.py +2 -0
- meta_prn/forms/dm_referral_form.py +40 -0
- meta_prn/forms/offschedule_dm_referral_form.py +35 -0
- meta_prn/forms/offschedule_form.py +6 -0
- meta_prn/migrations/0034_auto_20220630_1110.py +3 -3
- meta_prn/migrations/0035_auto_20220630_1140.py +59 -56
- meta_prn/migrations/0057_historicalonscheduledmreferral_and_more.py +1156 -0
- meta_prn/migrations/0058_dmreferral_referral_note_and_more.py +29 -0
- meta_prn/migrations/0059_alter_historicaloffstudymedication_reason_and_more.py +53 -0
- meta_prn/models/__init__.py +13 -2
- meta_prn/models/dm_referral.py +39 -0
- meta_prn/models/offschedule.py +15 -1
- meta_prn/models/onschedule.py +6 -0
- meta_prn/models/signals.py +41 -1
- meta_prn/tests/tests/test_dm_referral.py +203 -0
- meta_reports/__init__.py +1 -0
- meta_reports/admin/__init__.py +15 -0
- meta_reports/admin/dbviews/__init__.py +14 -0
- meta_reports/admin/dbviews/glucose_summary_admin.py +116 -0
- meta_reports/admin/dbviews/imp_substitutions_admin.py +101 -0
- meta_reports/admin/dbviews/missing_screening_ogtt_admin/__init__.py +2 -0
- meta_reports/admin/dbviews/missing_screening_ogtt_admin/note_model_admin.py +53 -0
- meta_reports/admin/dbviews/missing_screening_ogtt_admin/unmanaged_model_admin.py +84 -0
- meta_reports/admin/dbviews/on_study_missing_lab_values_admin/__init__.py +1 -0
- meta_reports/admin/dbviews/on_study_missing_lab_values_admin/unmanaged_model_admin.py +13 -0
- meta_reports/admin/dbviews/on_study_missing_values_admin/__init__.py +1 -0
- meta_reports/admin/dbviews/on_study_missing_values_admin/unmanaged_model_admin.py +13 -0
- meta_reports/admin/dbviews/patient_history_missing_baseline_cd4_admin.py +58 -0
- meta_reports/admin/dbviews/unattended_three_in_row2_admin.py +47 -0
- meta_reports/admin/dbviews/unattended_three_in_row_admin.py +35 -0
- meta_reports/admin/dbviews/unattended_two_in_row_admin.py +34 -0
- meta_reports/admin/endpoints_admin.py +14 -0
- meta_reports/admin/endpoints_all_admin.py +13 -0
- meta_reports/admin/last_imp_refill_admin.py +181 -0
- meta_reports/admin/list_filters.py +30 -0
- meta_reports/admin/modeladmin_mixins.py +112 -0
- meta_reports/admin_site.py +5 -0
- meta_reports/apps.py +1 -16
- meta_reports/forms/__init__.py +1 -0
- meta_reports/forms/missing_ogtt_note_form.py +33 -0
- meta_reports/management/__init__.py +0 -0
- meta_reports/management/commands/__init__.py +0 -0
- meta_reports/management/commands/generate_endpoints.py +13 -0
- meta_reports/migrations/0001_initial.py +87 -0
- meta_reports/migrations/0002_patienthistorymissingbaselinecd4_and_more.py +64 -0
- meta_reports/migrations/0003_auto_20240618_0505.py +12 -0
- meta_reports/migrations/0004_alter_patienthistorymissingbaselinecd4_table.py +17 -0
- meta_reports/migrations/0005_endpoints.py +47 -0
- meta_reports/migrations/0006_endpoints_baseline_datetime.py +18 -0
- meta_reports/migrations/0007_alter_endpoints_endpoint_label_and_more.py +43 -0
- meta_reports/migrations/0008_alter_endpoints_endpoint_label.py +18 -0
- meta_reports/migrations/0009_alter_endpoints_options.py +21 -0
- meta_reports/migrations/0010_alter_patienthistorymissingbaselinecd4_options_and_more.py +49 -0
- meta_reports/migrations/0011_auto_20240813_0156.py +54 -0
- meta_reports/migrations/0012_auto_20240813_1516.py +48 -0
- meta_reports/migrations/0013_auto_20240813_1516.py +48 -0
- meta_reports/migrations/0014_auto_20240813_1517.py +48 -0
- meta_reports/migrations/0015_alter_endpoints_site.py +22 -0
- meta_reports/migrations/0016_missingscreeningogtt.py +47 -0
- meta_reports/migrations/0017_auto_20240819_1711.py +166 -0
- meta_reports/migrations/0018_auto_20240819_1713.py +54 -0
- meta_reports/migrations/0019_auto_20240819_1721.py +54 -0
- meta_reports/migrations/0020_auto_20240819_1811.py +54 -0
- meta_reports/migrations/0021_auto_20240819_1817.py +54 -0
- meta_reports/migrations/0022_auto_20240819_1832.py +54 -0
- meta_reports/migrations/0023_endpoints_meta_report_subject_a56b22_idx.py +20 -0
- meta_reports/migrations/0024_glucosesummary.py +38 -0
- meta_reports/migrations/0025_auto_20240822_0115.py +87 -0
- meta_reports/migrations/0026_auto_20240822_0120.py +54 -0
- meta_reports/migrations/0027_auto_20240822_0140.py +54 -0
- meta_reports/migrations/0028_alter_glucosesummary_options.py +22 -0
- meta_reports/migrations/0029_auto_20240822_0149.py +54 -0
- meta_reports/migrations/0030_auto_20240822_1637.py +54 -0
- meta_reports/migrations/0031_endpointsproxy.py +25 -0
- meta_reports/migrations/0032_alter_endpointsproxy_options.py +21 -0
- meta_reports/migrations/0033_auto_20240823_0012.py +54 -0
- meta_reports/migrations/0034_auto_20240823_1642.py +54 -0
- meta_reports/migrations/0035_historicalmissingogttnote_missingogttnote.py +457 -0
- meta_reports/migrations/0036_historicalmissingogttnote_fasting_and_more.py +86 -0
- meta_reports/migrations/0037_historicalmissingogttnote_result_status_and_more.py +51 -0
- meta_reports/migrations/0038_alter_historicalmissingogttnote_fasting_and_more.py +33 -0
- meta_reports/migrations/0039_onstudymissingvalues.py +44 -0
- meta_reports/migrations/0040_auto_20240824_0412.py +282 -0
- meta_reports/migrations/0041_auto_20240828_2229.py +14 -0
- meta_reports/migrations/0042_onstudymissinglabvalues.py +43 -0
- meta_reports/migrations/0043_auto_20240828_2309.py +88 -0
- meta_reports/migrations/0044_auto_20240828_2323.py +93 -0
- meta_reports/migrations/0045_auto_20240829_0248.py +54 -0
- meta_reports/migrations/0046_auto_20240829_0250.py +54 -0
- meta_reports/migrations/0047_impsubstitutions.py +56 -0
- meta_reports/migrations/0048_auto_20240909_2338.py +48 -0
- meta_reports/migrations/0049_auto_20240911_0327.py +54 -0
- meta_reports/migrations/0050_alter_endpoints_created.py +19 -0
- meta_reports/migrations/0051_remove_endpoints_baseline_datetime_and_more.py +40 -0
- meta_reports/migrations/0052_lastimpvisit.py +57 -0
- meta_reports/migrations/0053_rename_lastimpvisit_lastimprefill_and_more.py +31 -0
- meta_reports/models/__init__.py +16 -0
- meta_reports/models/dbviews/README +14 -0
- meta_reports/models/dbviews/__init__.py +9 -0
- meta_reports/models/dbviews/glucose_summary/__init__.py +2 -0
- meta_reports/models/dbviews/glucose_summary/unmanaged_model.py +35 -0
- meta_reports/models/dbviews/glucose_summary/view_definition.py +28 -0
- meta_reports/models/dbviews/imp_substitutions/__init__.py +1 -0
- meta_reports/models/dbviews/imp_substitutions/unmanaged_model.py +41 -0
- meta_reports/models/dbviews/imp_substitutions/view_definition.py +21 -0
- meta_reports/models/dbviews/missing_screening_ogtt/__init__.py +2 -0
- meta_reports/models/dbviews/missing_screening_ogtt/note_model.py +57 -0
- meta_reports/models/dbviews/missing_screening_ogtt/unmanaged_model.py +41 -0
- meta_reports/models/dbviews/missing_screening_ogtt/view_definition.py +20 -0
- meta_reports/models/dbviews/on_study_missing_lab_values/__init__.py +1 -0
- meta_reports/models/dbviews/on_study_missing_lab_values/qa_cases.py +53 -0
- meta_reports/models/dbviews/on_study_missing_lab_values/unmanged_model.py +20 -0
- meta_reports/models/dbviews/on_study_missing_lab_values/view_definition.py +17 -0
- meta_reports/models/dbviews/on_study_missing_values/__init__.py +1 -0
- meta_reports/models/dbviews/on_study_missing_values/qa_cases.py +54 -0
- meta_reports/models/dbviews/on_study_missing_values/unmanged_model.py +20 -0
- meta_reports/models/dbviews/on_study_missing_values/view_definition.py +17 -0
- meta_reports/models/dbviews/patient_history_missing_baseline_cd4/__init__.py +1 -0
- meta_reports/models/dbviews/patient_history_missing_baseline_cd4/unmanaged_model.py +31 -0
- meta_reports/models/dbviews/patient_history_missing_baseline_cd4/view_definition.py +21 -0
- meta_reports/models/dbviews/unattended_three_in_row/__init__.py +1 -0
- meta_reports/models/dbviews/unattended_three_in_row/unmanaged_model.py +29 -0
- meta_reports/models/dbviews/unattended_three_in_row/view_definition.py +31 -0
- meta_reports/models/dbviews/unattended_three_in_row2/__init__.py +1 -0
- meta_reports/models/dbviews/unattended_three_in_row2/unmanaged_model.py +29 -0
- meta_reports/models/dbviews/unattended_three_in_row2/view_definition.py +50 -0
- meta_reports/models/dbviews/unattended_two_in_row/__init__.py +1 -0
- meta_reports/models/dbviews/unattended_two_in_row/unmanaged_model.py +27 -0
- meta_reports/models/dbviews/unattended_two_in_row/view_definition.py +30 -0
- meta_reports/models/endpoints.py +31 -0
- meta_reports/models/endpoints_proxy.py +11 -0
- meta_reports/models/last_imp_refill.py +34 -0
- meta_reports/tasks.py +12 -0
- meta_reports/templates/meta_reports/columns/subject_identifier_column.html +1 -0
- meta_reports/templates/meta_reports/endpoints_all_change_list_note.html +12 -0
- meta_reports/templates/meta_reports/endpoints_change_list_note.html +12 -0
- meta_reports/tests/test_sql_gen.py +5 -0
- meta_reports/urls.py +8 -0
- meta_reports/utils.py +0 -0
- meta_screening/admin/subject_screening_admin.py +1 -0
- meta_screening/form_validators/screening_part_two.py +1 -1
- meta_screening/migrations/0062_remove_icpreferral_site_and_more.py +27 -0
- meta_screening/migrations/0063_alter_historicalscreeningpartone_fasting_duration_str_and_more.py +184 -0
- meta_screening/migrations/0064_remove_historicalscreeningpartone_fasting_duration_minutes_and_more.py +126 -0
- meta_screening/migrations/0065_auto_20240516_0352.py +31 -0
- meta_screening/migrations/0066_alter_historicalscreeningpartone_fasting_duration_delta_and_more.py +103 -0
- meta_screening/migrations/0067_alter_historicalscreeningpartone_report_datetime_and_more.py +84 -0
- meta_screening/models/__init__.py +1 -1
- meta_screening/tests/holidays.csv +1 -1
- meta_screening/tests/meta_test_case_mixin.py +17 -2
- meta_screening/tests/options.py +3 -3
- meta_sites/__init__.py +0 -1
- meta_sites/sites.py +8 -7
- meta_sites/tests/test_sites.py +1 -1
- meta_subject/action_items.py +25 -2
- meta_subject/admin/__init__.py +2 -1
- meta_subject/admin/birth_outcome_admin.py +4 -3
- meta_subject/admin/blood_results/__init__.py +1 -1
- meta_subject/admin/blood_results/{blood_results_lipid_admin.py → blood_results_lipids_admin.py} +7 -7
- meta_subject/admin/delivery_admin.py +0 -1
- meta_subject/admin/diabetes/__init__.py +2 -0
- meta_subject/admin/diabetes/dm_endpoint_admin.py +35 -0
- meta_subject/admin/{dm_referral_followup_admin.py → diabetes/dm_followup_admin.py} +15 -8
- meta_subject/admin/glucose_admin.py +1 -1
- meta_subject/admin/glucose_fbg_admin.py +38 -8
- meta_subject/admin/other_arv_regimens_admin.py +2 -0
- meta_subject/admin/study_medication_admin.py +10 -0
- meta_subject/admin/subject_visit_admin.py +4 -1
- meta_subject/baker_recipes.py +6 -0
- meta_subject/choices.py +8 -0
- meta_subject/constants.py +2 -1
- meta_subject/form_validators/__init__.py +2 -1
- meta_subject/form_validators/dm_endpoint_form_validator.py +35 -0
- meta_subject/form_validators/{dm_referral_followup_form_validator.py → dm_followup_form_validator.py} +41 -2
- meta_subject/forms/__init__.py +2 -1
- meta_subject/forms/blood_results/__init__.py +1 -1
- meta_subject/forms/blood_results/{blood_results_lipid_form.py → blood_results_lipids_form.py} +5 -5
- meta_subject/forms/diabetes/__init__.py +2 -0
- meta_subject/forms/diabetes/dm_endpoint_form.py +13 -0
- meta_subject/forms/diabetes/dm_followup_form.py +25 -0
- meta_subject/forms/glucose_fbg_form.py +38 -16
- meta_subject/forms/study_medication_form.py +35 -0
- meta_subject/forms/subject_visit_form.py +16 -0
- meta_subject/locale/lg/LC_MESSAGES/django.po +470 -0
- meta_subject/locale/sw/LC_MESSAGES/django.po +191 -89
- meta_subject/metadata_rules/metadata_rules.py +21 -0
- meta_subject/metadata_rules/predicates.py +67 -8
- meta_subject/migrations/0107_auto_20220415_0043.py +28 -22
- meta_subject/migrations/0126_auto_20220719_2142.py +4 -4
- meta_subject/migrations/0131_auto_20220722_0411.py +28 -23
- meta_subject/migrations/0132_auto_20220722_1825.py +10 -6
- meta_subject/migrations/0135_auto_20220722_2212.py +39 -35
- meta_subject/migrations/0150_auto_20220914_0039.py +15 -11
- meta_subject/migrations/0181_dmreferralfollowup_action_identifier_and_more.py +143 -0
- meta_subject/migrations/0182_rename_dmreferralfollowup_dmfollowup_and_more.py +54 -0
- meta_subject/migrations/0183_alter_dmfollowup_on_dm_medications_and_more.py +31 -0
- meta_subject/migrations/0184_alter_glucose_options_and_more.py +31 -0
- meta_subject/migrations/0185_alter_bloodresultsins_fasting_duration_str_and_more.py +82 -0
- meta_subject/migrations/0186_healtheconomicsupdate_singleton_field_and_more.py +55 -0
- meta_subject/migrations/0187_dmdiagnosis_historicaldmdiagnosis_dmdxresult_and_more.py +451 -0
- meta_subject/migrations/0188_historicaldmdxresult_dmdxresult.py +403 -0
- meta_subject/migrations/0189_alter_dmdxresult_options_and_more.py +116 -0
- meta_subject/migrations/0190_dmdiagnosis_dx_no_tmg_reason_and_more.py +65 -0
- meta_subject/migrations/0191_alter_dmdiagnosis_dx_no_tmg_reason_and_more.py +70 -0
- meta_subject/migrations/0192_rename_glucose_quantifier_glucosefbg_fbg_quantifier_and_more.py +44 -0
- meta_subject/migrations/0193_alter_glucosefbg_fbg_value_and_more.py +44 -0
- meta_subject/migrations/0194_remove_glucosefbg_assay_datetime_and_more.py +166 -0
- meta_subject/migrations/0195_alter_glucosefbg_fbg_datetime_and_more.py +27 -0
- meta_subject/migrations/0196_glucosefbg_fbg_not_performed_reason_and_more.py +49 -0
- meta_subject/migrations/0197_glucosefbg_fasting_duration_estimated_and_more.py +33 -0
- meta_subject/migrations/0198_alter_glucosefbg_fasting_duration_estimated_and_more.py +33 -0
- meta_subject/migrations/0199_auto_20240516_0247.py +18 -0
- meta_subject/migrations/0200_rename_fasting_duration_minutes_bloodresultsins_fasting_duration_delta_and_more.py +43 -0
- meta_subject/migrations/0201_alter_bloodresultsins_fasting_duration_delta_and_more.py +58 -0
- meta_subject/migrations/0202_auto_20240516_0315.py +32 -0
- meta_subject/migrations/0203_alter_bloodresultsins_fasting_duration_delta_and_more.py +67 -0
- meta_subject/migrations/0204_glucosefbg_repeat_fbg_date_and_more.py +27 -0
- meta_subject/migrations/0205_historicalsubjectrequisition_crf_status_and_more.py +80 -0
- meta_subject/migrations/0206_bloodresultsfbc_crf_status_and_more.py +62 -0
- meta_subject/migrations/0207_alter_historicalphysicalexam_waist_circumference_and_more.py +46 -0
- meta_subject/migrations/0208_birthoutcomes_crf_status_and_more.py +62 -0
- meta_subject/migrations/0209_remove_historicaldmdxresult_dm_diagnosis_and_more.py +37 -0
- meta_subject/migrations/0210_remove_dmdxresult_dm_diagnosis_and_more.py +123 -0
- meta_subject/migrations/0211_dmendpoint_endpoint_reached_and_more.py +45 -0
- meta_subject/migrations/0212_auto_20240827_2222.py +23 -0
- meta_subject/migrations/0213_rename_bloodresultslipid_bloodresultslipids_and_more.py +35 -0
- meta_subject/migrations/0214_historicalstudymedication_stock_codes_and_more.py +44 -0
- meta_subject/migrations/0215_alter_historicalstudymedication_stock_codes_and_more.py +46 -0
- meta_subject/model_mixins/arv_history_model_mixin.py +3 -3
- meta_subject/models/__init__.py +3 -2
- meta_subject/models/birth_outcomes.py +6 -1
- meta_subject/models/blood_results/__init__.py +1 -1
- meta_subject/models/blood_results/blood_results_fbc.py +3 -2
- meta_subject/models/blood_results/blood_results_hba1c.py +2 -0
- meta_subject/models/blood_results/blood_results_ins.py +2 -0
- meta_subject/models/blood_results/blood_results_lft.py +2 -0
- meta_subject/models/blood_results/{blood_results_lipid.py → blood_results_lipids.py} +5 -3
- meta_subject/models/blood_results/blood_results_rft.py +2 -0
- meta_subject/models/diabetes/__init__.py +2 -0
- meta_subject/models/diabetes/dm_endpoint.py +61 -0
- meta_subject/models/{dm_referral_followup.py → diabetes/dm_followup.py} +18 -6
- meta_subject/models/glucose.py +7 -14
- meta_subject/models/glucose_fbg.py +40 -51
- meta_subject/models/health_economics/health_economics_update.py +2 -0
- meta_subject/models/physical_exam.py +1 -0
- meta_subject/models/signals.py +19 -0
- meta_subject/models/subject_requisition.py +3 -4
- meta_subject/models/todo.txt +1 -1
- meta_subject/static/meta_subject/slider.css +1 -1
- meta_subject/templates/meta_subject/endpoint_review_instructions.html +1 -1
- meta_subject/templates/meta_subject/widgets/slider.html +0 -1
- meta_subject/tests/holidays.csv +1 -1
- meta_subject/tests/tests/test_egfr.py +6 -5
- meta_subject/tests/tests/test_medication_adherence.py +5 -1
- meta_subject/tests/tests/test_metadata_rules.py +34 -4
- meta_subject/tests/tests/test_mnsi.py +212 -121
- meta_subject/tests/tests/test_sf12.py +0 -12
- meta_visit_schedule/constants.py +7 -1
- meta_visit_schedule/tests/tests/test_schedule.py +4 -0
- meta_visit_schedule/visit_schedules/phase_three/crfs.py +87 -14
- meta_visit_schedule/visit_schedules/phase_three/requisitions.py +12 -0
- meta_visit_schedule/visit_schedules/phase_three/schedule.py +65 -2
- meta_visit_schedule/visit_schedules/phase_three/schedule_dm_referral.py +60 -0
- meta_visit_schedule/visit_schedules/phase_three/visit_schedule.py +2 -0
- tests/etc/randomization_list.csv +1 -1
- {meta_edc/tests → tests}/etc/randomization_list_phase_three.csv +4 -4
- tests/holidays.csv +1 -1
- tests/test_settings.py +186 -0
- meta_edc/tests/etc/user-aes-local.key +0 -1
- meta_edc/tests/etc/user-aes-restricted.key +0 -0
- meta_edc/tests/etc/user-rsa-local-private.pem +0 -27
- meta_edc/tests/etc/user-rsa-local-public.pem +0 -9
- meta_edc/tests/etc/user-rsa-restricted-private.pem +0 -27
- meta_edc/tests/etc/user-rsa-restricted-public.pem +0 -9
- meta_edc/tests/etc/user-salt-local.key +0 -0
- meta_edc/tests/etc/user-salt-restricted.key +0 -0
- meta_edc-0.3.7.dist-info/METADATA +0 -87
- meta_reports/tests/holidays.csv +0 -15
- meta_subject/forms/dm_referral_followup.py +0 -18
- /meta_edc-0.3.7.dist-info/AUTHORS → /meta_analytics/__init__.py +0 -0
- /meta_pharmacy/models.py → /meta_analytics/constants.py +0 -0
- /meta_reports/models.py → /meta_analytics/notebooks/cleaning/__init__.py +0 -0
- {meta_edc-0.3.7.dist-info → meta_edc-0.3.50.dist-info}/LICENSE +0 -0
@@ -7,7 +7,11 @@ crfs_prn = CrfCollection(
|
|
7
7
|
Crf(show_order=235, model="meta_subject.bloodresultshba1c"),
|
8
8
|
Crf(show_order=245, model="meta_subject.bloodresultsrft"),
|
9
9
|
Crf(show_order=255, model="meta_subject.bloodresultslft"),
|
10
|
-
Crf(show_order=265, model="meta_subject.
|
10
|
+
Crf(show_order=265, model="meta_subject.bloodresultslipids"),
|
11
|
+
Crf(show_order=268, model="meta_subject.bloodresultsins"),
|
12
|
+
Crf(show_order=461, model="meta_subject.eq5d3l"),
|
13
|
+
Crf(show_order=466, model="meta_subject.sf12"),
|
14
|
+
Crf(show_order=471, model="meta_subject.mnsi"),
|
11
15
|
Crf(show_order=275, model="meta_subject.hepatitistest"),
|
12
16
|
Crf(show_order=285, model="meta_subject.malariatest"),
|
13
17
|
Crf(show_order=295, model="meta_subject.urinedipsticktest"),
|
@@ -15,7 +19,6 @@ crfs_prn = CrfCollection(
|
|
15
19
|
Crf(show_order=385, model="meta_subject.urinepregnancy"),
|
16
20
|
Crf(show_order=505, model="meta_subject.pregnancyupdate"),
|
17
21
|
Crf(show_order=515, model="meta_subject.egfrdropnotification"),
|
18
|
-
Crf(show_order=615, model="meta_subject.dmreferralfollowup"),
|
19
22
|
name="prn",
|
20
23
|
)
|
21
24
|
|
@@ -41,7 +44,7 @@ crfs_d1 = CrfCollection(
|
|
41
44
|
Crf(show_order=230, model="meta_subject.bloodresultsrft"),
|
42
45
|
Crf(show_order=240, model="meta_subject.bloodresultslft"),
|
43
46
|
Crf(show_order=250, model="meta_subject.bloodresultsfbc"),
|
44
|
-
Crf(show_order=260, model="meta_subject.
|
47
|
+
Crf(show_order=260, model="meta_subject.bloodresultslipids"),
|
45
48
|
Crf(show_order=360, model="meta_subject.malariatest"),
|
46
49
|
Crf(show_order=370, model="meta_subject.urinedipsticktest"),
|
47
50
|
Crf(show_order=400, model="meta_subject.studymedication"),
|
@@ -57,7 +60,7 @@ crfs_w2 = CrfCollection(
|
|
57
60
|
Crf(show_order=310, model="meta_subject.medicationadherence"),
|
58
61
|
Crf(show_order=460, model="meta_subject.eq5d3l"),
|
59
62
|
Crf(show_order=465, model="meta_subject.sf12"),
|
60
|
-
Crf(show_order=
|
63
|
+
Crf(show_order=480, model="meta_subject.healtheconomicssimple"),
|
61
64
|
name="week2",
|
62
65
|
)
|
63
66
|
|
@@ -68,10 +71,10 @@ crfs_1m = CrfCollection(
|
|
68
71
|
Crf(show_order=200, model="meta_subject.glucosefbg"),
|
69
72
|
Crf(show_order=300, model="meta_subject.studymedication"),
|
70
73
|
Crf(show_order=310, model="meta_subject.medicationadherence"),
|
71
|
-
Crf(show_order=450, model="meta_subject.healtheconomicssimple", required=False),
|
72
74
|
Crf(show_order=460, model="meta_subject.eq5d3l", required=False),
|
73
75
|
Crf(show_order=465, model="meta_subject.sf12", required=False),
|
74
76
|
Crf(show_order=470, model="meta_subject.mnsi"),
|
77
|
+
Crf(show_order=480, model="meta_subject.healtheconomicssimple", required=False),
|
75
78
|
name="1m",
|
76
79
|
)
|
77
80
|
|
@@ -87,6 +90,7 @@ crfs_3m = CrfCollection(
|
|
87
90
|
Crf(show_order=460, model="meta_subject.eq5d3l", required=False),
|
88
91
|
Crf(show_order=465, model="meta_subject.sf12", required=False),
|
89
92
|
Crf(show_order=470, model="meta_subject.mnsi", required=False),
|
93
|
+
Crf(show_order=500, model="meta_subject.healtheconomicsupdate"),
|
90
94
|
name="3m",
|
91
95
|
)
|
92
96
|
|
@@ -103,6 +107,7 @@ crfs_6m = CrfCollection(
|
|
103
107
|
Crf(show_order=460, model="meta_subject.eq5d3l", required=False),
|
104
108
|
Crf(show_order=465, model="meta_subject.sf12", required=False),
|
105
109
|
Crf(show_order=470, model="meta_subject.mnsi", required=False),
|
110
|
+
Crf(show_order=500, model="meta_subject.healtheconomicsupdate", required=False),
|
106
111
|
name="6m",
|
107
112
|
)
|
108
113
|
|
@@ -115,6 +120,7 @@ crfs_9m = CrfCollection(
|
|
115
120
|
Crf(show_order=310, model="meta_subject.medicationadherence"),
|
116
121
|
Crf(show_order=460, model="meta_subject.eq5d3l", required=False),
|
117
122
|
Crf(show_order=465, model="meta_subject.sf12", required=False),
|
123
|
+
Crf(show_order=500, model="meta_subject.healtheconomicsupdate", required=False),
|
118
124
|
name="9m",
|
119
125
|
)
|
120
126
|
|
@@ -126,11 +132,12 @@ crfs_12m = CrfCollection(
|
|
126
132
|
Crf(show_order=220, model="meta_subject.bloodresultsrft"),
|
127
133
|
Crf(show_order=230, model="meta_subject.bloodresultslft"),
|
128
134
|
Crf(show_order=240, model="meta_subject.bloodresultsfbc"),
|
129
|
-
Crf(show_order=250, model="meta_subject.
|
135
|
+
Crf(show_order=250, model="meta_subject.bloodresultslipids"),
|
130
136
|
Crf(show_order=300, model="meta_subject.studymedication"),
|
131
137
|
Crf(show_order=310, model="meta_subject.medicationadherence"),
|
132
138
|
Crf(show_order=460, model="meta_subject.eq5d3l", required=False),
|
133
139
|
Crf(show_order=465, model="meta_subject.sf12", required=False),
|
140
|
+
Crf(show_order=500, model="meta_subject.healtheconomicsupdate", required=False),
|
134
141
|
name="12m",
|
135
142
|
)
|
136
143
|
|
@@ -143,6 +150,7 @@ crfs_15m = CrfCollection(
|
|
143
150
|
Crf(show_order=310, model="meta_subject.medicationadherence"),
|
144
151
|
Crf(show_order=460, model="meta_subject.eq5d3l", required=False),
|
145
152
|
Crf(show_order=465, model="meta_subject.sf12", required=False),
|
153
|
+
Crf(show_order=500, model="meta_subject.healtheconomicsupdate", required=False),
|
146
154
|
name="15m",
|
147
155
|
)
|
148
156
|
|
@@ -156,6 +164,7 @@ crfs_18m = CrfCollection(
|
|
156
164
|
Crf(show_order=310, model="meta_subject.medicationadherence"),
|
157
165
|
Crf(show_order=460, model="meta_subject.eq5d3l", required=False),
|
158
166
|
Crf(show_order=465, model="meta_subject.sf12", required=False),
|
167
|
+
Crf(show_order=500, model="meta_subject.healtheconomicsupdate", required=False),
|
159
168
|
name="18m",
|
160
169
|
)
|
161
170
|
|
@@ -168,6 +177,7 @@ crfs_21m = CrfCollection(
|
|
168
177
|
Crf(show_order=310, model="meta_subject.medicationadherence"),
|
169
178
|
Crf(show_order=460, model="meta_subject.eq5d3l", required=False),
|
170
179
|
Crf(show_order=465, model="meta_subject.sf12", required=False),
|
180
|
+
Crf(show_order=500, model="meta_subject.healtheconomicsupdate", required=False),
|
171
181
|
name="21m",
|
172
182
|
)
|
173
183
|
|
@@ -179,11 +189,13 @@ crfs_24m = CrfCollection(
|
|
179
189
|
Crf(show_order=220, model="meta_subject.bloodresultsrft"),
|
180
190
|
Crf(show_order=230, model="meta_subject.bloodresultslft"),
|
181
191
|
Crf(show_order=240, model="meta_subject.bloodresultsfbc"),
|
182
|
-
Crf(show_order=250, model="meta_subject.
|
192
|
+
Crf(show_order=250, model="meta_subject.bloodresultslipids"),
|
183
193
|
Crf(show_order=300, model="meta_subject.studymedication"),
|
184
194
|
Crf(show_order=310, model="meta_subject.medicationadherence"),
|
185
195
|
Crf(show_order=460, model="meta_subject.eq5d3l", required=False),
|
186
196
|
Crf(show_order=465, model="meta_subject.sf12", required=False),
|
197
|
+
Crf(show_order=470, model="meta_subject.mnsi"),
|
198
|
+
Crf(show_order=500, model="meta_subject.healtheconomicsupdate", required=False),
|
187
199
|
name="24m",
|
188
200
|
)
|
189
201
|
|
@@ -191,11 +203,12 @@ crfs_27m = CrfCollection(
|
|
191
203
|
Crf(show_order=100, model="meta_subject.followupvitals"),
|
192
204
|
Crf(show_order=150, model="meta_subject.followupexamination"),
|
193
205
|
Crf(show_order=155, model="meta_subject.glucose", required=False),
|
194
|
-
Crf(show_order=200, model="meta_subject.glucosefbg"),
|
195
206
|
Crf(show_order=300, model="meta_subject.studymedication"),
|
196
207
|
Crf(show_order=310, model="meta_subject.medicationadherence"),
|
197
208
|
Crf(show_order=460, model="meta_subject.eq5d3l", required=False),
|
198
209
|
Crf(show_order=465, model="meta_subject.sf12", required=False),
|
210
|
+
Crf(show_order=470, model="meta_subject.mnsi", required=False),
|
211
|
+
Crf(show_order=500, model="meta_subject.healtheconomicsupdate", required=False),
|
199
212
|
name="27m",
|
200
213
|
)
|
201
214
|
|
@@ -204,13 +217,12 @@ crfs_30m = CrfCollection(
|
|
204
217
|
Crf(show_order=150, model="meta_subject.followupexamination"),
|
205
218
|
Crf(show_order=155, model="meta_subject.glucose", required=False),
|
206
219
|
Crf(show_order=205, model="meta_subject.glucosefbg"),
|
207
|
-
Crf(show_order=210, model="meta_subject.bloodresultsrft"),
|
208
|
-
Crf(show_order=220, model="meta_subject.bloodresultslft"),
|
209
|
-
Crf(show_order=230, model="meta_subject.bloodresultsfbc"),
|
210
220
|
Crf(show_order=300, model="meta_subject.studymedication"),
|
211
221
|
Crf(show_order=310, model="meta_subject.medicationadherence"),
|
212
222
|
Crf(show_order=460, model="meta_subject.eq5d3l", required=False),
|
213
223
|
Crf(show_order=465, model="meta_subject.sf12", required=False),
|
224
|
+
Crf(show_order=470, model="meta_subject.mnsi", required=False),
|
225
|
+
Crf(show_order=500, model="meta_subject.healtheconomicsupdate", required=False),
|
214
226
|
name="30m",
|
215
227
|
)
|
216
228
|
|
@@ -218,11 +230,12 @@ crfs_33m = CrfCollection(
|
|
218
230
|
Crf(show_order=100, model="meta_subject.followupvitals"),
|
219
231
|
Crf(show_order=150, model="meta_subject.followupexamination"),
|
220
232
|
Crf(show_order=155, model="meta_subject.glucose", required=False),
|
221
|
-
Crf(show_order=200, model="meta_subject.glucosefbg"),
|
222
233
|
Crf(show_order=300, model="meta_subject.studymedication"),
|
223
234
|
Crf(show_order=310, model="meta_subject.medicationadherence"),
|
224
235
|
Crf(show_order=460, model="meta_subject.eq5d3l", required=False),
|
225
236
|
Crf(show_order=465, model="meta_subject.sf12", required=False),
|
237
|
+
Crf(show_order=470, model="meta_subject.mnsi", required=False),
|
238
|
+
Crf(show_order=500, model="meta_subject.healtheconomicsupdate", required=False),
|
226
239
|
name="33m",
|
227
240
|
)
|
228
241
|
|
@@ -234,10 +247,70 @@ crfs_36m = CrfCollection(
|
|
234
247
|
Crf(show_order=220, model="meta_subject.bloodresultsrft"),
|
235
248
|
Crf(show_order=230, model="meta_subject.bloodresultslft"),
|
236
249
|
Crf(show_order=240, model="meta_subject.bloodresultsfbc"),
|
237
|
-
Crf(show_order=250, model="meta_subject.
|
250
|
+
Crf(show_order=250, model="meta_subject.bloodresultslipids"),
|
251
|
+
Crf(show_order=300, model="meta_subject.studymedication"),
|
252
|
+
Crf(show_order=310, model="meta_subject.medicationadherence"),
|
253
|
+
Crf(show_order=460, model="meta_subject.eq5d3l"),
|
254
|
+
Crf(show_order=465, model="meta_subject.sf12"),
|
255
|
+
Crf(show_order=470, model="meta_subject.mnsi"),
|
256
|
+
Crf(show_order=500, model="meta_subject.healtheconomicsupdate", required=False),
|
257
|
+
name="36m",
|
258
|
+
)
|
259
|
+
|
260
|
+
crfs_39m = CrfCollection(
|
261
|
+
Crf(show_order=100, model="meta_subject.followupvitals"),
|
262
|
+
Crf(show_order=150, model="meta_subject.followupexamination"),
|
263
|
+
Crf(show_order=155, model="meta_subject.glucose", required=False),
|
238
264
|
Crf(show_order=300, model="meta_subject.studymedication"),
|
239
265
|
Crf(show_order=310, model="meta_subject.medicationadherence"),
|
240
266
|
Crf(show_order=460, model="meta_subject.eq5d3l", required=False),
|
241
267
|
Crf(show_order=465, model="meta_subject.sf12", required=False),
|
242
|
-
|
268
|
+
Crf(show_order=470, model="meta_subject.mnsi", required=False),
|
269
|
+
Crf(show_order=500, model="meta_subject.healtheconomicsupdate", required=False),
|
270
|
+
name="39m",
|
271
|
+
)
|
272
|
+
|
273
|
+
crfs_42m = CrfCollection(
|
274
|
+
Crf(show_order=100, model="meta_subject.followupvitals"),
|
275
|
+
Crf(show_order=150, model="meta_subject.followupexamination"),
|
276
|
+
Crf(show_order=155, model="meta_subject.glucose", required=False),
|
277
|
+
Crf(show_order=200, model="meta_subject.glucosefbg"),
|
278
|
+
Crf(show_order=300, model="meta_subject.studymedication"),
|
279
|
+
Crf(show_order=310, model="meta_subject.medicationadherence"),
|
280
|
+
Crf(show_order=460, model="meta_subject.eq5d3l", required=False),
|
281
|
+
Crf(show_order=465, model="meta_subject.sf12", required=False),
|
282
|
+
Crf(show_order=470, model="meta_subject.mnsi", required=False),
|
283
|
+
Crf(show_order=500, model="meta_subject.healtheconomicsupdate", required=False),
|
284
|
+
name="42m",
|
285
|
+
)
|
286
|
+
|
287
|
+
crfs_45m = CrfCollection(
|
288
|
+
Crf(show_order=100, model="meta_subject.followupvitals"),
|
289
|
+
Crf(show_order=150, model="meta_subject.followupexamination"),
|
290
|
+
Crf(show_order=155, model="meta_subject.glucose", required=False),
|
291
|
+
Crf(show_order=300, model="meta_subject.studymedication"),
|
292
|
+
Crf(show_order=310, model="meta_subject.medicationadherence"),
|
293
|
+
Crf(show_order=460, model="meta_subject.eq5d3l", required=False),
|
294
|
+
Crf(show_order=465, model="meta_subject.sf12", required=False),
|
295
|
+
Crf(show_order=470, model="meta_subject.mnsi", required=False),
|
296
|
+
Crf(show_order=500, model="meta_subject.healtheconomicsupdate", required=False),
|
297
|
+
name="45m",
|
298
|
+
)
|
299
|
+
|
300
|
+
crfs_48m = CrfCollection(
|
301
|
+
Crf(show_order=100, model="meta_subject.followupvitals"),
|
302
|
+
Crf(show_order=150, model="meta_subject.followupexamination"),
|
303
|
+
Crf(show_order=200, model="meta_subject.glucose"),
|
304
|
+
Crf(show_order=210, model="meta_subject.bloodresultshba1c"),
|
305
|
+
Crf(show_order=220, model="meta_subject.bloodresultsrft"),
|
306
|
+
Crf(show_order=230, model="meta_subject.bloodresultslft"),
|
307
|
+
Crf(show_order=240, model="meta_subject.bloodresultsfbc"),
|
308
|
+
Crf(show_order=250, model="meta_subject.bloodresultslipids"),
|
309
|
+
Crf(show_order=300, model="meta_subject.studymedication"),
|
310
|
+
Crf(show_order=310, model="meta_subject.medicationadherence"),
|
311
|
+
Crf(show_order=460, model="meta_subject.eq5d3l"),
|
312
|
+
Crf(show_order=465, model="meta_subject.sf12"),
|
313
|
+
Crf(show_order=470, model="meta_subject.mnsi"),
|
314
|
+
Crf(show_order=500, model="meta_subject.healtheconomicsupdate", required=False),
|
315
|
+
name="48m",
|
243
316
|
)
|
@@ -89,3 +89,15 @@ requisitions_36m = RequisitionCollection(
|
|
89
89
|
Requisition(show_order=60, panel=fbc_panel, required=True, additional=False),
|
90
90
|
name="requisitions_month36",
|
91
91
|
)
|
92
|
+
|
93
|
+
requisitions_39m = RequisitionCollection(name="requisitions_month39")
|
94
|
+
requisitions_42m = RequisitionCollection(name="requisitions_month42")
|
95
|
+
requisitions_45m = RequisitionCollection(name="requisitions_month45")
|
96
|
+
|
97
|
+
requisitions_48m = RequisitionCollection(
|
98
|
+
Requisition(show_order=30, panel=rft_panel, required=True, additional=False),
|
99
|
+
Requisition(show_order=40, panel=lft_panel, required=True, additional=False),
|
100
|
+
Requisition(show_order=50, panel=lipids_panel, required=True, additional=False),
|
101
|
+
Requisition(show_order=60, panel=fbc_panel, required=True, additional=False),
|
102
|
+
name="requisitions_month48",
|
103
|
+
)
|
@@ -20,6 +20,10 @@ from ...constants import (
|
|
20
20
|
MONTH30,
|
21
21
|
MONTH33,
|
22
22
|
MONTH36,
|
23
|
+
MONTH39,
|
24
|
+
MONTH42,
|
25
|
+
MONTH45,
|
26
|
+
MONTH48,
|
23
27
|
SCHEDULE,
|
24
28
|
WEEK2,
|
25
29
|
)
|
@@ -37,6 +41,10 @@ from .crfs import (
|
|
37
41
|
crfs_30m,
|
38
42
|
crfs_33m,
|
39
43
|
crfs_36m,
|
44
|
+
crfs_39m,
|
45
|
+
crfs_42m,
|
46
|
+
crfs_45m,
|
47
|
+
crfs_48m,
|
40
48
|
crfs_d1,
|
41
49
|
crfs_missed,
|
42
50
|
)
|
@@ -57,6 +65,10 @@ from .requisitions import (
|
|
57
65
|
requisitions_30m,
|
58
66
|
requisitions_33m,
|
59
67
|
requisitions_36m,
|
68
|
+
requisitions_39m,
|
69
|
+
requisitions_42m,
|
70
|
+
requisitions_45m,
|
71
|
+
requisitions_48m,
|
60
72
|
requisitions_d1,
|
61
73
|
)
|
62
74
|
from .requisitions import requisitions_prn as default_requisitions_prn
|
@@ -89,7 +101,7 @@ class Visit(BaseVisit):
|
|
89
101
|
# schedule for new participants
|
90
102
|
schedule = Schedule(
|
91
103
|
name=SCHEDULE,
|
92
|
-
verbose_name="Day 1 to Month
|
104
|
+
verbose_name="Day 1 to Month 36/48 Follow-up",
|
93
105
|
onschedule_model="meta_prn.onschedule",
|
94
106
|
offschedule_model="meta_prn.offschedule",
|
95
107
|
consent_definitions=[consent_v1],
|
@@ -274,12 +286,59 @@ visit36 = Visit(
|
|
274
286
|
timepoint=14,
|
275
287
|
rbase=relativedelta(months=36),
|
276
288
|
rlower=relativedelta(months=1),
|
277
|
-
rupper=relativedelta(months=
|
289
|
+
rupper=relativedelta(months=2),
|
278
290
|
requisitions=requisitions_36m,
|
279
291
|
crfs=crfs_36m,
|
280
292
|
facility_name=FIVE_DAY_CLINIC,
|
281
293
|
)
|
282
294
|
|
295
|
+
visit39 = Visit(
|
296
|
+
code=MONTH39,
|
297
|
+
title="Month 39",
|
298
|
+
timepoint=15,
|
299
|
+
rbase=relativedelta(months=39),
|
300
|
+
rlower=relativedelta(months=1),
|
301
|
+
rupper=relativedelta(months=2),
|
302
|
+
requisitions=requisitions_39m,
|
303
|
+
crfs=crfs_39m,
|
304
|
+
facility_name=FIVE_DAY_CLINIC,
|
305
|
+
)
|
306
|
+
|
307
|
+
visit42 = Visit(
|
308
|
+
code=MONTH42,
|
309
|
+
title="Month 42",
|
310
|
+
timepoint=16,
|
311
|
+
rbase=relativedelta(months=42),
|
312
|
+
rlower=relativedelta(months=1),
|
313
|
+
rupper=relativedelta(months=2),
|
314
|
+
requisitions=requisitions_42m,
|
315
|
+
crfs=crfs_42m,
|
316
|
+
facility_name=FIVE_DAY_CLINIC,
|
317
|
+
)
|
318
|
+
|
319
|
+
visit45 = Visit(
|
320
|
+
code=MONTH45,
|
321
|
+
title="Month 45",
|
322
|
+
timepoint=17,
|
323
|
+
rbase=relativedelta(months=45),
|
324
|
+
rlower=relativedelta(months=1),
|
325
|
+
rupper=relativedelta(months=2),
|
326
|
+
requisitions=requisitions_45m,
|
327
|
+
crfs=crfs_45m,
|
328
|
+
facility_name=FIVE_DAY_CLINIC,
|
329
|
+
)
|
330
|
+
|
331
|
+
visit48 = Visit(
|
332
|
+
code=MONTH48,
|
333
|
+
title="Month 48",
|
334
|
+
timepoint=18,
|
335
|
+
rbase=relativedelta(months=48),
|
336
|
+
rlower=relativedelta(months=1),
|
337
|
+
rupper=relativedelta(months=3),
|
338
|
+
requisitions=requisitions_48m,
|
339
|
+
crfs=crfs_48m,
|
340
|
+
facility_name=FIVE_DAY_CLINIC,
|
341
|
+
)
|
283
342
|
|
284
343
|
visits = [
|
285
344
|
visit000,
|
@@ -297,6 +356,10 @@ visits = [
|
|
297
356
|
visit30,
|
298
357
|
visit33,
|
299
358
|
visit36,
|
359
|
+
visit39,
|
360
|
+
visit42,
|
361
|
+
visit45,
|
362
|
+
visit48,
|
300
363
|
]
|
301
364
|
for visit in visits:
|
302
365
|
schedule.add_visit(visit=visit)
|
@@ -0,0 +1,60 @@
|
|
1
|
+
from dateutil.relativedelta import relativedelta
|
2
|
+
from edc_facility.constants import FIVE_DAY_CLINIC
|
3
|
+
from edc_visit_schedule.schedule import Schedule
|
4
|
+
from edc_visit_schedule.visit import Crf, CrfCollection, Visit
|
5
|
+
|
6
|
+
from meta_consent.consents import consent_v1
|
7
|
+
|
8
|
+
from ...constants import DM_BASELINE, DM_FOLLOWUP, SCHEDULE_DM_REFERRAL
|
9
|
+
from .crfs import crfs_missed
|
10
|
+
from .crfs import crfs_prn
|
11
|
+
from .crfs import crfs_prn as default_crfs_prn
|
12
|
+
|
13
|
+
crfs_baseline = CrfCollection(
|
14
|
+
Crf(show_order=100, model="meta_subject.dmendpoint"),
|
15
|
+
name="dmbaseline",
|
16
|
+
)
|
17
|
+
crfs_6m = CrfCollection(
|
18
|
+
Crf(show_order=100, model="meta_subject.dmfollowup"),
|
19
|
+
name="dmfollowup",
|
20
|
+
)
|
21
|
+
|
22
|
+
schedule = Schedule(
|
23
|
+
name=SCHEDULE_DM_REFERRAL,
|
24
|
+
verbose_name="Diabetes Referral and Follow-up",
|
25
|
+
onschedule_model="meta_prn.onscheduledmreferral",
|
26
|
+
offschedule_model="meta_prn.offscheduledmreferral",
|
27
|
+
consent_definitions=[consent_v1],
|
28
|
+
appointment_model="edc_appointment.appointment",
|
29
|
+
base_timepoint=300,
|
30
|
+
)
|
31
|
+
|
32
|
+
|
33
|
+
visit_3000 = Visit(
|
34
|
+
code=DM_BASELINE,
|
35
|
+
title="Diabetes post-referral baseline",
|
36
|
+
timepoint=300,
|
37
|
+
rbase=relativedelta(days=0),
|
38
|
+
rlower=relativedelta(days=0),
|
39
|
+
rupper=relativedelta(months=0),
|
40
|
+
crfs=crfs_baseline,
|
41
|
+
crfs_prn=crfs_prn or default_crfs_prn,
|
42
|
+
crfs_missed=crfs_missed,
|
43
|
+
facility_name=FIVE_DAY_CLINIC,
|
44
|
+
)
|
45
|
+
visit_3060 = Visit(
|
46
|
+
code=DM_FOLLOWUP,
|
47
|
+
title="Diabetes post-referral follow-up",
|
48
|
+
timepoint=360,
|
49
|
+
rbase=relativedelta(months=6),
|
50
|
+
rlower=relativedelta(months=3),
|
51
|
+
rupper=relativedelta(months=12),
|
52
|
+
crfs=crfs_6m,
|
53
|
+
crfs_prn=crfs_prn or default_crfs_prn,
|
54
|
+
crfs_missed=crfs_missed,
|
55
|
+
facility_name=FIVE_DAY_CLINIC,
|
56
|
+
)
|
57
|
+
|
58
|
+
|
59
|
+
schedule.add_visit(visit=visit_3000)
|
60
|
+
schedule.add_visit(visit=visit_3060)
|
@@ -2,6 +2,7 @@ from edc_visit_schedule.visit_schedule import VisitSchedule
|
|
2
2
|
|
3
3
|
from ...constants import VISIT_SCHEDULE
|
4
4
|
from .schedule import schedule
|
5
|
+
from .schedule_dm_referral import schedule as schedule_dm_referral
|
5
6
|
from .schedule_pregnancy import schedule as schedule_pregnancy
|
6
7
|
|
7
8
|
visit_schedule = VisitSchedule(
|
@@ -15,3 +16,4 @@ visit_schedule = VisitSchedule(
|
|
15
16
|
|
16
17
|
visit_schedule.add_schedule(schedule)
|
17
18
|
visit_schedule.add_schedule(schedule_pregnancy)
|
19
|
+
visit_schedule.add_schedule(schedule_dm_referral)
|
tests/etc/randomization_list.csv
CHANGED
@@ -7,7 +7,7 @@ sid,assignment,site_name,gender
|
|
7
7
|
1006,active,hindu_mandal,M
|
8
8
|
1007,placebo,hindu_mandal,M
|
9
9
|
1008,active,hindu_mandal,F
|
10
|
-
1009,placebo,hindu_mandal
|
10
|
+
1009,placebo,hindu_mandal,F
|
11
11
|
1010,active,hindu_mandal,M
|
12
12
|
1011,placebo, hindu_mandal,F
|
13
13
|
1012,active,hindu_mandal,M
|
@@ -87,9 +87,9 @@ sid,assignment,site_name,gender
|
|
87
87
|
1086,active,hindu_mandal,M
|
88
88
|
1087,placebo,hindu_mandal,M
|
89
89
|
1088,active,hindu_mandal,F
|
90
|
-
1089,placebo,hindu_mandal
|
90
|
+
1089,placebo,hindu_mandal,F
|
91
91
|
1090,active,hindu_mandal,F
|
92
|
-
1091,placebo,
|
92
|
+
1091,placebo,hindu_mandal,M
|
93
93
|
1092,active,hindu_mandal,M
|
94
94
|
1093,active,hindu_mandal,M
|
95
95
|
1094,placebo,hindu_mandal,M
|
@@ -238,4 +238,4 @@ sid,assignment,site_name,gender
|
|
238
238
|
1237,placebo,amana,F
|
239
239
|
1238,active,amana,M
|
240
240
|
1239,active,amana,F
|
241
|
-
1240,placebo,amana,M
|
241
|
+
1240,placebo,amana,M
|
tests/holidays.csv
CHANGED
tests/test_settings.py
ADDED
@@ -0,0 +1,186 @@
|
|
1
|
+
#!/usr/bin/env python
|
2
|
+
import sys
|
3
|
+
from datetime import datetime
|
4
|
+
from os.path import join
|
5
|
+
from pathlib import Path
|
6
|
+
from zoneinfo import ZoneInfo
|
7
|
+
|
8
|
+
from django.conf import locale
|
9
|
+
from edc_constants.internationalization import EXTRA_LANG_INFO
|
10
|
+
from edc_test_settings.default_test_settings import DefaultTestSettings
|
11
|
+
from multisite import SiteID
|
12
|
+
|
13
|
+
from meta_edc.meta_version import PHASE_THREE
|
14
|
+
|
15
|
+
LANG_INFO = dict(locale.LANG_INFO, **EXTRA_LANG_INFO)
|
16
|
+
locale.LANG_INFO = LANG_INFO
|
17
|
+
|
18
|
+
|
19
|
+
def get_languages():
|
20
|
+
return [(code, LANG_INFO[code]["name"]) for code in ["sw", "en-gb", "en", "mas"]]
|
21
|
+
|
22
|
+
|
23
|
+
app_name = "meta_edc"
|
24
|
+
base_dir = Path(__file__).parent.parent
|
25
|
+
project_settings = DefaultTestSettings(
|
26
|
+
calling_file=__file__,
|
27
|
+
META_PHASE=PHASE_THREE,
|
28
|
+
BASE_DIR=base_dir,
|
29
|
+
APP_NAME=app_name,
|
30
|
+
ETC_DIR=base_dir / "tests" / "etc",
|
31
|
+
DJANGO_CRYPTO_FIELDS_KEY_PATH=base_dir / "tests" / "etc",
|
32
|
+
GIT_DIR=base_dir,
|
33
|
+
HOLIDAY_FILE=base_dir / "tests" / "holidays.csv",
|
34
|
+
EDC_RANDOMIZATION_LIST_PATH=base_dir / "tests" / "etc",
|
35
|
+
SITE_ID=SiteID(default=10),
|
36
|
+
EDC_SITES_DOMAIN_SUFFIX="meta3.clinicedc.org",
|
37
|
+
EDC_EGFR_DROP_NOTIFICATION_MODEL="meta_subject.egfrdropnotification",
|
38
|
+
EDC_RANDOMIZATION_REGISTER_DEFAULT_RANDOMIZER=False,
|
39
|
+
EDC_MNSI_ABNORMAL_FOOT_APPEARANCE_OBSERVATIONS_MODEL=(
|
40
|
+
"meta_lists.abnormalfootappearanceobservations"
|
41
|
+
),
|
42
|
+
EDC_QOL_EQ5D3L_MODEL="meta_subject.eq5d3l",
|
43
|
+
ROOT_URLCONF="meta_edc.urls",
|
44
|
+
EDC_AUTH_CODENAMES_WARN_ONLY=True,
|
45
|
+
EDC_DX_REVIEW_LIST_MODEL_APP_LABEL="edc_dx_review",
|
46
|
+
SENTRY_ENABLED=False,
|
47
|
+
INDEX_PAGE="localhost:8000",
|
48
|
+
EXPORT_FOLDER=join(base_dir, "tests", "export"),
|
49
|
+
SUBJECT_APP_LABEL="meta_subject",
|
50
|
+
SUBJECT_SCREENING_MODEL="meta_screening.subjectscreening",
|
51
|
+
SUBJECT_VISIT_MODEL="meta_subject.subjectvisit",
|
52
|
+
SUBJECT_VISIT_MISSED_MODEL="meta_subject.subjectvisitmissed",
|
53
|
+
SUBJECT_CONSENT_MODEL="meta_consent.subjectconsentv1",
|
54
|
+
SUBJECT_REQUISITION_MODEL="meta_subject.subjectrequisition",
|
55
|
+
EDC_BLOOD_RESULTS_MODEL_APP_LABEL="meta_subject",
|
56
|
+
DEFENDER_ENABLED=False,
|
57
|
+
DJANGO_LAB_DASHBOARD_REQUISITION_MODEL="meta_subject.subjectrequisition",
|
58
|
+
ADVERSE_EVENT_ADMIN_SITE="meta_ae_admin",
|
59
|
+
EDC_DX_LABELS=dict(hiv="HIV", dm="Diabetes", htn="Hypertension", chol="High Cholesterol"),
|
60
|
+
ADVERSE_EVENT_APP_LABEL="meta_ae",
|
61
|
+
EDC_NAVBAR_DEFAULT="meta_dashboard",
|
62
|
+
EDC_PROTOCOL_STUDY_OPEN_DATETIME=datetime(2019, 4, 30, 0, 0, 0, tzinfo=ZoneInfo("UTC")),
|
63
|
+
EDC_PROTOCOL_STUDY_CLOSE_DATETIME=datetime(
|
64
|
+
2025, 12, 31, 23, 59, 59, tzinfo=ZoneInfo("UTC")
|
65
|
+
),
|
66
|
+
LANGUAGE_CODE="en",
|
67
|
+
LANGUAGES=get_languages(),
|
68
|
+
DASHBOARD_BASE_TEMPLATES=dict(
|
69
|
+
edc_base_template="edc_dashboard/base.html",
|
70
|
+
listboard_base_template="meta_edc/base.html",
|
71
|
+
dashboard_base_template="meta_edc/base.html",
|
72
|
+
screening_listboard_template="meta_dashboard/screening/listboard.html",
|
73
|
+
subject_listboard_template="meta_dashboard/subject/listboard.html",
|
74
|
+
subject_dashboard_template="meta_dashboard/subject/dashboard.html",
|
75
|
+
subject_review_listboard_template="edc_review_dashboard/subject_review_listboard.html",
|
76
|
+
),
|
77
|
+
EDC_BOOTSTRAP=3,
|
78
|
+
EMAIL_BACKEND="django.core.mail.backends.locmem.EmailBackend",
|
79
|
+
EMAIL_CONTACTS={
|
80
|
+
"ae_reports": "someone@example.com",
|
81
|
+
"data_request": "someone@example.com",
|
82
|
+
"data_manager": "someone@example.com",
|
83
|
+
"tmg": "someone@example.com",
|
84
|
+
},
|
85
|
+
EMAIL_ENABLED=True,
|
86
|
+
LIVE_SYSTEM=False,
|
87
|
+
EDC_SITES_MODULE_NAME="meta_sites",
|
88
|
+
EDC_AUTH_SKIP_SITE_AUTHS=True,
|
89
|
+
EDC_AUTH_SKIP_AUTH_UPDATER=True,
|
90
|
+
EDC_MNSI_MODEL="meta_subject.mnsi",
|
91
|
+
INSTALLED_APPS=[
|
92
|
+
"django.contrib.admin",
|
93
|
+
"django.contrib.auth",
|
94
|
+
"django.contrib.contenttypes",
|
95
|
+
"django.contrib.sessions",
|
96
|
+
"django.contrib.messages",
|
97
|
+
"django.contrib.staticfiles",
|
98
|
+
"django.contrib.sites",
|
99
|
+
"django_pylabels.apps.AppConfig",
|
100
|
+
"django_crypto_fields.apps.AppConfig",
|
101
|
+
"django_revision.apps.AppConfig",
|
102
|
+
# "debug_toolbar",
|
103
|
+
"django_extensions",
|
104
|
+
"django_db_views",
|
105
|
+
"logentry_admin",
|
106
|
+
"simple_history",
|
107
|
+
"storages",
|
108
|
+
"edc_pylabels.apps.AppConfig",
|
109
|
+
"edc_sites.apps.AppConfig",
|
110
|
+
"edc_action_item.apps.AppConfig",
|
111
|
+
"edc_adherence.apps.AppConfig",
|
112
|
+
"edc_adverse_event.apps.AppConfig",
|
113
|
+
"edc_appointment.apps.AppConfig",
|
114
|
+
"edc_auth.apps.AppConfig",
|
115
|
+
"edc_crf.apps.AppConfig",
|
116
|
+
"edc_he.apps.AppConfig",
|
117
|
+
"edc_data_manager.apps.AppConfig",
|
118
|
+
"edc_consent.apps.AppConfig",
|
119
|
+
"edc_device.apps.AppConfig",
|
120
|
+
"edc_dashboard.apps.AppConfig",
|
121
|
+
"edc_egfr.apps.AppConfig",
|
122
|
+
"edc_export.apps.AppConfig",
|
123
|
+
"edc_facility.apps.AppConfig",
|
124
|
+
"edc_fieldsets.apps.AppConfig",
|
125
|
+
"edc_form_runners.apps.AppConfig",
|
126
|
+
"edc_form_validators.apps.AppConfig",
|
127
|
+
"edc_reportable.apps.AppConfig",
|
128
|
+
"edc_lab.apps.AppConfig",
|
129
|
+
"edc_lab_dashboard.apps.AppConfig",
|
130
|
+
"edc_label.apps.AppConfig",
|
131
|
+
"edc_listboard.apps.AppConfig",
|
132
|
+
"edc_locator.apps.AppConfig",
|
133
|
+
"edc_pdf_reports.apps.AppConfig",
|
134
|
+
"edc_identifier.apps.AppConfig",
|
135
|
+
"edc_metadata.apps.AppConfig",
|
136
|
+
"edc_model_admin.apps.AppConfig",
|
137
|
+
"edc_navbar.apps.AppConfig",
|
138
|
+
"edc_notification.apps.AppConfig",
|
139
|
+
"edc_offstudy.apps.AppConfig",
|
140
|
+
"edc_visit_tracking.apps.AppConfig",
|
141
|
+
"edc_visit_schedule.apps.AppConfig",
|
142
|
+
"edc_pdutils.apps.AppConfig",
|
143
|
+
"edc_protocol.apps.AppConfig",
|
144
|
+
"edc_protocol_incident.apps.AppConfig",
|
145
|
+
"edc_prn.apps.AppConfig",
|
146
|
+
"edc_randomization.apps.AppConfig",
|
147
|
+
"edc_registration.apps.AppConfig",
|
148
|
+
"edc_subject_dashboard.apps.AppConfig",
|
149
|
+
"edc_screening.apps.AppConfig",
|
150
|
+
"edc_timepoint.apps.AppConfig",
|
151
|
+
"edc_list_data.apps.AppConfig",
|
152
|
+
"edc_review_dashboard.apps.AppConfig",
|
153
|
+
"edc_refusal.apps.AppConfig",
|
154
|
+
"edc_mnsi.apps.AppConfig",
|
155
|
+
"edc_unblinding.apps.AppConfig",
|
156
|
+
"edc_qareports.apps.AppConfig",
|
157
|
+
"edc_qol.apps.AppConfig",
|
158
|
+
"edc_dx_review.apps.AppConfig",
|
159
|
+
"edc_dx.apps.AppConfig",
|
160
|
+
"edc_pharmacy.apps.AppConfig",
|
161
|
+
"meta_auth.apps.AppConfig",
|
162
|
+
"meta_consent.apps.AppConfig",
|
163
|
+
"meta_lists.apps.AppConfig",
|
164
|
+
"meta_dashboard.apps.AppConfig",
|
165
|
+
"meta_labs.apps.AppConfig",
|
166
|
+
"meta_rando.apps.AppConfig",
|
167
|
+
"meta_subject.apps.AppConfig",
|
168
|
+
"meta_visit_schedule.apps.AppConfig",
|
169
|
+
"meta_ae.apps.AppConfig",
|
170
|
+
"meta_prn.apps.AppConfig",
|
171
|
+
"meta_export.apps.AppConfig",
|
172
|
+
"meta_sites.apps.AppConfig",
|
173
|
+
"meta_screening.apps.AppConfig",
|
174
|
+
"meta_reports.apps.AppConfig",
|
175
|
+
"meta_pharmacy.apps.AppConfig",
|
176
|
+
"meta_edc.apps.AppConfig",
|
177
|
+
"edc_appconfig.apps.AppConfig",
|
178
|
+
],
|
179
|
+
EDC_SITES_CREATE_DEFAULT=False,
|
180
|
+
add_dashboard_middleware=True,
|
181
|
+
add_lab_dashboard_middleware=True,
|
182
|
+
add_adverse_event_dashboard_middleware=True,
|
183
|
+
).settings
|
184
|
+
|
185
|
+
for k, v in project_settings.items():
|
186
|
+
setattr(sys.modules[__name__], k, v)
|
@@ -1 +0,0 @@
|
|
1
|
-
v�m���/%����@���d�����ޝ����P���낮@Y4=]��\ � ���$>�a:&
|
Binary file
|