clinicedc 2.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of clinicedc might be problematic. Click here for more details.
- clinicedc/__init__.py +6 -0
- clinicedc-2.0.0.dist-info/METADATA +377 -0
- clinicedc-2.0.0.dist-info/RECORD +3146 -0
- clinicedc-2.0.0.dist-info/WHEEL +4 -0
- clinicedc-2.0.0.dist-info/licenses/LICENSE +674 -0
- edc_action_item/__init__.py +8 -0
- edc_action_item/action.py +517 -0
- edc_action_item/action_item_notification.py +223 -0
- edc_action_item/action_with_notification.py +49 -0
- edc_action_item/admin/__init__.py +2 -0
- edc_action_item/admin/action_item_admin.py +157 -0
- edc_action_item/admin/action_type_admin.py +78 -0
- edc_action_item/admin_site.py +7 -0
- edc_action_item/apps.py +11 -0
- edc_action_item/auth_objects.py +26 -0
- edc_action_item/auths.py +55 -0
- edc_action_item/choices.py +22 -0
- edc_action_item/constants.py +9 -0
- edc_action_item/create_action_item.py +61 -0
- edc_action_item/create_or_update_action_type.py +44 -0
- edc_action_item/data_fixers.py +294 -0
- edc_action_item/decorators.py +22 -0
- edc_action_item/delete_action_item.py +45 -0
- edc_action_item/exceptions.py +29 -0
- edc_action_item/fieldsets.py +8 -0
- edc_action_item/forms/__init__.py +4 -0
- edc_action_item/forms/action_item_crf_form_mixin.py +13 -0
- edc_action_item/forms/action_item_form.py +42 -0
- edc_action_item/forms/action_item_form_mixin.py +25 -0
- edc_action_item/forms/action_type_form.py +9 -0
- edc_action_item/get_action_type.py +21 -0
- edc_action_item/identifiers.py +8 -0
- edc_action_item/management/commands/inspect_action_items.py +86 -0
- edc_action_item/managers.py +17 -0
- edc_action_item/migrations/0001_initial.py +688 -0
- edc_action_item/migrations/0002_auto_20180109_1117.py +17 -0
- edc_action_item/migrations/0003_auto_20180116_1528.py +41 -0
- edc_action_item/migrations/0004_auto_20180319_2128.py +27 -0
- edc_action_item/migrations/0005_auto_20180409_1005.py +50 -0
- edc_action_item/migrations/0006_auto_20180707_1659.py +219 -0
- edc_action_item/migrations/0007_auto_20180707_1715.py +14 -0
- edc_action_item/migrations/0008_auto_20180809_0303.py +133 -0
- edc_action_item/migrations/0009_auto_20180927_0306.py +30 -0
- edc_action_item/migrations/0010_auto_20181009_0445.py +99 -0
- edc_action_item/migrations/0011_auto_20181009_2236.py +43 -0
- edc_action_item/migrations/0012_auto_20181010_2348.py +28 -0
- edc_action_item/migrations/0013_auto_20181108_0353.py +26 -0
- edc_action_item/migrations/0014_auto_20181121_1738.py +19 -0
- edc_action_item/migrations/0015_auto_20190114_0250.py +246 -0
- edc_action_item/migrations/0016_auto_20190131_2004.py +37 -0
- edc_action_item/migrations/0017_auto_20190305_0123.py +228 -0
- edc_action_item/migrations/0018_auto_20190626_1629.py +20 -0
- edc_action_item/migrations/0019_auto_20190627_2257.py +17 -0
- edc_action_item/migrations/0020_auto_20190628_2113.py +15 -0
- edc_action_item/migrations/0021_auto_20190628_2113.py +25 -0
- edc_action_item/migrations/0022_auto_20190628_2136.py +33 -0
- edc_action_item/migrations/0023_auto_20191007_0520.py +20 -0
- edc_action_item/migrations/0024_auto_20191024_1000.py +22 -0
- edc_action_item/migrations/0025_auto_20200528_0520.py +20 -0
- edc_action_item/migrations/0026_auto_20200729_2240.py +43 -0
- edc_action_item/migrations/0027_auto_20210120_0005.py +42 -0
- edc_action_item/migrations/0028_auto_20210203_0706.py +85 -0
- edc_action_item/migrations/0029_auto_20220704_1841.py +40 -0
- edc_action_item/migrations/0030_edcpermissions.py +100 -0
- edc_action_item/migrations/0031_auto_20220922_2236.py +26 -0
- edc_action_item/migrations/0032_alter_actionitem_options_alter_actiontype_options_and_more.py +62 -0
- edc_action_item/migrations/0033_alter_actionitem_managers.py +23 -0
- edc_action_item/migrations/0034_alter_actionitem_device_created_and_more.py +224 -0
- edc_action_item/migrations/0035_alter_actionitem_options_alter_actiontype_options_and_more.py +257 -0
- edc_action_item/migrations/0036_alter_actionitem_priority_alter_actionitem_site_and_more.py +82 -0
- edc_action_item/migrations/0037_remove_actionitem_reference_model_and_more.py +31 -0
- edc_action_item/migrations/__init__.py +0 -0
- edc_action_item/modeladmin_mixins.py +23 -0
- edc_action_item/modelform_mixins/__init__.py +1 -0
- edc_action_item/modelform_mixins/modelform_mixins.py +59 -0
- edc_action_item/models/__init__.py +12 -0
- edc_action_item/models/action_item.py +287 -0
- edc_action_item/models/action_model_mixin.py +157 -0
- edc_action_item/models/action_type.py +93 -0
- edc_action_item/models/edc_permissions.py +9 -0
- edc_action_item/models/reference.py +42 -0
- edc_action_item/models/signals.py +146 -0
- edc_action_item/offline_models.py +26 -0
- edc_action_item/post_migrate_signals.py +14 -0
- edc_action_item/send_email.py +85 -0
- edc_action_item/site_action_items.py +185 -0
- edc_action_item/stubs.py +68 -0
- edc_action_item/system_checks.py +25 -0
- edc_action_item/templates/edc_action_item/action_item_admin_additional_instructions.html +3 -0
- edc_action_item/templates/edc_action_item/action_item_button.html +1 -0
- edc_action_item/templates/edc_action_item/action_item_reason.html +3 -0
- edc_action_item/templates/edc_action_item/action_item_with_popover.html +5 -0
- edc_action_item/templates/edc_action_item/add_action_item_popover.html +6 -0
- edc_action_item/templates/edc_action_item/parent_action_changelist_link.html +2 -0
- edc_action_item/templatetags/__init__.py +0 -0
- edc_action_item/templatetags/action_item_extras.py +177 -0
- edc_action_item/urls.py +11 -0
- edc_action_item/utils.py +103 -0
- edc_action_item/view_mixins/__init__.py +1 -0
- edc_action_item/view_mixins/action_item_view_mixin.py +28 -0
- edc_action_item/view_utils/__init__.py +2 -0
- edc_action_item/view_utils/action_item_button.py +76 -0
- edc_action_item/view_utils/action_item_popover_list_item.py +104 -0
- edc_action_item/visit_schedule_mixin.py +24 -0
- edc_adherence/__init__.py +0 -0
- edc_adherence/apps.py +8 -0
- edc_adherence/choices.py +11 -0
- edc_adherence/form_validator_mixin.py +41 -0
- edc_adherence/list_data.py +14 -0
- edc_adherence/migrations/0001_initial.py +82 -0
- edc_adherence/migrations/0002_nonadherencereasons_plural_name.py +19 -0
- edc_adherence/migrations/0003_nonadherencereasons_extra_value.py +17 -0
- edc_adherence/migrations/0004_alter_nonadherencereasons_options_and_more.py +67 -0
- edc_adherence/migrations/__init__.py +0 -0
- edc_adherence/model_admin_mixin.py +79 -0
- edc_adherence/model_form_mixin.py +9 -0
- edc_adherence/model_mixins.py +63 -0
- edc_adherence/models.py +7 -0
- edc_adherence/templates/edc_adherence/missed_medication_fieldset_description.html +7 -0
- edc_adherence/templates/edc_adherence/visual_score_fieldset_description.html +8 -0
- edc_adverse_event/__init__.py +5 -0
- edc_adverse_event/action_items/__init__.py +8 -0
- edc_adverse_event/action_items/ae_followup_action.py +106 -0
- edc_adverse_event/action_items/ae_initial_action.py +93 -0
- edc_adverse_event/action_items/ae_susar_action.py +24 -0
- edc_adverse_event/action_items/ae_tmg_action.py +28 -0
- edc_adverse_event/action_items/death_report_action.py +73 -0
- edc_adverse_event/action_items/death_report_tmg_action.py +48 -0
- edc_adverse_event/action_items/death_report_tmg_second_action.py +38 -0
- edc_adverse_event/action_items/hospitalization_action.py +17 -0
- edc_adverse_event/admin.py +24 -0
- edc_adverse_event/admin_site.py +13 -0
- edc_adverse_event/apps.py +8 -0
- edc_adverse_event/auth_objects.py +85 -0
- edc_adverse_event/auths.py +81 -0
- edc_adverse_event/baker_recipes.py +10 -0
- edc_adverse_event/choices.py +98 -0
- edc_adverse_event/constants.py +41 -0
- edc_adverse_event/dashboard_templates.py +10 -0
- edc_adverse_event/dashboard_urls.py +4 -0
- edc_adverse_event/form_validator_mixins/__init__.py +5 -0
- edc_adverse_event/form_validator_mixins/death_report_form_validator.py +96 -0
- edc_adverse_event/form_validator_mixins/requires_death_report_form_validator_mixin.py +161 -0
- edc_adverse_event/form_validators/__init__.py +7 -0
- edc_adverse_event/form_validators/ae_followup.py +23 -0
- edc_adverse_event/form_validators/ae_initial.py +18 -0
- edc_adverse_event/form_validators/ae_susar.py +5 -0
- edc_adverse_event/form_validators/ae_tmg.py +18 -0
- edc_adverse_event/form_validators/death_report.py +7 -0
- edc_adverse_event/form_validators/death_report_tmg.py +78 -0
- edc_adverse_event/form_validators/hospitalization.py +32 -0
- edc_adverse_event/forms/__init__.py +7 -0
- edc_adverse_event/forms/ae_followup_form.py +10 -0
- edc_adverse_event/forms/ae_initial_form.py +10 -0
- edc_adverse_event/forms/ae_susar_form.py +10 -0
- edc_adverse_event/forms/ae_tmg_form.py +10 -0
- edc_adverse_event/forms/death_report_form.py +10 -0
- edc_adverse_event/forms/death_report_tmg_form.py +10 -0
- edc_adverse_event/forms/death_report_tmg_second_form.py +10 -0
- edc_adverse_event/get_ae_model.py +9 -0
- edc_adverse_event/list_data.py +30 -0
- edc_adverse_event/locale/sw/LC_MESSAGES/django.po +21 -0
- edc_adverse_event/middleware.py +22 -0
- edc_adverse_event/migrations/0001_initial.py +272 -0
- edc_adverse_event/migrations/0002_auto_20190802_0059.py +143 -0
- edc_adverse_event/migrations/0003_auto_20191026_2231.py +68 -0
- edc_adverse_event/migrations/0004_auto_20200513_0023.py +54 -0
- edc_adverse_event/migrations/0005_auto_20210120_0005.py +27 -0
- edc_adverse_event/migrations/0006_auto_20210425_1628.py +42 -0
- edc_adverse_event/migrations/0007_edcpermissions.py +23 -0
- edc_adverse_event/migrations/0008_auto_20220825_0451.py +103 -0
- edc_adverse_event/migrations/0009_auto_20220907_0157.py +158 -0
- edc_adverse_event/migrations/0010_auto_20220913_2139.py +40 -0
- edc_adverse_event/migrations/0011_alter_aeactionclassification_options_and_more.py +76 -0
- edc_adverse_event/migrations/0012_aeactionclassification_extra_value_and_more.py +32 -0
- edc_adverse_event/migrations/0013_alter_aeactionclassification_device_created_and_more.py +189 -0
- edc_adverse_event/migrations/0014_alter_aeactionclassification_options_and_more.py +422 -0
- edc_adverse_event/migrations/__init__.py +0 -0
- edc_adverse_event/model_mixins/__init__.py +28 -0
- edc_adverse_event/model_mixins/ae_followup/__init__.py +3 -0
- edc_adverse_event/model_mixins/ae_followup/ae_followup_fields_model_mixin.py +52 -0
- edc_adverse_event/model_mixins/ae_followup/ae_followup_methods_model_mixin.py +32 -0
- edc_adverse_event/model_mixins/ae_followup/ae_followup_model_mixin.py +45 -0
- edc_adverse_event/model_mixins/ae_initial/__init__.py +7 -0
- edc_adverse_event/model_mixins/ae_initial/ae_initial_ae_model_mixin.py +41 -0
- edc_adverse_event/model_mixins/ae_initial/ae_initial_fields_model_mixin.py +59 -0
- edc_adverse_event/model_mixins/ae_initial/ae_initial_methods_model_mixin.py +31 -0
- edc_adverse_event/model_mixins/ae_initial/ae_initial_model_mixin.py +50 -0
- edc_adverse_event/model_mixins/ae_initial/ae_initial_sae_model_mixin.py +28 -0
- edc_adverse_event/model_mixins/ae_initial/ae_initial_susar_model_mixin.py +28 -0
- edc_adverse_event/model_mixins/ae_initial/ae_initial_tmg_model_mixin.py +16 -0
- edc_adverse_event/model_mixins/ae_special_interest/__init__.py +3 -0
- edc_adverse_event/model_mixins/ae_special_interest/aesi_fields_model_mixin.py +28 -0
- edc_adverse_event/model_mixins/ae_special_interest/aesi_methods_model_mixin.py +16 -0
- edc_adverse_event/model_mixins/ae_special_interest/aesi_model_mixin.py +43 -0
- edc_adverse_event/model_mixins/ae_susar/__init__.py +3 -0
- edc_adverse_event/model_mixins/ae_susar/ae_susar_fields_model_mixin.py +28 -0
- edc_adverse_event/model_mixins/ae_susar/ae_susar_methods_model_mixin.py +24 -0
- edc_adverse_event/model_mixins/ae_susar/ae_susar_model_mixin.py +44 -0
- edc_adverse_event/model_mixins/ae_tmg/__init__.py +3 -0
- edc_adverse_event/model_mixins/ae_tmg/ae_tmg_fields_model_mixin.py +104 -0
- edc_adverse_event/model_mixins/ae_tmg/ae_tmg_methods_model_mixin.py +25 -0
- edc_adverse_event/model_mixins/ae_tmg/ae_tmg_model_mixin.py +46 -0
- edc_adverse_event/model_mixins/death_report/__init__.py +11 -0
- edc_adverse_event/model_mixins/death_report/death_report_extra_fields_model_mixin.py +60 -0
- edc_adverse_event/model_mixins/death_report/death_report_model_mixin.py +115 -0
- edc_adverse_event/model_mixins/death_report/death_report_tmg_model_mixin.py +137 -0
- edc_adverse_event/model_mixins/death_report/death_report_tmg_second_model_mixin.py +33 -0
- edc_adverse_event/model_mixins/death_report/simple_death_report_model_mixin.py +64 -0
- edc_adverse_event/model_mixins/hospitaization/__init__.py +1 -0
- edc_adverse_event/model_mixins/hospitaization/hospitalization_model_mixin.py +66 -0
- edc_adverse_event/modeladmin_mixins/__init__.py +14 -0
- edc_adverse_event/modeladmin_mixins/ae_followup_admin_mixin.py +94 -0
- edc_adverse_event/modeladmin_mixins/ae_initial_admin_mixin.py +157 -0
- edc_adverse_event/modeladmin_mixins/ae_susar_admin_mixin.py +70 -0
- edc_adverse_event/modeladmin_mixins/ae_tmg_admin_mixin.py +134 -0
- edc_adverse_event/modeladmin_mixins/death_report_admin_mixin.py +191 -0
- edc_adverse_event/modeladmin_mixins/death_report_tmg_admin_mixin.py +108 -0
- edc_adverse_event/modeladmin_mixins/hospitalization_admin_mixin.py +59 -0
- edc_adverse_event/modeladmin_mixins/list_filters.py +34 -0
- edc_adverse_event/modeladmin_mixins/modeladmin_mixins.py +141 -0
- edc_adverse_event/modeladmin_mixins/utils.py +63 -0
- edc_adverse_event/modelform_mixins/__init__.py +9 -0
- edc_adverse_event/modelform_mixins/ae_followup_modelform_mixin.py +42 -0
- edc_adverse_event/modelform_mixins/ae_initial_modelform_mixin.py +68 -0
- edc_adverse_event/modelform_mixins/ae_modelform_mixin.py +15 -0
- edc_adverse_event/modelform_mixins/ae_susar_modelform_mixin.py +18 -0
- edc_adverse_event/modelform_mixins/ae_tmg_modelform_mixin.py +31 -0
- edc_adverse_event/modelform_mixins/death_report_modelform_mixin.py +18 -0
- edc_adverse_event/modelform_mixins/death_report_tmg_modelform_mixin.py +22 -0
- edc_adverse_event/modelform_mixins/death_report_tmg_second_modelform_mixin.py +18 -0
- edc_adverse_event/modelform_mixins/hospitalization_modelform_mixin.py +18 -0
- edc_adverse_event/models/__init__.py +12 -0
- edc_adverse_event/models/ae_action_classification.py +8 -0
- edc_adverse_event/models/ae_classification.py +6 -0
- edc_adverse_event/models/cause_of_death.py +6 -0
- edc_adverse_event/models/edc_permissions.py +9 -0
- edc_adverse_event/models/sae_reason.py +6 -0
- edc_adverse_event/models/signals.py +126 -0
- edc_adverse_event/navbars.py +28 -0
- edc_adverse_event/notifications.py +43 -0
- edc_adverse_event/pdf_reports/__init__.py +2 -0
- edc_adverse_event/pdf_reports/ae_pdf_report.py +289 -0
- edc_adverse_event/pdf_reports/death_pdf_report.py +166 -0
- edc_adverse_event/pdf_reports/utils/__init__.py +0 -0
- edc_adverse_event/templates/edc_adverse_event/action_item_column.html +7 -0
- edc_adverse_event/templates/edc_adverse_event/admin/app_index.html +7 -0
- edc_adverse_event/templates/edc_adverse_event/admin/change_form.html +8 -0
- edc_adverse_event/templates/edc_adverse_event/admin/change_list.html +6 -0
- edc_adverse_event/templates/edc_adverse_event/admin/index.html +6 -0
- edc_adverse_event/templates/edc_adverse_event/ae/ae_death_report_listboard.html +50 -0
- edc_adverse_event/templates/edc_adverse_event/ae/ae_home.html +28 -0
- edc_adverse_event/templates/edc_adverse_event/ae/ae_listboard.html +53 -0
- edc_adverse_event/templates/edc_adverse_event/ae/ae_listboard_instructions.html +2 -0
- edc_adverse_event/templates/edc_adverse_event/ae/death_report_listboard_instructions.html +3 -0
- edc_adverse_event/templates/edc_adverse_event/ae_button.html +1 -0
- edc_adverse_event/templates/edc_adverse_event/aefollowup_description.html +42 -0
- edc_adverse_event/templates/edc_adverse_event/aeinitial_description.html +32 -0
- edc_adverse_event/templates/edc_adverse_event/aesusar_description.html +29 -0
- edc_adverse_event/templates/edc_adverse_event/datetime_with_ago.html +2 -0
- edc_adverse_event/templates/edc_adverse_event/parent_action_item_column.html +3 -0
- edc_adverse_event/templates/edc_adverse_event/tmg/ae_initial_panel.html +13 -0
- edc_adverse_event/templates/edc_adverse_event/tmg/ae_tmg_panel.html +15 -0
- edc_adverse_event/templates/edc_adverse_event/tmg/death_report_tmg_panel.html +14 -0
- edc_adverse_event/templates/edc_adverse_event/tmg/tmg_ae_listboard.html +45 -0
- edc_adverse_event/templates/edc_adverse_event/tmg/tmg_ae_listboard_result.html +122 -0
- edc_adverse_event/templates/edc_adverse_event/tmg/tmg_button_group.html +8 -0
- edc_adverse_event/templates/edc_adverse_event/tmg/tmg_death_listboard.html +77 -0
- edc_adverse_event/templates/edc_adverse_event/tmg/tmg_home.html +52 -0
- edc_adverse_event/templates/edc_adverse_event/tmg/tmg_summary_listboard.html +61 -0
- edc_adverse_event/templates/edc_adverse_event/tmg_button.html +1 -0
- edc_adverse_event/templatetags/__init__.py +0 -0
- edc_adverse_event/templatetags/edc_adverse_event_extras.py +360 -0
- edc_adverse_event/urls.py +45 -0
- edc_adverse_event/utils.py +131 -0
- edc_adverse_event/view_mixins/__init__.py +2 -0
- edc_adverse_event/view_mixins/ae/__init__.py +2 -0
- edc_adverse_event/view_mixins/ae/ae_listboard_view_mixin.py +131 -0
- edc_adverse_event/view_mixins/ae/death_report_listboard_view_mixin.py +118 -0
- edc_adverse_event/view_mixins/tmg/__init__.py +4 -0
- edc_adverse_event/view_mixins/tmg/tmg_ae_listboard_view_mixin.py +115 -0
- edc_adverse_event/view_utils/__init__.py +1 -0
- edc_adverse_event/view_utils/tmg_button.py +117 -0
- edc_adverse_event/views/__init__.py +9 -0
- edc_adverse_event/views/home_view.py +44 -0
- edc_adverse_event/views/tmg/__init__.py +8 -0
- edc_adverse_event/views/tmg/death_listboard_view.py +60 -0
- edc_adverse_event/views/tmg/home_view.py +79 -0
- edc_adverse_event/views/tmg/status_listboards.py +24 -0
- edc_adverse_event/views/tmg/summary_listboard_view.py +68 -0
- edc_appconfig/__init__.py +0 -0
- edc_appconfig/apps.py +248 -0
- edc_appconfig/migrations/__init__.py +1 -0
- edc_appconfig/models.py +1 -0
- edc_appconfig/system_checks.py +32 -0
- edc_appointment/__init__.py +3 -0
- edc_appointment/admin/__init__.py +3 -0
- edc_appointment/admin/actions.py +64 -0
- edc_appointment/admin/appointment_admin.py +311 -0
- edc_appointment/admin/list_filters.py +93 -0
- edc_appointment/admin_site.py +7 -0
- edc_appointment/analytics/__init__.py +1 -0
- edc_appointment/analytics/dataframes/__init__.py +1 -0
- edc_appointment/analytics/dataframes/get_appointment_df.py +99 -0
- edc_appointment/appointment_reason_updater.py +205 -0
- edc_appointment/appointment_status_updater.py +45 -0
- edc_appointment/apps.py +15 -0
- edc_appointment/auth_objects.py +10 -0
- edc_appointment/auths.py +24 -0
- edc_appointment/choices.py +47 -0
- edc_appointment/constants.py +33 -0
- edc_appointment/context_processors.py +18 -0
- edc_appointment/creators/__init__.py +11 -0
- edc_appointment/creators/appointment_creator.py +262 -0
- edc_appointment/creators/appointments_creator.py +156 -0
- edc_appointment/creators/unscheduled_appointment_creator.py +273 -0
- edc_appointment/creators/utils.py +66 -0
- edc_appointment/exceptions.py +82 -0
- edc_appointment/form_runners.py +11 -0
- edc_appointment/form_validator_mixins/__init__.py +4 -0
- edc_appointment/form_validator_mixins/next_appointment_crf_form_validator_mixin.py +174 -0
- edc_appointment/form_validator_mixins/window_period_form_validator_mixin.py +106 -0
- edc_appointment/form_validators/__init__.py +3 -0
- edc_appointment/form_validators/appointment_form_validator.py +638 -0
- edc_appointment/form_validators/next_appointment_crf_form_validator.py +11 -0
- edc_appointment/form_validators/utils.py +88 -0
- edc_appointment/forms/__init__.py +1 -0
- edc_appointment/forms/appointment_form.py +40 -0
- edc_appointment/list_data.py +36 -0
- edc_appointment/management/__init__.py +0 -0
- edc_appointment/management/commands/__init__.py +0 -0
- edc_appointment/management/commands/close_appointments.py +56 -0
- edc_appointment/management/commands/reset_visit_code_sequences.py +34 -0
- edc_appointment/management/commands/update_appointment_status.py +16 -0
- edc_appointment/management/commands/update_skipped_appointments.py +56 -0
- edc_appointment/managers.py +263 -0
- edc_appointment/migrations/0001_initial.py +31 -0
- edc_appointment/migrations/0002_auto_20161126_1156.py +526 -0
- edc_appointment/migrations/0003_auto_20161127_2226.py +47 -0
- edc_appointment/migrations/0004_auto_20161210_1408.py +36 -0
- edc_appointment/migrations/0005_auto_20161221_2135.py +22 -0
- edc_appointment/migrations/0006_auto_20170106_2118.py +101 -0
- edc_appointment/migrations/0007_auto_20170302_2220.py +48 -0
- edc_appointment/migrations/0008_auto_20171115_1601.py +182 -0
- edc_appointment/migrations/0009_auto_20171119_1032.py +34 -0
- edc_appointment/migrations/0010_auto_20171124_1120.py +26 -0
- edc_appointment/migrations/0011_auto_20171128_1054.py +62 -0
- edc_appointment/migrations/0012_auto_20171128_2153.py +14 -0
- edc_appointment/migrations/0013_delete_holiday.py +9 -0
- edc_appointment/migrations/0014_auto_20180116_1411.py +41 -0
- edc_appointment/migrations/0015_auto_20180706_1519.py +18 -0
- edc_appointment/migrations/0016_auto_20181108_0353.py +19 -0
- edc_appointment/migrations/0017_auto_20190201_0446.py +24 -0
- edc_appointment/migrations/0018_auto_20190305_0123.py +99 -0
- edc_appointment/migrations/0019_auto_20190627_2257.py +24 -0
- edc_appointment/migrations/0020_auto_20190922_0439.py +20 -0
- edc_appointment/migrations/0021_auto_20191024_1000.py +22 -0
- edc_appointment/migrations/0022_auto_20200729_2310.py +27 -0
- edc_appointment/migrations/0023_auto_20200821_2119.py +74 -0
- edc_appointment/migrations/0024_auto_20200911_0425.py +22 -0
- edc_appointment/migrations/0025_auto_20210624_0225.py +38 -0
- edc_appointment/migrations/0026_auto_20220501_1548.py +104 -0
- edc_appointment/migrations/0027_appointment_document_status_and_more.py +40 -0
- edc_appointment/migrations/0028_appointment_document_status_comments_and_more.py +32 -0
- edc_appointment/migrations/0029_appointment_ignore_window_period_and_more.py +22 -0
- edc_appointment/migrations/0030_alter_appointment_appt_status_and_more.py +76 -0
- edc_appointment/migrations/0031_auto_20220704_1841.py +26 -0
- edc_appointment/migrations/0032_alter_appointment_unique_together.py +31 -0
- edc_appointment/migrations/0033_alter_appointment_appt_reason_and_more.py +66 -0
- edc_appointment/migrations/0034_appointmenttype_alter_appointment_appt_type_and_more.py +127 -0
- edc_appointment/migrations/0035_rename_appointment_appt_type.py +36 -0
- edc_appointment/migrations/0036_auto_20230124_1822.py +32 -0
- edc_appointment/migrations/0037_remove_appointment_appt_type_old_and_more.py +20 -0
- edc_appointment/migrations/0038_alter_appointment_options.py +28 -0
- edc_appointment/migrations/0039_appointmenttype_extra_value.py +17 -0
- edc_appointment/migrations/0040_appointment_appt_type_other_and_more.py +33 -0
- edc_appointment/migrations/0041_alter_appointment_appt_reason_and_more.py +66 -0
- edc_appointment/migrations/0042_alter_appointment_device_created_and_more.py +84 -0
- edc_appointment/migrations/0043_alter_appointment_appt_status_and_more.py +80 -0
- edc_appointment/migrations/0044_alter_appointment_appt_reason_and_more.py +38 -0
- edc_appointment/migrations/0045_alter_appointment_appt_reason_and_more.py +52 -0
- edc_appointment/migrations/0046_infosources.py +88 -0
- edc_appointment/migrations/0047_alter_appointment_options_and_more.py +276 -0
- edc_appointment/migrations/0048_alter_appointment_site_and_more.py +36 -0
- edc_appointment/migrations/__init__.py +0 -0
- edc_appointment/model_mixins/__init__.py +9 -0
- edc_appointment/model_mixins/appointment_fields_model_mixin.py +92 -0
- edc_appointment/model_mixins/appointment_methods_model_mixin.py +200 -0
- edc_appointment/model_mixins/appointment_model_mixin.py +225 -0
- edc_appointment/model_mixins/missed_appointment_model_mixin.py +53 -0
- edc_appointment/model_mixins/next_appointment_crf_model_mixin.py +94 -0
- edc_appointment/model_mixins/window_period_model_mixin.py +42 -0
- edc_appointment/modeladmin_mixins/__init__.py +1 -0
- edc_appointment/modeladmin_mixins/next_appointment_crf_modeladmin_mixin.py +109 -0
- edc_appointment/modelform_mixins/__init__.py +2 -0
- edc_appointment/modelform_mixins/next_appointment_crf_modelform_mixins.py +162 -0
- edc_appointment/modelform_mixins/previous_appointment_form_mixin.py +38 -0
- edc_appointment/models/__init__.py +12 -0
- edc_appointment/models/appointment.py +29 -0
- edc_appointment/models/appointment_type.py +7 -0
- edc_appointment/models/list_models.py +9 -0
- edc_appointment/models/signals.py +225 -0
- edc_appointment/offline_models.py +3 -0
- edc_appointment/skip_appointments.py +324 -0
- edc_appointment/stubs.py +42 -0
- edc_appointment/system_checks.py +15 -0
- edc_appointment/templates/button.html +11 -0
- edc_appointment/urls.py +18 -0
- edc_appointment/utils.py +884 -0
- edc_appointment/view_mixins/__init__.py +1 -0
- edc_appointment/view_mixins/appointment_view_mixin.py +122 -0
- edc_appointment/view_utils/__init__.py +1 -0
- edc_appointment/view_utils/appointment_button.py +77 -0
- edc_appointment/views/__init__.py +2 -0
- edc_appointment/views/home_view.py +7 -0
- edc_appointment/views/unscheduled_appointment_view.py +80 -0
- edc_auth/__init__.py +3 -0
- edc_auth/admin/__init__.py +5 -0
- edc_auth/admin/fieldsets.py +74 -0
- edc_auth/admin/group_admin.py +36 -0
- edc_auth/admin/list_filters.py +47 -0
- edc_auth/admin/log_entries_admin.py +18 -0
- edc_auth/admin/role_admin.py +37 -0
- edc_auth/admin/user_admin.py +124 -0
- edc_auth/admin/user_profile_admin.py +68 -0
- edc_auth/admin_site.py +5 -0
- edc_auth/apps.py +27 -0
- edc_auth/auth_objects/__init__.py +30 -0
- edc_auth/auth_objects/codenames/__init__.py +7 -0
- edc_auth/auth_objects/codenames/account_manager.py +18 -0
- edc_auth/auth_objects/codenames/administration.py +9 -0
- edc_auth/auth_objects/codenames/auditor.py +1 -0
- edc_auth/auth_objects/codenames/celery_manager.py +51 -0
- edc_auth/auth_objects/codenames/clinic.py +1 -0
- edc_auth/auth_objects/codenames/clinic_super.py +1 -0
- edc_auth/auth_objects/codenames/everyone.py +8 -0
- edc_auth/auth_objects/default_groups.py +24 -0
- edc_auth/auth_objects/default_pii_models.py +1 -0
- edc_auth/auth_objects/default_roles.py +45 -0
- edc_auth/auth_updater/__init__.py +1 -0
- edc_auth/auth_updater/auth_updater.py +172 -0
- edc_auth/auth_updater/group_updater.py +292 -0
- edc_auth/auth_updater/role_updater.py +70 -0
- edc_auth/backends.py +23 -0
- edc_auth/constants.py +21 -0
- edc_auth/export_users.py +45 -0
- edc_auth/fix_export_permissions.py +77 -0
- edc_auth/forms.py +99 -0
- edc_auth/get_app_codenames.py +88 -0
- edc_auth/get_clinic_codenames.py +23 -0
- edc_auth/import_users.py +290 -0
- edc_auth/management/commands/export_users.py +31 -0
- edc_auth/management/commands/fix_export_permissions.py +9 -0
- edc_auth/management/commands/import_users.py +78 -0
- edc_auth/management/commands/reset_password.py +38 -0
- edc_auth/migrations/0001_initial.py +81 -0
- edc_auth/migrations/0001_squashed_0033_alter_userprofile_is_multisite_viewer.py +645 -0
- edc_auth/migrations/0002_auto_20180803_0515.py +18 -0
- edc_auth/migrations/0003_auto_20180803_0532.py +15 -0
- edc_auth/migrations/0004_auto_20180804_2041.py +19 -0
- edc_auth/migrations/0005_userprofile_job_title.py +15 -0
- edc_auth/migrations/0006_userprofile_notifications.py +22 -0
- edc_auth/migrations/0007_auto_20181025_0150.py +46 -0
- edc_auth/migrations/0008_auto_20191022_0134.py +15 -0
- edc_auth/migrations/0009_userprofile_alternate_email.py +17 -0
- edc_auth/migrations/0010_auto_20191022_0422.py +20 -0
- edc_auth/migrations/0011_auto_20191025_2335.py +34 -0
- edc_auth/migrations/0012_auto_20191026_0034.py +143 -0
- edc_auth/migrations/0013_auto_20191026_0055.py +154 -0
- edc_auth/migrations/0014_auto_20191026_1841.py +13 -0
- edc_auth/migrations/0015_auto_20191026_2149.py +26 -0
- edc_auth/migrations/0016_auto_20191026_2153.py +24 -0
- edc_auth/migrations/0017_auto_20191026_2231.py +21 -0
- edc_auth/migrations/0018_auto_20191029_2039.py +15 -0
- edc_auth/migrations/0019_userprofile_export_format.py +31 -0
- edc_auth/migrations/0020_auto_20210120_0005.py +27 -0
- edc_auth/migrations/0021_auto_20210125_0421.py +25 -0
- edc_auth/migrations/0022_auto_20210125_2214.py +31 -0
- edc_auth/migrations/0023_auto_20210423_1451.py +17 -0
- edc_auth/migrations/0024_alter_userprofile_export_format.py +31 -0
- edc_auth/migrations/0025_permissions.py +108 -0
- edc_auth/migrations/0026_rename_permissions_edcpermissions.py +16 -0
- edc_auth/migrations/0027_alter_edcpermissions_options.py +19 -0
- edc_auth/migrations/0028_alter_role_options.py +28 -0
- edc_auth/migrations/0029_alter_edcpermissions_device_created_and_more.py +84 -0
- edc_auth/migrations/0030_alter_role_options_and_more.py +81 -0
- edc_auth/migrations/0031_alter_edcpermissions_options_and_more.py +61 -0
- edc_auth/migrations/0032_userprofile_is_multisite_viewer.py +17 -0
- edc_auth/migrations/0033_alter_userprofile_is_multisite_viewer.py +21 -0
- edc_auth/migrations/__init__.py +0 -0
- edc_auth/model_mixins.py +21 -0
- edc_auth/models/__init__.py +16 -0
- edc_auth/models/edc_permissions.py +10 -0
- edc_auth/models/role.py +55 -0
- edc_auth/models/signals.py +33 -0
- edc_auth/models/user_profile.py +141 -0
- edc_auth/password_setter.py +98 -0
- edc_auth/post_migrate_signals.py +38 -0
- edc_auth/send_new_credentials_to_user.py +46 -0
- edc_auth/site_auths.py +344 -0
- edc_auth/system_checks.py +91 -0
- edc_auth/templates/edc_auth/login.html +61 -0
- edc_auth/templates/edc_auth/user_country_sites.html +11 -0
- edc_auth/templates/edc_auth/user_role_description.html +15 -0
- edc_auth/urls.py +12 -0
- edc_auth/urls_for_accounts.py +57 -0
- edc_auth/utils.py +145 -0
- edc_auth/views.py +60 -0
- edc_consent/__init__.py +1 -0
- edc_consent/actions.py +63 -0
- edc_consent/admin_site.py +5 -0
- edc_consent/apps.py +7 -0
- edc_consent/auth_objects.py +25 -0
- edc_consent/auths.py +20 -0
- edc_consent/choices.py +21 -0
- edc_consent/consent_definition.py +236 -0
- edc_consent/consent_definition_extension.py +159 -0
- edc_consent/constants.py +5 -0
- edc_consent/exceptions.py +46 -0
- edc_consent/field_mixins/__init__.py +23 -0
- edc_consent/field_mixins/citizen_fields_mixin.py +49 -0
- edc_consent/field_mixins/identity_fields_mixin.py +45 -0
- edc_consent/field_mixins/personal_fields_mixin.py +95 -0
- edc_consent/field_mixins/review_fields_mixin.py +65 -0
- edc_consent/field_mixins/sample_collection_fields_mixin.py +27 -0
- edc_consent/field_mixins/scored_review_fields_mixin.py +58 -0
- edc_consent/field_mixins/site_fields_mixin.py +15 -0
- edc_consent/field_mixins/verification_fields_mixin.py +18 -0
- edc_consent/field_mixins/vulnerability_fields_mixin.py +56 -0
- edc_consent/fieldsets.py +10 -0
- edc_consent/form_validators/__init__.py +4 -0
- edc_consent/form_validators/consent_definition_form_validator_mixin.py +102 -0
- edc_consent/form_validators/subject_consent_form_validator.py +146 -0
- edc_consent/forms.py +36 -0
- edc_consent/managers.py +41 -0
- edc_consent/migrations/0001_initial.py +100 -0
- edc_consent/migrations/0002_alter_edcpermissions_device_created_and_more.py +49 -0
- edc_consent/migrations/0003_edcpermissions_locale_created_and_more.py +34 -0
- edc_consent/migrations/0004_alter_edcpermissions_options_and_more.py +41 -0
- edc_consent/migrations/__init__.py +0 -0
- edc_consent/model_mixins/__init__.py +11 -0
- edc_consent/model_mixins/consent_extension_model_mixin.py +79 -0
- edc_consent/model_mixins/consent_model_mixin.py +145 -0
- edc_consent/model_mixins/consent_version_model_mixin.py +81 -0
- edc_consent/model_mixins/requires_consent_fields_model_mixin.py +12 -0
- edc_consent/modeladmin_mixins/__init__.py +8 -0
- edc_consent/modeladmin_mixins/consent_model_admin_mixin.py +209 -0
- edc_consent/modeladmin_mixins/requires_consent_model_admin_mixin.py +19 -0
- edc_consent/modelform_mixins/__init__.py +8 -0
- edc_consent/modelform_mixins/consent_modelform_mixin/__init__.py +4 -0
- edc_consent/modelform_mixins/consent_modelform_mixin/clean_fields_modelform_validation_mixin.py +52 -0
- edc_consent/modelform_mixins/consent_modelform_mixin/consent_modelform_mixin.py +29 -0
- edc_consent/modelform_mixins/consent_modelform_mixin/consent_modelform_validation_mixin.py +257 -0
- edc_consent/modelform_mixins/consent_modelform_mixin/review_fields_modelform_mixin.py +52 -0
- edc_consent/modelform_mixins/requires_consent_modelform_mixin.py +72 -0
- edc_consent/models/__init__.py +11 -0
- edc_consent/models/edc_permissions.py +9 -0
- edc_consent/models/signals.py +78 -0
- edc_consent/navbars.py +15 -0
- edc_consent/site_consents.py +431 -0
- edc_consent/stubs.py +22 -0
- edc_consent/system_checks.py +139 -0
- edc_consent/templates/edc_consent/home.html +40 -0
- edc_consent/urls.py +11 -0
- edc_consent/utils.py +104 -0
- edc_consent/validators.py +94 -0
- edc_consent/view_mixins/__init__.py +3 -0
- edc_consent/view_mixins/consent_view_mixins.py +85 -0
- edc_consent/views/__init__.py +3 -0
- edc_consent/views/home_view.py +25 -0
- edc_consent/wsgi.py +16 -0
- edc_constants/__init__.py +3 -0
- edc_constants/apps.py +12 -0
- edc_constants/choices.py +835 -0
- edc_constants/constants.py +239 -0
- edc_constants/context_processor.py +47 -0
- edc_constants/date_constants.py +23 -0
- edc_constants/disease_constants.py +22 -0
- edc_constants/internationalization.py +61 -0
- edc_constants/locale/sw/LC_MESSAGES/django.po +923 -0
- edc_constants/system_checks.py +15 -0
- edc_constants/utils.py +19 -0
- edc_crf/__init__.py +3 -0
- edc_crf/admin/__init__.py +1 -0
- edc_crf/admin/crf_status_admin.py +53 -0
- edc_crf/admin_site.py +5 -0
- edc_crf/apps.py +8 -0
- edc_crf/auths.py +0 -0
- edc_crf/crf_form_validator.py +165 -0
- edc_crf/crf_form_validator_mixins.py +114 -0
- edc_crf/fieldset.py +6 -0
- edc_crf/form_validator_mixins.py +7 -0
- edc_crf/locale/sw/LC_MESSAGES/django.po +67 -0
- edc_crf/management/commands/update_crf_status.py +8 -0
- edc_crf/migrations/0001_initial.py +124 -0
- edc_crf/migrations/0002_auto_20200729_2310.py +29 -0
- edc_crf/migrations/0003_alter_crfstatus_options.py +30 -0
- edc_crf/migrations/0004_alter_crfstatus_device_created_and_more.py +49 -0
- edc_crf/migrations/0005_alter_crfstatus_options_crfstatus_locale_created_and_more.py +63 -0
- edc_crf/migrations/0006_remove_crfstatus_edc_crf_crf_modifie_6152c9_idx_and_more.py +22 -0
- edc_crf/migrations/0007_crfstatus_edc_crf_crf_subject_e09e96_idx_and_more.py +30 -0
- edc_crf/migrations/__init__.py +0 -0
- edc_crf/model_mixins/__init__.py +6 -0
- edc_crf/model_mixins/crf_inline_model_mixin.py +87 -0
- edc_crf/model_mixins/crf_model_mixin.py +23 -0
- edc_crf/model_mixins/crf_no_manager_model_mixin.py +38 -0
- edc_crf/model_mixins/crf_status_model_mixin.py +41 -0
- edc_crf/model_mixins/crf_with_action_model_mixin.py +21 -0
- edc_crf/model_mixins/singleton_crf_model_mixin.py +28 -0
- edc_crf/modeladmin_mixins/__init__.py +2 -0
- edc_crf/modeladmin_mixins/crf_model_admin.py +16 -0
- edc_crf/modeladmin_mixins/crf_status_model_admin_mixin.py +15 -0
- edc_crf/modelform_mixins/__init__.py +4 -0
- edc_crf/modelform_mixins/crf_model_form_mixin.py +41 -0
- edc_crf/modelform_mixins/crf_singleton_model_form_mixin.py +45 -0
- edc_crf/modelform_mixins/inline_model_form_mixin.py +24 -0
- edc_crf/modelform_mixins/requisition_model_form_mixin.py +5 -0
- edc_crf/models/__init__.py +2 -0
- edc_crf/models/crf_status.py +36 -0
- edc_crf/models/signals.py +19 -0
- edc_crf/update_crf_status_command.py +24 -0
- edc_crf/update_crf_status_for_instance.py +27 -0
- edc_crf/urls.py +11 -0
- edc_crf/utils.py +65 -0
- edc_dashboard/__init__.py +0 -0
- edc_dashboard/apps.py +14 -0
- edc_dashboard/auth_objects.py +3 -0
- edc_dashboard/auths.py +13 -0
- edc_dashboard/dashboard_templates.py +7 -0
- edc_dashboard/locale/sw/LC_MESSAGES/django.po +64 -0
- edc_dashboard/management/__init__.py +0 -0
- edc_dashboard/management/commands/__init__.py +0 -0
- edc_dashboard/management/commands/update_search_slugs.py +63 -0
- edc_dashboard/middleware.py +33 -0
- edc_dashboard/migrations/0001_initial.py +100 -0
- edc_dashboard/migrations/0002_auto_20220910_0214.py +18 -0
- edc_dashboard/migrations/0003_alter_edcpermissions_device_created_and_more.py +49 -0
- edc_dashboard/migrations/0004_edcpermissions_locale_created_and_more.py +34 -0
- edc_dashboard/migrations/__init__.py +0 -0
- edc_dashboard/models.py +9 -0
- edc_dashboard/navbars.py +15 -0
- edc_dashboard/static/edc_dashboard/css/changelist_button.css +18 -0
- edc_dashboard/static/edc_dashboard/css/edc.css +92 -0
- edc_dashboard/static/edc_dashboard/css/sticky-footer-navbar.css +39 -0
- edc_dashboard/static/edc_dashboard/icons/apple-touch-icon-114x114.png +0 -0
- edc_dashboard/static/edc_dashboard/icons/apple-touch-icon-120x120.png +0 -0
- edc_dashboard/static/edc_dashboard/icons/apple-touch-icon-144x144.png +0 -0
- edc_dashboard/static/edc_dashboard/icons/apple-touch-icon-152x152.png +0 -0
- edc_dashboard/static/edc_dashboard/icons/apple-touch-icon-180x180.png +0 -0
- edc_dashboard/static/edc_dashboard/icons/apple-touch-icon-57x57.png +0 -0
- edc_dashboard/static/edc_dashboard/icons/apple-touch-icon-72x72.png +0 -0
- edc_dashboard/static/edc_dashboard/icons/apple-touch-icon-76x76.png +0 -0
- edc_dashboard/static/edc_dashboard/icons/apple-touch-icon.png +0 -0
- edc_dashboard/static/edc_dashboard/icons/favicon.ico +0 -0
- edc_dashboard/static/edc_dashboard/js/edc.js +16 -0
- edc_dashboard/static/edc_dashboard/js/ie10-viewport-bug-workaround.js +21 -0
- edc_dashboard/system_checks.py +15 -0
- edc_dashboard/templates/403.html +30 -0
- edc_dashboard/templates/403_csrf.html +30 -0
- edc_dashboard/templates/404.html +30 -0
- edc_dashboard/templates/500.html +41 -0
- edc_dashboard/templates/edc_dashboard/administration.html +54 -0
- edc_dashboard/templates/edc_dashboard/alert_messages.html +20 -0
- edc_dashboard/templates/edc_dashboard/base.html +109 -0
- edc_dashboard/templates/edc_dashboard/base_dj3.html +47 -0
- edc_dashboard/templates/edc_dashboard/base_dj4.html +45 -0
- edc_dashboard/templates/edc_dashboard/controls/change_button.html +11 -0
- edc_dashboard/templates/edc_dashboard/controls/change_button_as_column.html +18 -0
- edc_dashboard/templates/edc_dashboard/controls/change_button_as_list_group_item.html +6 -0
- edc_dashboard/templates/edc_dashboard/controls/history_button.html +31 -0
- edc_dashboard/templates/edc_dashboard/copy_element.html +1 -0
- edc_dashboard/templates/edc_dashboard/footer.html +14 -0
- edc_dashboard/templates/edc_dashboard/help_modal.html +37 -0
- edc_dashboard/templates/edc_dashboard/home.html +73 -0
- edc_dashboard/templates/edc_dashboard/index_link.html +1 -0
- edc_dashboard/templates/edc_dashboard/navbar_topbar_title.html +3 -0
- edc_dashboard/templates/edc_dashboard/paginator/paginator_row.html +32 -0
- edc_dashboard/templates/edc_dashboard/search_form.html +25 -0
- edc_dashboard/templates/edc_dashboard/set_language.html +14 -0
- edc_dashboard/templatetags/__init__.py +0 -0
- edc_dashboard/templatetags/edc_dashboard_extras.py +159 -0
- edc_dashboard/url_config.py +197 -0
- edc_dashboard/url_names.py +50 -0
- edc_dashboard/urls.py +9 -0
- edc_dashboard/utils.py +55 -0
- edc_dashboard/view_mixins/__init__.py +5 -0
- edc_dashboard/view_mixins/administration_view_mixin.py +116 -0
- edc_dashboard/view_mixins/edc_view_mixin.py +84 -0
- edc_dashboard/view_mixins/message_view_mixin.py +37 -0
- edc_dashboard/view_mixins/template_request_context_mixin.py +30 -0
- edc_dashboard/view_mixins/url_request_context_mixin.py +66 -0
- edc_dashboard/views/__init__.py +4 -0
- edc_dashboard/views/administration_view.py +12 -0
- edc_dashboard/views/dashboard_view.py +45 -0
- edc_dashboard/views/error_handlers.py +49 -0
- edc_dashboard/views/home_view.py +28 -0
- edc_data_manager/__init__.py +3 -0
- edc_data_manager/action_items.py +114 -0
- edc_data_manager/admin/__init__.py +11 -0
- edc_data_manager/admin/action_item_admin.py +11 -0
- edc_data_manager/admin/actions.py +99 -0
- edc_data_manager/admin/autocomplete_admin.py +91 -0
- edc_data_manager/admin/data_dictionary_admin.py +162 -0
- edc_data_manager/admin/data_query_admin.py +388 -0
- edc_data_manager/admin/issue_admin.py +11 -0
- edc_data_manager/admin/query_rule_admin.py +150 -0
- edc_data_manager/admin_site.py +7 -0
- edc_data_manager/apps.py +14 -0
- edc_data_manager/auth_objects.py +58 -0
- edc_data_manager/auths.py +64 -0
- edc_data_manager/baker_recipes.py +18 -0
- edc_data_manager/choices.py +27 -0
- edc_data_manager/constants.py +2 -0
- edc_data_manager/data_manager.py +5 -0
- edc_data_manager/forms/__init__.py +3 -0
- edc_data_manager/forms/data_dictionary.py +12 -0
- edc_data_manager/forms/data_query.py +82 -0
- edc_data_manager/forms/query_rule.py +24 -0
- edc_data_manager/get_data_queries.py +15 -0
- edc_data_manager/get_longitudinal_value.py +39 -0
- edc_data_manager/handlers/__init__.py +1 -0
- edc_data_manager/handlers/handlers.py +385 -0
- edc_data_manager/manage.py +21 -0
- edc_data_manager/management/__init__.py +0 -0
- edc_data_manager/management/commands/__init__.py +0 -0
- edc_data_manager/management/commands/run_query_rules.py +36 -0
- edc_data_manager/migrations/0001_initial.py +1488 -0
- edc_data_manager/migrations/0002_auto_20190725_1822.py +36 -0
- edc_data_manager/migrations/0003_auto_20190806_1749.py +122 -0
- edc_data_manager/migrations/0004_auto_20190806_1750.py +16 -0
- edc_data_manager/migrations/0005_auto_20190826_1646.py +28 -0
- edc_data_manager/migrations/0006_auto_20190917_2133.py +20 -0
- edc_data_manager/migrations/0007_auto_20190917_2212.py +20 -0
- edc_data_manager/migrations/0008_auto_20190922_0135.py +36 -0
- edc_data_manager/migrations/0009_auto_20190923_0603.py +28 -0
- edc_data_manager/migrations/0010_auto_20191002_1521.py +36 -0
- edc_data_manager/migrations/0011_auto_20191018_2220.py +28 -0
- edc_data_manager/migrations/0012_auto_20191024_1000.py +22 -0
- edc_data_manager/migrations/0013_auto_20191120_0304.py +38 -0
- edc_data_manager/migrations/0014_auto_20191213_0314.py +30 -0
- edc_data_manager/migrations/0015_auto_20200227_2327.py +38 -0
- edc_data_manager/migrations/0016_auto_20200327_1435.py +30 -0
- edc_data_manager/migrations/0017_auto_20200729_2310.py +95 -0
- edc_data_manager/migrations/0018_auto_20210203_0706.py +86 -0
- edc_data_manager/migrations/0019_auto_20210510_2036.py +43 -0
- edc_data_manager/migrations/0020_auto_20210921_0403.py +32 -0
- edc_data_manager/migrations/0021_auto_20210929_2343.py +40 -0
- edc_data_manager/migrations/0022_alter_dataquery_recipients_and_more.py +67 -0
- edc_data_manager/migrations/0023_auto_20220704_1841.py +54 -0
- edc_data_manager/migrations/0024_alter_dataquery_action_identifier_and_more.py +22 -0
- edc_data_manager/migrations/0025_edcpermissions.py +100 -0
- edc_data_manager/migrations/0026_auto_20220826_0258.py +22 -0
- edc_data_manager/migrations/0027_alter_dataquery_dm_user.py +26 -0
- edc_data_manager/migrations/0028_alter_dataquery_options_alter_queryrule_options_and_more.py +57 -0
- edc_data_manager/migrations/0029_alter_dataquery_managers.py +24 -0
- edc_data_manager/migrations/0030_alter_datadictionary_device_created_and_more.py +259 -0
- edc_data_manager/migrations/0031_alter_dataquery_visit_code_sequence_and_more.py +39 -0
- edc_data_manager/migrations/0032_alter_datadictionary_options_and_more.py +52 -0
- edc_data_manager/migrations/0033_datadictionary_locale_created_and_more.py +176 -0
- edc_data_manager/migrations/0034_issue.py +25 -0
- edc_data_manager/migrations/0035_datadictionary_edc_data_ma_model_92b469_idx.py +19 -0
- edc_data_manager/migrations/0036_alter_historicalqueryrule_rule_handler_name_and_more.py +30 -0
- edc_data_manager/migrations/0037_alter_dataquery_site_alter_historicaldataquery_site_and_more.py +57 -0
- edc_data_manager/migrations/0038_rename_default_datadictionary_default_value_and_more.py +26 -0
- edc_data_manager/migrations/__init__.py +0 -0
- edc_data_manager/models/__init__.py +18 -0
- edc_data_manager/models/action_item.py +18 -0
- edc_data_manager/models/data_dictionary.py +77 -0
- edc_data_manager/models/data_query.py +207 -0
- edc_data_manager/models/edc_permissions.py +9 -0
- edc_data_manager/models/model_mixins.py +99 -0
- edc_data_manager/models/proxy_models.py +8 -0
- edc_data_manager/models/query_rule.py +241 -0
- edc_data_manager/models/query_subject.py +9 -0
- edc_data_manager/models/query_visit_schedule.py +12 -0
- edc_data_manager/models/requisition_panel.py +9 -0
- edc_data_manager/models/signals.py +62 -0
- edc_data_manager/models/user.py +27 -0
- edc_data_manager/navbar_item.py +9 -0
- edc_data_manager/populate_data_dictionary.py +163 -0
- edc_data_manager/post_migrate_signals.py +37 -0
- edc_data_manager/rule/__init__.py +3 -0
- edc_data_manager/rule/query_rule_wrapper.py +99 -0
- edc_data_manager/rule/rule_runner.py +131 -0
- edc_data_manager/rule/update_query_rules.py +39 -0
- edc_data_manager/site_data_manager.py +78 -0
- edc_data_manager/tasks.py +27 -0
- edc_data_manager/templates/edc_data_manager/action_item_display_name.html +8 -0
- edc_data_manager/templates/edc_data_manager/columns/auto.html +6 -0
- edc_data_manager/templates/edc_data_manager/columns/created.html +5 -0
- edc_data_manager/templates/edc_data_manager/columns/locked.html +3 -0
- edc_data_manager/templates/edc_data_manager/columns/query_date.html +4 -0
- edc_data_manager/templates/edc_data_manager/columns/query_recipients.html +4 -0
- edc_data_manager/templates/edc_data_manager/columns/query_text.html +53 -0
- edc_data_manager/templates/edc_data_manager/columns/rule_generated.html +5 -0
- edc_data_manager/templates/edc_data_manager/columns/status.html +21 -0
- edc_data_manager/templates/edc_data_manager/dashboard_data_queries.html +22 -0
- edc_data_manager/templates/edc_data_manager/default_query_text.html +1 -0
- edc_data_manager/templates/edc_data_manager/home.html +39 -0
- edc_data_manager/urls.py +11 -0
- edc_data_manager/view_mixins/__init__.py +1 -0
- edc_data_manager/view_mixins/data_manager_view_mixin.py +29 -0
- edc_data_manager/views/__init__.py +1 -0
- edc_data_manager/views/home_view.py +11 -0
- edc_device/__init__.py +14 -0
- edc_device/apps.py +57 -0
- edc_device/constants.py +5 -0
- edc_device/device.py +124 -0
- edc_device/device_permission.py +131 -0
- edc_device/models.py +6 -0
- edc_device/navbars.py +15 -0
- edc_device/signals.py +28 -0
- edc_device/templates/edc_device/home.html +43 -0
- edc_device/urls.py +7 -0
- edc_device/view_mixins.py +38 -0
- edc_device/views.py +29 -0
- edc_document_status/__init__.py +3 -0
- edc_document_status/apps.py +8 -0
- edc_document_status/fieldsets.py +6 -0
- edc_document_status/model_mixins.py +44 -0
- edc_document_status/modeladmin_mixins.py +7 -0
- edc_document_status/models/__init__.py +0 -0
- edc_document_status/models/signals.py +36 -0
- edc_document_status/urls.py +8 -0
- edc_export/__init__.py +3 -0
- edc_export/admin/__init__.py +8 -0
- edc_export/admin/data_request_admin.py +79 -0
- edc_export/admin/data_request_history_admin.py +89 -0
- edc_export/admin/export_receipt_admin.py +12 -0
- edc_export/admin/file_history_admin.py +35 -0
- edc_export/admin/object_history_admin.py +31 -0
- edc_export/admin/plan_admin.py +31 -0
- edc_export/admin/upload_export_receipt_file_admin.py +22 -0
- edc_export/admin_site.py +5 -0
- edc_export/apps.py +11 -0
- edc_export/archive_exporter.py +97 -0
- edc_export/auth_objects.py +39 -0
- edc_export/auths.py +37 -0
- edc_export/choices.py +9 -0
- edc_export/constants.py +14 -0
- edc_export/exceptions.py +14 -0
- edc_export/exportables.py +127 -0
- edc_export/files_archiver.py +36 -0
- edc_export/files_emailer.py +103 -0
- edc_export/forms/__init__.py +1 -0
- edc_export/forms/data_request_form.py +30 -0
- edc_export/management/__init__.py +0 -0
- edc_export/management/commands/__init__.py +0 -0
- edc_export/management/commands/export_object_history.py +27 -0
- edc_export/management/commands/import_receipts.py +119 -0
- edc_export/managers.py +36 -0
- edc_export/migrations/0001_initial.py +1488 -0
- edc_export/migrations/0002_auto_20180922_1843.py +18 -0
- edc_export/migrations/0003_auto_20181108_0353.py +47 -0
- edc_export/migrations/0004_auto_20190305_0123.py +529 -0
- edc_export/migrations/0005_exportdata_importdata.py +48 -0
- edc_export/migrations/0006_auto_20200512_0208.py +32 -0
- edc_export/migrations/0007_auto_20200512_0452.py +27 -0
- edc_export/migrations/0008_auto_20201002_0403.py +42 -0
- edc_export/migrations/0009_auto_20210510_2036.py +26 -0
- edc_export/migrations/0010_auto_20210910_1636.py +28 -0
- edc_export/migrations/0011_auto_20220215_2308.py +42 -0
- edc_export/migrations/0012_auto_20220704_1841.py +82 -0
- edc_export/migrations/0013_edcpermissions.py +100 -0
- edc_export/migrations/0014_alter_plan_options.py +28 -0
- edc_export/migrations/0015_alter_datarequest_managers_and_more.py +62 -0
- edc_export/migrations/0016_alter_datarequest_device_created_and_more.py +469 -0
- edc_export/migrations/0017_alter_datarequest_options_and_more.py +444 -0
- edc_export/migrations/0018_remove_objecthistory_edc_export__modifie_36e5ad_idx_and_more.py +32 -0
- edc_export/migrations/0019_alter_datarequest_site_alter_datarequesthistory_site_and_more.py +49 -0
- edc_export/migrations/0020_remove_datarequesthistory_edc_export__exporte_ba8050_idx_and_more.py +57 -0
- edc_export/migrations/__init__.py +0 -0
- edc_export/model_exporter/__init__.py +9 -0
- edc_export/model_exporter/file_history_updater.py +45 -0
- edc_export/model_exporter/model_exporter.py +195 -0
- edc_export/model_exporter/object_history_helpers.py +116 -0
- edc_export/model_exporter/plan_exporter.py +36 -0
- edc_export/model_exporter/value_getter.py +163 -0
- edc_export/model_mixins/__init__.py +4 -0
- edc_export/model_mixins/export_tracking_fields_model_mixin.py +45 -0
- edc_export/model_mixins/notification_model_mixin.py +30 -0
- edc_export/model_mixins/notification_plan_model_mixin.py +18 -0
- edc_export/model_options.py +40 -0
- edc_export/models/__init__.py +13 -0
- edc_export/models/data_request.py +44 -0
- edc_export/models/data_request_history.py +28 -0
- edc_export/models/edc_permissions.py +9 -0
- edc_export/models/export_receipt.py +36 -0
- edc_export/models/file_history.py +81 -0
- edc_export/models/object_history.py +78 -0
- edc_export/models/permission_dummies.py +15 -0
- edc_export/models/plan.py +56 -0
- edc_export/models/signals.py +36 -0
- edc_export/models/upload_export_receipt_file.py +79 -0
- edc_export/navbars.py +25 -0
- edc_export/offline_models.py +12 -0
- edc_export/static/edc_export/edc.css +46 -0
- edc_export/static/edc_export/edc.js +20 -0
- edc_export/system_checks.py +32 -0
- edc_export/templates/edc_export/export_models.html +167 -0
- edc_export/templates/edc_export/home.html +28 -0
- edc_export/urls.py +22 -0
- edc_export/utils.py +75 -0
- edc_export/views/__init__.py +3 -0
- edc_export/views/export_models_view.py +28 -0
- edc_export/views/export_selected_models_view.py +181 -0
- edc_export/views/home_view.py +10 -0
- edc_facility/__init__.py +6 -0
- edc_facility/admin.py +23 -0
- edc_facility/admin_site.py +5 -0
- edc_facility/apps.py +30 -0
- edc_facility/auth_objects.py +20 -0
- edc_facility/auths.py +7 -0
- edc_facility/constants.py +6 -0
- edc_facility/default_definitions.py +27 -0
- edc_facility/exceptions.py +22 -0
- edc_facility/facility.py +201 -0
- edc_facility/form_validators/__init__.py +1 -0
- edc_facility/form_validators/health_facility_form_validator.py +18 -0
- edc_facility/forms/__init__.py +1 -0
- edc_facility/forms/health_facility_form.py +14 -0
- edc_facility/holidays.py +98 -0
- edc_facility/holidays_disabled.py +5 -0
- edc_facility/import_holidays.py +128 -0
- edc_facility/list_data.py +11 -0
- edc_facility/management/__init__.py +0 -0
- edc_facility/management/commands/__init__.py +0 -0
- edc_facility/management/commands/import_holidays.py +13 -0
- edc_facility/migrations/0001_initial.py +31 -0
- edc_facility/migrations/0002_auto_20180102_1158.py +36 -0
- edc_facility/migrations/0003_auto_20190901_1100.py +16 -0
- edc_facility/migrations/0004_auto_20210423_1451.py +17 -0
- edc_facility/migrations/0005_healthfacility_healthfacilitytypes_and_more.py +468 -0
- edc_facility/migrations/0006_alter_healthfacility_health_facility_type.py +23 -0
- edc_facility/migrations/0007_healthfacilitytypes_extra_value.py +17 -0
- edc_facility/migrations/0008_alter_healthfacility_device_created_and_more.py +84 -0
- edc_facility/migrations/0009_alter_healthfacility_options_and_more.py +155 -0
- edc_facility/migrations/0010_remove_healthfacility_edc_facilit_modifie_dcf8ac_idx_and_more.py +22 -0
- edc_facility/migrations/0011_remove_healthfacilitytypes_edc_facilit_name_78007a_idx.py +19 -0
- edc_facility/migrations/0012_alter_holiday_unique_together_and_more.py +23 -0
- edc_facility/migrations/0013_alter_healthfacility_site_and_more.py +36 -0
- edc_facility/migrations/0014_healthfacility_title_historicalhealthfacility_title.py +23 -0
- edc_facility/migrations/__init__.py +0 -0
- edc_facility/model_mixins.py +124 -0
- edc_facility/modeladmin_mixins.py +87 -0
- edc_facility/models/__init__.py +3 -0
- edc_facility/models/health_facility.py +15 -0
- edc_facility/models/holiday.py +40 -0
- edc_facility/models/list_models.py +7 -0
- edc_facility/system_checks.py +52 -0
- edc_facility/urls.py +11 -0
- edc_facility/utils.py +56 -0
- edc_fieldsets/__init__.py +8 -0
- edc_fieldsets/apps.py +5 -0
- edc_fieldsets/fieldlist.py +26 -0
- edc_fieldsets/fieldset.py +5 -0
- edc_fieldsets/fieldsets.py +79 -0
- edc_fieldsets/fieldsets_modeladmin_mixin.py +80 -0
- edc_fieldsets/models.py +1 -0
- edc_fieldsets/urls.py +20 -0
- edc_form_describer/__init__.py +0 -0
- edc_form_describer/apps.py +5 -0
- edc_form_describer/form_describer.py +216 -0
- edc_form_describer/forms_reference.py +125 -0
- edc_form_describer/make_forms_reference.py +49 -0
- edc_form_describer/management/__init__.py +0 -0
- edc_form_describer/management/commands/__init__.py +0 -0
- edc_form_describer/management/commands/make_forms_reference.py +106 -0
- edc_form_describer/markdown_writer.py +59 -0
- edc_form_describer/migrations/__init__.py +0 -0
- edc_form_describer/models.py +0 -0
- edc_form_describer/urls.py +4 -0
- edc_form_label/__init__.py +3 -0
- edc_form_label/apps.py +5 -0
- edc_form_label/custom_label_condition.py +82 -0
- edc_form_label/form_label.py +45 -0
- edc_form_label/form_label_modeladmin_mixin.py +32 -0
- edc_form_label/models.py +0 -0
- edc_form_label/urls.py +4 -0
- edc_form_runners/__init__.py +0 -0
- edc_form_runners/admin/__init__.py +1 -0
- edc_form_runners/admin/actions.py +12 -0
- edc_form_runners/admin/issue_admin.py +164 -0
- edc_form_runners/admin_site.py +9 -0
- edc_form_runners/apps.py +11 -0
- edc_form_runners/auth_objects.py +15 -0
- edc_form_runners/auths.py +18 -0
- edc_form_runners/decorators.py +17 -0
- edc_form_runners/exceptions.py +26 -0
- edc_form_runners/form_runner.py +230 -0
- edc_form_runners/form_runner_by_scr_id.py +36 -0
- edc_form_runners/get_form_runner.py +14 -0
- edc_form_runners/get_form_runner_by_src_id.py +20 -0
- edc_form_runners/management/__init__.py +0 -0
- edc_form_runners/management/commands/__init__.py +0 -0
- edc_form_runners/management/commands/run_form_runners.py +95 -0
- edc_form_runners/migrations/0001_initial.py +191 -0
- edc_form_runners/migrations/0002_alter_issue_options_and_more.py +166 -0
- edc_form_runners/migrations/0003_alter_issue_visit_code_and_more.py +23 -0
- edc_form_runners/migrations/__init__.py +0 -0
- edc_form_runners/models/__init__.py +2 -0
- edc_form_runners/models/issue.py +72 -0
- edc_form_runners/models/signals.py +33 -0
- edc_form_runners/run_form_runners.py +44 -0
- edc_form_runners/site.py +67 -0
- edc_form_runners/templates/edc_form_runners/form_runner_issues.html +1 -0
- edc_form_runners/templatetags/__init__.py +0 -0
- edc_form_runners/templatetags/form_runners_extras.py +32 -0
- edc_form_runners/urls.py +8 -0
- edc_form_runners/utils.py +96 -0
- edc_form_validators/__init__.py +20 -0
- edc_form_validators/applicable_field_validator.py +220 -0
- edc_form_validators/apps.py +5 -0
- edc_form_validators/base_form_validator.py +166 -0
- edc_form_validators/current_site_validator.py +9 -0
- edc_form_validators/date_range_validator.py +140 -0
- edc_form_validators/date_validator.py +237 -0
- edc_form_validators/exceptions.py +2 -0
- edc_form_validators/extra_mixins/__init__.py +1 -0
- edc_form_validators/extra_mixins/study_day_form_validator.py +53 -0
- edc_form_validators/form_validator.py +25 -0
- edc_form_validators/form_validator_mixin.py +9 -0
- edc_form_validators/form_validator_mixins.py +45 -0
- edc_form_validators/locale_validator.py +9 -0
- edc_form_validators/many_to_many_field_validator.py +364 -0
- edc_form_validators/other_specify_field_validator.py +78 -0
- edc_form_validators/range_field_validator.py +43 -0
- edc_form_validators/required_field_validator.py +322 -0
- edc_form_validators/test_case_mixin.py +73 -0
- edc_form_validators/urls.py +4 -0
- edc_identifier/__init__.py +2 -0
- edc_identifier/admin.py +69 -0
- edc_identifier/admin_site.py +7 -0
- edc_identifier/apps.py +18 -0
- edc_identifier/checkdigit_mixins.py +27 -0
- edc_identifier/exceptions.py +34 -0
- edc_identifier/identifier.py +133 -0
- edc_identifier/managers.py +13 -0
- edc_identifier/migrations/0001_initial.py +270 -0
- edc_identifier/migrations/0001_squashed_0018_auto_20180128_1054.py +210 -0
- edc_identifier/migrations/0002_auto_20160505_1435.py +42 -0
- edc_identifier/migrations/0002_auto_20190305_0123.py +56 -0
- edc_identifier/migrations/0003_auto_20160625_0938.py +38 -0
- edc_identifier/migrations/0003_auto_20191024_1000.py +22 -0
- edc_identifier/migrations/0004_auto_20160807_1443.py +35 -0
- edc_identifier/migrations/0004_auto_20200513_0042.py +27 -0
- edc_identifier/migrations/0005_alter_identifiermodel_managers.py +21 -0
- edc_identifier/migrations/0005_historicalidentifierhistory_historicalidentifiertracker_historicalsubjectidentifier.py +276 -0
- edc_identifier/migrations/0006_alter_identifiermodel_options.py +28 -0
- edc_identifier/migrations/0006_auto_20161127_2226.py +240 -0
- edc_identifier/migrations/0007_alter_identifiermodel_device_created_and_more.py +49 -0
- edc_identifier/migrations/0007_auto_20161204_2227.py +103 -0
- edc_identifier/migrations/0008_alter_identifiermodel_options_and_more.py +72 -0
- edc_identifier/migrations/0008_identifiermodel_linked_identifier.py +17 -0
- edc_identifier/migrations/0009_alter_identifiermodel_site.py +24 -0
- edc_identifier/migrations/0009_auto_20161221_2323.py +23 -0
- edc_identifier/migrations/0010_auto_20170112_0602.py +359 -0
- edc_identifier/migrations/0011_auto_20170511_1323.py +36 -0
- edc_identifier/migrations/0012_auto_20171116_1606.py +361 -0
- edc_identifier/migrations/0013_auto_20171230_1316.py +65 -0
- edc_identifier/migrations/0014_auto_20180103_1322.py +33 -0
- edc_identifier/migrations/0015_auto_20180116_1235.py +9 -0
- edc_identifier/migrations/0016_auto_20180116_1411.py +21 -0
- edc_identifier/migrations/0017_identifiermodel_subject_identifier.py +15 -0
- edc_identifier/migrations/0018_auto_20180128_1054.py +15 -0
- edc_identifier/migrations/__init__.py +0 -0
- edc_identifier/model_mixins.py +167 -0
- edc_identifier/models.py +59 -0
- edc_identifier/offline_models.py +3 -0
- edc_identifier/research_identifier.py +165 -0
- edc_identifier/short_identifier.py +133 -0
- edc_identifier/simple_identifier.py +216 -0
- edc_identifier/subject_identifier.py +30 -0
- edc_identifier/templates/edc_identifier/home.html +2 -0
- edc_identifier/urls.py +11 -0
- edc_identifier/utils.py +51 -0
- edc_identifier/views.py +13 -0
- edc_lab/__init__.py +23 -0
- edc_lab/admin/__init__.py +21 -0
- edc_lab/admin/aliquot_admin.py +74 -0
- edc_lab/admin/base_model_admin.py +30 -0
- edc_lab/admin/box_admin.py +67 -0
- edc_lab/admin/box_item_admin.py +22 -0
- edc_lab/admin/box_type_admin.py +22 -0
- edc_lab/admin/consignee_admin.py +12 -0
- edc_lab/admin/fieldsets.py +56 -0
- edc_lab/admin/manifest_admin.py +51 -0
- edc_lab/admin/manifest_item_admin.py +29 -0
- edc_lab/admin/modeladmin_mixins.py +115 -0
- edc_lab/admin/order_admin.py +10 -0
- edc_lab/admin/panel_admin.py +18 -0
- edc_lab/admin/result_admin.py +21 -0
- edc_lab/admin/shipper_admin.py +12 -0
- edc_lab/admin_site.py +5 -0
- edc_lab/aliquot_types.py +33 -0
- edc_lab/apps.py +12 -0
- edc_lab/auth_objects.py +30 -0
- edc_lab/auths.py +43 -0
- edc_lab/choices.py +167 -0
- edc_lab/constants.py +13 -0
- edc_lab/form_validators/__init__.py +3 -0
- edc_lab/form_validators/crf_requisition_form_validator_mixin.py +81 -0
- edc_lab/form_validators/requisition_form_validator.py +11 -0
- edc_lab/form_validators/requisition_form_validator_mixin.py +88 -0
- edc_lab/forms/__init__.py +7 -0
- edc_lab/forms/aliquot_form.py +11 -0
- edc_lab/forms/box_form.py +40 -0
- edc_lab/forms/box_item_form.py +9 -0
- edc_lab/forms/box_type_form.py +20 -0
- edc_lab/forms/manifest_form.py +17 -0
- edc_lab/forms/manifest_item_form.py +9 -0
- edc_lab/forms/requisition_form_mixin.py +17 -0
- edc_lab/identifiers/__init__.py +9 -0
- edc_lab/identifiers/aliquot_identifier.py +72 -0
- edc_lab/identifiers/box_identifier.py +7 -0
- edc_lab/identifiers/manifest_identifier.py +7 -0
- edc_lab/identifiers/prefix.py +43 -0
- edc_lab/identifiers/requisition_identifier.py +6 -0
- edc_lab/lab/__init__.py +28 -0
- edc_lab/lab/aliquot_creator.py +108 -0
- edc_lab/lab/aliquot_type.py +48 -0
- edc_lab/lab/lab_profile.py +54 -0
- edc_lab/lab/manifest.py +106 -0
- edc_lab/lab/primary_aliquot.py +45 -0
- edc_lab/lab/processing_profile.py +73 -0
- edc_lab/lab/requisition_panel.py +116 -0
- edc_lab/lab/requisition_panel_group.py +63 -0
- edc_lab/lab/specimen.py +84 -0
- edc_lab/lab/specimen_processor.py +56 -0
- edc_lab/labels/__init__.py +4 -0
- edc_lab/labels/aliquot_label.py +74 -0
- edc_lab/labels/base_label.py +15 -0
- edc_lab/labels/box_label.py +22 -0
- edc_lab/labels/manifest_label.py +23 -0
- edc_lab/labels/requisition_label.py +68 -0
- edc_lab/list_data.py +13 -0
- edc_lab/managers.py +25 -0
- edc_lab/migrations/0001_initial.py +1828 -0
- edc_lab/migrations/0002_auto_20170305_1939.py +140 -0
- edc_lab/migrations/0003_auto_20170305_1940.py +52 -0
- edc_lab/migrations/0004_auto_20170305_2015.py +76 -0
- edc_lab/migrations/0005_auto_20170305_2109.py +108 -0
- edc_lab/migrations/0006_auto_20170305_2121.py +22 -0
- edc_lab/migrations/0007_auto_20170321_1119.py +26 -0
- edc_lab/migrations/0008_auto_20170921_0719.py +791 -0
- edc_lab/migrations/0009_auto_20171116_1606.py +58 -0
- edc_lab/migrations/0010_auto_20171127_1541.py +668 -0
- edc_lab/migrations/0011_delete_identifierhistory.py +9 -0
- edc_lab/migrations/0012_auto_20180114_1438.py +118 -0
- edc_lab/migrations/0013_auto_20180117_1438.py +169 -0
- edc_lab/migrations/0014_auto_20180123_1936.py +14 -0
- edc_lab/migrations/0015_manifestitem_site.py +24 -0
- edc_lab/migrations/0016_auto_20180706_1519.py +82 -0
- edc_lab/migrations/0017_auto_20181108_0353.py +75 -0
- edc_lab/migrations/0018_auto_20190201_0446.py +115 -0
- edc_lab/migrations/0019_auto_20190305_0123.py +916 -0
- edc_lab/migrations/0020_auto_20191024_1000.py +88 -0
- edc_lab/migrations/0021_auto_20200513_0034.py +277 -0
- edc_lab/migrations/0022_auto_20211210_1839.py +82 -0
- edc_lab/migrations/0023_auto_20220704_1841.py +138 -0
- edc_lab/migrations/0024_alter_manifestitem_managers.py +21 -0
- edc_lab/migrations/0025_alter_aliquot_measure_units_and_more.py +40 -0
- edc_lab/migrations/0026_alter_aliquot_options_alter_box_options_and_more.py +217 -0
- edc_lab/migrations/0027_alter_aliquot_managers_alter_box_managers_and_more.py +62 -0
- edc_lab/migrations/0028_alter_aliquot_device_created_and_more.py +749 -0
- edc_lab/migrations/0029_alter_aliquot_options_alter_box_options_and_more.py +804 -0
- edc_lab/migrations/0030_remove_aliquot_edc_lab_ali_modifie_49b6da_idx_and_more.py +112 -0
- edc_lab/migrations/0031_alter_box_options_alter_boxitem_options_and_more.py +140 -0
- edc_lab/migrations/0032_alter_consignee_options_and_more.py +44 -0
- edc_lab/migrations/0033_remove_panel_edc_lab_pan_lab_pro_2a0c6d_idx_and_more.py +29 -0
- edc_lab/migrations/0034_alter_aliquot_site_alter_box_site_and_more.py +156 -0
- edc_lab/migrations/__init__.py +0 -0
- edc_lab/model_mixins/__init__.py +17 -0
- edc_lab/model_mixins/aliquot/__init__.py +5 -0
- edc_lab/model_mixins/aliquot/aliquot_identifier_model_mixin.py +19 -0
- edc_lab/model_mixins/aliquot/aliquot_label_mixin.py +32 -0
- edc_lab/model_mixins/aliquot/aliquot_model_mixin.py +68 -0
- edc_lab/model_mixins/aliquot/aliquot_shipping_mixin.py +8 -0
- edc_lab/model_mixins/aliquot/aliquot_type_model_mixin.py +21 -0
- edc_lab/model_mixins/panel_model_mixin.py +53 -0
- edc_lab/model_mixins/requisition/__init__.py +10 -0
- edc_lab/model_mixins/requisition/crf_with_requisition_model_mixin.py +51 -0
- edc_lab/model_mixins/requisition/requisition_identifier_mixin.py +63 -0
- edc_lab/model_mixins/requisition/requisition_model_mixin.py +162 -0
- edc_lab/model_mixins/requisition/requisition_status_mixin.py +22 -0
- edc_lab/model_mixins/requisition/requisition_verify_model_mixin.py +12 -0
- edc_lab/model_mixins/result/__init__.py +2 -0
- edc_lab/model_mixins/result/result_item_model_mixin.py +29 -0
- edc_lab/model_mixins/result/result_model_mixin.py +21 -0
- edc_lab/model_mixins/shipping/__init__.py +2 -0
- edc_lab/model_mixins/shipping/manifest_model_mixin.py +71 -0
- edc_lab/model_mixins/shipping/verify_model_mixin.py +51 -0
- edc_lab/models/__init__.py +10 -0
- edc_lab/models/aliquot.py +48 -0
- edc_lab/models/box.py +130 -0
- edc_lab/models/box_item.py +67 -0
- edc_lab/models/box_type.py +44 -0
- edc_lab/models/manifest/__init__.py +4 -0
- edc_lab/models/manifest/consignee.py +25 -0
- edc_lab/models/manifest/manifest.py +64 -0
- edc_lab/models/manifest/manifest_item.py +49 -0
- edc_lab/models/manifest/shipper.py +26 -0
- edc_lab/models/order.py +46 -0
- edc_lab/models/panel.py +37 -0
- edc_lab/models/result.py +35 -0
- edc_lab/models/result_item.py +36 -0
- edc_lab/models/signals.py +31 -0
- edc_lab/offline_models.py +3 -0
- edc_lab/patterns.py +4 -0
- edc_lab/pdf_reports/__init__.py +1 -0
- edc_lab/pdf_reports/manifest_pdf_report.py +526 -0
- edc_lab/post_migrate_signals.py +14 -0
- edc_lab/site_labs.py +201 -0
- edc_lab/stubs.py +10 -0
- edc_lab/urls.py +8 -0
- edc_lab/utils.py +22 -0
- edc_lab/wsgi.py +7 -0
- edc_lab_dashboard/__init__.py +6 -0
- edc_lab_dashboard/apps.py +8 -0
- edc_lab_dashboard/auth_objects.py +29 -0
- edc_lab_dashboard/auths.py +23 -0
- edc_lab_dashboard/dashboard_templates.py +28 -0
- edc_lab_dashboard/dashboard_urls.py +38 -0
- edc_lab_dashboard/middleware.py +38 -0
- edc_lab_dashboard/migrations/0001_initial.py +100 -0
- edc_lab_dashboard/migrations/0002_alter_edcpermissions_device_created_and_more.py +49 -0
- edc_lab_dashboard/migrations/0003_edcpermissions_locale_created_and_more.py +34 -0
- edc_lab_dashboard/migrations/__init__.py +0 -0
- edc_lab_dashboard/model_wrappers/__init__.py +8 -0
- edc_lab_dashboard/model_wrappers/aliquot_model_wrapper.py +31 -0
- edc_lab_dashboard/model_wrappers/base_box_item_model_wrapper.py +21 -0
- edc_lab_dashboard/model_wrappers/box_model_wrapper.py +12 -0
- edc_lab_dashboard/model_wrappers/manage_box_item_model_wrapper.py +6 -0
- edc_lab_dashboard/model_wrappers/manifest_item_model_wrapper.py +21 -0
- edc_lab_dashboard/model_wrappers/manifest_model_wrapper.py +11 -0
- edc_lab_dashboard/model_wrappers/requisition_model_wrapper.py +25 -0
- edc_lab_dashboard/model_wrappers/result_model_wrapper.py +8 -0
- edc_lab_dashboard/model_wrappers/verify_box_model_wrapper.py +10 -0
- edc_lab_dashboard/models.py +9 -0
- edc_lab_dashboard/navbars.py +94 -0
- edc_lab_dashboard/static/edc_lab_dashboard/beep-03.mp3 +0 -0
- edc_lab_dashboard/static/edc_lab_dashboard/css/extra.css +7 -0
- edc_lab_dashboard/static/edc_lab_dashboard/css/print.css +19 -0
- edc_lab_dashboard/static/edc_lab_dashboard/images/checked.png +0 -0
- edc_lab_dashboard/static/edc_lab_dashboard/images/unchecked.png +0 -0
- edc_lab_dashboard/static/edc_lab_dashboard/js/beep.js +16 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/action_listboard.html +28 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/aliquot_listboard.html +16 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/base.html +13 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/base_listboard.html +43 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/box_listboard.html +39 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/controls/verified_check.html +1 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/controls/verified_shipped.html +1 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/home.html +46 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/aliquot/columns.html +50 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/aliquot/results_body.html +13 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/aliquot/results_header.html +14 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/box/box_cell.html +23 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/box/columns.html +26 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/box/results_body.html +10 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/box/results_header.html +14 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/manage_manifest_listboard.html +22 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/manifest/columns.html +41 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/manifest/results_body.html +13 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/manifest/results_header.html +16 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/pack/columns.html +37 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/pack/results_body.html +13 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/pack/results_header.html +15 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/requisition/columns.html +42 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/requisition/results_body.html +13 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/requisition/results_header.html +16 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/result/columns.html +21 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/result/results_body.html +13 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard/result/results_header.html +13 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/listboard.html +84 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/manage_box_listboard.html +37 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/manage_manifest_listboard.html +85 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/manifest_listboard.html +26 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/pack_aliquots_modal.html +39 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/pack_listboard.html +56 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/process_listboard.html +5 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/receive_listboard.html +19 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/requisition_listboard.html +19 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/result_listboard.html +9 -0
- edc_lab_dashboard/templates/edc_lab_dashboard/verify_box_listboard.html +56 -0
- edc_lab_dashboard/templatetags/__init__.py +0 -0
- edc_lab_dashboard/templatetags/edc_lab_extras.py +85 -0
- edc_lab_dashboard/urls.py +177 -0
- edc_lab_dashboard/view_mixins/__init__.py +5 -0
- edc_lab_dashboard/view_mixins/box_view_mixin.py +124 -0
- edc_lab_dashboard/view_mixins/clean_search_term_mixin.py +15 -0
- edc_lab_dashboard/view_mixins/form_action_view_mixin.py +35 -0
- edc_lab_dashboard/view_mixins/manifest_view_mixin.py +110 -0
- edc_lab_dashboard/view_mixins/process_requisition_view_mixin.py +67 -0
- edc_lab_dashboard/views/__init__.py +24 -0
- edc_lab_dashboard/views/action_views/__init__.py +9 -0
- edc_lab_dashboard/views/action_views/action_view.py +70 -0
- edc_lab_dashboard/views/action_views/aliquot_view.py +29 -0
- edc_lab_dashboard/views/action_views/box_view.py +8 -0
- edc_lab_dashboard/views/action_views/manage_box_item_view.py +127 -0
- edc_lab_dashboard/views/action_views/manage_manifest_view.py +68 -0
- edc_lab_dashboard/views/action_views/manifest_view.py +76 -0
- edc_lab_dashboard/views/action_views/pack_view.py +100 -0
- edc_lab_dashboard/views/action_views/process_view.py +22 -0
- edc_lab_dashboard/views/action_views/receive_view.py +53 -0
- edc_lab_dashboard/views/action_views/requisition_view.py +60 -0
- edc_lab_dashboard/views/action_views/verify_box_item_view.py +70 -0
- edc_lab_dashboard/views/home_view.py +12 -0
- edc_lab_dashboard/views/listboard_filters/__init__.py +4 -0
- edc_lab_dashboard/views/listboard_filters/aliquot_listboard_view_filters.py +28 -0
- edc_lab_dashboard/views/listboard_filters/manifest_listboard_filters.py +15 -0
- edc_lab_dashboard/views/listboard_filters/pack_listboard_filters.py +24 -0
- edc_lab_dashboard/views/listboard_filters/requisition_listboard_view_filters.py +28 -0
- edc_lab_dashboard/views/listboard_views/__init__.py +10 -0
- edc_lab_dashboard/views/listboard_views/aliquot_listboard_view.py +15 -0
- edc_lab_dashboard/views/listboard_views/base_box_item_listboard_view.py +23 -0
- edc_lab_dashboard/views/listboard_views/base_listboard_view.py +17 -0
- edc_lab_dashboard/views/listboard_views/manage_box_listboard_view.py +34 -0
- edc_lab_dashboard/views/listboard_views/manage_manifest_listboard_view.py +29 -0
- edc_lab_dashboard/views/listboard_views/manifest_listboard_view.py +48 -0
- edc_lab_dashboard/views/listboard_views/pack_listboard_view.py +37 -0
- edc_lab_dashboard/views/listboard_views/process_listboard_view.py +46 -0
- edc_lab_dashboard/views/listboard_views/receive_listboard_view.py +48 -0
- edc_lab_dashboard/views/listboard_views/requisition_listboard_view.py +58 -0
- edc_lab_dashboard/views/listboard_views/result_listboard_view.py +12 -0
- edc_lab_dashboard/views/listboard_views/verify_box_listboard_view.py +51 -0
- edc_lab_dashboard/wsgi.py +7 -0
- edc_lab_panel/__init__.py +0 -0
- edc_lab_panel/apps.py +7 -0
- edc_lab_panel/constants.py +31 -0
- edc_lab_panel/panels.py +142 -0
- edc_lab_panel/processing_profiles.py +14 -0
- edc_lab_results/__init__.py +10 -0
- edc_lab_results/action_items.py +131 -0
- edc_lab_results/admin/__init__.py +2 -0
- edc_lab_results/admin/blood_results_modeladmin_mixin.py +5 -0
- edc_lab_results/admin/reportable_results_modeladmin_mixin.py +54 -0
- edc_lab_results/apps.py +6 -0
- edc_lab_results/calculate_missing.py +30 -0
- edc_lab_results/constants.py +9 -0
- edc_lab_results/fieldsets.py +127 -0
- edc_lab_results/form_validator_mixins/__init__.py +3 -0
- edc_lab_results/form_validator_mixins/blood_results_fbg_form_validator_mixin.py +28 -0
- edc_lab_results/form_validator_mixins/blood_results_form_validator_mixin.py +115 -0
- edc_lab_results/form_validator_mixins/blood_results_glu_form_validator_mixin.py +5 -0
- edc_lab_results/get_summary.py +55 -0
- edc_lab_results/model_mixin_factory/__init__.py +2 -0
- edc_lab_results/model_mixin_factory/field_attrs.py +88 -0
- edc_lab_results/model_mixin_factory/reportable_result_model_mixin_factory.py +37 -0
- edc_lab_results/model_mixin_factory/result_model_mixin_factory.py +35 -0
- edc_lab_results/model_mixins/__init__.py +46 -0
- edc_lab_results/model_mixins/blood_result_model_mixin.py +120 -0
- edc_lab_results/model_mixins/electrolytes_model_mixins.py +48 -0
- edc_lab_results/model_mixins/fbc_model_mixins.py +189 -0
- edc_lab_results/model_mixins/fbg_model_mixin.py +60 -0
- edc_lab_results/model_mixins/glucose_model_mixin.py +60 -0
- edc_lab_results/model_mixins/hba1c_model_mixin.py +55 -0
- edc_lab_results/model_mixins/insulin_model_mixin.py +39 -0
- edc_lab_results/model_mixins/lft_model_mixins.py +127 -0
- edc_lab_results/model_mixins/lipid_model_mixins.py +64 -0
- edc_lab_results/model_mixins/proteinuria_model_mixin.py +18 -0
- edc_lab_results/model_mixins/rft_model_mixins.py +55 -0
- edc_lab_results/models.py +0 -0
- edc_label/__init__.py +5 -0
- edc_label/admin.py +18 -0
- edc_label/admin_site.py +5 -0
- edc_label/apps.py +49 -0
- edc_label/auth_objects.py +15 -0
- edc_label/auths.py +5 -0
- edc_label/constants.py +7 -0
- edc_label/job_result.py +38 -0
- edc_label/lab_printers_mixin.py +47 -0
- edc_label/label.py +48 -0
- edc_label/label_template.py +52 -0
- edc_label/migrations/0001_initial.py +112 -0
- edc_label/migrations/0002_alter_zpllabeltemplates_options.py +30 -0
- edc_label/migrations/0003_alter_zpllabeltemplates_device_created_and_more.py +49 -0
- edc_label/migrations/0004_alter_zpllabeltemplates_options_and_more.py +63 -0
- edc_label/migrations/0005_remove_zpllabeltemplates_edc_label_z_modifie_79a6b3_idx_and_more.py +22 -0
- edc_label/migrations/__init__.py +0 -0
- edc_label/models.py +16 -0
- edc_label/navbars.py +15 -0
- edc_label/printer.py +92 -0
- edc_label/printers_mixin.py +127 -0
- edc_label/static/edc_label/js/BrowserPrint-3.0.216.min.js +16 -0
- edc_label/static/edc_label/js/edc_label.js +108 -0
- edc_label/static/edc_label/label_templates/aliquot.lbl +9 -0
- edc_label/static/edc_label/label_templates/box.lbl +9 -0
- edc_label/static/edc_label/label_templates/manifest.lbl +9 -0
- edc_label/static/edc_label/label_templates/requisition.lbl +9 -0
- edc_label/subject_label.py +47 -0
- edc_label/templates/edc_label/browser_print_labels.html +46 -0
- edc_label/templates/edc_label/home.html +18 -0
- edc_label/templates/edc_label/print_button.html +8 -0
- edc_label/templates/edc_label/printer_config.html +41 -0
- edc_label/templates/edc_label/printer_setup.html +45 -0
- edc_label/templatetags/__init__.py +0 -0
- edc_label/templatetags/edc_label_extras.py +24 -0
- edc_label/urls.py +53 -0
- edc_label/view_mixins.py +37 -0
- edc_label/views/__init__.py +4 -0
- edc_label/views/browser_print_labels_view.py +20 -0
- edc_label/views/change_printer_view.py +46 -0
- edc_label/views/home_view.py +22 -0
- edc_label/views/print_label_view.py +33 -0
- edc_label/views/print_setup_view.py +27 -0
- edc_list_data/__init__.py +3 -0
- edc_list_data/admin.py +13 -0
- edc_list_data/apps.py +9 -0
- edc_list_data/list_model_maker.py +65 -0
- edc_list_data/load_list_data.py +48 -0
- edc_list_data/load_model_data.py +74 -0
- edc_list_data/management/commands/__init__.py +0 -0
- edc_list_data/management/commands/load_list_data.py +14 -0
- edc_list_data/migrations/__init__.py +0 -0
- edc_list_data/model_mixins.py +109 -0
- edc_list_data/models.py +0 -0
- edc_list_data/post_migrate_signals.py +15 -0
- edc_list_data/preload_data.py +37 -0
- edc_list_data/row.py +38 -0
- edc_list_data/site_list_data.py +166 -0
- edc_list_data/stubs.py +9 -0
- edc_list_data/urls.py +4 -0
- edc_listboard/__init__.py +0 -0
- edc_listboard/apps.py +13 -0
- edc_listboard/dashboard_templates.py +5 -0
- edc_listboard/filters/__init__.py +2 -0
- edc_listboard/filters/listboard_filter.py +43 -0
- edc_listboard/filters/listboard_view_filters.py +38 -0
- edc_listboard/middleware.py +24 -0
- edc_listboard/migrations/0001_initial.py +108 -0
- edc_listboard/migrations/0002_alter_listboard_options.py +28 -0
- edc_listboard/migrations/0003_alter_listboard_device_created_and_more.py +49 -0
- edc_listboard/migrations/0004_alter_listboard_options_listboard_locale_created_and_more.py +61 -0
- edc_listboard/migrations/0005_remove_listboard_edc_listboa_modifie_a5fdf8_idx_and_more.py +25 -0
- edc_listboard/migrations/__init__.py +0 -0
- edc_listboard/models.py +14 -0
- edc_listboard/system_checks.py +15 -0
- edc_listboard/templates/edc_listboard/buttons/dashboard_button.html +2 -0
- edc_listboard/templates/edc_listboard/include/buttons_column.html +12 -0
- edc_listboard/templates/edc_listboard/include/columns.html +13 -0
- edc_listboard/templates/edc_listboard/include/results_body.html +16 -0
- edc_listboard/templates/edc_listboard/include/results_header.html +12 -0
- edc_listboard/templates/edc_listboard/listboard.html +106 -0
- edc_listboard/templates/edc_listboard/search_form.html +38 -0
- edc_listboard/urls.py +9 -0
- edc_listboard/view_mixins/__init__.py +4 -0
- edc_listboard/view_mixins/listboard_filter_view_mixin.py +71 -0
- edc_listboard/view_mixins/querystring_view_mixin.py +33 -0
- edc_listboard/view_mixins/search_form_view_mixin.py +39 -0
- edc_listboard/view_mixins/search_listboard_view_mixin.py +93 -0
- edc_listboard/views/__init__.py +3 -0
- edc_listboard/views/listboard_view.py +238 -0
- edc_listboard/views/screen/__init__.py +4 -0
- edc_listboard/views/screen/listboard_view_filter.py +22 -0
- edc_listboard/views/screen/screening_listboard_view.py +57 -0
- edc_listboard/views/subject/__init__.py +1 -0
- edc_listboard/views/subject/subject_listboard_view.py +39 -0
- edc_locator/__init__.py +0 -0
- edc_locator/action_items.py +20 -0
- edc_locator/admin.py +20 -0
- edc_locator/admin_site.py +5 -0
- edc_locator/apps.py +8 -0
- edc_locator/auths.py +17 -0
- edc_locator/exceptions.py +2 -0
- edc_locator/fieldsets.py +44 -0
- edc_locator/forms/__init__.py +1 -0
- edc_locator/forms/subject_locator_form.py +21 -0
- edc_locator/forms/subject_locator_form_validator.py +70 -0
- edc_locator/migrations/0001_initial.py +625 -0
- edc_locator/migrations/0002_auto_20180103_1322.py +31 -0
- edc_locator/migrations/0003_auto_20180103_1351.py +81 -0
- edc_locator/migrations/0004_auto_20180106_2148.py +83 -0
- edc_locator/migrations/0005_auto_20180116_1411.py +21 -0
- edc_locator/migrations/0006_auto_20180116_1528.py +15 -0
- edc_locator/migrations/0007_auto_20180117_1819.py +15 -0
- edc_locator/migrations/0008_auto_20180409_1009.py +40 -0
- edc_locator/migrations/0009_auto_20180708_1954.py +38 -0
- edc_locator/migrations/0010_auto_20180809_0301.py +20 -0
- edc_locator/migrations/0011_auto_20181007_0053.py +78 -0
- edc_locator/migrations/0012_auto_20181010_2121.py +56 -0
- edc_locator/migrations/0013_auto_20181007_0054.py +16 -0
- edc_locator/migrations/0014_auto_20181009_0545.py +14 -0
- edc_locator/migrations/0015_auto_20181010_2125.py +56 -0
- edc_locator/migrations/0016_auto_20181108_0353.py +19 -0
- edc_locator/migrations/0017_auto_20190114_0250.py +24 -0
- edc_locator/migrations/0018_auto_20190305_0123.py +99 -0
- edc_locator/migrations/0019_auto_20190626_1629.py +20 -0
- edc_locator/migrations/0020_auto_20190922_0439.py +20 -0
- edc_locator/migrations/0021_auto_20191024_1000.py +22 -0
- edc_locator/migrations/0022_auto_20200729_2310.py +28 -0
- edc_locator/migrations/0023_auto_20210203_0706.py +86 -0
- edc_locator/migrations/0024_auto_20210911_2036.py +22 -0
- edc_locator/migrations/0025_auto_20220704_1841.py +26 -0
- edc_locator/migrations/0026_alter_historicalsubjectlocator_action_identifier_and_more.py +22 -0
- edc_locator/migrations/0027_auto_20220826_0258.py +25 -0
- edc_locator/migrations/0028_auto_20220826_0322.py +22 -0
- edc_locator/migrations/0029_auto_20220826_0406.py +20 -0
- edc_locator/migrations/0030_auto_20220922_2236.py +30 -0
- edc_locator/migrations/0031_alter_subjectlocator_options.py +29 -0
- edc_locator/migrations/0032_alter_subjectlocator_managers.py +25 -0
- edc_locator/migrations/0033_alter_subjectlocator_options.py +30 -0
- edc_locator/migrations/0034_alter_historicalsubjectlocator_device_created_and_more.py +84 -0
- edc_locator/migrations/0035_alter_subjectlocator_options_and_more.py +97 -0
- edc_locator/migrations/0036_alter_historicalsubjectlocator_site_and_more.py +36 -0
- edc_locator/migrations/0037_alter_historicalsubjectlocator_consent_model_and_more.py +33 -0
- edc_locator/migrations/0038_alter_historicalsubjectlocator_may_call_work_and_more.py +31 -0
- edc_locator/migrations/__init__.py +0 -0
- edc_locator/model_mixins/__init__.py +1 -0
- edc_locator/model_mixins/locator_methods_model_mixin.py +26 -0
- edc_locator/model_mixins/locator_model_mixin.py +44 -0
- edc_locator/model_mixins/subject_contact_fields_mixin.py +81 -0
- edc_locator/model_mixins/subject_indirect_contact_fields_mixin.py +53 -0
- edc_locator/model_mixins/subject_work_fields_mixin.py +43 -0
- edc_locator/modeladmin_mixins.py +109 -0
- edc_locator/models.py +36 -0
- edc_locator/offline_models.py +3 -0
- edc_locator/templates/edc_locator/changelist_locator_contact_rules.html +7 -0
- edc_locator/templates/edc_locator/changelist_locator_contacts.html +7 -0
- edc_locator/templates/edc_locator/changelist_locator_subject.html +4 -0
- edc_locator/templates/edc_locator/locator_include.html +50 -0
- edc_locator/urls.py +8 -0
- edc_locator/utils.py +21 -0
- edc_locator/view_mixins/__init__.py +3 -0
- edc_locator/view_mixins/subject_locator_view_mixins.py +84 -0
- edc_ltfu/__init__.py +0 -0
- edc_ltfu/action_items.py +23 -0
- edc_ltfu/admin.py +15 -0
- edc_ltfu/admin_site.py +5 -0
- edc_ltfu/apps.py +8 -0
- edc_ltfu/choices.py +8 -0
- edc_ltfu/constants.py +3 -0
- edc_ltfu/forms/__init__.py +3 -0
- edc_ltfu/forms/ltfu_form.py +24 -0
- edc_ltfu/forms/ltfu_form_validator.py +13 -0
- edc_ltfu/forms/ltfu_form_validator_mixin.py +43 -0
- edc_ltfu/migrations/__init__.py +0 -0
- edc_ltfu/model_mixins.py +86 -0
- edc_ltfu/modeladmin_mixin.py +58 -0
- edc_ltfu/modelform_mixins.py +107 -0
- edc_ltfu/models.py +29 -0
- edc_ltfu/urls.py +8 -0
- edc_ltfu/utils.py +13 -0
- edc_metadata/__init__.py +1 -0
- edc_metadata/admin/__init__.py +2 -0
- edc_metadata/admin/crf_metadata.py +24 -0
- edc_metadata/admin/list_filters.py +24 -0
- edc_metadata/admin/modeladmin_mixins.py +209 -0
- edc_metadata/admin/requisition_metadata.py +32 -0
- edc_metadata/admin_site.py +5 -0
- edc_metadata/apps.py +12 -0
- edc_metadata/auths.py +12 -0
- edc_metadata/choices.py +16 -0
- edc_metadata/constants.py +7 -0
- edc_metadata/management/__init__.py +0 -0
- edc_metadata/management/commands/__init__.py +0 -0
- edc_metadata/management/commands/update_metadata.py +23 -0
- edc_metadata/management/commands/update_metadata_schedule_names.py +57 -0
- edc_metadata/management/commands/validate_entry_status.py +112 -0
- edc_metadata/management/commands/validate_rule_groups.py +10 -0
- edc_metadata/managers.py +47 -0
- edc_metadata/metadata/__init__.py +10 -0
- edc_metadata/metadata/crf_metadata_getter.py +15 -0
- edc_metadata/metadata/metadata.py +391 -0
- edc_metadata/metadata/metadata_getter.py +151 -0
- edc_metadata/metadata/requisition_metadata_getter.py +19 -0
- edc_metadata/metadata_handler.py +109 -0
- edc_metadata/metadata_helper/__init__.py +2 -0
- edc_metadata/metadata_helper/metadata_helper.py +8 -0
- edc_metadata/metadata_helper/metadata_helper_mixin.py +121 -0
- edc_metadata/metadata_inspector.py +66 -0
- edc_metadata/metadata_mixins/__init__.py +1 -0
- edc_metadata/metadata_mixins/source_model_metadata_mixin.py +82 -0
- edc_metadata/metadata_refresher.py +164 -0
- edc_metadata/metadata_rules/__init__.py +21 -0
- edc_metadata/metadata_rules/crf/__init__.py +2 -0
- edc_metadata/metadata_rules/crf/crf_rule.py +33 -0
- edc_metadata/metadata_rules/crf/crf_rule_group.py +109 -0
- edc_metadata/metadata_rules/decorators.py +26 -0
- edc_metadata/metadata_rules/logic.py +56 -0
- edc_metadata/metadata_rules/metadata_rule_evaluator.py +41 -0
- edc_metadata/metadata_rules/persistant_singleton_mixin.py +111 -0
- edc_metadata/metadata_rules/predicate.py +136 -0
- edc_metadata/metadata_rules/requisition/__init__.py +10 -0
- edc_metadata/metadata_rules/requisition/requisition_rule.py +30 -0
- edc_metadata/metadata_rules/requisition/requisition_rule_group.py +133 -0
- edc_metadata/metadata_rules/rule.py +98 -0
- edc_metadata/metadata_rules/rule_evaluator.py +84 -0
- edc_metadata/metadata_rules/rule_group.py +77 -0
- edc_metadata/metadata_rules/rule_group_meta_options.py +66 -0
- edc_metadata/metadata_rules/rule_group_metaclass.py +97 -0
- edc_metadata/metadata_rules/site.py +85 -0
- edc_metadata/metadata_updater.py +86 -0
- edc_metadata/metadata_wrappers/__init__.py +5 -0
- edc_metadata/metadata_wrappers/crf_metadata_wrapper.py +5 -0
- edc_metadata/metadata_wrappers/crf_metadata_wrappers.py +8 -0
- edc_metadata/metadata_wrappers/metadata_wrapper.py +76 -0
- edc_metadata/metadata_wrappers/metadata_wrappers.py +33 -0
- edc_metadata/metadata_wrappers/requisition_metadata_wrapper.py +26 -0
- edc_metadata/metadata_wrappers/requisition_metadata_wrappers.py +10 -0
- edc_metadata/migrations/0001_initial.py +275 -0
- edc_metadata/migrations/0002_auto_20161127_2226.py +41 -0
- edc_metadata/migrations/0003_auto_20161211_1005.py +28 -0
- edc_metadata/migrations/0004_auto_20161221_2323.py +22 -0
- edc_metadata/migrations/0005_auto_20170112_0602.py +101 -0
- edc_metadata/migrations/0006_auto_20170209_0924.py +40 -0
- edc_metadata/migrations/0007_auto_20170810_1032.py +94 -0
- edc_metadata/migrations/0008_auto_20171211_2239.py +47 -0
- edc_metadata/migrations/0009_auto_20180116_1528.py +43 -0
- edc_metadata/migrations/0010_auto_20180706_1519.py +24 -0
- edc_metadata/migrations/0011_auto_20190305_0123.py +99 -0
- edc_metadata/migrations/0012_auto_20190627_2320.py +59 -0
- edc_metadata/migrations/0013_auto_20190706_0706.py +61 -0
- edc_metadata/migrations/0014_auto_20190707_0002.py +27 -0
- edc_metadata/migrations/0015_auto_20190709_0009.py +42 -0
- edc_metadata/migrations/0016_auto_20190922_0439.py +20 -0
- edc_metadata/migrations/0017_auto_20191024_1000.py +33 -0
- edc_metadata/migrations/0018_auto_20200513_0023.py +46 -0
- edc_metadata/migrations/0019_alter_crfmetadata_entry_status_and_more.py +42 -0
- edc_metadata/migrations/0020_alter_crfmetadata_options_and_more.py +48 -0
- edc_metadata/migrations/0021_alter_crfmetadata_managers_and_more.py +29 -0
- edc_metadata/migrations/0022_alter_crfmetadata_options_and_more.py +48 -0
- edc_metadata/migrations/0023_alter_crfmetadata_device_created_and_more.py +84 -0
- edc_metadata/migrations/0024_rename_current_entry_title_crfmetadata_model_verbose_name_and_more.py +22 -0
- edc_metadata/migrations/0025_crfmetadata_document_user_and_more.py +35 -0
- edc_metadata/migrations/0026_rename_model_verbose_name_crfmetadata_document_name_and_more.py +22 -0
- edc_metadata/migrations/0027_alter_crfmetadata_options_and_more.py +228 -0
- edc_metadata/migrations/0028_remove_requisitionmetadata_edc_metadat_subject_51288a_idx_and_more.py +105 -0
- edc_metadata/migrations/0029_alter_crfmetadata_site_and_more.py +37 -0
- edc_metadata/migrations/__init__.py +0 -0
- edc_metadata/model_mixins/__init__.py +1 -0
- edc_metadata/model_mixins/creates/__init__.py +1 -0
- edc_metadata/model_mixins/creates/creates_metadata_model_mixin.py +108 -0
- edc_metadata/model_mixins/metadata_helper_model_mixin.py +12 -0
- edc_metadata/model_mixins/updates/__init__.py +5 -0
- edc_metadata/model_mixins/updates/updates_crf_metadata_model_mixin.py +66 -0
- edc_metadata/model_mixins/updates/updates_metadata_model_mixin.py +121 -0
- edc_metadata/model_mixins/updates/updates_requisition_metadata_model_mixin.py +77 -0
- edc_metadata/models/__init__.py +7 -0
- edc_metadata/models/crf_metadata.py +89 -0
- edc_metadata/models/crf_metadata_model_mixin.py +132 -0
- edc_metadata/models/requisition_metadata.py +120 -0
- edc_metadata/models/signals.py +107 -0
- edc_metadata/next_form_getter.py +131 -0
- edc_metadata/offline_models.py +13 -0
- edc_metadata/requisition/__init__.py +4 -0
- edc_metadata/requisition/requisition_metadata_handler.py +50 -0
- edc_metadata/requisition/requisition_metadata_updater.py +47 -0
- edc_metadata/stubs.py +111 -0
- edc_metadata/system_checks.py +18 -0
- edc_metadata/templates/edc_metadata/home.html +2 -0
- edc_metadata/update_metadata_on_schedule_change.py +70 -0
- edc_metadata/urls.py +11 -0
- edc_metadata/utils.py +130 -0
- edc_metadata/view_mixins/__init__.py +1 -0
- edc_metadata/view_mixins/metadata_view_mixin.py +51 -0
- edc_metadata/views/__init__.py +2 -0
- edc_metadata/views/home_view.py +13 -0
- edc_metadata/views/refresh_metadata_actions_view.py +71 -0
- edc_model/__init__.py +9 -0
- edc_model/apps.py +25 -0
- edc_model/choices.py +6 -0
- edc_model/constants.py +7 -0
- edc_model/models/__init__.py +20 -0
- edc_model/models/address_mixin.py +28 -0
- edc_model/models/base_model.py +24 -0
- edc_model/models/base_uuid_model.py +20 -0
- edc_model/models/fields/__init__.py +7 -0
- edc_model/models/fields/date_estimated.py +52 -0
- edc_model/models/fields/duration.py +59 -0
- edc_model/models/fields/hostname_modification_field.py +18 -0
- edc_model/models/fields/identity_type_field.py +39 -0
- edc_model/models/fields/initials_field.py +36 -0
- edc_model/models/fields/other_charfield.py +30 -0
- edc_model/models/fields/userfield.py +27 -0
- edc_model/models/historical_records.py +70 -0
- edc_model/models/name_fields_model_mixin.py +59 -0
- edc_model/models/report_status_model_mixin.py +22 -0
- edc_model/models/signals.py +30 -0
- edc_model/models/url_model_mixin.py +77 -0
- edc_model/static/edc_model/slider.css +46 -0
- edc_model/static/edc_model/slider.png +0 -0
- edc_model/stubs.py +46 -0
- edc_model/system_checks.py +12 -0
- edc_model/templates/edc_model/widgets/slider.html +22 -0
- edc_model/utils.py +255 -0
- edc_model/validators/__init__.py +10 -0
- edc_model/validators/date.py +37 -0
- edc_model/validators/duration.py +33 -0
- edc_model/validators/phone.py +28 -0
- edc_model/widgets/__init__.py +1 -0
- edc_model/widgets/slider_widget.py +39 -0
- edc_model_admin/__init__.py +0 -0
- edc_model_admin/admin_site.py +111 -0
- edc_model_admin/apps.py +11 -0
- edc_model_admin/changelist_buttons/__init__.py +2 -0
- edc_model_admin/changelist_buttons/model_admin_changelist_button_mixin.py +81 -0
- edc_model_admin/changelist_buttons/model_admin_changelist_model_button_mixin.py +101 -0
- edc_model_admin/context_processors.py +26 -0
- edc_model_admin/dashboard/__init__.py +4 -0
- edc_model_admin/dashboard/model_admin_crf_dashboard_mixin.py +39 -0
- edc_model_admin/dashboard/model_admin_dashboard_mixin.py +93 -0
- edc_model_admin/dashboard/model_admin_stacked_inline_mixin.py +26 -0
- edc_model_admin/dashboard/model_admin_subject_dashboard_mixin.py +58 -0
- edc_model_admin/history/__init__.py +1 -0
- edc_model_admin/history/model_admin_simple_history.py +66 -0
- edc_model_admin/list_filters/__init__.py +4 -0
- edc_model_admin/list_filters/future_date_list_filter.py +109 -0
- edc_model_admin/list_filters/list_field_with_other_list_filter.py +80 -0
- edc_model_admin/list_filters/past_date_list_filter.py +120 -0
- edc_model_admin/list_filters/report_date_list_filter.py +10 -0
- edc_model_admin/locale/lg/LC_MESSAGES/django.po +268 -0
- edc_model_admin/locale/sw/LC_MESSAGES/django.po +283 -0
- edc_model_admin/mixins/__init__.py +31 -0
- edc_model_admin/mixins/address_model_admin_mixin.py +25 -0
- edc_model_admin/mixins/base_model_admin_redirect_mixin.py +45 -0
- edc_model_admin/mixins/inlines/__init__.py +4 -0
- edc_model_admin/mixins/inlines/inline_hide_original_object_name_mixin.py +31 -0
- edc_model_admin/mixins/inlines/limited_admin_inline_mixin.py +56 -0
- edc_model_admin/mixins/inlines/stacked_inline_modeladmin_mixin.py +5 -0
- edc_model_admin/mixins/inlines/tabular_inline_mixin.py +15 -0
- edc_model_admin/mixins/model_admin_bypass_default_form_cls_mixin.py +153 -0
- edc_model_admin/mixins/model_admin_form_auto_number_mixin.py +50 -0
- edc_model_admin/mixins/model_admin_form_instructions_mixin.py +80 -0
- edc_model_admin/mixins/model_admin_hide_delete_button_on_condition.py +23 -0
- edc_model_admin/mixins/model_admin_institution_mixin.py +7 -0
- edc_model_admin/mixins/model_admin_limit_to_selected_foreignkey.py +34 -0
- edc_model_admin/mixins/model_admin_model_redirect_mixin.py +49 -0
- edc_model_admin/mixins/model_admin_next_url_redirect_mixin.py +178 -0
- edc_model_admin/mixins/model_admin_protect_pii_mixin.py +69 -0
- edc_model_admin/mixins/model_admin_redirect_all_to_changelist_mixin.py +79 -0
- edc_model_admin/mixins/model_admin_redirect_on_delete_mixin.py +86 -0
- edc_model_admin/mixins/model_admin_replace_label_text_mixin.py +21 -0
- edc_model_admin/mixins/templates_model_admin_mixin.py +72 -0
- edc_model_admin/static/edc_model_admin/admin/css/dark_mode.css +33 -0
- edc_model_admin/static/edc_model_admin/admin/css/edc_model_admin.css +23 -0
- edc_model_admin/static/edc_model_admin/admin/css/themes/edc_deep_purple.css +19 -0
- edc_model_admin/static/edc_model_admin/admin/css/themes/edc_indigo.css +20 -0
- edc_model_admin/static/edc_model_admin/admin/css/themes/edc_purple.css +20 -0
- edc_model_admin/static/edc_model_admin/admin/js/delay_save_buttons.js +21 -0
- edc_model_admin/system_checks.py +15 -0
- edc_model_admin/templates/edc_model_admin/admin/app_index.html +35 -0
- edc_model_admin/templates/edc_model_admin/admin/change_form.html +73 -0
- edc_model_admin/templates/edc_model_admin/admin/change_list.html +39 -0
- edc_model_admin/templates/edc_model_admin/admin/delete_confirmation.html +74 -0
- edc_model_admin/templates/edc_model_admin/admin/index.html +82 -0
- edc_model_admin/templates/edc_model_admin/admin/object_history.html +50 -0
- edc_model_admin/templates/edc_model_admin/admin/object_history_form.html +42 -0
- edc_model_admin/templates/edc_model_admin/admin/tabular.html +65 -0
- edc_model_admin/templates/edc_model_admin/changelist_model_button.html +1 -0
- edc_model_admin/templates/edc_model_admin/edc_additional_instructions.html +10 -0
- edc_model_admin/templates/edc_model_admin/edc_instructions.html +4 -0
- edc_model_admin/templates/edc_model_admin/edc_revision_line.html +12 -0
- edc_model_admin/templates/edc_model_admin/edc_submit_line.html +21 -0
- edc_model_admin/templates/edc_model_admin/logout_row.html +36 -0
- edc_model_admin/templates/edc_model_admin/navbar_for_admin_templates.html +71 -0
- edc_model_admin/templates/edc_model_admin/navbar_for_admin_templates_b3.html +7 -0
- edc_model_admin/templates/edc_model_admin/yes_no_coloring.html +5 -0
- edc_model_admin/templatetags/__init__.py +0 -0
- edc_model_admin/templatetags/edc_admin_modify.py +194 -0
- edc_model_admin/utils.py +65 -0
- edc_model_fields/__init__.py +0 -0
- edc_model_fields/apps.py +6 -0
- edc_model_fields/fields/__init__.py +7 -0
- edc_model_fields/fields/custom_django_fields.py +39 -0
- edc_model_fields/fields/date_estimated.py +52 -0
- edc_model_fields/fields/hostname_modification_field.py +18 -0
- edc_model_fields/fields/identity_type_field.py +39 -0
- edc_model_fields/fields/initials_field.py +43 -0
- edc_model_fields/fields/other_charfield.py +33 -0
- edc_model_fields/fields/userfield.py +27 -0
- edc_model_fields/models.py +0 -0
- edc_model_fields/static/edc_model_fields/slider.css +46 -0
- edc_model_fields/static/edc_model_fields/slider.png +0 -0
- edc_model_fields/templates/edc_model_fields/widgets/slider.html +22 -0
- edc_model_fields/utils.py +49 -0
- edc_model_fields/widgets/__init__.py +1 -0
- edc_model_fields/widgets/slider_widget.py +39 -0
- edc_model_form/__init__.py +0 -0
- edc_model_form/apps.py +8 -0
- edc_model_form/mixins/__init__.py +9 -0
- edc_model_form/mixins/base_model_form_mixin.py +64 -0
- edc_model_form/mixins/inline_model_form_mixin.py +89 -0
- edc_model_form/mixins/report_datetime_modelform_mixin.py +29 -0
- edc_model_form/urls.py +4 -0
- edc_model_form/utils.py +17 -0
- edc_model_to_dataframe/__init__.py +2 -0
- edc_model_to_dataframe/apps.py +10 -0
- edc_model_to_dataframe/constants.py +29 -0
- edc_model_to_dataframe/model_to_dataframe.py +499 -0
- edc_model_to_dataframe/read_frame_edc.py +25 -0
- edc_model_to_dataframe/urls.py +6 -0
- edc_navbar/__init__.py +5 -0
- edc_navbar/apps.py +12 -0
- edc_navbar/auth_objects.py +14 -0
- edc_navbar/auths.py +20 -0
- edc_navbar/exceptions.py +14 -0
- edc_navbar/get_default_navbar.py +11 -0
- edc_navbar/migrations/0001_initial.py +26 -0
- edc_navbar/migrations/0002_auto_20210423_1451.py +17 -0
- edc_navbar/migrations/0003_alter_navbar_options.py +16 -0
- edc_navbar/migrations/0004_auto_20220825_0451.py +103 -0
- edc_navbar/migrations/0005_auto_20220910_0210.py +18 -0
- edc_navbar/migrations/0006_alter_edcpermissions_device_created_and_more.py +49 -0
- edc_navbar/migrations/0007_alter_edcpermissions_options_and_more.py +63 -0
- edc_navbar/migrations/__init__.py +0 -0
- edc_navbar/models.py +9 -0
- edc_navbar/navbar.py +53 -0
- edc_navbar/navbar_item.py +62 -0
- edc_navbar/navbars.py +43 -0
- edc_navbar/site_navbars.py +113 -0
- edc_navbar/system_checks.py +42 -0
- edc_navbar/templates/edc_navbar/edc_navbar.html +14 -0
- edc_navbar/templates/edc_navbar/navbar_item.html +2 -0
- edc_navbar/templates/edc_navbar/select_language_item.html +13 -0
- edc_navbar/templatetags/__init__.py +0 -0
- edc_navbar/templatetags/edc_navbar_extras.py +40 -0
- edc_navbar/urls.py +1 -0
- edc_navbar/utils.py +9 -0
- edc_navbar/view_mixin.py +40 -0
- edc_navbar/wsgi.py +16 -0
- edc_notification/__init__.py +0 -0
- edc_notification/admin.py +14 -0
- edc_notification/admin_site.py +7 -0
- edc_notification/apps.py +16 -0
- edc_notification/auth_objects.py +7 -0
- edc_notification/auths.py +12 -0
- edc_notification/constants.py +3 -0
- edc_notification/decorators.py +21 -0
- edc_notification/mailing_list_manager.py +185 -0
- edc_notification/management/commands/list_recipients_by_notification.py +15 -0
- edc_notification/migrations/0001_initial.py +93 -0
- edc_notification/migrations/0002_update_notifications.py +15 -0
- edc_notification/migrations/0003_auto_20181111_2336.py +12 -0
- edc_notification/migrations/0004_auto_20190305_0123.py +56 -0
- edc_notification/migrations/0005_notification_mailing_list_address.py +20 -0
- edc_notification/migrations/0006_auto_20200513_0023.py +27 -0
- edc_notification/migrations/0007_alter_notification_options.py +28 -0
- edc_notification/migrations/0008_alter_notification_device_created_and_more.py +49 -0
- edc_notification/migrations/0009_alter_notification_options_and_more.py +63 -0
- edc_notification/migrations/__init__.py +0 -0
- edc_notification/model_mixins/__init__.py +2 -0
- edc_notification/model_mixins/notification_model_mixin.py +10 -0
- edc_notification/model_mixins/notification_user_profile_model_mixin.py +22 -0
- edc_notification/modeladmin_mixins.py +53 -0
- edc_notification/models/__init__.py +3 -0
- edc_notification/models/notification.py +34 -0
- edc_notification/models/signals.py +68 -0
- edc_notification/notification/__init__.py +5 -0
- edc_notification/notification/graded_event_notification.py +19 -0
- edc_notification/notification/model_notification.py +214 -0
- edc_notification/notification/new_model_notification.py +6 -0
- edc_notification/notification/notification.py +335 -0
- edc_notification/notification/updated_model_notification.py +14 -0
- edc_notification/post_migrate_signals.py +5 -0
- edc_notification/site_notifications.py +229 -0
- edc_notification/stubs.py +39 -0
- edc_notification/system_checks.py +48 -0
- edc_notification/update_mailing_lists_in_m2m.py +59 -0
- edc_notification/urls.py +12 -0
- edc_notification/utils.py +15 -0
- edc_offstudy/__init__.py +0 -0
- edc_offstudy/action_items.py +33 -0
- edc_offstudy/admin.py +41 -0
- edc_offstudy/admin_site.py +5 -0
- edc_offstudy/apps.py +8 -0
- edc_offstudy/auth_objects.py +10 -0
- edc_offstudy/auths.py +17 -0
- edc_offstudy/choices.py +11 -0
- edc_offstudy/constants.py +7 -0
- edc_offstudy/exceptions.py +6 -0
- edc_offstudy/migrations/0001_initial.py +132 -0
- edc_offstudy/migrations/0002_auto_20180921_0434.py +191 -0
- edc_offstudy/migrations/0003_auto_20181108_0353.py +19 -0
- edc_offstudy/migrations/0004_auto_20190114_0250.py +24 -0
- edc_offstudy/migrations/0005_auto_20190305_0123.py +99 -0
- edc_offstudy/migrations/0006_auto_20190922_0439.py +20 -0
- edc_offstudy/migrations/0007_auto_20191024_1000.py +22 -0
- edc_offstudy/migrations/0008_auto_20191102_0033.py +31 -0
- edc_offstudy/migrations/0009_auto_20200513_0023.py +27 -0
- edc_offstudy/migrations/0010_auto_20220704_1841.py +26 -0
- edc_offstudy/migrations/0011_auto_20220714_2136.py +40 -0
- edc_offstudy/migrations/0012_rename_offstudy_reason_other_historicalsubjectoffstudy_other_offstudy_reason_and_more.py +72 -0
- edc_offstudy/migrations/0013_alter_historicalsubjectoffstudy_options_and_more.py +41 -0
- edc_offstudy/migrations/0014_auto_20220918_0508.py +32 -0
- edc_offstudy/migrations/0015_auto_20220925_0032.py +142 -0
- edc_offstudy/migrations/0016_auto_20220929_1742.py +31 -0
- edc_offstudy/migrations/0017_alter_subjectoffstudy_options.py +30 -0
- edc_offstudy/migrations/0018_alter_subjectoffstudy_managers.py +21 -0
- edc_offstudy/migrations/0019_alter_historicalsubjectoffstudy_device_created_and_more.py +84 -0
- edc_offstudy/migrations/0020_alter_subjectoffstudy_options_and_more.py +100 -0
- edc_offstudy/migrations/0021_remove_historicalsubjectoffstudy_consent_model_and_more.py +52 -0
- edc_offstudy/migrations/__init__.py +0 -0
- edc_offstudy/model_mixins/__init__.py +3 -0
- edc_offstudy/model_mixins/offstudy_crf_model_mixin.py +31 -0
- edc_offstudy/model_mixins/offstudy_model_mixin.py +84 -0
- edc_offstudy/model_mixins/offstudy_non_crf_model_mixin.py +35 -0
- edc_offstudy/modelform_mixins/__init__.py +4 -0
- edc_offstudy/modelform_mixins/crf/__init__.py +1 -0
- edc_offstudy/modelform_mixins/crf/offstudy_crf_modelform_mixin.py +61 -0
- edc_offstudy/modelform_mixins/offstudy_modelform_mixins.py +36 -0
- edc_offstudy/modelform_mixins/prn/__init__.py +1 -0
- edc_offstudy/modelform_mixins/prn/offstudy_non_crf_modelform_mixin.py +24 -0
- edc_offstudy/modelform_mixins/requisition/__init__.py +1 -0
- edc_offstudy/modelform_mixins/requisition/offstudy_requisition_modelform_mixin.py +7 -0
- edc_offstudy/models.py +28 -0
- edc_offstudy/offline_models.py +3 -0
- edc_offstudy/templates/edc_offstudy/visit_schedule_row.html +5 -0
- edc_offstudy/templatetags/__init__.py +0 -0
- edc_offstudy/templatetags/edc_offstudy_extras.py +34 -0
- edc_offstudy/urls.py +11 -0
- edc_offstudy/utils.py +61 -0
- edc_pdf_reports/__init__.py +3 -0
- edc_pdf_reports/admin/__init__.py +2 -0
- edc_pdf_reports/admin/actions.py +17 -0
- edc_pdf_reports/admin/modeladmin_mixins.py +27 -0
- edc_pdf_reports/apps.py +5 -0
- edc_pdf_reports/crf_pdf_report.py +327 -0
- edc_pdf_reports/flowables/__init__.py +3 -0
- edc_pdf_reports/flowables/checkbox.py +29 -0
- edc_pdf_reports/flowables/textbox.py +46 -0
- edc_pdf_reports/flowables/textfield.py +43 -0
- edc_pdf_reports/model_mixins.py +23 -0
- edc_pdf_reports/numbered_canvas.py +55 -0
- edc_pdf_reports/report.py +212 -0
- edc_pdf_reports/static/edc_pdf_reports/clinicedc_logo.jpg +0 -0
- edc_pdf_reports/templates/edc_pdf_reports/pdf_button.html +1 -0
- edc_pdf_reports/templates/edc_pdf_reports/pdf_intermediate_edc.html +30 -0
- edc_pdf_reports/templates/edc_pdf_reports/pdf_intermediate_generic.html +30 -0
- edc_pdf_reports/urls.py +23 -0
- edc_pdf_reports/utils.py +64 -0
- edc_pdf_reports/views/__init__.py +2 -0
- edc_pdf_reports/views/pdf_intermediate_view.py +68 -0
- edc_pdf_reports/views/print_pdf_report_view.py +109 -0
- edc_pdutils/__init__.py +0 -0
- edc_pdutils/actions.py +34 -0
- edc_pdutils/admin_site.py +5 -0
- edc_pdutils/apps.py +10 -0
- edc_pdutils/choices.py +8 -0
- edc_pdutils/column_handlers/__init__.py +2 -0
- edc_pdutils/column_handlers/column_apply.py +17 -0
- edc_pdutils/column_handlers/column_map.py +22 -0
- edc_pdutils/constants.py +38 -0
- edc_pdutils/database.py +129 -0
- edc_pdutils/dataframes/__init__.py +6 -0
- edc_pdutils/dataframes/get_appointments.py +69 -0
- edc_pdutils/dataframes/get_crf.py +131 -0
- edc_pdutils/dataframes/get_eos.py +42 -0
- edc_pdutils/dataframes/get_next_appointments.py +28 -0
- edc_pdutils/dataframes/get_subject_consent.py +60 -0
- edc_pdutils/dataframes/get_subject_visit.py +147 -0
- edc_pdutils/df_exporters/__init__.py +6 -0
- edc_pdutils/df_exporters/csv_crf_inline_tables_exporter.py +83 -0
- edc_pdutils/df_exporters/csv_crf_tables_exporter.py +35 -0
- edc_pdutils/df_exporters/csv_exporter.py +280 -0
- edc_pdutils/df_exporters/csv_model_exporter.py +52 -0
- edc_pdutils/df_exporters/csv_noncrf_tables_exporter.py +24 -0
- edc_pdutils/df_exporters/tables_exporter.py +133 -0
- edc_pdutils/df_handlers/__init__.py +3 -0
- edc_pdutils/df_handlers/crf_df_handler.py +88 -0
- edc_pdutils/df_handlers/df_handler.py +69 -0
- edc_pdutils/df_handlers/non_crf_df_handler.py +22 -0
- edc_pdutils/df_handlers/registered_subject_df_handler.py +63 -0
- edc_pdutils/dialects/__init__.py +3 -0
- edc_pdutils/dialects/crf_dialect.py +73 -0
- edc_pdutils/dialects/mysql_dialect.py +90 -0
- edc_pdutils/dialects/rs_dialect.py +16 -0
- edc_pdutils/helper.py +53 -0
- edc_pdutils/management/__init__.py +0 -0
- edc_pdutils/management/commands/__init__.py +0 -0
- edc_pdutils/management/commands/export_models.py +281 -0
- edc_pdutils/mappings.py +3 -0
- edc_pdutils/migrations/0001_initial.py +310 -0
- edc_pdutils/migrations/0002_auto_20180921_2242.py +15 -0
- edc_pdutils/migrations/__init__.py +0 -0
- edc_pdutils/models.py +0 -0
- edc_pdutils/site.py +95 -0
- edc_pdutils/site_values_mappings.py +101 -0
- edc_pdutils/table_to_dataframe/__init__.py +2 -0
- edc_pdutils/table_to_dataframe/helper.py +31 -0
- edc_pdutils/table_to_dataframe/table_to_dataframe.py +27 -0
- edc_pdutils/tables/__init__.py +4 -0
- edc_pdutils/tables/aliquot.py +102 -0
- edc_pdutils/tables/consent.py +48 -0
- edc_pdutils/tables/crf.py +75 -0
- edc_pdutils/tables/requisition.py +77 -0
- edc_pdutils/tables/table.py +35 -0
- edc_pdutils/tables/visit.py +37 -0
- edc_pdutils/urls.py +11 -0
- edc_pdutils/utils/__init__.py +14 -0
- edc_pdutils/utils/convert_dates_from_model.py +36 -0
- edc_pdutils/utils/convert_numbers_to_float64_int64.py +12 -0
- edc_pdutils/utils/convert_numbers_to_nullable_dtype.py +12 -0
- edc_pdutils/utils/convert_numerics_from_model.py +15 -0
- edc_pdutils/utils/convert_timedelta_from_model.py +15 -0
- edc_pdutils/utils/datetime_to_date.py +9 -0
- edc_pdutils/utils/decrypt.py +24 -0
- edc_pdutils/utils/get_export_folder.py +9 -0
- edc_pdutils/utils/identity256.py +26 -0
- edc_pdutils/utils/missing_subject_identifiers.py +50 -0
- edc_pdutils/utils/model_from_table_name.py +5 -0
- edc_pdutils/utils/refresh_model_from_dataframe.py +19 -0
- edc_pdutils/utils/table_names.py +59 -0
- edc_pdutils/utils/undash.py +16 -0
- edc_pharmacy/__init__.py +0 -0
- edc_pharmacy/action_items.py +27 -0
- edc_pharmacy/admin/__init__.py +39 -0
- edc_pharmacy/admin/actions/__init__.py +25 -0
- edc_pharmacy/admin/actions/allocate_stock_to_subject.py +27 -0
- edc_pharmacy/admin/actions/confirm_stock.py +88 -0
- edc_pharmacy/admin/actions/delete_items_for_stock_request.py +21 -0
- edc_pharmacy/admin/actions/delete_order_items.py +38 -0
- edc_pharmacy/admin/actions/delete_receive_items.py +35 -0
- edc_pharmacy/admin/actions/go_to_add_repack_request.py +29 -0
- edc_pharmacy/admin/actions/go_to_allocations.py +19 -0
- edc_pharmacy/admin/actions/go_to_stock.py +19 -0
- edc_pharmacy/admin/actions/prepare_stock_request_items.py +47 -0
- edc_pharmacy/admin/actions/print_labels.py +172 -0
- edc_pharmacy/admin/actions/print_stock_labels.py +41 -0
- edc_pharmacy/admin/actions/print_stock_report.py +20 -0
- edc_pharmacy/admin/actions/print_transfer_stock_manifest.py +23 -0
- edc_pharmacy/admin/actions/process_repack_request.py +76 -0
- edc_pharmacy/admin/actions/storage_bin.py +35 -0
- edc_pharmacy/admin/actions/transfer_stock.py +23 -0
- edc_pharmacy/admin/autocomplete_admin.py +17 -0
- edc_pharmacy/admin/list_filters.py +456 -0
- edc_pharmacy/admin/medication/__init__.py +8 -0
- edc_pharmacy/admin/medication/assignment_admin.py +45 -0
- edc_pharmacy/admin/medication/dosage_guideline_admin.py +38 -0
- edc_pharmacy/admin/medication/formulation_admin.py +75 -0
- edc_pharmacy/admin/medication/formulation_type_admin.py +11 -0
- edc_pharmacy/admin/medication/frequency_units_admin.py +11 -0
- edc_pharmacy/admin/medication/medication_admin.py +30 -0
- edc_pharmacy/admin/medication/route_admin.py +11 -0
- edc_pharmacy/admin/medication/units_admin.py +11 -0
- edc_pharmacy/admin/model_admin_mixin.py +56 -0
- edc_pharmacy/admin/prescription/__init__.py +2 -0
- edc_pharmacy/admin/prescription/rx_admin.py +98 -0
- edc_pharmacy/admin/prescription/rx_refill_admin.py +198 -0
- edc_pharmacy/admin/remove_fields_for_blinded_users.py +23 -0
- edc_pharmacy/admin/reports/__init__.py +1 -0
- edc_pharmacy/admin/reports/stock_availability_admin.py +129 -0
- edc_pharmacy/admin/scan_duplicates_admin.py +29 -0
- edc_pharmacy/admin/stock/__init__.py +27 -0
- edc_pharmacy/admin/stock/allocation_admin.py +237 -0
- edc_pharmacy/admin/stock/allocation_proxy_admin.py +35 -0
- edc_pharmacy/admin/stock/confirmation_admin.py +87 -0
- edc_pharmacy/admin/stock/confirmation_at_site_admin.py +114 -0
- edc_pharmacy/admin/stock/confirmation_at_site_item_admin.py +131 -0
- edc_pharmacy/admin/stock/container_admin.py +111 -0
- edc_pharmacy/admin/stock/container_type_admin.py +14 -0
- edc_pharmacy/admin/stock/container_units_admin.py +14 -0
- edc_pharmacy/admin/stock/dispense_admin.py +114 -0
- edc_pharmacy/admin/stock/dispense_item_admin.py +117 -0
- edc_pharmacy/admin/stock/location_admin.py +51 -0
- edc_pharmacy/admin/stock/lot_admin.py +130 -0
- edc_pharmacy/admin/stock/order_admin.py +129 -0
- edc_pharmacy/admin/stock/order_item_admin.py +261 -0
- edc_pharmacy/admin/stock/product_admin.py +82 -0
- edc_pharmacy/admin/stock/receive_admin.py +132 -0
- edc_pharmacy/admin/stock/receive_item_admin.py +174 -0
- edc_pharmacy/admin/stock/repack_request_admin.py +195 -0
- edc_pharmacy/admin/stock/stock_adjustment_admin.py +83 -0
- edc_pharmacy/admin/stock/stock_admin.py +473 -0
- edc_pharmacy/admin/stock/stock_proxy_admin.py +120 -0
- edc_pharmacy/admin/stock/stock_request_admin.py +273 -0
- edc_pharmacy/admin/stock/stock_request_item_admin.py +231 -0
- edc_pharmacy/admin/stock/stock_transfer_admin.py +170 -0
- edc_pharmacy/admin/stock/stock_transfer_item_admin.py +181 -0
- edc_pharmacy/admin/stock/storage_bin_admin.py +112 -0
- edc_pharmacy/admin/stock/storage_bin_item_admin.py +120 -0
- edc_pharmacy/admin/stock/supplier_admin.py +71 -0
- edc_pharmacy/admin/utils.py +17 -0
- edc_pharmacy/admin_mixin.py +24 -0
- edc_pharmacy/admin_site.py +8 -0
- edc_pharmacy/analytics/__init__.py +5 -0
- edc_pharmacy/analytics/dataframes/__init__.py +6 -0
- edc_pharmacy/analytics/dataframes/get_next_scheduled_visit_for_subjects_df.py +130 -0
- edc_pharmacy/analytics/dataframes/in_stock_for_subjects_df.py +78 -0
- edc_pharmacy/analytics/dataframes/no_stock_for_subjects_df.py +9 -0
- edc_pharmacy/analytics/dataframes/stock_for_subjects.py +116 -0
- edc_pharmacy/approve_prescription.py +19 -0
- edc_pharmacy/apps.py +8 -0
- edc_pharmacy/auth_objects.py +95 -0
- edc_pharmacy/auths.py +38 -0
- edc_pharmacy/choices.py +46 -0
- edc_pharmacy/constants.py +21 -0
- edc_pharmacy/dosage_calculator.py +73 -0
- edc_pharmacy/dosage_per_day.py +11 -0
- edc_pharmacy/exceptions.py +142 -0
- edc_pharmacy/form_validators/__init__.py +1 -0
- edc_pharmacy/form_validators/crf/__init__.py +1 -0
- edc_pharmacy/form_validators/crf/study_medication_form_validator.py +198 -0
- edc_pharmacy/forms/__init__.py +24 -0
- edc_pharmacy/forms/medication/__init__.py +3 -0
- edc_pharmacy/forms/medication/dosage_guideline_form.py +17 -0
- edc_pharmacy/forms/medication/formulation_form.py +9 -0
- edc_pharmacy/forms/medication/medication_form.py +9 -0
- edc_pharmacy/forms/prescription/__init__.py +2 -0
- edc_pharmacy/forms/prescription/rx_form.py +30 -0
- edc_pharmacy/forms/prescription/rx_refill_form.py +9 -0
- edc_pharmacy/forms/stock/__init__.py +20 -0
- edc_pharmacy/forms/stock/confirmation_form.py +13 -0
- edc_pharmacy/forms/stock/container_form.py +30 -0
- edc_pharmacy/forms/stock/container_type_form.py +10 -0
- edc_pharmacy/forms/stock/container_units_form.py +10 -0
- edc_pharmacy/forms/stock/dispense_form.py +13 -0
- edc_pharmacy/forms/stock/location_form.py +21 -0
- edc_pharmacy/forms/stock/lot_form.py +20 -0
- edc_pharmacy/forms/stock/order_form.py +38 -0
- edc_pharmacy/forms/stock/order_item_form.py +9 -0
- edc_pharmacy/forms/stock/product_form.py +23 -0
- edc_pharmacy/forms/stock/receive_form.py +32 -0
- edc_pharmacy/forms/stock/receive_item_form.py +61 -0
- edc_pharmacy/forms/stock/repack_request_form.py +71 -0
- edc_pharmacy/forms/stock/stock_form.py +20 -0
- edc_pharmacy/forms/stock/stock_request_form.py +119 -0
- edc_pharmacy/forms/stock/stock_request_item_form.py +31 -0
- edc_pharmacy/forms/stock/stock_transfer_form.py +32 -0
- edc_pharmacy/forms/stock/storage_bin_form.py +27 -0
- edc_pharmacy/forms/stock/storage_bin_item_form.py +10 -0
- edc_pharmacy/forms/stock/supplier_form.py +13 -0
- edc_pharmacy/labels/__init__.py +6 -0
- edc_pharmacy/labels/draw_bulk_stock_label_code128.py +58 -0
- edc_pharmacy/labels/draw_bulk_stock_label_code39.py +40 -0
- edc_pharmacy/labels/draw_label_watermark.py +20 -0
- edc_pharmacy/labels/draw_patient_stock_label_code128.py +46 -0
- edc_pharmacy/labels/draw_vertical_barcode_only_code128.py +51 -0
- edc_pharmacy/labels/label_data.py +15 -0
- edc_pharmacy/list_data.py +54 -0
- edc_pharmacy/locale/lg/LC_MESSAGES/django.po +156 -0
- edc_pharmacy/locale/sw/LC_MESSAGES/django.po +162 -0
- edc_pharmacy/management/__init__.py +0 -0
- edc_pharmacy/management/commands/__init__.py +0 -0
- edc_pharmacy/management/commands/update_initial_pharmacy_data.py +10 -0
- edc_pharmacy/migrations/0001_initial.py +4345 -0
- edc_pharmacy/migrations/0002_alter_medication_unique_together.py +16 -0
- edc_pharmacy/migrations/0003_alter_rxrefill_unique_together.py +19 -0
- edc_pharmacy/migrations/0004_auto_20220414_1741.py +57 -0
- edc_pharmacy/migrations/0005_alter_rx_managers.py +24 -0
- edc_pharmacy/migrations/0006_historicalrxrefill_roundup_divisible_by_and_more.py +22 -0
- edc_pharmacy/migrations/0007_auto_20220704_1841.py +194 -0
- edc_pharmacy/migrations/0008_auto_20220706_2324.py +116 -0
- edc_pharmacy/migrations/0009_auto_20220708_0805.py +59 -0
- edc_pharmacy/migrations/0010_auto_20220708_0813.py +62 -0
- edc_pharmacy/migrations/0011_auto_20220826_0406.py +22 -0
- edc_pharmacy/migrations/0012_auto_20220907_0157.py +45 -0
- edc_pharmacy/migrations/0013_auto_20220907_0202.py +41 -0
- edc_pharmacy/migrations/0014_auto_20220907_0207.py +30 -0
- edc_pharmacy/migrations/0015_auto_20220913_2139.py +1355 -0
- edc_pharmacy/migrations/0016_auto_20220929_1742.py +27 -0
- edc_pharmacy/migrations/0017_alter_box_options_alter_dispensinghistory_options_and_more.py +390 -0
- edc_pharmacy/migrations/0018_alter_rxrefill_managers.py +25 -0
- edc_pharmacy/migrations/0019_container_extra_value_containertype_extra_value_and_more.py +47 -0
- edc_pharmacy/migrations/0020_alter_box_device_created_alter_box_device_modified_and_more.py +1242 -0
- edc_pharmacy/migrations/0021_alter_box_options_alter_container_options_and_more.py +1854 -0
- edc_pharmacy/migrations/0022_alter_historicalproduct_site_alter_historicalrx_site_and_more.py +102 -0
- edc_pharmacy/migrations/0023_remove_rx_edc_pharmac_modifie_986021_idx_and_more.py +32 -0
- edc_pharmacy/migrations/0024_allocation_assignment_containerunits_dispense_and_more.py +6835 -0
- edc_pharmacy/migrations/0025_alter_stock_receive_item.py +23 -0
- edc_pharmacy/migrations/0026_historicalstockrequest_cutoff_datetime_and_more.py +27 -0
- edc_pharmacy/migrations/0027_rename_at_location_historicalstock_transferred_and_more.py +23 -0
- edc_pharmacy/migrations/0028_remove_historicalstock_transferred_and_more.py +24 -0
- edc_pharmacy/migrations/0029_remove_historicalrepackrequest_qty_and_more.py +41 -0
- edc_pharmacy/migrations/0030_remove_historicalrepackrequest_processed_and_more.py +41 -0
- edc_pharmacy/migrations/0031_historicalrepackrequest_task_id_and_more.py +67 -0
- edc_pharmacy/migrations/0032_historicalstockrequest_task_id_stockrequest_task_id.py +23 -0
- edc_pharmacy/migrations/0033_container_display_name_and_more.py +25 -0
- edc_pharmacy/migrations/0034_rename_display_label_assignment_display_name_and_more.py +23 -0
- edc_pharmacy/migrations/0035_container_max_per_subject_and_more.py +27 -0
- edc_pharmacy/migrations/0036_historicalstock_confirmed_at_site_and_more.py +53 -0
- edc_pharmacy/migrations/0037_remove_historicalstock_confirmed_at_site_by_and_more.py +349 -0
- edc_pharmacy/migrations/0038_historicalstocktransferconfirmation_transfer_confirmation_identifier_and_more.py +35 -0
- edc_pharmacy/migrations/0039_remove_dispense_registered_subject_and_more.py +448 -0
- edc_pharmacy/migrations/0040_historicalstock_dispensed_stock_dispensed.py +23 -0
- edc_pharmacy/migrations/0041_alter_dispenseitem_dispense_and_more.py +37 -0
- edc_pharmacy/migrations/0042_remove_historicaldispensinghistory_history_user_and_more.py +49 -0
- edc_pharmacy/migrations/0043_stockproxy_alter_historicallot_lot_no_and_more.py +40 -0
- edc_pharmacy/migrations/0044_location_contact_email_location_contact_name_and_more.py +28 -0
- edc_pharmacy/migrations/0045_historicallot_manufacture_date_and_more.py +106 -0
- edc_pharmacy/migrations/0046_remove_historicalrx_slug_remove_rx_slug.py +21 -0
- edc_pharmacy/migrations/0047_historicalstockrequest_cancel_stockrequest_cancel_and_more.py +59 -0
- edc_pharmacy/migrations/0048_historicalorderitem_unit_qty_ordered_and_more.py +68 -0
- edc_pharmacy/migrations/0049_remove_stocktransferconfirmation_stock_and_more.py +769 -0
- edc_pharmacy/migrations/0050_remove_stocktransferconfirmation2_location_and_more.py +433 -0
- edc_pharmacy/migrations/0051_alter_historicalstocktransferconfirmationitem_options_and_more.py +87 -0
- edc_pharmacy/migrations/0052_formulation_imp_formulation_imp_description_and_more.py +36 -0
- edc_pharmacy/migrations/0053_alter_location_managers_alter_historicalstock_lot_and_more.py +268 -0
- edc_pharmacy/migrations/0054_historicalreceiveitem_task_id_receiveitem_task_id.py +26 -0
- edc_pharmacy/migrations/0055_historicalreceiveitem_comment_and_more.py +33 -0
- edc_pharmacy/migrations/0056_rename_manufacture_date_historicallot_manufactured_date_and_more.py +83 -0
- edc_pharmacy/migrations/0057_scanduplicates.py +160 -0
- edc_pharmacy/migrations/0058_stockrequestproxy_alter_stockproxy_options.py +33 -0
- edc_pharmacy/migrations/0059_delete_stockrequestproxy.py +16 -0
- edc_pharmacy/migrations/0060_alter_container_max_per_subject_and_more.py +751 -0
- edc_pharmacy/migrations/0061_alter_historicalstocktransferconfirmation_options_and_more.py +274 -0
- edc_pharmacy/migrations/0062_auto_20250312_1433.py +59 -0
- edc_pharmacy/migrations/0063_alter_allocation_managers_remove_allocation_site_and_more.py +28 -0
- edc_pharmacy/migrations/0064_historicalstockrequest_start_datetime_and_more.py +56 -0
- edc_pharmacy/migrations/0065_allocationproxy.py +29 -0
- edc_pharmacy/migrations/0066_historicalstock_stored_at_site_stock_stored_at_site.py +23 -0
- edc_pharmacy/migrations/0067_auto_20250314_1547.py +21 -0
- edc_pharmacy/migrations/0068_stockout.py +58 -0
- edc_pharmacy/migrations/0069_alter_historicalstoragebin_capacity_and_more.py +50 -0
- edc_pharmacy/migrations/0070_stockout_codes.py +18 -0
- edc_pharmacy/migrations/0071_alter_stockout_codes.py +18 -0
- edc_pharmacy/migrations/0072_stockout_bins.py +18 -0
- edc_pharmacy/migrations/0073_alter_stockout_options.py +21 -0
- edc_pharmacy/migrations/0074_rename_stockout_stockavailability_and_more.py +23 -0
- edc_pharmacy/migrations/0075_remove_historicalstockrequestitem_in_stock_and_more.py +37 -0
- edc_pharmacy/migrations/0076_historicalstockadjustment_stockadjustment.py +338 -0
- edc_pharmacy/migrations/0077_historicalstockadjustment_adjustment_datetime_and_more.py +24 -0
- edc_pharmacy/migrations/0078_alter_historicalstock_qty_and_more.py +139 -0
- edc_pharmacy/migrations/0079_remove_historicalstock_allocated_and_more.py +21 -0
- edc_pharmacy/migrations/0080_remove_historicalstock_allocated_datetime_and_more.py +65 -0
- edc_pharmacy/migrations/0081_historicalconfirmation_confirmation.py +382 -0
- edc_pharmacy/migrations/0082_alter_confirmation_managers_remove_confirmation_site_and_more.py +29 -0
- edc_pharmacy/migrations/0083_auto_20250707_1820.py +33 -0
- edc_pharmacy/migrations/0084_confirmationatsiteitem_and_more.py +46 -0
- edc_pharmacy/migrations/0085_alter_confirmationatsite_options_and_more.py +147 -0
- edc_pharmacy/migrations/0086_auto_20250708_2337.py +31 -0
- edc_pharmacy/migrations/0087_alter_storagebinitem_stock.py +27 -0
- edc_pharmacy/migrations/__init__.py +0 -0
- edc_pharmacy/model_mixins/__init__.py +4 -0
- edc_pharmacy/model_mixins/medication_order_model_mixin.py +25 -0
- edc_pharmacy/model_mixins/previous_model_mixin.py +81 -0
- edc_pharmacy/model_mixins/study_medication_crf_model_mixin.py +130 -0
- edc_pharmacy/model_mixins/study_medication_refill_model_mixin.py +73 -0
- edc_pharmacy/models/__init__.py +70 -0
- edc_pharmacy/models/edc_permissions.py +9 -0
- edc_pharmacy/models/medication/__init__.py +8 -0
- edc_pharmacy/models/medication/assignment.py +37 -0
- edc_pharmacy/models/medication/dosage_guideline.py +93 -0
- edc_pharmacy/models/medication/formulation.py +114 -0
- edc_pharmacy/models/medication/formulation_type.py +7 -0
- edc_pharmacy/models/medication/frequency_units.py +7 -0
- edc_pharmacy/models/medication/medication.py +46 -0
- edc_pharmacy/models/medication/route.py +7 -0
- edc_pharmacy/models/medication/units.py +7 -0
- edc_pharmacy/models/model_mixins.py +32 -0
- edc_pharmacy/models/prescription/__init__.py +2 -0
- edc_pharmacy/models/prescription/rx.py +149 -0
- edc_pharmacy/models/prescription/rx_refill.py +204 -0
- edc_pharmacy/models/proxy_models.py +21 -0
- edc_pharmacy/models/reports/__init__.py +1 -0
- edc_pharmacy/models/reports/stock_availability.py +25 -0
- edc_pharmacy/models/scan_duplicates.py +21 -0
- edc_pharmacy/models/signals.py +293 -0
- edc_pharmacy/models/stock/__init__.py +28 -0
- edc_pharmacy/models/stock/allocation.py +84 -0
- edc_pharmacy/models/stock/allocation_proxy.py +10 -0
- edc_pharmacy/models/stock/confirmation.py +55 -0
- edc_pharmacy/models/stock/confirmation_at_site.py +57 -0
- edc_pharmacy/models/stock/confirmation_at_site_item.py +63 -0
- edc_pharmacy/models/stock/container.py +81 -0
- edc_pharmacy/models/stock/container_type.py +13 -0
- edc_pharmacy/models/stock/container_units.py +23 -0
- edc_pharmacy/models/stock/dispense.py +60 -0
- edc_pharmacy/models/stock/dispense_item.py +57 -0
- edc_pharmacy/models/stock/location.py +46 -0
- edc_pharmacy/models/stock/lot.py +66 -0
- edc_pharmacy/models/stock/managers.py +50 -0
- edc_pharmacy/models/stock/order.py +68 -0
- edc_pharmacy/models/stock/order_item.py +91 -0
- edc_pharmacy/models/stock/product.py +53 -0
- edc_pharmacy/models/stock/receive.py +73 -0
- edc_pharmacy/models/stock/receive_item.py +122 -0
- edc_pharmacy/models/stock/repack_request.py +101 -0
- edc_pharmacy/models/stock/stock.py +227 -0
- edc_pharmacy/models/stock/stock_adjustment.py +64 -0
- edc_pharmacy/models/stock/stock_proxy.py +10 -0
- edc_pharmacy/models/stock/stock_request.py +167 -0
- edc_pharmacy/models/stock/stock_request_item.py +91 -0
- edc_pharmacy/models/stock/stock_transfer.py +115 -0
- edc_pharmacy/models/stock/stock_transfer_item.py +62 -0
- edc_pharmacy/models/stock/storage_bin.py +58 -0
- edc_pharmacy/models/stock/storage_bin_item.py +52 -0
- edc_pharmacy/models/stock/supplier.py +41 -0
- edc_pharmacy/models/storage/__init__.py +5 -0
- edc_pharmacy/models/storage/box.py +27 -0
- edc_pharmacy/models/storage/items/__init__.py +4 -0
- edc_pharmacy/models/storage/items/container_model_mixin.py +37 -0
- edc_pharmacy/models/storage/items/generic_container.py +9 -0
- edc_pharmacy/models/storage/items/pill_bottle.py +7 -0
- edc_pharmacy/models/storage/items/pill_bottle_model_mixin.py +44 -0
- edc_pharmacy/models/storage/items/subject_pill_bottle.py +18 -0
- edc_pharmacy/models/storage/room.py +27 -0
- edc_pharmacy/models/storage/shelf.py +27 -0
- edc_pharmacy/models/storage/unit_type.py +11 -0
- edc_pharmacy/models/storage/utils.py +90 -0
- edc_pharmacy/navbars.py +15 -0
- edc_pharmacy/offline_models.py +3 -0
- edc_pharmacy/pdf_reports/__init__.py +2 -0
- edc_pharmacy/pdf_reports/manifest_pdf_report.py +303 -0
- edc_pharmacy/pdf_reports/stock_pdf_report.py +215 -0
- edc_pharmacy/prescribe/__init__.py +1 -0
- edc_pharmacy/prescribe/create_prescription.py +59 -0
- edc_pharmacy/refill/__init__.py +8 -0
- edc_pharmacy/refill/activate_refill.py +16 -0
- edc_pharmacy/refill/adjust_previous_end_datetime.py +32 -0
- edc_pharmacy/refill/create_next_refill.py +40 -0
- edc_pharmacy/refill/create_refill.py +60 -0
- edc_pharmacy/refill/crf/__init__.py +2 -0
- edc_pharmacy/refill/crf/create_refills_from_crf.py +28 -0
- edc_pharmacy/refill/crf/delete_next_refills_for_crf.py +14 -0
- edc_pharmacy/refill/deactivate_refill.py +6 -0
- edc_pharmacy/refill/get_active_refill.py +31 -0
- edc_pharmacy/refill/refill_creator.py +188 -0
- edc_pharmacy/sample_usb_printing/__init__.py +0 -0
- edc_pharmacy/sample_usb_printing/network_printers.py +53 -0
- edc_pharmacy/sample_usb_printing/sample.html +22 -0
- edc_pharmacy/sample_usb_printing/urls.py +5 -0
- edc_pharmacy/sample_usb_printing/usb_printing.py +57 -0
- edc_pharmacy/settings.py +149 -0
- edc_pharmacy/static/edc_pharmacy/js/edc_pharma.js +41 -0
- edc_pharmacy/static/edc_pharmacy/label_templates/dispense_label_capsule.lbl +12 -0
- edc_pharmacy/static/edc_pharmacy/label_templates/dispense_label_iv.lbl +22 -0
- edc_pharmacy/static/edc_pharmacy/label_templates/dispense_label_suppositories.lbl +12 -0
- edc_pharmacy/static/edc_pharmacy/label_templates/dispense_label_syrup.lbl +12 -0
- edc_pharmacy/static/edc_pharmacy/label_templates/dispense_label_tablet.lbl +7 -0
- edc_pharmacy/static/edc_pharmacy/label_templates/medication_stock_label.lbl +7 -0
- edc_pharmacy/static/edc_pharmacy/label_templates/rando_pharmacy_label.lbl +7 -0
- edc_pharmacy/templates/edc_pharmacy/central_home.html +24 -0
- edc_pharmacy/templates/edc_pharmacy/clinic_home.html +22 -0
- edc_pharmacy/templates/edc_pharmacy/duration.html +5 -0
- edc_pharmacy/templates/edc_pharmacy/home.html +29 -0
- edc_pharmacy/templates/edc_pharmacy/medication/lot_button.html +1 -0
- edc_pharmacy/templates/edc_pharmacy/rx_refill_description.html +7 -0
- edc_pharmacy/templates/edc_pharmacy/site_home.html +29 -0
- edc_pharmacy/templates/edc_pharmacy/stock/add_to_storage_bin.html +48 -0
- edc_pharmacy/templates/edc_pharmacy/stock/allocate_to_subject.html +64 -0
- edc_pharmacy/templates/edc_pharmacy/stock/confirm_stock_by_instance.html +48 -0
- edc_pharmacy/templates/edc_pharmacy/stock/confirm_stock_by_queryset.html +62 -0
- edc_pharmacy/templates/edc_pharmacy/stock/confirmation_at_site.html +136 -0
- edc_pharmacy/templates/edc_pharmacy/stock/dispense.html +102 -0
- edc_pharmacy/templates/edc_pharmacy/stock/instructions/repack_instructions.html +3 -0
- edc_pharmacy/templates/edc_pharmacy/stock/items_as_button.html +3 -0
- edc_pharmacy/templates/edc_pharmacy/stock/items_as_link.html +1 -0
- edc_pharmacy/templates/edc_pharmacy/stock/print_labels.html +44 -0
- edc_pharmacy/templates/edc_pharmacy/stock/return.html +92 -0
- edc_pharmacy/templates/edc_pharmacy/stock/stock_request.html +71 -0
- edc_pharmacy/templates/edc_pharmacy/stock/stock_request_links_column.html +6 -0
- edc_pharmacy/templates/edc_pharmacy/stock/stock_request_product_column.html +2 -0
- edc_pharmacy/templates/edc_pharmacy/stock/stock_request_status_column.html +12 -0
- edc_pharmacy/templates/edc_pharmacy/stock/subject_list_display.html +3 -0
- edc_pharmacy/templates/edc_pharmacy/stock/transfer_stock.html +58 -0
- edc_pharmacy/templates/edc_pharmacy/stock/update_label_config_intermediate.html +28 -0
- edc_pharmacy/templates/edc_pharmacy/task_status.html +31 -0
- edc_pharmacy/urls.py +150 -0
- edc_pharmacy/utils/__init__.py +45 -0
- edc_pharmacy/utils/allocate_stock.py +102 -0
- edc_pharmacy/utils/blinded_user.py +16 -0
- edc_pharmacy/utils/confirm_stock.py +59 -0
- edc_pharmacy/utils/confirm_stock_at_site.py +95 -0
- edc_pharmacy/utils/create_new_stock_on_receive.py +20 -0
- edc_pharmacy/utils/dispense.py +72 -0
- edc_pharmacy/utils/format_qty.py +19 -0
- edc_pharmacy/utils/get_codenames.py +27 -0
- edc_pharmacy/utils/get_imp_schedule_names.py +14 -0
- edc_pharmacy/utils/get_random_code.py +27 -0
- edc_pharmacy/utils/get_related_or_none.py +10 -0
- edc_pharmacy/utils/get_stock_for_location_df.py +54 -0
- edc_pharmacy/utils/get_unit_qty_out.py +23 -0
- edc_pharmacy/utils/miscellaneous.py +14 -0
- edc_pharmacy/utils/process_repack_request.py +69 -0
- edc_pharmacy/utils/process_repack_request_queryset.py +26 -0
- edc_pharmacy/utils/stock_request/__init__.py +4 -0
- edc_pharmacy/utils/stock_request/bulk_create_stock_request_items.py +73 -0
- edc_pharmacy/utils/stock_request/get_instock_and_nostock_data.py +71 -0
- edc_pharmacy/utils/stock_unit_qty_in_check.py +17 -0
- edc_pharmacy/utils/transfer_stock.py +48 -0
- edc_pharmacy/utils/update_previous_refill_end_datetime.py +26 -0
- edc_pharmacy/utils/update_stock_instance.py +47 -0
- edc_pharmacy/views/__init__.py +15 -0
- edc_pharmacy/views/add_to_storage_bin_view.py +219 -0
- edc_pharmacy/views/allocate_to_subject_view.py +401 -0
- edc_pharmacy/views/auths_view_mixin.py +18 -0
- edc_pharmacy/views/celery_task_status_view.py +17 -0
- edc_pharmacy/views/confirm_stock_from_instance_view.py +122 -0
- edc_pharmacy/views/confirm_stock_from_queryset_view.py +193 -0
- edc_pharmacy/views/confirmation_at_site_view.py +303 -0
- edc_pharmacy/views/dispense_view.py +137 -0
- edc_pharmacy/views/get_stock_transfers_view.py +19 -0
- edc_pharmacy/views/home_view.py +13 -0
- edc_pharmacy/views/move_to_storage_bin_view.py +140 -0
- edc_pharmacy/views/prepare_and_review_stock_request_view.py +239 -0
- edc_pharmacy/views/print_labels_view.py +132 -0
- edc_pharmacy/views/print_stock_transfer_manifest_view.py +34 -0
- edc_pharmacy/views/print_stock_view.py +40 -0
- edc_pharmacy/views/return_view.py +16 -0
- edc_pharmacy/views/transfer_stock_view.py +96 -0
- edc_prn/__init__.py +2 -0
- edc_prn/apps.py +6 -0
- edc_prn/modeladmin_mixins.py +28 -0
- edc_prn/modelform_mixins.py +69 -0
- edc_prn/models.py +27 -0
- edc_prn/prn.py +90 -0
- edc_prn/site_prn_forms.py +81 -0
- edc_prn/templates/edc_prn/add_prn_popover.html +1 -0
- edc_prn/templates/edc_prn/list_prns.html +9 -0
- edc_prn/templatetags/__init__.py +0 -0
- edc_prn/templatetags/edc_prn_extras.py +107 -0
- edc_protocol/__init__.py +0 -0
- edc_protocol/address.py +15 -0
- edc_protocol/apps.py +30 -0
- edc_protocol/locale/sw/LC_MESSAGES/django.po +22 -0
- edc_protocol/middleware.py +25 -0
- edc_protocol/navbars.py +15 -0
- edc_protocol/research_protocol_config.py +190 -0
- edc_protocol/system_checks.py +15 -0
- edc_protocol/templates/edc_protocol/home.html +48 -0
- edc_protocol/urls.py +7 -0
- edc_protocol/validators.py +39 -0
- edc_protocol/view_mixins.py +19 -0
- edc_protocol/views.py +28 -0
- edc_protocol_incident/__init__.py +0 -0
- edc_protocol_incident/action_items.py +40 -0
- edc_protocol_incident/admin/__init__.py +0 -0
- edc_protocol_incident/admin/protocol_deviation_violation_admin.py +94 -0
- edc_protocol_incident/admin/protocol_incident_admin.py +13 -0
- edc_protocol_incident/admin_site.py +7 -0
- edc_protocol_incident/apps.py +8 -0
- edc_protocol_incident/auth_objects.py +26 -0
- edc_protocol_incident/auths.py +39 -0
- edc_protocol_incident/choices.py +17 -0
- edc_protocol_incident/constants.py +8 -0
- edc_protocol_incident/form_validators/__init__.py +4 -0
- edc_protocol_incident/form_validators/mixins.py +54 -0
- edc_protocol_incident/form_validators/protocol_deviation_violation_form_validator.py +53 -0
- edc_protocol_incident/form_validators/protocol_incident_form_validator.py +45 -0
- edc_protocol_incident/forms/__init__.py +2 -0
- edc_protocol_incident/forms/protocol_deviation_violation_form.py +33 -0
- edc_protocol_incident/forms/protocol_incident_form.py +26 -0
- edc_protocol_incident/list_data.py +41 -0
- edc_protocol_incident/migrations/0001_initial.py +845 -0
- edc_protocol_incident/migrations/0001_squashed_0015_auto_20220927_0401.py +1904 -0
- edc_protocol_incident/migrations/0002_auto_20210911_2036.py +62 -0
- edc_protocol_incident/migrations/0003_auto_20211104_1456.py +37 -0
- edc_protocol_incident/migrations/0004_alter_protocoldeviationviolation_violation.py +25 -0
- edc_protocol_incident/migrations/0005_protocolincident_historicalprotocolincident_and_more.py +686 -0
- edc_protocol_incident/migrations/0006_protocolincidents_and_more.py +85 -0
- edc_protocol_incident/migrations/0007_auto_20220704_1841.py +40 -0
- edc_protocol_incident/migrations/0008_alter_historicalprotocoldeviationviolation_action_identifier_and_more.py +32 -0
- edc_protocol_incident/migrations/0009_auto_20220826_0258.py +35 -0
- edc_protocol_incident/migrations/0010_auto_20220826_0322.py +32 -0
- edc_protocol_incident/migrations/0011_auto_20220826_0406.py +28 -0
- edc_protocol_incident/migrations/0012_auto_20220913_2139.py +33 -0
- edc_protocol_incident/migrations/0013_auto_20220927_0349.py +67 -0
- edc_protocol_incident/migrations/0014_auto_20220927_0400.py +43 -0
- edc_protocol_incident/migrations/0015_auto_20220927_0401.py +43 -0
- edc_protocol_incident/migrations/0016_historicalprotocolincident_reasons_withdrawn_and_more.py +54 -0
- edc_protocol_incident/migrations/0017_alter_historicalprotocolincident_reasons_withdrawn_and_more.py +25 -0
- edc_protocol_incident/migrations/0018_alter_protocoldeviationviolation_options_and_more.py +51 -0
- edc_protocol_incident/migrations/0019_actionsrequired_extra_value_and_more.py +30 -0
- edc_protocol_incident/migrations/0020_alter_historicalprotocoldeviationviolation_device_created_and_more.py +154 -0
- edc_protocol_incident/migrations/0021_alter_actionsrequired_options_and_more.py +384 -0
- edc_protocol_incident/migrations/0022_alter_historicalprotocoldeviationviolation_site_and_more.py +58 -0
- edc_protocol_incident/migrations/__init__.py +0 -0
- edc_protocol_incident/model_mixins/__init__.py +4 -0
- edc_protocol_incident/model_mixins/protocol_deviation_violation_model_mixin.py +142 -0
- edc_protocol_incident/model_mixins/protocol_incident_model_mixin.py +137 -0
- edc_protocol_incident/modeladmin_mixins.py +131 -0
- edc_protocol_incident/models/__init__.py +3 -0
- edc_protocol_incident/models/list_models.py +19 -0
- edc_protocol_incident/models/protocol_deviation_violation.py +34 -0
- edc_protocol_incident/models/protocol_incident.py +34 -0
- edc_protocol_incident/pdf_reports/__init__.py +0 -0
- edc_protocol_incident/urls.py +10 -0
- edc_pylabels/__init__.py +0 -0
- edc_pylabels/actions.py +87 -0
- edc_pylabels/admin/__init__.py +2 -0
- edc_pylabels/admin/label_configuration_admin.py +52 -0
- edc_pylabels/admin/label_specification_admin.py +52 -0
- edc_pylabels/admin_site.py +9 -0
- edc_pylabels/apps.py +8 -0
- edc_pylabels/auth_objects.py +15 -0
- edc_pylabels/auths.py +5 -0
- edc_pylabels/drawing_callable_example.py +63 -0
- edc_pylabels/forms/__init__.py +1 -0
- edc_pylabels/forms/label_configuration_form.py +30 -0
- edc_pylabels/label_configs.py +27 -0
- edc_pylabels/migrations/0001_initial.py +125 -0
- edc_pylabels/migrations/0002_alter_label_options_label_created_and_more.py +163 -0
- edc_pylabels/migrations/0003_label_sample_data.py +22 -0
- edc_pylabels/migrations/0004_remove_label_drawing_callable_name_and_more.py +30 -0
- edc_pylabels/migrations/0005_labelconfiguration_delete_label_and_more.py +175 -0
- edc_pylabels/migrations/0006_delete_drawing.py +16 -0
- edc_pylabels/migrations/0007_alter_labelconfiguration_name.py +22 -0
- edc_pylabels/migrations/0008_labelconfiguration_requires_allocated.py +18 -0
- edc_pylabels/migrations/0009_remove_labelconfiguration_requires_allocated_and_more.py +22 -0
- edc_pylabels/migrations/0010_alter_labelconfiguration_requires_allocation.py +20 -0
- edc_pylabels/migrations/0011_alter_labelconfiguration_name.py +23 -0
- edc_pylabels/migrations/__init__.py +0 -0
- edc_pylabels/models/__init__.py +2 -0
- edc_pylabels/models/label_configuration.py +41 -0
- edc_pylabels/models/label_specification_proxy.py +6 -0
- edc_pylabels/site_label_configs.py +112 -0
- edc_pylabels/urls.py +10 -0
- edc_qareports/__init__.py +0 -0
- edc_qareports/admin/__init__.py +3 -0
- edc_qareports/admin/note_modeladmin.py +17 -0
- edc_qareports/admin/qa_report_log_admin.py +33 -0
- edc_qareports/admin/qa_report_log_summary_admin.py +62 -0
- edc_qareports/admin_site.py +5 -0
- edc_qareports/apps.py +8 -0
- edc_qareports/auth_objects.py +20 -0
- edc_qareports/auths.py +20 -0
- edc_qareports/choices.py +6 -0
- edc_qareports/forms/__init__.py +1 -0
- edc_qareports/forms/note_form.py +33 -0
- edc_qareports/migrations/0001_initial.py +198 -0
- edc_qareports/migrations/0002_rename_reportnote_qareportnote_and_more.py +39 -0
- edc_qareports/migrations/0003_alter_qareportnote_options_and_more.py +40 -0
- edc_qareports/migrations/0004_alter_qareportnote_status.py +22 -0
- edc_qareports/migrations/0005_edcpermissions.py +133 -0
- edc_qareports/migrations/0006_qareportlog.py +43 -0
- edc_qareports/migrations/0007_qareportlog_edc_qarepor_accesse_738ffe_idx.py +19 -0
- edc_qareports/migrations/0008_qareportlogsummary.py +39 -0
- edc_qareports/migrations/0009_auto_20240812_1918.py +12 -0
- edc_qareports/migrations/0010_auto_20240812_1918.py +12 -0
- edc_qareports/migrations/0011_auto_20240813_0219.py +48 -0
- edc_qareports/migrations/0012_alter_qareportnote_note.py +18 -0
- edc_qareports/migrations/0013_rename_qareportnote_note_and_more.py +39 -0
- edc_qareports/migrations/0014_alter_note_options_alter_note_status.py +42 -0
- edc_qareports/migrations/0015_alter_note_status.py +25 -0
- edc_qareports/migrations/0016_alter_note_options_alter_qareportlog_options.py +38 -0
- edc_qareports/migrations/0017_auto_20240816_0256.py +24 -0
- edc_qareports/migrations/__init__.py +0 -0
- edc_qareports/model_mixins/__init__.py +4 -0
- edc_qareports/model_mixins/note_model_mixin.py +33 -0
- edc_qareports/model_mixins/on_study_missing_values_model_mixin.py +24 -0
- edc_qareports/model_mixins/qa_report_model_mixin.py +28 -0
- edc_qareports/model_mixins/qa_reports_permissions.py +1 -0
- edc_qareports/modeladmin_mixins/__init__.py +6 -0
- edc_qareports/modeladmin_mixins/list_filters.py +64 -0
- edc_qareports/modeladmin_mixins/note_modeladmin_mixin.py +100 -0
- edc_qareports/modeladmin_mixins/on_study_missing_values_modeladmin_mixin.py +147 -0
- edc_qareports/modeladmin_mixins/qa_report_modeladmin_mixin.py +124 -0
- edc_qareports/models/__init__.py +4 -0
- edc_qareports/models/dbviews/__init__.py +1 -0
- edc_qareports/models/dbviews/unmanaged_model.py +24 -0
- edc_qareports/models/dbviews/view_definition.py +43 -0
- edc_qareports/models/edc_permissions.py +9 -0
- edc_qareports/models/note.py +31 -0
- edc_qareports/models/qa_reports_log.py +20 -0
- edc_qareports/sql_generator/__init__.py +5 -0
- edc_qareports/sql_generator/crf_case.py +44 -0
- edc_qareports/sql_generator/crf_subquery.py +63 -0
- edc_qareports/sql_generator/requisition_case.py +17 -0
- edc_qareports/sql_generator/requisition_subquery.py +62 -0
- edc_qareports/sql_generator/sql_view_generator.py +75 -0
- edc_qareports/sql_generator/subquery_from_dict.py +39 -0
- edc_qareports/templates/edc_qareports/columns/add_button.html +1 -0
- edc_qareports/templates/edc_qareports/columns/change_button.html +1 -0
- edc_qareports/templates/edc_qareports/columns/notes_column.html +1 -0
- edc_qareports/templates/edc_qareports/columns/subject_identifier_column.html +1 -0
- edc_qareports/templates/edc_qareports/qa_report_note.html +2 -0
- edc_qareports/urls.py +11 -0
- edc_qareports/utils.py +124 -0
- edc_randomization/__init__.py +0 -0
- edc_randomization/admin.py +169 -0
- edc_randomization/admin_site.py +7 -0
- edc_randomization/apps.py +26 -0
- edc_randomization/auth_objects.py +80 -0
- edc_randomization/auths.py +23 -0
- edc_randomization/blinding.py +74 -0
- edc_randomization/choices.py +3 -0
- edc_randomization/constants.py +17 -0
- edc_randomization/decorators.py +23 -0
- edc_randomization/migrations/0001_initial.py +155 -0
- edc_randomization/migrations/0002_historicalrandomizationlist.py +182 -0
- edc_randomization/migrations/0003_auto_20191024_0426.py +17 -0
- edc_randomization/migrations/0004_auto_20191108_0752.py +21 -0
- edc_randomization/migrations/0005_auto_20200202_2301.py +27 -0
- edc_randomization/migrations/0006_auto_20200213_2055.py +22 -0
- edc_randomization/migrations/0007_auto_20200513_0023.py +28 -0
- edc_randomization/migrations/0008_auto_20220704_1841.py +26 -0
- edc_randomization/migrations/0009_edcpermissions.py +100 -0
- edc_randomization/migrations/0010_alter_randomizationlist_options.py +29 -0
- edc_randomization/migrations/0011_alter_edcpermissions_device_created_and_more.py +119 -0
- edc_randomization/migrations/0012_alter_randomizationlist_options_and_more.py +117 -0
- edc_randomization/migrations/__init__.py +0 -0
- edc_randomization/model_mixins.py +121 -0
- edc_randomization/models/__init__.py +2 -0
- edc_randomization/models/edc_permissions.py +9 -0
- edc_randomization/models/randomization_list.py +8 -0
- edc_randomization/randomization_list_importer.py +327 -0
- edc_randomization/randomization_list_verifier.py +166 -0
- edc_randomization/randomizer.py +374 -0
- edc_randomization/randomizers.py +11 -0
- edc_randomization/site_randomizers.py +131 -0
- edc_randomization/system_checks.py +85 -0
- edc_randomization/urls.py +9 -0
- edc_randomization/utils.py +180 -0
- edc_randomization/views.py +10 -0
- edc_refusal/__init__.py +0 -0
- edc_refusal/admin.py +76 -0
- edc_refusal/admin_site.py +5 -0
- edc_refusal/apps.py +9 -0
- edc_refusal/auth_objects.py +7 -0
- edc_refusal/auths.py +7 -0
- edc_refusal/forms.py +72 -0
- edc_refusal/list_data.py +16 -0
- edc_refusal/managers.py +8 -0
- edc_refusal/migrations/0001_initial.py +230 -0
- edc_refusal/migrations/0002_historicalsubjectrefusal.py +185 -0
- edc_refusal/migrations/0003_auto_20220704_1841.py +26 -0
- edc_refusal/migrations/0004_refusalreasons_plural_name.py +19 -0
- edc_refusal/migrations/0005_alter_subjectrefusal_options_and_more.py +39 -0
- edc_refusal/migrations/0006_alter_subjectrefusal_managers.py +21 -0
- edc_refusal/migrations/0007_refusalreasons_extra_value.py +17 -0
- edc_refusal/migrations/0008_alter_historicalsubjectrefusal_device_created_and_more.py +84 -0
- edc_refusal/migrations/0009_alter_refusalreasons_options_and_more.py +140 -0
- edc_refusal/migrations/0010_alter_historicalsubjectrefusal_site_and_more.py +36 -0
- edc_refusal/migrations/__init__.py +0 -0
- edc_refusal/model_mixins.py +39 -0
- edc_refusal/models/__init__.py +3 -0
- edc_refusal/models/list_models.py +7 -0
- edc_refusal/models/signals.py +45 -0
- edc_refusal/models/subject_refusal.py +18 -0
- edc_refusal/models.py +0 -0
- edc_refusal/urls.py +8 -0
- edc_refusal/utils.py +12 -0
- edc_registration/__init__.py +1 -0
- edc_registration/admin.py +96 -0
- edc_registration/admin_site.py +7 -0
- edc_registration/apps.py +9 -0
- edc_registration/auths.py +30 -0
- edc_registration/exceptions.py +2 -0
- edc_registration/migrations/0001_initial.py +297 -0
- edc_registration/migrations/0002_auto_20161127_2226.py +27 -0
- edc_registration/migrations/0003_registeredsubject_subject_type.py +17 -0
- edc_registration/migrations/0004_auto_20161221_0018.py +30 -0
- edc_registration/migrations/0005_auto_20170111_1809.py +80 -0
- edc_registration/migrations/0006_auto_20170209_0924.py +24 -0
- edc_registration/migrations/0007_auto_20170321_1119.py +19 -0
- edc_registration/migrations/0008_auto_20170810_1032.py +54 -0
- edc_registration/migrations/0009_auto_20171228_1816.py +34 -0
- edc_registration/migrations/0010_registeredsubject_consent_datetime.py +15 -0
- edc_registration/migrations/0011_auto_20180116_1411.py +21 -0
- edc_registration/migrations/0012_auto_20180116_1528.py +15 -0
- edc_registration/migrations/0013_auto_20180813_1614.py +28 -0
- edc_registration/migrations/0014_auto_20180814_2017.py +24 -0
- edc_registration/migrations/0015_auto_20181006_2257.py +23 -0
- edc_registration/migrations/0016_historicalregisteredsubject.py +340 -0
- edc_registration/migrations/0017_auto_20190305_0123.py +99 -0
- edc_registration/migrations/0018_auto_20190917_2117.py +20 -0
- edc_registration/migrations/0019_auto_20190922_0439.py +20 -0
- edc_registration/migrations/0020_auto_20191024_1000.py +22 -0
- edc_registration/migrations/0021_auto_20200513_0023.py +35 -0
- edc_registration/migrations/0022_auto_20210801_2021.py +20 -0
- edc_registration/migrations/0023_alter_registeredsubject_options.py +36 -0
- edc_registration/migrations/0024_auto_20220704_1841.py +26 -0
- edc_registration/migrations/0025_auto_20220914_0038.py +22 -0
- edc_registration/migrations/0026_historicalregisteredsubject_familiar_name_and_more.py +57 -0
- edc_registration/migrations/0027_alter_registeredsubject_options.py +37 -0
- edc_registration/migrations/0028_alter_registeredsubject_managers.py +25 -0
- edc_registration/migrations/0029_alter_historicalregisteredsubject_device_created_and_more.py +84 -0
- edc_registration/migrations/0030_alter_registeredsubject_options_and_more.py +117 -0
- edc_registration/migrations/0031_alter_historicalregisteredsubject_site_and_more.py +36 -0
- edc_registration/migrations/__init__.py +0 -0
- edc_registration/model_mixins/__init__.py +3 -0
- edc_registration/model_mixins/updates_or_creates_registered_subject_model_mixin.py +118 -0
- edc_registration/modeladmin_mixins.py +119 -0
- edc_registration/modelform_mixins.py +26 -0
- edc_registration/models/__init__.py +2 -0
- edc_registration/models/managers.py +17 -0
- edc_registration/models/registered_subject.py +275 -0
- edc_registration/models/signals.py +21 -0
- edc_registration/offline_models.py +3 -0
- edc_registration/urls.py +11 -0
- edc_registration/utils.py +69 -0
- edc_reportable/__init__.py +42 -0
- edc_reportable/admin/__init__.py +2 -0
- edc_reportable/admin/grading_data_admin.py +79 -0
- edc_reportable/admin/normal_data_admin.py +78 -0
- edc_reportable/admin_site.py +7 -0
- edc_reportable/adult_age_options.py +7 -0
- edc_reportable/age_evaluator.py +45 -0
- edc_reportable/apps.py +9 -0
- edc_reportable/auths.py +25 -0
- edc_reportable/choices.py +12 -0
- edc_reportable/constants.py +10 -0
- edc_reportable/data/__init__.py +3 -0
- edc_reportable/data/grading_data/__init__.py +0 -0
- edc_reportable/data/grading_data/ctcae_v5.py +61 -0
- edc_reportable/data/grading_data/daids_july_2017.py +817 -0
- edc_reportable/data/molecular_weights.py +11 -0
- edc_reportable/data/normal_data/__init__.py +0 -0
- edc_reportable/data/normal_data/africa.py +314 -0
- edc_reportable/evaluator.py +125 -0
- edc_reportable/exceptions.py +42 -0
- edc_reportable/forms/__init__.py +1 -0
- edc_reportable/forms/reportables_form_validator_mixin.py +61 -0
- edc_reportable/formula.py +143 -0
- edc_reportable/management/__init__.py +0 -0
- edc_reportable/management/commands/__init__.py +0 -0
- edc_reportable/management/commands/export_reportables.py +56 -0
- edc_reportable/migrations/0001_initial.py +442 -0
- edc_reportable/migrations/0002_alter_gradingdata_age_upper_and_more.py +43 -0
- edc_reportable/migrations/0003_referencerangecollection_grade1_and_more.py +247 -0
- edc_reportable/migrations/0004_alter_referencerangecollection_grade3_and_more.py +436 -0
- edc_reportable/migrations/0005_historicalnormaldata_auto_created_and_more.py +23 -0
- edc_reportable/migrations/__init__.py +0 -0
- edc_reportable/models/__init__.py +6 -0
- edc_reportable/models/grading_data.py +24 -0
- edc_reportable/models/grading_exception.py +28 -0
- edc_reportable/models/mw.py +21 -0
- edc_reportable/models/normal_data.py +63 -0
- edc_reportable/models/reference_model_mixins.py +135 -0
- edc_reportable/models/reference_range_collection.py +134 -0
- edc_reportable/post_migrate_signals.py +27 -0
- edc_reportable/reference_range_evaluator.py +307 -0
- edc_reportable/units.py +32 -0
- edc_reportable/urls.py +11 -0
- edc_reportable/utils/__init__.py +15 -0
- edc_reportable/utils/convert_units.py +200 -0
- edc_reportable/utils/get_default_reportable_grades.py +7 -0
- edc_reportable/utils/get_grade_for_value.py +147 -0
- edc_reportable/utils/get_normal_data_or_raise.py +143 -0
- edc_reportable/utils/get_reference_range_collection.py +30 -0
- edc_reportable/utils/grading_data_model_cls.py +14 -0
- edc_reportable/utils/grading_exception_model_cls.py +14 -0
- edc_reportable/utils/in_normal_bounds_or_raise.py +39 -0
- edc_reportable/utils/load_data.py +98 -0
- edc_reportable/utils/molecular_weight_model_cls.py +12 -0
- edc_reportable/utils/normal_data_model_cls.py +15 -0
- edc_reportable/utils/reference_range_colllection_model_cls.py +15 -0
- edc_reportable/utils/update_grading_data.py +89 -0
- edc_reportable/utils/update_grading_exceptions.py +32 -0
- edc_reportable/utils/update_normal_data.py +28 -0
- edc_review_dashboard/__init__.py +0 -0
- edc_review_dashboard/apps.py +11 -0
- edc_review_dashboard/auths.py +32 -0
- edc_review_dashboard/dashboard_templates.py +4 -0
- edc_review_dashboard/locale/sw/LC_MESSAGES/django.po +26 -0
- edc_review_dashboard/middleware.py +24 -0
- edc_review_dashboard/migrations/0001_initial.py +108 -0
- edc_review_dashboard/migrations/0002_auto_20220825_0451.py +23 -0
- edc_review_dashboard/migrations/0003_alter_edcpermissions_device_created_and_more.py +49 -0
- edc_review_dashboard/migrations/0004_edcpermissions_locale_created_and_more.py +34 -0
- edc_review_dashboard/migrations/__init__.py +0 -0
- edc_review_dashboard/models.py +9 -0
- edc_review_dashboard/navbars.py +16 -0
- edc_review_dashboard/system_checks.py +15 -0
- edc_review_dashboard/templates/edc_review_dashboard/home.html +22 -0
- edc_review_dashboard/templates/edc_review_dashboard/subject_review_button.html +3 -0
- edc_review_dashboard/templates/edc_review_dashboard/subject_review_listboard.html +60 -0
- edc_review_dashboard/urls.py +20 -0
- edc_review_dashboard/views/__init__.py +1 -0
- edc_review_dashboard/views/subject_review_listboard_view.py +81 -0
- edc_screening/__init__.py +0 -0
- edc_screening/age_evaluator.py +37 -0
- edc_screening/apps.py +6 -0
- edc_screening/auth_objects.py +4 -0
- edc_screening/auths.py +46 -0
- edc_screening/choices.py +13 -0
- edc_screening/constants.py +2 -0
- edc_screening/eligibility.py +84 -0
- edc_screening/exceptions.py +31 -0
- edc_screening/fc.py +31 -0
- edc_screening/form_validator_mixins.py +58 -0
- edc_screening/gender_evaluator.py +13 -0
- edc_screening/migrations/0001_initial.py +100 -0
- edc_screening/migrations/0002_alter_edcpermissions_device_created_and_more.py +49 -0
- edc_screening/migrations/0003_alter_edcpermissions_options_and_more.py +63 -0
- edc_screening/migrations/__init__.py +0 -0
- edc_screening/model_mixins/__init__.py +5 -0
- edc_screening/model_mixins/eligibility_model_mixin.py +64 -0
- edc_screening/model_mixins/screening_fields_model_mixin.py +97 -0
- edc_screening/model_mixins/screening_identifier_model_mixin.py +49 -0
- edc_screening/model_mixins/screening_methods_model_mixin.py +28 -0
- edc_screening/model_mixins/screening_model_mixin.py +45 -0
- edc_screening/modelform_mixins.py +44 -0
- edc_screening/models.py +9 -0
- edc_screening/screening_eligibility.py +250 -0
- edc_screening/screening_identifier.py +8 -0
- edc_screening/stubs.py +26 -0
- edc_screening/utils.py +136 -0
- edc_search/__init__.py +0 -0
- edc_search/apps.py +5 -0
- edc_search/constants.py +1 -0
- edc_search/model_mixins.py +45 -0
- edc_search/models.py +0 -0
- edc_search/search_slug.py +56 -0
- edc_search/updater.py +33 -0
- edc_search/urls.py +4 -0
- edc_search/wsgi.py +7 -0
- edc_sites/__init__.py +3 -0
- edc_sites/admin/__init__.py +5 -0
- edc_sites/admin/list_filters.py +26 -0
- edc_sites/admin/site_admin.py +15 -0
- edc_sites/admin/site_fieldset_tuple.py +8 -0
- edc_sites/admin/site_model_admin_mixin.py +218 -0
- edc_sites/admin_site.py +5 -0
- edc_sites/apps.py +48 -0
- edc_sites/auths.py +6 -0
- edc_sites/exceptions.py +10 -0
- edc_sites/form_validator_mixin.py +23 -0
- edc_sites/forms.py +1 -0
- edc_sites/management/__init__.py +0 -0
- edc_sites/management/commands/__init__.py +0 -0
- edc_sites/management/commands/sync_sites.py +81 -0
- edc_sites/managers.py +8 -0
- edc_sites/migrations/0001_initial.py +43 -0
- edc_sites/migrations/0002_auto_20190922_0452.py +15 -0
- edc_sites/migrations/0003_siteprofile_country.py +17 -0
- edc_sites/migrations/0004_siteprofile_country_code.py +17 -0
- edc_sites/migrations/0005_auto_20210423_1451.py +17 -0
- edc_sites/migrations/0006_siteprofile_languages.py +17 -0
- edc_sites/migrations/0007_edcpermissions.py +151 -0
- edc_sites/migrations/0008_delete_edcsite_remove_siteprofile_description.py +19 -0
- edc_sites/migrations/__init__.py +0 -0
- edc_sites/model_mixins/__init__.py +1 -0
- edc_sites/model_mixins/site_model_mixin.py +71 -0
- edc_sites/modelform_mixins.py +58 -0
- edc_sites/models/__init__.py +3 -0
- edc_sites/models/edc_permissions.py +9 -0
- edc_sites/models/site_profile.py +26 -0
- edc_sites/post_migrate_signals.py +18 -0
- edc_sites/single_site/__init__.py +3 -0
- edc_sites/single_site/get_languages.py +23 -0
- edc_sites/single_site/get_languages_from_settings.py +12 -0
- edc_sites/single_site/single_site.py +34 -0
- edc_sites/site.py +377 -0
- edc_sites/system_checks.py +100 -0
- edc_sites/templatetags/__init__.py +0 -0
- edc_sites/templatetags/edc_sites_extras.py +10 -0
- edc_sites/urls.py +11 -0
- edc_sites/utils/__init__.py +8 -0
- edc_sites/utils/add_or_update_django_sites.py +67 -0
- edc_sites/utils/get_message_text.py +17 -0
- edc_sites/utils/get_or_create_site_obj.py +30 -0
- edc_sites/utils/get_or_create_site_profile_obj.py +28 -0
- edc_sites/utils/get_site_model_cls.py +12 -0
- edc_sites/utils/has_profile_or_raise.py +27 -0
- edc_sites/utils/insert_into_domain.py +5 -0
- edc_sites/utils/is_current_site_or_raise.py +13 -0
- edc_sites/utils/valid_site_for_subject_or_raise.py +55 -0
- edc_sites/view_mixins.py +28 -0
- edc_subject_dashboard/__init__.py +6 -0
- edc_subject_dashboard/apps.py +11 -0
- edc_subject_dashboard/auths.py +36 -0
- edc_subject_dashboard/dashboard_templates.py +7 -0
- edc_subject_dashboard/locale/sw/LC_MESSAGES/django.po +66 -0
- edc_subject_dashboard/middleware.py +26 -0
- edc_subject_dashboard/migrations/0001_initial.py +100 -0
- edc_subject_dashboard/migrations/0002_alter_edcpermissions_device_created_and_more.py +49 -0
- edc_subject_dashboard/migrations/0003_edcpermissions_locale_created_and_more.py +34 -0
- edc_subject_dashboard/migrations/__init__.py +0 -0
- edc_subject_dashboard/models.py +9 -0
- edc_subject_dashboard/requisition_labels.py +57 -0
- edc_subject_dashboard/requisition_report.py +401 -0
- edc_subject_dashboard/requisition_verifier.py +79 -0
- edc_subject_dashboard/system_checks.py +15 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/appointment_in_progress.html +1 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/appointment_status.html +27 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/buttons/appointment_button.html +4 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/buttons/crf_button_group.html +3 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/buttons/forms_button.html +3 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/buttons/popover_list_item.html +1 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/buttons/prn_button.html +1 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/buttons/refresh_appointments_button.html +1 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/buttons/refresh_data_collection_schedule_button.html +2 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/buttons/requisition_button_group.html +5 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/buttons/subject_consent_button.html +4 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/buttons/subject_schedule_button.html +6 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/buttons/unscheduled_appointment_button.html +6 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/buttons/visit_button.html +7 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/dashboard/appointments.html +39 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/dashboard/crf_totals.html +11 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/dashboard/crfs.html +57 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/dashboard/data_queries.html +20 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/dashboard/requisitions.html +74 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/dashboard/sidebar/consents.html +20 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/dashboard/sidebar/demographics.html +5 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/dashboard/sidebar/metadata.html +5 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/dashboard/sidebar/prn.html +2 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/dashboard/sidebar/sidebar.html +58 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/dashboard/sidebar.html +41 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/dashboard/topbar.html +6 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/dashboard.html +103 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/dashboard_button.html +4 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/print_requisition_popover.html +5 -0
- edc_subject_dashboard/templates/edc_subject_dashboard/requisition_panel_actions.html +52 -0
- edc_subject_dashboard/templatetags/__init__.py +0 -0
- edc_subject_dashboard/templatetags/edc_subject_dashboard_extras.py +530 -0
- edc_subject_dashboard/urls.py +42 -0
- edc_subject_dashboard/view_mixins/__init__.py +2 -0
- edc_subject_dashboard/view_mixins/registered_subject_view_mixin.py +49 -0
- edc_subject_dashboard/view_mixins/subject_visit_view_mixin.py +94 -0
- edc_subject_dashboard/view_utils/__init__.py +18 -0
- edc_subject_dashboard/view_utils/crf_button.py +31 -0
- edc_subject_dashboard/view_utils/go_to_forms_button.py +92 -0
- edc_subject_dashboard/view_utils/requisition_button.py +39 -0
- edc_subject_dashboard/view_utils/subject_consent_dashboard_button.py +45 -0
- edc_subject_dashboard/view_utils/subject_consent_listboard_button.py +83 -0
- edc_subject_dashboard/view_utils/subject_screening_button.py +61 -0
- edc_subject_dashboard/view_utils/timepoint_status_button.py +98 -0
- edc_subject_dashboard/views/__init__.py +4 -0
- edc_subject_dashboard/views/base_requisition_view.py +34 -0
- edc_subject_dashboard/views/refresh_appointments_view.py +34 -0
- edc_subject_dashboard/views/requisition_print_actions_view.py +191 -0
- edc_subject_dashboard/views/requisition_verify_actions_view.py +41 -0
- edc_subject_dashboard/views/subject_dashboard_view.py +63 -0
- edc_subject_dashboard/wsgi.py +16 -0
- edc_timepoint/__init__.py +2 -0
- edc_timepoint/apps.py +59 -0
- edc_timepoint/choices.py +7 -0
- edc_timepoint/constants.py +3 -0
- edc_timepoint/form_mixin.py +25 -0
- edc_timepoint/model_mixins.py +153 -0
- edc_timepoint/models/__init__.py +1 -0
- edc_timepoint/models/signals.py +14 -0
- edc_timepoint/timepoint.py +28 -0
- edc_timepoint/timepoint_collection.py +43 -0
- edc_timepoint/timepoint_lookup.py +55 -0
- edc_timepoint/utils.py +5 -0
- edc_transfer/__init__.py +0 -0
- edc_transfer/action_items.py +23 -0
- edc_transfer/apps.py +6 -0
- edc_transfer/choices.py +7 -0
- edc_transfer/constants.py +2 -0
- edc_transfer/form_validators.py +84 -0
- edc_transfer/forms.py +29 -0
- edc_transfer/list_data.py +12 -0
- edc_transfer/model_mixins.py +89 -0
- edc_transfer/modeladmin_mixins.py +67 -0
- edc_transfer/modelform_mixins.py +25 -0
- edc_transfer/models.py +20 -0
- edc_unblinding/__init__.py +0 -0
- edc_unblinding/action_items.py +53 -0
- edc_unblinding/admin/__init__.py +6 -0
- edc_unblinding/admin/autocomplete_admin.py +42 -0
- edc_unblinding/admin/unblinding_request_admin.py +54 -0
- edc_unblinding/admin/unblinding_review_admin.py +36 -0
- edc_unblinding/admin_site.py +7 -0
- edc_unblinding/apps.py +8 -0
- edc_unblinding/auth_objects.py +24 -0
- edc_unblinding/auths.py +15 -0
- edc_unblinding/constants.py +2 -0
- edc_unblinding/forms/__init__.py +2 -0
- edc_unblinding/forms/unblinding_request_form.py +28 -0
- edc_unblinding/forms/unblinding_review_form.py +28 -0
- edc_unblinding/migrations/0001_initial.py +886 -0
- edc_unblinding/migrations/0002_auto_20210908_2318.py +63 -0
- edc_unblinding/migrations/0003_auto_20210911_2036.py +32 -0
- edc_unblinding/migrations/0004_auto_20220704_1841.py +40 -0
- edc_unblinding/migrations/0005_alter_historicalunblindingrequest_action_identifier_and_more.py +32 -0
- edc_unblinding/migrations/0006_auto_20220826_0258.py +35 -0
- edc_unblinding/migrations/0007_auto_20220826_0322.py +32 -0
- edc_unblinding/migrations/0008_auto_20220826_0406.py +28 -0
- edc_unblinding/migrations/0009_alter_unblindingrequest_managers_and_more.py +28 -0
- edc_unblinding/migrations/0010_alter_historicalunblindingrequest_device_created_and_more.py +154 -0
- edc_unblinding/migrations/0011_alter_unblindingrequest_options_and_more.py +135 -0
- edc_unblinding/migrations/0012_alter_historicalunblindingrequest_site_and_more.py +58 -0
- edc_unblinding/migrations/__init__.py +0 -0
- edc_unblinding/models/__init__.py +3 -0
- edc_unblinding/models/unblinding_request.py +73 -0
- edc_unblinding/models/unblinding_review.py +55 -0
- edc_unblinding/models/unblinding_user.py +23 -0
- edc_unblinding/urls.py +11 -0
- edc_utils/__init__.py +55 -0
- edc_utils/age.py +90 -0
- edc_utils/apps.py +8 -0
- edc_utils/celery.py +48 -0
- edc_utils/context_processors_check.py +20 -0
- edc_utils/dashboard_middleware_check.py +16 -0
- edc_utils/date.py +57 -0
- edc_utils/disable_signals.py +51 -0
- edc_utils/get_datetime_from_env.py +32 -0
- edc_utils/get_static_file.py +25 -0
- edc_utils/get_uuid.py +5 -0
- edc_utils/logging_filters/__init__.py +1 -0
- edc_utils/logging_filters/ignore_specific_ip_disallowed_host.py +15 -0
- edc_utils/message_in_queue.py +9 -0
- edc_utils/paths_for_urlpatterns.py +23 -0
- edc_utils/round_up.py +27 -0
- edc_utils/show_urls.py +89 -0
- edc_utils/sqlite.py +5 -0
- edc_utils/text.py +119 -0
- edc_view_utils/__init__.py +22 -0
- edc_view_utils/apps.py +8 -0
- edc_view_utils/dashboard_model_button.py +61 -0
- edc_view_utils/history_button.py +42 -0
- edc_view_utils/migrations/__init__.py +0 -0
- edc_view_utils/model_button.py +163 -0
- edc_view_utils/next_querystring.py +45 -0
- edc_view_utils/perms.py +98 -0
- edc_view_utils/prn_button.py +8 -0
- edc_view_utils/query_button.py +76 -0
- edc_view_utils/render_history_and_query_buttons.py +36 -0
- edc_visit_schedule/__init__.py +0 -0
- edc_visit_schedule/action_items.py +25 -0
- edc_visit_schedule/admin/__init__.py +3 -0
- edc_visit_schedule/admin/list_filters.py +43 -0
- edc_visit_schedule/admin/subject_schedule_history_admin.py +116 -0
- edc_visit_schedule/admin/visit_schedule_admin.py +66 -0
- edc_visit_schedule/admin_site.py +7 -0
- edc_visit_schedule/apps.py +11 -0
- edc_visit_schedule/auths.py +4 -0
- edc_visit_schedule/baseline.py +99 -0
- edc_visit_schedule/choices.py +11 -0
- edc_visit_schedule/constants.py +41 -0
- edc_visit_schedule/exceptions.py +70 -0
- edc_visit_schedule/fieldsets.py +22 -0
- edc_visit_schedule/forms.py +14 -0
- edc_visit_schedule/management/__init__.py +0 -0
- edc_visit_schedule/management/commands/__init__.py +0 -0
- edc_visit_schedule/management/commands/find_invalid_onschedules.py +48 -0
- edc_visit_schedule/migrations/0001_initial.py +141 -0
- edc_visit_schedule/migrations/0002_auto_20190305_0123.py +56 -0
- edc_visit_schedule/migrations/0003_historicalvisitschedule_visitschedule.py +227 -0
- edc_visit_schedule/migrations/0004_auto_20190629_1800.py +25 -0
- edc_visit_schedule/migrations/0005_auto_20190706_0137.py +20 -0
- edc_visit_schedule/migrations/0006_auto_20190706_0706.py +24 -0
- edc_visit_schedule/migrations/0007_auto_20190922_0439.py +15 -0
- edc_visit_schedule/migrations/0008_auto_20200513_0023.py +42 -0
- edc_visit_schedule/migrations/0009_auto_20220704_1841.py +26 -0
- edc_visit_schedule/migrations/0010_alter_subjectschedulehistory_options_and_more.py +44 -0
- edc_visit_schedule/migrations/0011_alter_historicalvisitschedule_device_created_and_more.py +119 -0
- edc_visit_schedule/migrations/0012_alter_subjectschedulehistory_managers_and_more.py +37 -0
- edc_visit_schedule/migrations/0013_auto_20230928_1810.py +23 -0
- edc_visit_schedule/migrations/0014_alter_subjectschedulehistory_options_and_more.py +136 -0
- edc_visit_schedule/migrations/0015_historicalonschedule_offschedule_onschedule.py +502 -0
- edc_visit_schedule/migrations/0016_alter_historicalonschedule_site_and_more.py +56 -0
- edc_visit_schedule/migrations/0017_alter_onschedule_managers.py +25 -0
- edc_visit_schedule/migrations/__init__.py +0 -0
- edc_visit_schedule/model_mixins/__init__.py +11 -0
- edc_visit_schedule/model_mixins/crf/__init__.py +1 -0
- edc_visit_schedule/model_mixins/crf/crf_schedule_model_mixin.py +60 -0
- edc_visit_schedule/model_mixins/off_schedule_model_mixin.py +96 -0
- edc_visit_schedule/model_mixins/on_schedule_model_mixin.py +94 -0
- edc_visit_schedule/model_mixins/subject_on_schedule_model_mixin.py +25 -0
- edc_visit_schedule/model_mixins/visit_schedule/__init__.py +7 -0
- edc_visit_schedule/model_mixins/visit_schedule/visit_code_fields_model_mixin.py +20 -0
- edc_visit_schedule/model_mixins/visit_schedule/visit_schedule_fields_model_mixin.py +20 -0
- edc_visit_schedule/model_mixins/visit_schedule/visit_schedule_methods_model_mixin.py +75 -0
- edc_visit_schedule/model_mixins/visit_schedule/visit_schedule_model_mixins.py +24 -0
- edc_visit_schedule/modelform_mixins/__init__.py +9 -0
- edc_visit_schedule/modelform_mixins/crf/__init__.py +1 -0
- edc_visit_schedule/modelform_mixins/crf/visit_schedule_crf_modelform_mixin.py +71 -0
- edc_visit_schedule/modelform_mixins/off_schedule_modelform_mixin.py +63 -0
- edc_visit_schedule/modelform_mixins/visit_schedule_non_crf_modelform_mixin.py +89 -0
- edc_visit_schedule/models/__init__.py +8 -0
- edc_visit_schedule/models/offschedule.py +13 -0
- edc_visit_schedule/models/onschedule.py +11 -0
- edc_visit_schedule/models/signals.py +68 -0
- edc_visit_schedule/models/subject_schedule_history.py +117 -0
- edc_visit_schedule/models/visit_schedule.py +70 -0
- edc_visit_schedule/navbars.py +30 -0
- edc_visit_schedule/ordered_collection.py +60 -0
- edc_visit_schedule/post_migrate_signals.py +23 -0
- edc_visit_schedule/schedule/__init__.py +2 -0
- edc_visit_schedule/schedule/schedule.py +412 -0
- edc_visit_schedule/schedule/visit_collection.py +64 -0
- edc_visit_schedule/schedule/window.py +137 -0
- edc_visit_schedule/simple_model_validator.py +29 -0
- edc_visit_schedule/site_visit_schedules.py +337 -0
- edc_visit_schedule/subject_schedule.py +411 -0
- edc_visit_schedule/system_checks.py +217 -0
- edc_visit_schedule/templates/edc_visit_schedule/home.html +27 -0
- edc_visit_schedule/templates/edc_visit_schedule/subject_schedule_footer_row.html +11 -0
- edc_visit_schedule/templates/edc_visit_schedule/visit_schedule.html +76 -0
- edc_visit_schedule/templatetags/__init__.py +0 -0
- edc_visit_schedule/templatetags/edc_visit_schedule_extras.py +76 -0
- edc_visit_schedule/typing_stubs.py +11 -0
- edc_visit_schedule/urls.py +32 -0
- edc_visit_schedule/utils.py +383 -0
- edc_visit_schedule/view_mixins.py +60 -0
- edc_visit_schedule/views/__init__.py +2 -0
- edc_visit_schedule/views/home_view.py +10 -0
- edc_visit_schedule/views/visit_schedule_view.py +29 -0
- edc_visit_schedule/visit/__init__.py +7 -0
- edc_visit_schedule/visit/crf.py +74 -0
- edc_visit_schedule/visit/crf_collection.py +23 -0
- edc_visit_schedule/visit/forms_collection.py +120 -0
- edc_visit_schedule/visit/requisition.py +73 -0
- edc_visit_schedule/visit/requisition_collection.py +23 -0
- edc_visit_schedule/visit/visit.py +319 -0
- edc_visit_schedule/visit/window_period.py +51 -0
- edc_visit_schedule/visit_schedule/__init__.py +9 -0
- edc_visit_schedule/visit_schedule/schedules_collection.py +42 -0
- edc_visit_schedule/visit_schedule/visit_schedule.py +166 -0
- edc_visit_schedule/wsgi.py +16 -0
- edc_visit_tracking/__init__.py +0 -0
- edc_visit_tracking/action_items.py +40 -0
- edc_visit_tracking/admin.py +19 -0
- edc_visit_tracking/admin_site.py +7 -0
- edc_visit_tracking/apps.py +18 -0
- edc_visit_tracking/choices.py +87 -0
- edc_visit_tracking/constants.py +15 -0
- edc_visit_tracking/context_processors.py +12 -0
- edc_visit_tracking/crf_date_validator.py +99 -0
- edc_visit_tracking/exceptions.py +10 -0
- edc_visit_tracking/form_validators/__init__.py +2 -0
- edc_visit_tracking/form_validators/visit_form_validator.py +329 -0
- edc_visit_tracking/form_validators/visit_missed_form_validator.py +44 -0
- edc_visit_tracking/locale/sw/LC_MESSAGES/django.po +111 -0
- edc_visit_tracking/managers.py +126 -0
- edc_visit_tracking/migrations/0001_initial.py +168 -0
- edc_visit_tracking/migrations/0002_auto_20210423_1451.py +22 -0
- edc_visit_tracking/migrations/0003_auto_20220913_2139.py +26 -0
- edc_visit_tracking/migrations/0004_subjectvisit_subjectvisitmissedreasons_extra_value_and_more.py +1317 -0
- edc_visit_tracking/migrations/0005_alter_subjectvisit_options_and_more.py +279 -0
- edc_visit_tracking/migrations/0006_alter_historicalsubjectvisit_site_and_more.py +58 -0
- edc_visit_tracking/migrations/0007_alter_historicalsubjectvisit_consent_model_and_more.py +53 -0
- edc_visit_tracking/migrations/__init__.py +0 -0
- edc_visit_tracking/model_mixins/__init__.py +11 -0
- edc_visit_tracking/model_mixins/base/__init__.py +1 -0
- edc_visit_tracking/model_mixins/base/visit_methods_model_mixin.py +125 -0
- edc_visit_tracking/model_mixins/crfs/__init__.py +2 -0
- edc_visit_tracking/model_mixins/crfs/inline_visits_methods_model_mixin.py +14 -0
- edc_visit_tracking/model_mixins/crfs/visit_tracking_crf_model_mixin.py +63 -0
- edc_visit_tracking/model_mixins/requisitions/__init__.py +1 -0
- edc_visit_tracking/model_mixins/requisitions/visit_tracking_requisition_model_mixin.py +40 -0
- edc_visit_tracking/model_mixins/subject_visit_missed_model_mixin.py +117 -0
- edc_visit_tracking/model_mixins/utils.py +40 -0
- edc_visit_tracking/model_mixins/visit_model_mixin/__init__.py +4 -0
- edc_visit_tracking/model_mixins/visit_model_mixin/caretaker_fields_mixin.py +40 -0
- edc_visit_tracking/model_mixins/visit_model_mixin/previous_visit_model_mixin.py +60 -0
- edc_visit_tracking/model_mixins/visit_model_mixin/visit_model_fields_mixin.py +106 -0
- edc_visit_tracking/model_mixins/visit_model_mixin/visit_model_mixin.py +130 -0
- edc_visit_tracking/modeladmin_mixins/__init__.py +2 -0
- edc_visit_tracking/modeladmin_mixins/crf_model_admin_mixin.py +128 -0
- edc_visit_tracking/modeladmin_mixins/visit_model_admin_mixin.py +158 -0
- edc_visit_tracking/modelform_mixins/__init__.py +3 -0
- edc_visit_tracking/modelform_mixins/crf/__init__.py +4 -0
- edc_visit_tracking/modelform_mixins/crf/visit_tracking_crf_modelform_mixin.py +123 -0
- edc_visit_tracking/modelform_mixins/utils.py +53 -0
- edc_visit_tracking/modelform_mixins/visit_tracking_modelform_mixin.py +89 -0
- edc_visit_tracking/models/__init__.py +8 -0
- edc_visit_tracking/models/signals.py +68 -0
- edc_visit_tracking/models/subject_visit.py +56 -0
- edc_visit_tracking/models/subject_visit_missed.py +30 -0
- edc_visit_tracking/models/subject_visit_missed_reasons.py +7 -0
- edc_visit_tracking/models/visit_reasons.py +7 -0
- edc_visit_tracking/stubs.py +44 -0
- edc_visit_tracking/system_checks.py +15 -0
- edc_visit_tracking/typing_stubs.py +74 -0
- edc_visit_tracking/urls.py +7 -0
- edc_visit_tracking/utils.py +104 -0
- edc_visit_tracking/view_utils/__init__.py +3 -0
- edc_visit_tracking/view_utils/related_visit_button.py +102 -0
- edc_visit_tracking/visit_sequence.py +116 -0
- edc_visit_tracking/wsgi.py +7 -0
|
@@ -0,0 +1,4345 @@
|
|
|
1
|
+
# Generated by Django 3.2.9 on 2021-11-17 00:52
|
|
2
|
+
|
|
3
|
+
import uuid
|
|
4
|
+
|
|
5
|
+
import _socket
|
|
6
|
+
import django.core.validators
|
|
7
|
+
import django.db.models.deletion
|
|
8
|
+
import django_audit_fields.fields.hostname_modification_field
|
|
9
|
+
import django_audit_fields.fields.userfield
|
|
10
|
+
import django_audit_fields.fields.uuid_auto_field
|
|
11
|
+
import django_audit_fields.models.audit_model_mixin
|
|
12
|
+
import django_revision.revision_field
|
|
13
|
+
import edc_registration.models.managers
|
|
14
|
+
import edc_sites.models
|
|
15
|
+
import edc_utils.date
|
|
16
|
+
import simple_history.models
|
|
17
|
+
from django.conf import settings
|
|
18
|
+
from django.db import migrations, models
|
|
19
|
+
|
|
20
|
+
import edc_pharmacy.models.medication
|
|
21
|
+
import edc_pharmacy.models.prescription
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Migration(migrations.Migration):
|
|
25
|
+
initial = True
|
|
26
|
+
|
|
27
|
+
dependencies = [
|
|
28
|
+
("edc_visit_schedule", "0008_auto_20200513_0023"),
|
|
29
|
+
("sites", "0002_alter_domain_unique"),
|
|
30
|
+
("edc_registration", "0021_auto_20200513_0023"),
|
|
31
|
+
("edc_action_item", "0028_auto_20210203_0706"),
|
|
32
|
+
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
operations = [
|
|
36
|
+
migrations.CreateModel(
|
|
37
|
+
name="Container",
|
|
38
|
+
fields=[
|
|
39
|
+
(
|
|
40
|
+
"name",
|
|
41
|
+
models.CharField(
|
|
42
|
+
db_index=True,
|
|
43
|
+
help_text="This is the stored value, required",
|
|
44
|
+
max_length=250,
|
|
45
|
+
unique=True,
|
|
46
|
+
verbose_name="Stored value",
|
|
47
|
+
),
|
|
48
|
+
),
|
|
49
|
+
(
|
|
50
|
+
"display_name",
|
|
51
|
+
models.CharField(
|
|
52
|
+
db_index=True,
|
|
53
|
+
help_text="(suggest 40 characters max.)",
|
|
54
|
+
max_length=250,
|
|
55
|
+
unique=True,
|
|
56
|
+
verbose_name="Name",
|
|
57
|
+
),
|
|
58
|
+
),
|
|
59
|
+
(
|
|
60
|
+
"display_index",
|
|
61
|
+
models.IntegerField(
|
|
62
|
+
db_index=True,
|
|
63
|
+
default=0,
|
|
64
|
+
help_text="Index to control display order if not alphabetical, not required",
|
|
65
|
+
verbose_name="display index",
|
|
66
|
+
),
|
|
67
|
+
),
|
|
68
|
+
(
|
|
69
|
+
"field_name",
|
|
70
|
+
models.CharField(
|
|
71
|
+
blank=True,
|
|
72
|
+
editable=False,
|
|
73
|
+
help_text="Not required",
|
|
74
|
+
max_length=25,
|
|
75
|
+
null=True,
|
|
76
|
+
),
|
|
77
|
+
),
|
|
78
|
+
(
|
|
79
|
+
"version",
|
|
80
|
+
models.CharField(default="1.0", editable=False, max_length=35),
|
|
81
|
+
),
|
|
82
|
+
("id", models.AutoField(primary_key=True, serialize=False)),
|
|
83
|
+
],
|
|
84
|
+
options={
|
|
85
|
+
"verbose_name": "Container",
|
|
86
|
+
"verbose_name_plural": "Containers",
|
|
87
|
+
"ordering": ["display_index", "display_name"],
|
|
88
|
+
"abstract": False,
|
|
89
|
+
"default_permissions": (
|
|
90
|
+
"add",
|
|
91
|
+
"change",
|
|
92
|
+
"delete",
|
|
93
|
+
"view",
|
|
94
|
+
"export",
|
|
95
|
+
"import",
|
|
96
|
+
),
|
|
97
|
+
},
|
|
98
|
+
),
|
|
99
|
+
migrations.CreateModel(
|
|
100
|
+
name="DispensingHistory",
|
|
101
|
+
fields=[
|
|
102
|
+
(
|
|
103
|
+
"revision",
|
|
104
|
+
django_revision.revision_field.RevisionField(
|
|
105
|
+
blank=True,
|
|
106
|
+
editable=False,
|
|
107
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
108
|
+
max_length=75,
|
|
109
|
+
null=True,
|
|
110
|
+
verbose_name="Revision",
|
|
111
|
+
),
|
|
112
|
+
),
|
|
113
|
+
(
|
|
114
|
+
"created",
|
|
115
|
+
models.DateTimeField(
|
|
116
|
+
blank=True,
|
|
117
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
118
|
+
),
|
|
119
|
+
),
|
|
120
|
+
(
|
|
121
|
+
"modified",
|
|
122
|
+
models.DateTimeField(
|
|
123
|
+
blank=True,
|
|
124
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
125
|
+
),
|
|
126
|
+
),
|
|
127
|
+
(
|
|
128
|
+
"user_created",
|
|
129
|
+
django_audit_fields.fields.userfield.UserField(
|
|
130
|
+
blank=True,
|
|
131
|
+
help_text="Updated by admin.save_model",
|
|
132
|
+
max_length=50,
|
|
133
|
+
verbose_name="user created",
|
|
134
|
+
),
|
|
135
|
+
),
|
|
136
|
+
(
|
|
137
|
+
"user_modified",
|
|
138
|
+
django_audit_fields.fields.userfield.UserField(
|
|
139
|
+
blank=True,
|
|
140
|
+
help_text="Updated by admin.save_model",
|
|
141
|
+
max_length=50,
|
|
142
|
+
verbose_name="user modified",
|
|
143
|
+
),
|
|
144
|
+
),
|
|
145
|
+
(
|
|
146
|
+
"hostname_created",
|
|
147
|
+
models.CharField(
|
|
148
|
+
blank=True,
|
|
149
|
+
default=_socket.gethostname,
|
|
150
|
+
help_text="System field. (modified on create only)",
|
|
151
|
+
max_length=60,
|
|
152
|
+
),
|
|
153
|
+
),
|
|
154
|
+
(
|
|
155
|
+
"hostname_modified",
|
|
156
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
157
|
+
blank=True,
|
|
158
|
+
help_text="System field. (modified on every save)",
|
|
159
|
+
max_length=50,
|
|
160
|
+
),
|
|
161
|
+
),
|
|
162
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
163
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
164
|
+
(
|
|
165
|
+
"id",
|
|
166
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
167
|
+
blank=True,
|
|
168
|
+
editable=False,
|
|
169
|
+
help_text="System auto field. UUID primary key.",
|
|
170
|
+
primary_key=True,
|
|
171
|
+
serialize=False,
|
|
172
|
+
),
|
|
173
|
+
),
|
|
174
|
+
(
|
|
175
|
+
"dispensed_datetime",
|
|
176
|
+
models.DateTimeField(default=edc_utils.date.get_utcnow),
|
|
177
|
+
),
|
|
178
|
+
("dispensed", models.DecimalField(decimal_places=1, max_digits=6)),
|
|
179
|
+
(
|
|
180
|
+
"status",
|
|
181
|
+
models.CharField(
|
|
182
|
+
choices=[
|
|
183
|
+
("dispensed", "Dispensed"),
|
|
184
|
+
("cancelled", "Cancelled"),
|
|
185
|
+
],
|
|
186
|
+
default="dispensed",
|
|
187
|
+
max_length=25,
|
|
188
|
+
verbose_name="Status",
|
|
189
|
+
),
|
|
190
|
+
),
|
|
191
|
+
],
|
|
192
|
+
options={
|
|
193
|
+
"verbose_name": "Dispensing history",
|
|
194
|
+
"verbose_name_plural": "Dispensing history",
|
|
195
|
+
"ordering": ("-modified", "-created"),
|
|
196
|
+
"get_latest_by": "modified",
|
|
197
|
+
"abstract": False,
|
|
198
|
+
"default_permissions": (
|
|
199
|
+
"add",
|
|
200
|
+
"change",
|
|
201
|
+
"delete",
|
|
202
|
+
"view",
|
|
203
|
+
"export",
|
|
204
|
+
"import",
|
|
205
|
+
),
|
|
206
|
+
},
|
|
207
|
+
managers=[
|
|
208
|
+
("objects", django.db.models.Manager()),
|
|
209
|
+
],
|
|
210
|
+
),
|
|
211
|
+
migrations.CreateModel(
|
|
212
|
+
name="DosageGuideline",
|
|
213
|
+
fields=[
|
|
214
|
+
(
|
|
215
|
+
"revision",
|
|
216
|
+
django_revision.revision_field.RevisionField(
|
|
217
|
+
blank=True,
|
|
218
|
+
editable=False,
|
|
219
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
220
|
+
max_length=75,
|
|
221
|
+
null=True,
|
|
222
|
+
verbose_name="Revision",
|
|
223
|
+
),
|
|
224
|
+
),
|
|
225
|
+
(
|
|
226
|
+
"created",
|
|
227
|
+
models.DateTimeField(
|
|
228
|
+
blank=True,
|
|
229
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
230
|
+
),
|
|
231
|
+
),
|
|
232
|
+
(
|
|
233
|
+
"modified",
|
|
234
|
+
models.DateTimeField(
|
|
235
|
+
blank=True,
|
|
236
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
237
|
+
),
|
|
238
|
+
),
|
|
239
|
+
(
|
|
240
|
+
"user_created",
|
|
241
|
+
django_audit_fields.fields.userfield.UserField(
|
|
242
|
+
blank=True,
|
|
243
|
+
help_text="Updated by admin.save_model",
|
|
244
|
+
max_length=50,
|
|
245
|
+
verbose_name="user created",
|
|
246
|
+
),
|
|
247
|
+
),
|
|
248
|
+
(
|
|
249
|
+
"user_modified",
|
|
250
|
+
django_audit_fields.fields.userfield.UserField(
|
|
251
|
+
blank=True,
|
|
252
|
+
help_text="Updated by admin.save_model",
|
|
253
|
+
max_length=50,
|
|
254
|
+
verbose_name="user modified",
|
|
255
|
+
),
|
|
256
|
+
),
|
|
257
|
+
(
|
|
258
|
+
"hostname_created",
|
|
259
|
+
models.CharField(
|
|
260
|
+
blank=True,
|
|
261
|
+
default=_socket.gethostname,
|
|
262
|
+
help_text="System field. (modified on create only)",
|
|
263
|
+
max_length=60,
|
|
264
|
+
),
|
|
265
|
+
),
|
|
266
|
+
(
|
|
267
|
+
"hostname_modified",
|
|
268
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
269
|
+
blank=True,
|
|
270
|
+
help_text="System field. (modified on every save)",
|
|
271
|
+
max_length=50,
|
|
272
|
+
),
|
|
273
|
+
),
|
|
274
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
275
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
276
|
+
(
|
|
277
|
+
"id",
|
|
278
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
279
|
+
blank=True,
|
|
280
|
+
editable=False,
|
|
281
|
+
help_text="System auto field. UUID primary key.",
|
|
282
|
+
primary_key=True,
|
|
283
|
+
serialize=False,
|
|
284
|
+
),
|
|
285
|
+
),
|
|
286
|
+
(
|
|
287
|
+
"dose",
|
|
288
|
+
models.DecimalField(
|
|
289
|
+
blank=True,
|
|
290
|
+
decimal_places=2,
|
|
291
|
+
help_text="dose per 'frequency unit' if NOT considering subject's weight",
|
|
292
|
+
max_digits=8,
|
|
293
|
+
null=True,
|
|
294
|
+
),
|
|
295
|
+
),
|
|
296
|
+
(
|
|
297
|
+
"dose_per_kg",
|
|
298
|
+
models.DecimalField(
|
|
299
|
+
blank=True,
|
|
300
|
+
decimal_places=2,
|
|
301
|
+
help_text="dose per 'frequency unit' if considering subject's weight",
|
|
302
|
+
max_digits=8,
|
|
303
|
+
null=True,
|
|
304
|
+
),
|
|
305
|
+
),
|
|
306
|
+
(
|
|
307
|
+
"frequency",
|
|
308
|
+
models.DecimalField(
|
|
309
|
+
decimal_places=2,
|
|
310
|
+
default=1,
|
|
311
|
+
help_text="number of times per 'frequency unit'",
|
|
312
|
+
max_digits=6,
|
|
313
|
+
validators=[django.core.validators.MinValueValidator(1.0)],
|
|
314
|
+
verbose_name="Frequency",
|
|
315
|
+
),
|
|
316
|
+
),
|
|
317
|
+
],
|
|
318
|
+
options={
|
|
319
|
+
"verbose_name": "Dosage Guideline",
|
|
320
|
+
"verbose_name_plural": "Dosage Guidelines",
|
|
321
|
+
"ordering": ("-modified", "-created"),
|
|
322
|
+
"get_latest_by": "modified",
|
|
323
|
+
"abstract": False,
|
|
324
|
+
"default_permissions": (
|
|
325
|
+
"add",
|
|
326
|
+
"change",
|
|
327
|
+
"delete",
|
|
328
|
+
"view",
|
|
329
|
+
"export",
|
|
330
|
+
"import",
|
|
331
|
+
),
|
|
332
|
+
},
|
|
333
|
+
managers=[
|
|
334
|
+
("objects", edc_pharmacy.models.medication.dosage_guideline.Manager()),
|
|
335
|
+
],
|
|
336
|
+
),
|
|
337
|
+
migrations.CreateModel(
|
|
338
|
+
name="Formulation",
|
|
339
|
+
fields=[
|
|
340
|
+
(
|
|
341
|
+
"revision",
|
|
342
|
+
django_revision.revision_field.RevisionField(
|
|
343
|
+
blank=True,
|
|
344
|
+
editable=False,
|
|
345
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
346
|
+
max_length=75,
|
|
347
|
+
null=True,
|
|
348
|
+
verbose_name="Revision",
|
|
349
|
+
),
|
|
350
|
+
),
|
|
351
|
+
(
|
|
352
|
+
"created",
|
|
353
|
+
models.DateTimeField(
|
|
354
|
+
blank=True,
|
|
355
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
356
|
+
),
|
|
357
|
+
),
|
|
358
|
+
(
|
|
359
|
+
"modified",
|
|
360
|
+
models.DateTimeField(
|
|
361
|
+
blank=True,
|
|
362
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
363
|
+
),
|
|
364
|
+
),
|
|
365
|
+
(
|
|
366
|
+
"user_created",
|
|
367
|
+
django_audit_fields.fields.userfield.UserField(
|
|
368
|
+
blank=True,
|
|
369
|
+
help_text="Updated by admin.save_model",
|
|
370
|
+
max_length=50,
|
|
371
|
+
verbose_name="user created",
|
|
372
|
+
),
|
|
373
|
+
),
|
|
374
|
+
(
|
|
375
|
+
"user_modified",
|
|
376
|
+
django_audit_fields.fields.userfield.UserField(
|
|
377
|
+
blank=True,
|
|
378
|
+
help_text="Updated by admin.save_model",
|
|
379
|
+
max_length=50,
|
|
380
|
+
verbose_name="user modified",
|
|
381
|
+
),
|
|
382
|
+
),
|
|
383
|
+
(
|
|
384
|
+
"hostname_created",
|
|
385
|
+
models.CharField(
|
|
386
|
+
blank=True,
|
|
387
|
+
default=_socket.gethostname,
|
|
388
|
+
help_text="System field. (modified on create only)",
|
|
389
|
+
max_length=60,
|
|
390
|
+
),
|
|
391
|
+
),
|
|
392
|
+
(
|
|
393
|
+
"hostname_modified",
|
|
394
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
395
|
+
blank=True,
|
|
396
|
+
help_text="System field. (modified on every save)",
|
|
397
|
+
max_length=50,
|
|
398
|
+
),
|
|
399
|
+
),
|
|
400
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
401
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
402
|
+
(
|
|
403
|
+
"id",
|
|
404
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
405
|
+
blank=True,
|
|
406
|
+
editable=False,
|
|
407
|
+
help_text="System auto field. UUID primary key.",
|
|
408
|
+
primary_key=True,
|
|
409
|
+
serialize=False,
|
|
410
|
+
),
|
|
411
|
+
),
|
|
412
|
+
("strength", models.DecimalField(decimal_places=1, max_digits=6)),
|
|
413
|
+
("notes", models.TextField(blank=True, max_length=250, null=True)),
|
|
414
|
+
],
|
|
415
|
+
options={
|
|
416
|
+
"verbose_name": "Formulation",
|
|
417
|
+
"verbose_name_plural": "Formulations",
|
|
418
|
+
"ordering": ("-modified", "-created"),
|
|
419
|
+
"get_latest_by": "modified",
|
|
420
|
+
"abstract": False,
|
|
421
|
+
"default_permissions": (
|
|
422
|
+
"add",
|
|
423
|
+
"change",
|
|
424
|
+
"delete",
|
|
425
|
+
"view",
|
|
426
|
+
"export",
|
|
427
|
+
"import",
|
|
428
|
+
),
|
|
429
|
+
},
|
|
430
|
+
managers=[
|
|
431
|
+
("objects", edc_pharmacy.models.medication.formulation.Manager()),
|
|
432
|
+
],
|
|
433
|
+
),
|
|
434
|
+
migrations.CreateModel(
|
|
435
|
+
name="FormulationType",
|
|
436
|
+
fields=[
|
|
437
|
+
(
|
|
438
|
+
"name",
|
|
439
|
+
models.CharField(
|
|
440
|
+
db_index=True,
|
|
441
|
+
help_text="This is the stored value, required",
|
|
442
|
+
max_length=250,
|
|
443
|
+
unique=True,
|
|
444
|
+
verbose_name="Stored value",
|
|
445
|
+
),
|
|
446
|
+
),
|
|
447
|
+
(
|
|
448
|
+
"display_name",
|
|
449
|
+
models.CharField(
|
|
450
|
+
db_index=True,
|
|
451
|
+
help_text="(suggest 40 characters max.)",
|
|
452
|
+
max_length=250,
|
|
453
|
+
unique=True,
|
|
454
|
+
verbose_name="Name",
|
|
455
|
+
),
|
|
456
|
+
),
|
|
457
|
+
(
|
|
458
|
+
"display_index",
|
|
459
|
+
models.IntegerField(
|
|
460
|
+
db_index=True,
|
|
461
|
+
default=0,
|
|
462
|
+
help_text="Index to control display order if not alphabetical, not required",
|
|
463
|
+
verbose_name="display index",
|
|
464
|
+
),
|
|
465
|
+
),
|
|
466
|
+
(
|
|
467
|
+
"field_name",
|
|
468
|
+
models.CharField(
|
|
469
|
+
blank=True,
|
|
470
|
+
editable=False,
|
|
471
|
+
help_text="Not required",
|
|
472
|
+
max_length=25,
|
|
473
|
+
null=True,
|
|
474
|
+
),
|
|
475
|
+
),
|
|
476
|
+
(
|
|
477
|
+
"version",
|
|
478
|
+
models.CharField(default="1.0", editable=False, max_length=35),
|
|
479
|
+
),
|
|
480
|
+
("id", models.AutoField(primary_key=True, serialize=False)),
|
|
481
|
+
],
|
|
482
|
+
options={
|
|
483
|
+
"verbose_name": "FormulationType",
|
|
484
|
+
"verbose_name_plural": "FormulationTypes",
|
|
485
|
+
"ordering": ["display_index", "display_name"],
|
|
486
|
+
"abstract": False,
|
|
487
|
+
"default_permissions": (
|
|
488
|
+
"add",
|
|
489
|
+
"change",
|
|
490
|
+
"delete",
|
|
491
|
+
"view",
|
|
492
|
+
"export",
|
|
493
|
+
"import",
|
|
494
|
+
),
|
|
495
|
+
},
|
|
496
|
+
),
|
|
497
|
+
migrations.CreateModel(
|
|
498
|
+
name="FrequencyUnits",
|
|
499
|
+
fields=[
|
|
500
|
+
(
|
|
501
|
+
"name",
|
|
502
|
+
models.CharField(
|
|
503
|
+
db_index=True,
|
|
504
|
+
help_text="This is the stored value, required",
|
|
505
|
+
max_length=250,
|
|
506
|
+
unique=True,
|
|
507
|
+
verbose_name="Stored value",
|
|
508
|
+
),
|
|
509
|
+
),
|
|
510
|
+
(
|
|
511
|
+
"display_name",
|
|
512
|
+
models.CharField(
|
|
513
|
+
db_index=True,
|
|
514
|
+
help_text="(suggest 40 characters max.)",
|
|
515
|
+
max_length=250,
|
|
516
|
+
unique=True,
|
|
517
|
+
verbose_name="Name",
|
|
518
|
+
),
|
|
519
|
+
),
|
|
520
|
+
(
|
|
521
|
+
"display_index",
|
|
522
|
+
models.IntegerField(
|
|
523
|
+
db_index=True,
|
|
524
|
+
default=0,
|
|
525
|
+
help_text="Index to control display order if not alphabetical, not required",
|
|
526
|
+
verbose_name="display index",
|
|
527
|
+
),
|
|
528
|
+
),
|
|
529
|
+
(
|
|
530
|
+
"field_name",
|
|
531
|
+
models.CharField(
|
|
532
|
+
blank=True,
|
|
533
|
+
editable=False,
|
|
534
|
+
help_text="Not required",
|
|
535
|
+
max_length=25,
|
|
536
|
+
null=True,
|
|
537
|
+
),
|
|
538
|
+
),
|
|
539
|
+
(
|
|
540
|
+
"version",
|
|
541
|
+
models.CharField(default="1.0", editable=False, max_length=35),
|
|
542
|
+
),
|
|
543
|
+
("id", models.AutoField(primary_key=True, serialize=False)),
|
|
544
|
+
],
|
|
545
|
+
options={
|
|
546
|
+
"verbose_name": "Frequency units",
|
|
547
|
+
"verbose_name_plural": "Frequency units",
|
|
548
|
+
"ordering": ["display_index", "display_name"],
|
|
549
|
+
"abstract": False,
|
|
550
|
+
"default_permissions": (
|
|
551
|
+
"add",
|
|
552
|
+
"change",
|
|
553
|
+
"delete",
|
|
554
|
+
"view",
|
|
555
|
+
"export",
|
|
556
|
+
"import",
|
|
557
|
+
),
|
|
558
|
+
},
|
|
559
|
+
),
|
|
560
|
+
migrations.CreateModel(
|
|
561
|
+
name="HistoricalDispensingHistory",
|
|
562
|
+
fields=[
|
|
563
|
+
(
|
|
564
|
+
"revision",
|
|
565
|
+
django_revision.revision_field.RevisionField(
|
|
566
|
+
blank=True,
|
|
567
|
+
editable=False,
|
|
568
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
569
|
+
max_length=75,
|
|
570
|
+
null=True,
|
|
571
|
+
verbose_name="Revision",
|
|
572
|
+
),
|
|
573
|
+
),
|
|
574
|
+
(
|
|
575
|
+
"created",
|
|
576
|
+
models.DateTimeField(
|
|
577
|
+
blank=True,
|
|
578
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
579
|
+
),
|
|
580
|
+
),
|
|
581
|
+
(
|
|
582
|
+
"modified",
|
|
583
|
+
models.DateTimeField(
|
|
584
|
+
blank=True,
|
|
585
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
586
|
+
),
|
|
587
|
+
),
|
|
588
|
+
(
|
|
589
|
+
"user_created",
|
|
590
|
+
django_audit_fields.fields.userfield.UserField(
|
|
591
|
+
blank=True,
|
|
592
|
+
help_text="Updated by admin.save_model",
|
|
593
|
+
max_length=50,
|
|
594
|
+
verbose_name="user created",
|
|
595
|
+
),
|
|
596
|
+
),
|
|
597
|
+
(
|
|
598
|
+
"user_modified",
|
|
599
|
+
django_audit_fields.fields.userfield.UserField(
|
|
600
|
+
blank=True,
|
|
601
|
+
help_text="Updated by admin.save_model",
|
|
602
|
+
max_length=50,
|
|
603
|
+
verbose_name="user modified",
|
|
604
|
+
),
|
|
605
|
+
),
|
|
606
|
+
(
|
|
607
|
+
"hostname_created",
|
|
608
|
+
models.CharField(
|
|
609
|
+
blank=True,
|
|
610
|
+
default=_socket.gethostname,
|
|
611
|
+
help_text="System field. (modified on create only)",
|
|
612
|
+
max_length=60,
|
|
613
|
+
),
|
|
614
|
+
),
|
|
615
|
+
(
|
|
616
|
+
"hostname_modified",
|
|
617
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
618
|
+
blank=True,
|
|
619
|
+
help_text="System field. (modified on every save)",
|
|
620
|
+
max_length=50,
|
|
621
|
+
),
|
|
622
|
+
),
|
|
623
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
624
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
625
|
+
(
|
|
626
|
+
"id",
|
|
627
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
628
|
+
blank=True,
|
|
629
|
+
db_index=True,
|
|
630
|
+
editable=False,
|
|
631
|
+
help_text="System auto field. UUID primary key.",
|
|
632
|
+
),
|
|
633
|
+
),
|
|
634
|
+
(
|
|
635
|
+
"dispensed_datetime",
|
|
636
|
+
models.DateTimeField(default=edc_utils.date.get_utcnow),
|
|
637
|
+
),
|
|
638
|
+
("dispensed", models.DecimalField(decimal_places=1, max_digits=6)),
|
|
639
|
+
(
|
|
640
|
+
"status",
|
|
641
|
+
models.CharField(
|
|
642
|
+
choices=[
|
|
643
|
+
("dispensed", "Dispensed"),
|
|
644
|
+
("cancelled", "Cancelled"),
|
|
645
|
+
],
|
|
646
|
+
default="dispensed",
|
|
647
|
+
max_length=25,
|
|
648
|
+
verbose_name="Status",
|
|
649
|
+
),
|
|
650
|
+
),
|
|
651
|
+
(
|
|
652
|
+
"history_id",
|
|
653
|
+
models.UUIDField(
|
|
654
|
+
default=uuid.uuid4,
|
|
655
|
+
editable=False,
|
|
656
|
+
primary_key=True,
|
|
657
|
+
serialize=False,
|
|
658
|
+
),
|
|
659
|
+
),
|
|
660
|
+
("history_date", models.DateTimeField()),
|
|
661
|
+
("history_change_reason", models.CharField(max_length=100, null=True)),
|
|
662
|
+
(
|
|
663
|
+
"history_type",
|
|
664
|
+
models.CharField(
|
|
665
|
+
choices=[("+", "Created"), ("~", "Changed"), ("-", "Deleted")],
|
|
666
|
+
max_length=1,
|
|
667
|
+
),
|
|
668
|
+
),
|
|
669
|
+
],
|
|
670
|
+
options={
|
|
671
|
+
"verbose_name": "historical Dispensing history",
|
|
672
|
+
"ordering": ("-history_date", "-history_id"),
|
|
673
|
+
"get_latest_by": "history_date",
|
|
674
|
+
},
|
|
675
|
+
bases=(simple_history.models.HistoricalChanges, models.Model),
|
|
676
|
+
),
|
|
677
|
+
migrations.CreateModel(
|
|
678
|
+
name="HistoricalDosageGuideline",
|
|
679
|
+
fields=[
|
|
680
|
+
(
|
|
681
|
+
"revision",
|
|
682
|
+
django_revision.revision_field.RevisionField(
|
|
683
|
+
blank=True,
|
|
684
|
+
editable=False,
|
|
685
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
686
|
+
max_length=75,
|
|
687
|
+
null=True,
|
|
688
|
+
verbose_name="Revision",
|
|
689
|
+
),
|
|
690
|
+
),
|
|
691
|
+
(
|
|
692
|
+
"created",
|
|
693
|
+
models.DateTimeField(
|
|
694
|
+
blank=True,
|
|
695
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
696
|
+
),
|
|
697
|
+
),
|
|
698
|
+
(
|
|
699
|
+
"modified",
|
|
700
|
+
models.DateTimeField(
|
|
701
|
+
blank=True,
|
|
702
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
703
|
+
),
|
|
704
|
+
),
|
|
705
|
+
(
|
|
706
|
+
"user_created",
|
|
707
|
+
django_audit_fields.fields.userfield.UserField(
|
|
708
|
+
blank=True,
|
|
709
|
+
help_text="Updated by admin.save_model",
|
|
710
|
+
max_length=50,
|
|
711
|
+
verbose_name="user created",
|
|
712
|
+
),
|
|
713
|
+
),
|
|
714
|
+
(
|
|
715
|
+
"user_modified",
|
|
716
|
+
django_audit_fields.fields.userfield.UserField(
|
|
717
|
+
blank=True,
|
|
718
|
+
help_text="Updated by admin.save_model",
|
|
719
|
+
max_length=50,
|
|
720
|
+
verbose_name="user modified",
|
|
721
|
+
),
|
|
722
|
+
),
|
|
723
|
+
(
|
|
724
|
+
"hostname_created",
|
|
725
|
+
models.CharField(
|
|
726
|
+
blank=True,
|
|
727
|
+
default=_socket.gethostname,
|
|
728
|
+
help_text="System field. (modified on create only)",
|
|
729
|
+
max_length=60,
|
|
730
|
+
),
|
|
731
|
+
),
|
|
732
|
+
(
|
|
733
|
+
"hostname_modified",
|
|
734
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
735
|
+
blank=True,
|
|
736
|
+
help_text="System field. (modified on every save)",
|
|
737
|
+
max_length=50,
|
|
738
|
+
),
|
|
739
|
+
),
|
|
740
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
741
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
742
|
+
(
|
|
743
|
+
"id",
|
|
744
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
745
|
+
blank=True,
|
|
746
|
+
db_index=True,
|
|
747
|
+
editable=False,
|
|
748
|
+
help_text="System auto field. UUID primary key.",
|
|
749
|
+
),
|
|
750
|
+
),
|
|
751
|
+
(
|
|
752
|
+
"dose",
|
|
753
|
+
models.DecimalField(
|
|
754
|
+
blank=True,
|
|
755
|
+
decimal_places=2,
|
|
756
|
+
help_text="dose per 'frequency unit' if NOT considering subject's weight",
|
|
757
|
+
max_digits=8,
|
|
758
|
+
null=True,
|
|
759
|
+
),
|
|
760
|
+
),
|
|
761
|
+
(
|
|
762
|
+
"dose_per_kg",
|
|
763
|
+
models.DecimalField(
|
|
764
|
+
blank=True,
|
|
765
|
+
decimal_places=2,
|
|
766
|
+
help_text="dose per 'frequency unit' if considering subject's weight",
|
|
767
|
+
max_digits=8,
|
|
768
|
+
null=True,
|
|
769
|
+
),
|
|
770
|
+
),
|
|
771
|
+
(
|
|
772
|
+
"frequency",
|
|
773
|
+
models.DecimalField(
|
|
774
|
+
decimal_places=2,
|
|
775
|
+
default=1,
|
|
776
|
+
help_text="number of times per 'frequency unit'",
|
|
777
|
+
max_digits=6,
|
|
778
|
+
validators=[django.core.validators.MinValueValidator(1.0)],
|
|
779
|
+
verbose_name="Frequency",
|
|
780
|
+
),
|
|
781
|
+
),
|
|
782
|
+
(
|
|
783
|
+
"history_id",
|
|
784
|
+
models.UUIDField(
|
|
785
|
+
default=uuid.uuid4,
|
|
786
|
+
editable=False,
|
|
787
|
+
primary_key=True,
|
|
788
|
+
serialize=False,
|
|
789
|
+
),
|
|
790
|
+
),
|
|
791
|
+
("history_date", models.DateTimeField()),
|
|
792
|
+
("history_change_reason", models.CharField(max_length=100, null=True)),
|
|
793
|
+
(
|
|
794
|
+
"history_type",
|
|
795
|
+
models.CharField(
|
|
796
|
+
choices=[("+", "Created"), ("~", "Changed"), ("-", "Deleted")],
|
|
797
|
+
max_length=1,
|
|
798
|
+
),
|
|
799
|
+
),
|
|
800
|
+
],
|
|
801
|
+
options={
|
|
802
|
+
"verbose_name": "historical Dosage Guideline",
|
|
803
|
+
"ordering": ("-history_date", "-history_id"),
|
|
804
|
+
"get_latest_by": "history_date",
|
|
805
|
+
},
|
|
806
|
+
bases=(simple_history.models.HistoricalChanges, models.Model),
|
|
807
|
+
),
|
|
808
|
+
migrations.CreateModel(
|
|
809
|
+
name="HistoricalFormulation",
|
|
810
|
+
fields=[
|
|
811
|
+
(
|
|
812
|
+
"revision",
|
|
813
|
+
django_revision.revision_field.RevisionField(
|
|
814
|
+
blank=True,
|
|
815
|
+
editable=False,
|
|
816
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
817
|
+
max_length=75,
|
|
818
|
+
null=True,
|
|
819
|
+
verbose_name="Revision",
|
|
820
|
+
),
|
|
821
|
+
),
|
|
822
|
+
(
|
|
823
|
+
"created",
|
|
824
|
+
models.DateTimeField(
|
|
825
|
+
blank=True,
|
|
826
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
827
|
+
),
|
|
828
|
+
),
|
|
829
|
+
(
|
|
830
|
+
"modified",
|
|
831
|
+
models.DateTimeField(
|
|
832
|
+
blank=True,
|
|
833
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
834
|
+
),
|
|
835
|
+
),
|
|
836
|
+
(
|
|
837
|
+
"user_created",
|
|
838
|
+
django_audit_fields.fields.userfield.UserField(
|
|
839
|
+
blank=True,
|
|
840
|
+
help_text="Updated by admin.save_model",
|
|
841
|
+
max_length=50,
|
|
842
|
+
verbose_name="user created",
|
|
843
|
+
),
|
|
844
|
+
),
|
|
845
|
+
(
|
|
846
|
+
"user_modified",
|
|
847
|
+
django_audit_fields.fields.userfield.UserField(
|
|
848
|
+
blank=True,
|
|
849
|
+
help_text="Updated by admin.save_model",
|
|
850
|
+
max_length=50,
|
|
851
|
+
verbose_name="user modified",
|
|
852
|
+
),
|
|
853
|
+
),
|
|
854
|
+
(
|
|
855
|
+
"hostname_created",
|
|
856
|
+
models.CharField(
|
|
857
|
+
blank=True,
|
|
858
|
+
default=_socket.gethostname,
|
|
859
|
+
help_text="System field. (modified on create only)",
|
|
860
|
+
max_length=60,
|
|
861
|
+
),
|
|
862
|
+
),
|
|
863
|
+
(
|
|
864
|
+
"hostname_modified",
|
|
865
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
866
|
+
blank=True,
|
|
867
|
+
help_text="System field. (modified on every save)",
|
|
868
|
+
max_length=50,
|
|
869
|
+
),
|
|
870
|
+
),
|
|
871
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
872
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
873
|
+
(
|
|
874
|
+
"id",
|
|
875
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
876
|
+
blank=True,
|
|
877
|
+
db_index=True,
|
|
878
|
+
editable=False,
|
|
879
|
+
help_text="System auto field. UUID primary key.",
|
|
880
|
+
),
|
|
881
|
+
),
|
|
882
|
+
("strength", models.DecimalField(decimal_places=1, max_digits=6)),
|
|
883
|
+
("notes", models.TextField(blank=True, max_length=250, null=True)),
|
|
884
|
+
(
|
|
885
|
+
"history_id",
|
|
886
|
+
models.UUIDField(
|
|
887
|
+
default=uuid.uuid4,
|
|
888
|
+
editable=False,
|
|
889
|
+
primary_key=True,
|
|
890
|
+
serialize=False,
|
|
891
|
+
),
|
|
892
|
+
),
|
|
893
|
+
("history_date", models.DateTimeField()),
|
|
894
|
+
("history_change_reason", models.CharField(max_length=100, null=True)),
|
|
895
|
+
(
|
|
896
|
+
"history_type",
|
|
897
|
+
models.CharField(
|
|
898
|
+
choices=[("+", "Created"), ("~", "Changed"), ("-", "Deleted")],
|
|
899
|
+
max_length=1,
|
|
900
|
+
),
|
|
901
|
+
),
|
|
902
|
+
],
|
|
903
|
+
options={
|
|
904
|
+
"verbose_name": "historical Formulation",
|
|
905
|
+
"ordering": ("-history_date", "-history_id"),
|
|
906
|
+
"get_latest_by": "history_date",
|
|
907
|
+
},
|
|
908
|
+
bases=(simple_history.models.HistoricalChanges, models.Model),
|
|
909
|
+
),
|
|
910
|
+
migrations.CreateModel(
|
|
911
|
+
name="HistoricalLabels",
|
|
912
|
+
fields=[
|
|
913
|
+
(
|
|
914
|
+
"revision",
|
|
915
|
+
django_revision.revision_field.RevisionField(
|
|
916
|
+
blank=True,
|
|
917
|
+
editable=False,
|
|
918
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
919
|
+
max_length=75,
|
|
920
|
+
null=True,
|
|
921
|
+
verbose_name="Revision",
|
|
922
|
+
),
|
|
923
|
+
),
|
|
924
|
+
(
|
|
925
|
+
"created",
|
|
926
|
+
models.DateTimeField(
|
|
927
|
+
blank=True,
|
|
928
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
929
|
+
),
|
|
930
|
+
),
|
|
931
|
+
(
|
|
932
|
+
"modified",
|
|
933
|
+
models.DateTimeField(
|
|
934
|
+
blank=True,
|
|
935
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
936
|
+
),
|
|
937
|
+
),
|
|
938
|
+
(
|
|
939
|
+
"user_created",
|
|
940
|
+
django_audit_fields.fields.userfield.UserField(
|
|
941
|
+
blank=True,
|
|
942
|
+
help_text="Updated by admin.save_model",
|
|
943
|
+
max_length=50,
|
|
944
|
+
verbose_name="user created",
|
|
945
|
+
),
|
|
946
|
+
),
|
|
947
|
+
(
|
|
948
|
+
"user_modified",
|
|
949
|
+
django_audit_fields.fields.userfield.UserField(
|
|
950
|
+
blank=True,
|
|
951
|
+
help_text="Updated by admin.save_model",
|
|
952
|
+
max_length=50,
|
|
953
|
+
verbose_name="user modified",
|
|
954
|
+
),
|
|
955
|
+
),
|
|
956
|
+
(
|
|
957
|
+
"hostname_created",
|
|
958
|
+
models.CharField(
|
|
959
|
+
blank=True,
|
|
960
|
+
default=_socket.gethostname,
|
|
961
|
+
help_text="System field. (modified on create only)",
|
|
962
|
+
max_length=60,
|
|
963
|
+
),
|
|
964
|
+
),
|
|
965
|
+
(
|
|
966
|
+
"hostname_modified",
|
|
967
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
968
|
+
blank=True,
|
|
969
|
+
help_text="System field. (modified on every save)",
|
|
970
|
+
max_length=50,
|
|
971
|
+
),
|
|
972
|
+
),
|
|
973
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
974
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
975
|
+
(
|
|
976
|
+
"id",
|
|
977
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
978
|
+
blank=True,
|
|
979
|
+
db_index=True,
|
|
980
|
+
editable=False,
|
|
981
|
+
help_text="System auto field. UUID primary key.",
|
|
982
|
+
),
|
|
983
|
+
),
|
|
984
|
+
(
|
|
985
|
+
"stock_identifier",
|
|
986
|
+
models.CharField(db_index=True, default=uuid.uuid4, max_length=36),
|
|
987
|
+
),
|
|
988
|
+
("printed", models.BooleanField(default=False)),
|
|
989
|
+
("printed_datetime", models.DateTimeField(blank=True, null=True)),
|
|
990
|
+
("in_stock", models.BooleanField(default=False)),
|
|
991
|
+
("in_stock_datetime", models.DateTimeField(blank=True, null=True)),
|
|
992
|
+
(
|
|
993
|
+
"history_id",
|
|
994
|
+
models.UUIDField(
|
|
995
|
+
default=uuid.uuid4,
|
|
996
|
+
editable=False,
|
|
997
|
+
primary_key=True,
|
|
998
|
+
serialize=False,
|
|
999
|
+
),
|
|
1000
|
+
),
|
|
1001
|
+
("history_date", models.DateTimeField()),
|
|
1002
|
+
("history_change_reason", models.CharField(max_length=100, null=True)),
|
|
1003
|
+
(
|
|
1004
|
+
"history_type",
|
|
1005
|
+
models.CharField(
|
|
1006
|
+
choices=[("+", "Created"), ("~", "Changed"), ("-", "Deleted")],
|
|
1007
|
+
max_length=1,
|
|
1008
|
+
),
|
|
1009
|
+
),
|
|
1010
|
+
],
|
|
1011
|
+
options={
|
|
1012
|
+
"verbose_name": "historical Label",
|
|
1013
|
+
"ordering": ("-history_date", "-history_id"),
|
|
1014
|
+
"get_latest_by": "history_date",
|
|
1015
|
+
},
|
|
1016
|
+
bases=(simple_history.models.HistoricalChanges, models.Model),
|
|
1017
|
+
),
|
|
1018
|
+
migrations.CreateModel(
|
|
1019
|
+
name="HistoricalMedication",
|
|
1020
|
+
fields=[
|
|
1021
|
+
(
|
|
1022
|
+
"revision",
|
|
1023
|
+
django_revision.revision_field.RevisionField(
|
|
1024
|
+
blank=True,
|
|
1025
|
+
editable=False,
|
|
1026
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
1027
|
+
max_length=75,
|
|
1028
|
+
null=True,
|
|
1029
|
+
verbose_name="Revision",
|
|
1030
|
+
),
|
|
1031
|
+
),
|
|
1032
|
+
(
|
|
1033
|
+
"created",
|
|
1034
|
+
models.DateTimeField(
|
|
1035
|
+
blank=True,
|
|
1036
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
1037
|
+
),
|
|
1038
|
+
),
|
|
1039
|
+
(
|
|
1040
|
+
"modified",
|
|
1041
|
+
models.DateTimeField(
|
|
1042
|
+
blank=True,
|
|
1043
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
1044
|
+
),
|
|
1045
|
+
),
|
|
1046
|
+
(
|
|
1047
|
+
"user_created",
|
|
1048
|
+
django_audit_fields.fields.userfield.UserField(
|
|
1049
|
+
blank=True,
|
|
1050
|
+
help_text="Updated by admin.save_model",
|
|
1051
|
+
max_length=50,
|
|
1052
|
+
verbose_name="user created",
|
|
1053
|
+
),
|
|
1054
|
+
),
|
|
1055
|
+
(
|
|
1056
|
+
"user_modified",
|
|
1057
|
+
django_audit_fields.fields.userfield.UserField(
|
|
1058
|
+
blank=True,
|
|
1059
|
+
help_text="Updated by admin.save_model",
|
|
1060
|
+
max_length=50,
|
|
1061
|
+
verbose_name="user modified",
|
|
1062
|
+
),
|
|
1063
|
+
),
|
|
1064
|
+
(
|
|
1065
|
+
"hostname_created",
|
|
1066
|
+
models.CharField(
|
|
1067
|
+
blank=True,
|
|
1068
|
+
default=_socket.gethostname,
|
|
1069
|
+
help_text="System field. (modified on create only)",
|
|
1070
|
+
max_length=60,
|
|
1071
|
+
),
|
|
1072
|
+
),
|
|
1073
|
+
(
|
|
1074
|
+
"hostname_modified",
|
|
1075
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
1076
|
+
blank=True,
|
|
1077
|
+
help_text="System field. (modified on every save)",
|
|
1078
|
+
max_length=50,
|
|
1079
|
+
),
|
|
1080
|
+
),
|
|
1081
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
1082
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
1083
|
+
(
|
|
1084
|
+
"id",
|
|
1085
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
1086
|
+
blank=True,
|
|
1087
|
+
db_index=True,
|
|
1088
|
+
editable=False,
|
|
1089
|
+
help_text="System auto field. UUID primary key.",
|
|
1090
|
+
),
|
|
1091
|
+
),
|
|
1092
|
+
("name", models.CharField(db_index=True, max_length=35)),
|
|
1093
|
+
("display_name", models.CharField(db_index=True, max_length=50)),
|
|
1094
|
+
("notes", models.TextField(blank=True, max_length=250, null=True)),
|
|
1095
|
+
(
|
|
1096
|
+
"history_id",
|
|
1097
|
+
models.UUIDField(
|
|
1098
|
+
default=uuid.uuid4,
|
|
1099
|
+
editable=False,
|
|
1100
|
+
primary_key=True,
|
|
1101
|
+
serialize=False,
|
|
1102
|
+
),
|
|
1103
|
+
),
|
|
1104
|
+
("history_date", models.DateTimeField()),
|
|
1105
|
+
("history_change_reason", models.CharField(max_length=100, null=True)),
|
|
1106
|
+
(
|
|
1107
|
+
"history_type",
|
|
1108
|
+
models.CharField(
|
|
1109
|
+
choices=[("+", "Created"), ("~", "Changed"), ("-", "Deleted")],
|
|
1110
|
+
max_length=1,
|
|
1111
|
+
),
|
|
1112
|
+
),
|
|
1113
|
+
],
|
|
1114
|
+
options={
|
|
1115
|
+
"verbose_name": "historical Medication",
|
|
1116
|
+
"ordering": ("-history_date", "-history_id"),
|
|
1117
|
+
"get_latest_by": "history_date",
|
|
1118
|
+
},
|
|
1119
|
+
bases=(simple_history.models.HistoricalChanges, models.Model),
|
|
1120
|
+
),
|
|
1121
|
+
migrations.CreateModel(
|
|
1122
|
+
name="HistoricalMedicationLot",
|
|
1123
|
+
fields=[
|
|
1124
|
+
(
|
|
1125
|
+
"revision",
|
|
1126
|
+
django_revision.revision_field.RevisionField(
|
|
1127
|
+
blank=True,
|
|
1128
|
+
editable=False,
|
|
1129
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
1130
|
+
max_length=75,
|
|
1131
|
+
null=True,
|
|
1132
|
+
verbose_name="Revision",
|
|
1133
|
+
),
|
|
1134
|
+
),
|
|
1135
|
+
(
|
|
1136
|
+
"created",
|
|
1137
|
+
models.DateTimeField(
|
|
1138
|
+
blank=True,
|
|
1139
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
1140
|
+
),
|
|
1141
|
+
),
|
|
1142
|
+
(
|
|
1143
|
+
"modified",
|
|
1144
|
+
models.DateTimeField(
|
|
1145
|
+
blank=True,
|
|
1146
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
1147
|
+
),
|
|
1148
|
+
),
|
|
1149
|
+
(
|
|
1150
|
+
"user_created",
|
|
1151
|
+
django_audit_fields.fields.userfield.UserField(
|
|
1152
|
+
blank=True,
|
|
1153
|
+
help_text="Updated by admin.save_model",
|
|
1154
|
+
max_length=50,
|
|
1155
|
+
verbose_name="user created",
|
|
1156
|
+
),
|
|
1157
|
+
),
|
|
1158
|
+
(
|
|
1159
|
+
"user_modified",
|
|
1160
|
+
django_audit_fields.fields.userfield.UserField(
|
|
1161
|
+
blank=True,
|
|
1162
|
+
help_text="Updated by admin.save_model",
|
|
1163
|
+
max_length=50,
|
|
1164
|
+
verbose_name="user modified",
|
|
1165
|
+
),
|
|
1166
|
+
),
|
|
1167
|
+
(
|
|
1168
|
+
"hostname_created",
|
|
1169
|
+
models.CharField(
|
|
1170
|
+
blank=True,
|
|
1171
|
+
default=_socket.gethostname,
|
|
1172
|
+
help_text="System field. (modified on create only)",
|
|
1173
|
+
max_length=60,
|
|
1174
|
+
),
|
|
1175
|
+
),
|
|
1176
|
+
(
|
|
1177
|
+
"hostname_modified",
|
|
1178
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
1179
|
+
blank=True,
|
|
1180
|
+
help_text="System field. (modified on every save)",
|
|
1181
|
+
max_length=50,
|
|
1182
|
+
),
|
|
1183
|
+
),
|
|
1184
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
1185
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
1186
|
+
(
|
|
1187
|
+
"id",
|
|
1188
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
1189
|
+
blank=True,
|
|
1190
|
+
db_index=True,
|
|
1191
|
+
editable=False,
|
|
1192
|
+
help_text="System auto field. UUID primary key.",
|
|
1193
|
+
),
|
|
1194
|
+
),
|
|
1195
|
+
("lot_no", models.CharField(db_index=True, max_length=50)),
|
|
1196
|
+
("expiration_date", models.DateField()),
|
|
1197
|
+
(
|
|
1198
|
+
"history_id",
|
|
1199
|
+
models.UUIDField(
|
|
1200
|
+
default=uuid.uuid4,
|
|
1201
|
+
editable=False,
|
|
1202
|
+
primary_key=True,
|
|
1203
|
+
serialize=False,
|
|
1204
|
+
),
|
|
1205
|
+
),
|
|
1206
|
+
("history_date", models.DateTimeField()),
|
|
1207
|
+
("history_change_reason", models.CharField(max_length=100, null=True)),
|
|
1208
|
+
(
|
|
1209
|
+
"history_type",
|
|
1210
|
+
models.CharField(
|
|
1211
|
+
choices=[("+", "Created"), ("~", "Changed"), ("-", "Deleted")],
|
|
1212
|
+
max_length=1,
|
|
1213
|
+
),
|
|
1214
|
+
),
|
|
1215
|
+
],
|
|
1216
|
+
options={
|
|
1217
|
+
"verbose_name": "historical Medication lot",
|
|
1218
|
+
"ordering": ("-history_date", "-history_id"),
|
|
1219
|
+
"get_latest_by": "history_date",
|
|
1220
|
+
},
|
|
1221
|
+
bases=(simple_history.models.HistoricalChanges, models.Model),
|
|
1222
|
+
),
|
|
1223
|
+
migrations.CreateModel(
|
|
1224
|
+
name="HistoricalMedicationProduct",
|
|
1225
|
+
fields=[
|
|
1226
|
+
(
|
|
1227
|
+
"revision",
|
|
1228
|
+
django_revision.revision_field.RevisionField(
|
|
1229
|
+
blank=True,
|
|
1230
|
+
editable=False,
|
|
1231
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
1232
|
+
max_length=75,
|
|
1233
|
+
null=True,
|
|
1234
|
+
verbose_name="Revision",
|
|
1235
|
+
),
|
|
1236
|
+
),
|
|
1237
|
+
(
|
|
1238
|
+
"created",
|
|
1239
|
+
models.DateTimeField(
|
|
1240
|
+
blank=True,
|
|
1241
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
1242
|
+
),
|
|
1243
|
+
),
|
|
1244
|
+
(
|
|
1245
|
+
"modified",
|
|
1246
|
+
models.DateTimeField(
|
|
1247
|
+
blank=True,
|
|
1248
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
1249
|
+
),
|
|
1250
|
+
),
|
|
1251
|
+
(
|
|
1252
|
+
"user_created",
|
|
1253
|
+
django_audit_fields.fields.userfield.UserField(
|
|
1254
|
+
blank=True,
|
|
1255
|
+
help_text="Updated by admin.save_model",
|
|
1256
|
+
max_length=50,
|
|
1257
|
+
verbose_name="user created",
|
|
1258
|
+
),
|
|
1259
|
+
),
|
|
1260
|
+
(
|
|
1261
|
+
"user_modified",
|
|
1262
|
+
django_audit_fields.fields.userfield.UserField(
|
|
1263
|
+
blank=True,
|
|
1264
|
+
help_text="Updated by admin.save_model",
|
|
1265
|
+
max_length=50,
|
|
1266
|
+
verbose_name="user modified",
|
|
1267
|
+
),
|
|
1268
|
+
),
|
|
1269
|
+
(
|
|
1270
|
+
"hostname_created",
|
|
1271
|
+
models.CharField(
|
|
1272
|
+
blank=True,
|
|
1273
|
+
default=_socket.gethostname,
|
|
1274
|
+
help_text="System field. (modified on create only)",
|
|
1275
|
+
max_length=60,
|
|
1276
|
+
),
|
|
1277
|
+
),
|
|
1278
|
+
(
|
|
1279
|
+
"hostname_modified",
|
|
1280
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
1281
|
+
blank=True,
|
|
1282
|
+
help_text="System field. (modified on every save)",
|
|
1283
|
+
max_length=50,
|
|
1284
|
+
),
|
|
1285
|
+
),
|
|
1286
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
1287
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
1288
|
+
(
|
|
1289
|
+
"id",
|
|
1290
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
1291
|
+
blank=True,
|
|
1292
|
+
db_index=True,
|
|
1293
|
+
editable=False,
|
|
1294
|
+
help_text="System auto field. UUID primary key.",
|
|
1295
|
+
),
|
|
1296
|
+
),
|
|
1297
|
+
(
|
|
1298
|
+
"product_identifier",
|
|
1299
|
+
models.CharField(db_index=True, default=uuid.uuid4, max_length=36),
|
|
1300
|
+
),
|
|
1301
|
+
(
|
|
1302
|
+
"name",
|
|
1303
|
+
models.CharField(db_index=True, editable=False, max_length=250),
|
|
1304
|
+
),
|
|
1305
|
+
(
|
|
1306
|
+
"count_per_container",
|
|
1307
|
+
models.DecimalField(
|
|
1308
|
+
decimal_places=1,
|
|
1309
|
+
max_digits=6,
|
|
1310
|
+
verbose_name="Items per container",
|
|
1311
|
+
),
|
|
1312
|
+
),
|
|
1313
|
+
(
|
|
1314
|
+
"history_id",
|
|
1315
|
+
models.UUIDField(
|
|
1316
|
+
default=uuid.uuid4,
|
|
1317
|
+
editable=False,
|
|
1318
|
+
primary_key=True,
|
|
1319
|
+
serialize=False,
|
|
1320
|
+
),
|
|
1321
|
+
),
|
|
1322
|
+
("history_date", models.DateTimeField()),
|
|
1323
|
+
("history_change_reason", models.CharField(max_length=100, null=True)),
|
|
1324
|
+
(
|
|
1325
|
+
"history_type",
|
|
1326
|
+
models.CharField(
|
|
1327
|
+
choices=[("+", "Created"), ("~", "Changed"), ("-", "Deleted")],
|
|
1328
|
+
max_length=1,
|
|
1329
|
+
),
|
|
1330
|
+
),
|
|
1331
|
+
],
|
|
1332
|
+
options={
|
|
1333
|
+
"verbose_name": "historical Medication product",
|
|
1334
|
+
"ordering": ("-history_date", "-history_id"),
|
|
1335
|
+
"get_latest_by": "history_date",
|
|
1336
|
+
},
|
|
1337
|
+
bases=(simple_history.models.HistoricalChanges, models.Model),
|
|
1338
|
+
),
|
|
1339
|
+
migrations.CreateModel(
|
|
1340
|
+
name="HistoricalMedicationStock",
|
|
1341
|
+
fields=[
|
|
1342
|
+
(
|
|
1343
|
+
"revision",
|
|
1344
|
+
django_revision.revision_field.RevisionField(
|
|
1345
|
+
blank=True,
|
|
1346
|
+
editable=False,
|
|
1347
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
1348
|
+
max_length=75,
|
|
1349
|
+
null=True,
|
|
1350
|
+
verbose_name="Revision",
|
|
1351
|
+
),
|
|
1352
|
+
),
|
|
1353
|
+
(
|
|
1354
|
+
"created",
|
|
1355
|
+
models.DateTimeField(
|
|
1356
|
+
blank=True,
|
|
1357
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
1358
|
+
),
|
|
1359
|
+
),
|
|
1360
|
+
(
|
|
1361
|
+
"modified",
|
|
1362
|
+
models.DateTimeField(
|
|
1363
|
+
blank=True,
|
|
1364
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
1365
|
+
),
|
|
1366
|
+
),
|
|
1367
|
+
(
|
|
1368
|
+
"user_created",
|
|
1369
|
+
django_audit_fields.fields.userfield.UserField(
|
|
1370
|
+
blank=True,
|
|
1371
|
+
help_text="Updated by admin.save_model",
|
|
1372
|
+
max_length=50,
|
|
1373
|
+
verbose_name="user created",
|
|
1374
|
+
),
|
|
1375
|
+
),
|
|
1376
|
+
(
|
|
1377
|
+
"user_modified",
|
|
1378
|
+
django_audit_fields.fields.userfield.UserField(
|
|
1379
|
+
blank=True,
|
|
1380
|
+
help_text="Updated by admin.save_model",
|
|
1381
|
+
max_length=50,
|
|
1382
|
+
verbose_name="user modified",
|
|
1383
|
+
),
|
|
1384
|
+
),
|
|
1385
|
+
(
|
|
1386
|
+
"hostname_created",
|
|
1387
|
+
models.CharField(
|
|
1388
|
+
blank=True,
|
|
1389
|
+
default=_socket.gethostname,
|
|
1390
|
+
help_text="System field. (modified on create only)",
|
|
1391
|
+
max_length=60,
|
|
1392
|
+
),
|
|
1393
|
+
),
|
|
1394
|
+
(
|
|
1395
|
+
"hostname_modified",
|
|
1396
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
1397
|
+
blank=True,
|
|
1398
|
+
help_text="System field. (modified on every save)",
|
|
1399
|
+
max_length=50,
|
|
1400
|
+
),
|
|
1401
|
+
),
|
|
1402
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
1403
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
1404
|
+
(
|
|
1405
|
+
"id",
|
|
1406
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
1407
|
+
blank=True,
|
|
1408
|
+
db_index=True,
|
|
1409
|
+
editable=False,
|
|
1410
|
+
help_text="System auto field. UUID primary key.",
|
|
1411
|
+
),
|
|
1412
|
+
),
|
|
1413
|
+
(
|
|
1414
|
+
"stock_identifier",
|
|
1415
|
+
models.CharField(db_index=True, default=uuid.uuid4, max_length=36),
|
|
1416
|
+
),
|
|
1417
|
+
(
|
|
1418
|
+
"history_id",
|
|
1419
|
+
models.UUIDField(
|
|
1420
|
+
default=uuid.uuid4,
|
|
1421
|
+
editable=False,
|
|
1422
|
+
primary_key=True,
|
|
1423
|
+
serialize=False,
|
|
1424
|
+
),
|
|
1425
|
+
),
|
|
1426
|
+
("history_date", models.DateTimeField()),
|
|
1427
|
+
("history_change_reason", models.CharField(max_length=100, null=True)),
|
|
1428
|
+
(
|
|
1429
|
+
"history_type",
|
|
1430
|
+
models.CharField(
|
|
1431
|
+
choices=[("+", "Created"), ("~", "Changed"), ("-", "Deleted")],
|
|
1432
|
+
max_length=1,
|
|
1433
|
+
),
|
|
1434
|
+
),
|
|
1435
|
+
],
|
|
1436
|
+
options={
|
|
1437
|
+
"verbose_name": "historical Medication stock",
|
|
1438
|
+
"ordering": ("-history_date", "-history_id"),
|
|
1439
|
+
"get_latest_by": "history_date",
|
|
1440
|
+
},
|
|
1441
|
+
bases=(simple_history.models.HistoricalChanges, models.Model),
|
|
1442
|
+
),
|
|
1443
|
+
migrations.CreateModel(
|
|
1444
|
+
name="HistoricalMedicationStockCreateLabels",
|
|
1445
|
+
fields=[
|
|
1446
|
+
(
|
|
1447
|
+
"revision",
|
|
1448
|
+
django_revision.revision_field.RevisionField(
|
|
1449
|
+
blank=True,
|
|
1450
|
+
editable=False,
|
|
1451
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
1452
|
+
max_length=75,
|
|
1453
|
+
null=True,
|
|
1454
|
+
verbose_name="Revision",
|
|
1455
|
+
),
|
|
1456
|
+
),
|
|
1457
|
+
(
|
|
1458
|
+
"created",
|
|
1459
|
+
models.DateTimeField(
|
|
1460
|
+
blank=True,
|
|
1461
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
1462
|
+
),
|
|
1463
|
+
),
|
|
1464
|
+
(
|
|
1465
|
+
"modified",
|
|
1466
|
+
models.DateTimeField(
|
|
1467
|
+
blank=True,
|
|
1468
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
1469
|
+
),
|
|
1470
|
+
),
|
|
1471
|
+
(
|
|
1472
|
+
"user_created",
|
|
1473
|
+
django_audit_fields.fields.userfield.UserField(
|
|
1474
|
+
blank=True,
|
|
1475
|
+
help_text="Updated by admin.save_model",
|
|
1476
|
+
max_length=50,
|
|
1477
|
+
verbose_name="user created",
|
|
1478
|
+
),
|
|
1479
|
+
),
|
|
1480
|
+
(
|
|
1481
|
+
"user_modified",
|
|
1482
|
+
django_audit_fields.fields.userfield.UserField(
|
|
1483
|
+
blank=True,
|
|
1484
|
+
help_text="Updated by admin.save_model",
|
|
1485
|
+
max_length=50,
|
|
1486
|
+
verbose_name="user modified",
|
|
1487
|
+
),
|
|
1488
|
+
),
|
|
1489
|
+
(
|
|
1490
|
+
"hostname_created",
|
|
1491
|
+
models.CharField(
|
|
1492
|
+
blank=True,
|
|
1493
|
+
default=_socket.gethostname,
|
|
1494
|
+
help_text="System field. (modified on create only)",
|
|
1495
|
+
max_length=60,
|
|
1496
|
+
),
|
|
1497
|
+
),
|
|
1498
|
+
(
|
|
1499
|
+
"hostname_modified",
|
|
1500
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
1501
|
+
blank=True,
|
|
1502
|
+
help_text="System field. (modified on every save)",
|
|
1503
|
+
max_length=50,
|
|
1504
|
+
),
|
|
1505
|
+
),
|
|
1506
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
1507
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
1508
|
+
(
|
|
1509
|
+
"id",
|
|
1510
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
1511
|
+
blank=True,
|
|
1512
|
+
db_index=True,
|
|
1513
|
+
editable=False,
|
|
1514
|
+
help_text="System auto field. UUID primary key.",
|
|
1515
|
+
),
|
|
1516
|
+
),
|
|
1517
|
+
("qty", models.IntegerField(verbose_name="Number of labels to print")),
|
|
1518
|
+
("printed", models.BooleanField(default=False)),
|
|
1519
|
+
("printed_datetime", models.DateTimeField(blank=True, null=True)),
|
|
1520
|
+
(
|
|
1521
|
+
"history_id",
|
|
1522
|
+
models.UUIDField(
|
|
1523
|
+
default=uuid.uuid4,
|
|
1524
|
+
editable=False,
|
|
1525
|
+
primary_key=True,
|
|
1526
|
+
serialize=False,
|
|
1527
|
+
),
|
|
1528
|
+
),
|
|
1529
|
+
("history_date", models.DateTimeField()),
|
|
1530
|
+
("history_change_reason", models.CharField(max_length=100, null=True)),
|
|
1531
|
+
(
|
|
1532
|
+
"history_type",
|
|
1533
|
+
models.CharField(
|
|
1534
|
+
choices=[("+", "Created"), ("~", "Changed"), ("-", "Deleted")],
|
|
1535
|
+
max_length=1,
|
|
1536
|
+
),
|
|
1537
|
+
),
|
|
1538
|
+
],
|
|
1539
|
+
options={
|
|
1540
|
+
"verbose_name": "historical Medication stock: Create labels",
|
|
1541
|
+
"ordering": ("-history_date", "-history_id"),
|
|
1542
|
+
"get_latest_by": "history_date",
|
|
1543
|
+
},
|
|
1544
|
+
bases=(simple_history.models.HistoricalChanges, models.Model),
|
|
1545
|
+
),
|
|
1546
|
+
migrations.CreateModel(
|
|
1547
|
+
name="HistoricalMedicationStockReceiving",
|
|
1548
|
+
fields=[
|
|
1549
|
+
(
|
|
1550
|
+
"revision",
|
|
1551
|
+
django_revision.revision_field.RevisionField(
|
|
1552
|
+
blank=True,
|
|
1553
|
+
editable=False,
|
|
1554
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
1555
|
+
max_length=75,
|
|
1556
|
+
null=True,
|
|
1557
|
+
verbose_name="Revision",
|
|
1558
|
+
),
|
|
1559
|
+
),
|
|
1560
|
+
(
|
|
1561
|
+
"created",
|
|
1562
|
+
models.DateTimeField(
|
|
1563
|
+
blank=True,
|
|
1564
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
1565
|
+
),
|
|
1566
|
+
),
|
|
1567
|
+
(
|
|
1568
|
+
"modified",
|
|
1569
|
+
models.DateTimeField(
|
|
1570
|
+
blank=True,
|
|
1571
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
1572
|
+
),
|
|
1573
|
+
),
|
|
1574
|
+
(
|
|
1575
|
+
"user_created",
|
|
1576
|
+
django_audit_fields.fields.userfield.UserField(
|
|
1577
|
+
blank=True,
|
|
1578
|
+
help_text="Updated by admin.save_model",
|
|
1579
|
+
max_length=50,
|
|
1580
|
+
verbose_name="user created",
|
|
1581
|
+
),
|
|
1582
|
+
),
|
|
1583
|
+
(
|
|
1584
|
+
"user_modified",
|
|
1585
|
+
django_audit_fields.fields.userfield.UserField(
|
|
1586
|
+
blank=True,
|
|
1587
|
+
help_text="Updated by admin.save_model",
|
|
1588
|
+
max_length=50,
|
|
1589
|
+
verbose_name="user modified",
|
|
1590
|
+
),
|
|
1591
|
+
),
|
|
1592
|
+
(
|
|
1593
|
+
"hostname_created",
|
|
1594
|
+
models.CharField(
|
|
1595
|
+
blank=True,
|
|
1596
|
+
default=_socket.gethostname,
|
|
1597
|
+
help_text="System field. (modified on create only)",
|
|
1598
|
+
max_length=60,
|
|
1599
|
+
),
|
|
1600
|
+
),
|
|
1601
|
+
(
|
|
1602
|
+
"hostname_modified",
|
|
1603
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
1604
|
+
blank=True,
|
|
1605
|
+
help_text="System field. (modified on every save)",
|
|
1606
|
+
max_length=50,
|
|
1607
|
+
),
|
|
1608
|
+
),
|
|
1609
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
1610
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
1611
|
+
(
|
|
1612
|
+
"id",
|
|
1613
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
1614
|
+
blank=True,
|
|
1615
|
+
db_index=True,
|
|
1616
|
+
editable=False,
|
|
1617
|
+
help_text="System auto field. UUID primary key.",
|
|
1618
|
+
),
|
|
1619
|
+
),
|
|
1620
|
+
("qty", models.IntegerField()),
|
|
1621
|
+
("stock_identifiers", models.TextField()),
|
|
1622
|
+
("received", models.BooleanField(default=False)),
|
|
1623
|
+
("received_datetime", models.DateTimeField(blank=True, null=True)),
|
|
1624
|
+
(
|
|
1625
|
+
"history_id",
|
|
1626
|
+
models.UUIDField(
|
|
1627
|
+
default=uuid.uuid4,
|
|
1628
|
+
editable=False,
|
|
1629
|
+
primary_key=True,
|
|
1630
|
+
serialize=False,
|
|
1631
|
+
),
|
|
1632
|
+
),
|
|
1633
|
+
("history_date", models.DateTimeField()),
|
|
1634
|
+
("history_change_reason", models.CharField(max_length=100, null=True)),
|
|
1635
|
+
(
|
|
1636
|
+
"history_type",
|
|
1637
|
+
models.CharField(
|
|
1638
|
+
choices=[("+", "Created"), ("~", "Changed"), ("-", "Deleted")],
|
|
1639
|
+
max_length=1,
|
|
1640
|
+
),
|
|
1641
|
+
),
|
|
1642
|
+
],
|
|
1643
|
+
options={
|
|
1644
|
+
"verbose_name": "historical Medication stock: Receiving",
|
|
1645
|
+
"ordering": ("-history_date", "-history_id"),
|
|
1646
|
+
"get_latest_by": "history_date",
|
|
1647
|
+
},
|
|
1648
|
+
bases=(simple_history.models.HistoricalChanges, models.Model),
|
|
1649
|
+
),
|
|
1650
|
+
migrations.CreateModel(
|
|
1651
|
+
name="HistoricalReturnHistory",
|
|
1652
|
+
fields=[
|
|
1653
|
+
(
|
|
1654
|
+
"revision",
|
|
1655
|
+
django_revision.revision_field.RevisionField(
|
|
1656
|
+
blank=True,
|
|
1657
|
+
editable=False,
|
|
1658
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
1659
|
+
max_length=75,
|
|
1660
|
+
null=True,
|
|
1661
|
+
verbose_name="Revision",
|
|
1662
|
+
),
|
|
1663
|
+
),
|
|
1664
|
+
(
|
|
1665
|
+
"created",
|
|
1666
|
+
models.DateTimeField(
|
|
1667
|
+
blank=True,
|
|
1668
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
1669
|
+
),
|
|
1670
|
+
),
|
|
1671
|
+
(
|
|
1672
|
+
"modified",
|
|
1673
|
+
models.DateTimeField(
|
|
1674
|
+
blank=True,
|
|
1675
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
1676
|
+
),
|
|
1677
|
+
),
|
|
1678
|
+
(
|
|
1679
|
+
"user_created",
|
|
1680
|
+
django_audit_fields.fields.userfield.UserField(
|
|
1681
|
+
blank=True,
|
|
1682
|
+
help_text="Updated by admin.save_model",
|
|
1683
|
+
max_length=50,
|
|
1684
|
+
verbose_name="user created",
|
|
1685
|
+
),
|
|
1686
|
+
),
|
|
1687
|
+
(
|
|
1688
|
+
"user_modified",
|
|
1689
|
+
django_audit_fields.fields.userfield.UserField(
|
|
1690
|
+
blank=True,
|
|
1691
|
+
help_text="Updated by admin.save_model",
|
|
1692
|
+
max_length=50,
|
|
1693
|
+
verbose_name="user modified",
|
|
1694
|
+
),
|
|
1695
|
+
),
|
|
1696
|
+
(
|
|
1697
|
+
"hostname_created",
|
|
1698
|
+
models.CharField(
|
|
1699
|
+
blank=True,
|
|
1700
|
+
default=_socket.gethostname,
|
|
1701
|
+
help_text="System field. (modified on create only)",
|
|
1702
|
+
max_length=60,
|
|
1703
|
+
),
|
|
1704
|
+
),
|
|
1705
|
+
(
|
|
1706
|
+
"hostname_modified",
|
|
1707
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
1708
|
+
blank=True,
|
|
1709
|
+
help_text="System field. (modified on every save)",
|
|
1710
|
+
max_length=50,
|
|
1711
|
+
),
|
|
1712
|
+
),
|
|
1713
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
1714
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
1715
|
+
(
|
|
1716
|
+
"id",
|
|
1717
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
1718
|
+
blank=True,
|
|
1719
|
+
db_index=True,
|
|
1720
|
+
editable=False,
|
|
1721
|
+
help_text="System auto field. UUID primary key.",
|
|
1722
|
+
),
|
|
1723
|
+
),
|
|
1724
|
+
(
|
|
1725
|
+
"return_datetime",
|
|
1726
|
+
models.DateTimeField(default=edc_utils.date.get_utcnow),
|
|
1727
|
+
),
|
|
1728
|
+
("returned", models.DecimalField(decimal_places=1, max_digits=6)),
|
|
1729
|
+
(
|
|
1730
|
+
"history_id",
|
|
1731
|
+
models.UUIDField(
|
|
1732
|
+
default=uuid.uuid4,
|
|
1733
|
+
editable=False,
|
|
1734
|
+
primary_key=True,
|
|
1735
|
+
serialize=False,
|
|
1736
|
+
),
|
|
1737
|
+
),
|
|
1738
|
+
("history_date", models.DateTimeField()),
|
|
1739
|
+
("history_change_reason", models.CharField(max_length=100, null=True)),
|
|
1740
|
+
(
|
|
1741
|
+
"history_type",
|
|
1742
|
+
models.CharField(
|
|
1743
|
+
choices=[("+", "Created"), ("~", "Changed"), ("-", "Deleted")],
|
|
1744
|
+
max_length=1,
|
|
1745
|
+
),
|
|
1746
|
+
),
|
|
1747
|
+
],
|
|
1748
|
+
options={
|
|
1749
|
+
"verbose_name": "historical Return history",
|
|
1750
|
+
"ordering": ("-history_date", "-history_id"),
|
|
1751
|
+
"get_latest_by": "history_date",
|
|
1752
|
+
},
|
|
1753
|
+
bases=(simple_history.models.HistoricalChanges, models.Model),
|
|
1754
|
+
),
|
|
1755
|
+
migrations.CreateModel(
|
|
1756
|
+
name="HistoricalRx",
|
|
1757
|
+
fields=[
|
|
1758
|
+
(
|
|
1759
|
+
"revision",
|
|
1760
|
+
django_revision.revision_field.RevisionField(
|
|
1761
|
+
blank=True,
|
|
1762
|
+
editable=False,
|
|
1763
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
1764
|
+
max_length=75,
|
|
1765
|
+
null=True,
|
|
1766
|
+
verbose_name="Revision",
|
|
1767
|
+
),
|
|
1768
|
+
),
|
|
1769
|
+
(
|
|
1770
|
+
"created",
|
|
1771
|
+
models.DateTimeField(
|
|
1772
|
+
blank=True,
|
|
1773
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
1774
|
+
),
|
|
1775
|
+
),
|
|
1776
|
+
(
|
|
1777
|
+
"modified",
|
|
1778
|
+
models.DateTimeField(
|
|
1779
|
+
blank=True,
|
|
1780
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
1781
|
+
),
|
|
1782
|
+
),
|
|
1783
|
+
(
|
|
1784
|
+
"user_created",
|
|
1785
|
+
django_audit_fields.fields.userfield.UserField(
|
|
1786
|
+
blank=True,
|
|
1787
|
+
help_text="Updated by admin.save_model",
|
|
1788
|
+
max_length=50,
|
|
1789
|
+
verbose_name="user created",
|
|
1790
|
+
),
|
|
1791
|
+
),
|
|
1792
|
+
(
|
|
1793
|
+
"user_modified",
|
|
1794
|
+
django_audit_fields.fields.userfield.UserField(
|
|
1795
|
+
blank=True,
|
|
1796
|
+
help_text="Updated by admin.save_model",
|
|
1797
|
+
max_length=50,
|
|
1798
|
+
verbose_name="user modified",
|
|
1799
|
+
),
|
|
1800
|
+
),
|
|
1801
|
+
(
|
|
1802
|
+
"hostname_created",
|
|
1803
|
+
models.CharField(
|
|
1804
|
+
blank=True,
|
|
1805
|
+
default=_socket.gethostname,
|
|
1806
|
+
help_text="System field. (modified on create only)",
|
|
1807
|
+
max_length=60,
|
|
1808
|
+
),
|
|
1809
|
+
),
|
|
1810
|
+
(
|
|
1811
|
+
"hostname_modified",
|
|
1812
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
1813
|
+
blank=True,
|
|
1814
|
+
help_text="System field. (modified on every save)",
|
|
1815
|
+
max_length=50,
|
|
1816
|
+
),
|
|
1817
|
+
),
|
|
1818
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
1819
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
1820
|
+
(
|
|
1821
|
+
"id",
|
|
1822
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
1823
|
+
blank=True,
|
|
1824
|
+
db_index=True,
|
|
1825
|
+
editable=False,
|
|
1826
|
+
help_text="System auto field. UUID primary key.",
|
|
1827
|
+
),
|
|
1828
|
+
),
|
|
1829
|
+
("subject_identifier", models.CharField(max_length=50)),
|
|
1830
|
+
(
|
|
1831
|
+
"parent_action_identifier",
|
|
1832
|
+
models.CharField(
|
|
1833
|
+
blank=True,
|
|
1834
|
+
help_text="action identifier that links to parent reference model instance.",
|
|
1835
|
+
max_length=30,
|
|
1836
|
+
null=True,
|
|
1837
|
+
),
|
|
1838
|
+
),
|
|
1839
|
+
(
|
|
1840
|
+
"related_action_identifier",
|
|
1841
|
+
models.CharField(
|
|
1842
|
+
blank=True,
|
|
1843
|
+
help_text="action identifier that links to related reference model instance.",
|
|
1844
|
+
max_length=30,
|
|
1845
|
+
null=True,
|
|
1846
|
+
),
|
|
1847
|
+
),
|
|
1848
|
+
("action_item_reason", models.TextField(editable=False, null=True)),
|
|
1849
|
+
(
|
|
1850
|
+
"history_id",
|
|
1851
|
+
models.UUIDField(
|
|
1852
|
+
default=uuid.uuid4,
|
|
1853
|
+
editable=False,
|
|
1854
|
+
primary_key=True,
|
|
1855
|
+
serialize=False,
|
|
1856
|
+
),
|
|
1857
|
+
),
|
|
1858
|
+
(
|
|
1859
|
+
"slug",
|
|
1860
|
+
models.CharField(
|
|
1861
|
+
db_index=True,
|
|
1862
|
+
default="",
|
|
1863
|
+
editable=False,
|
|
1864
|
+
help_text="a field used for quick search",
|
|
1865
|
+
max_length=250,
|
|
1866
|
+
null=True,
|
|
1867
|
+
),
|
|
1868
|
+
),
|
|
1869
|
+
(
|
|
1870
|
+
"action_identifier",
|
|
1871
|
+
models.CharField(db_index=True, max_length=50, null=True),
|
|
1872
|
+
),
|
|
1873
|
+
(
|
|
1874
|
+
"report_datetime",
|
|
1875
|
+
models.DateTimeField(default=edc_utils.date.get_utcnow),
|
|
1876
|
+
),
|
|
1877
|
+
(
|
|
1878
|
+
"rx_date",
|
|
1879
|
+
models.DateField(
|
|
1880
|
+
default=edc_utils.date.get_utcnow,
|
|
1881
|
+
verbose_name="Date RX written",
|
|
1882
|
+
),
|
|
1883
|
+
),
|
|
1884
|
+
(
|
|
1885
|
+
"rx_expiration_date",
|
|
1886
|
+
models.DateField(
|
|
1887
|
+
blank=True,
|
|
1888
|
+
help_text="Leave blank. Will be filled when end of study report is submitted",
|
|
1889
|
+
null=True,
|
|
1890
|
+
verbose_name="Date RX expires",
|
|
1891
|
+
),
|
|
1892
|
+
),
|
|
1893
|
+
(
|
|
1894
|
+
"status",
|
|
1895
|
+
models.CharField(
|
|
1896
|
+
choices=[
|
|
1897
|
+
("New", "New"),
|
|
1898
|
+
("partial", "Partially filled"),
|
|
1899
|
+
("filled", "Filled"),
|
|
1900
|
+
("cancelled", "Cancelled"),
|
|
1901
|
+
],
|
|
1902
|
+
default="New",
|
|
1903
|
+
max_length=25,
|
|
1904
|
+
),
|
|
1905
|
+
),
|
|
1906
|
+
(
|
|
1907
|
+
"refill",
|
|
1908
|
+
models.IntegerField(
|
|
1909
|
+
blank=True,
|
|
1910
|
+
help_text="Number of times this prescription may be refilled",
|
|
1911
|
+
null=True,
|
|
1912
|
+
),
|
|
1913
|
+
),
|
|
1914
|
+
("rando_sid", models.CharField(blank=True, max_length=25, null=True)),
|
|
1915
|
+
(
|
|
1916
|
+
"randomizer_name",
|
|
1917
|
+
models.CharField(blank=True, max_length=25, null=True),
|
|
1918
|
+
),
|
|
1919
|
+
(
|
|
1920
|
+
"weight_in_kgs",
|
|
1921
|
+
models.DecimalField(
|
|
1922
|
+
blank=True, decimal_places=1, max_digits=6, null=True
|
|
1923
|
+
),
|
|
1924
|
+
),
|
|
1925
|
+
("clinician_initials", models.CharField(max_length=3, null=True)),
|
|
1926
|
+
(
|
|
1927
|
+
"notes",
|
|
1928
|
+
models.TextField(
|
|
1929
|
+
blank=True,
|
|
1930
|
+
help_text="Private notes for pharmacist only",
|
|
1931
|
+
max_length=250,
|
|
1932
|
+
null=True,
|
|
1933
|
+
),
|
|
1934
|
+
),
|
|
1935
|
+
("history_date", models.DateTimeField()),
|
|
1936
|
+
("history_change_reason", models.CharField(max_length=100, null=True)),
|
|
1937
|
+
(
|
|
1938
|
+
"history_type",
|
|
1939
|
+
models.CharField(
|
|
1940
|
+
choices=[("+", "Created"), ("~", "Changed"), ("-", "Deleted")],
|
|
1941
|
+
max_length=1,
|
|
1942
|
+
),
|
|
1943
|
+
),
|
|
1944
|
+
],
|
|
1945
|
+
options={
|
|
1946
|
+
"verbose_name": "historical Prescription",
|
|
1947
|
+
"ordering": ("-history_date", "-history_id"),
|
|
1948
|
+
"get_latest_by": "history_date",
|
|
1949
|
+
},
|
|
1950
|
+
bases=(simple_history.models.HistoricalChanges, models.Model),
|
|
1951
|
+
),
|
|
1952
|
+
migrations.CreateModel(
|
|
1953
|
+
name="HistoricalRxRefill",
|
|
1954
|
+
fields=[
|
|
1955
|
+
(
|
|
1956
|
+
"revision",
|
|
1957
|
+
django_revision.revision_field.RevisionField(
|
|
1958
|
+
blank=True,
|
|
1959
|
+
editable=False,
|
|
1960
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
1961
|
+
max_length=75,
|
|
1962
|
+
null=True,
|
|
1963
|
+
verbose_name="Revision",
|
|
1964
|
+
),
|
|
1965
|
+
),
|
|
1966
|
+
(
|
|
1967
|
+
"created",
|
|
1968
|
+
models.DateTimeField(
|
|
1969
|
+
blank=True,
|
|
1970
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
1971
|
+
),
|
|
1972
|
+
),
|
|
1973
|
+
(
|
|
1974
|
+
"modified",
|
|
1975
|
+
models.DateTimeField(
|
|
1976
|
+
blank=True,
|
|
1977
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
1978
|
+
),
|
|
1979
|
+
),
|
|
1980
|
+
(
|
|
1981
|
+
"user_created",
|
|
1982
|
+
django_audit_fields.fields.userfield.UserField(
|
|
1983
|
+
blank=True,
|
|
1984
|
+
help_text="Updated by admin.save_model",
|
|
1985
|
+
max_length=50,
|
|
1986
|
+
verbose_name="user created",
|
|
1987
|
+
),
|
|
1988
|
+
),
|
|
1989
|
+
(
|
|
1990
|
+
"user_modified",
|
|
1991
|
+
django_audit_fields.fields.userfield.UserField(
|
|
1992
|
+
blank=True,
|
|
1993
|
+
help_text="Updated by admin.save_model",
|
|
1994
|
+
max_length=50,
|
|
1995
|
+
verbose_name="user modified",
|
|
1996
|
+
),
|
|
1997
|
+
),
|
|
1998
|
+
(
|
|
1999
|
+
"hostname_created",
|
|
2000
|
+
models.CharField(
|
|
2001
|
+
blank=True,
|
|
2002
|
+
default=_socket.gethostname,
|
|
2003
|
+
help_text="System field. (modified on create only)",
|
|
2004
|
+
max_length=60,
|
|
2005
|
+
),
|
|
2006
|
+
),
|
|
2007
|
+
(
|
|
2008
|
+
"hostname_modified",
|
|
2009
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
2010
|
+
blank=True,
|
|
2011
|
+
help_text="System field. (modified on every save)",
|
|
2012
|
+
max_length=50,
|
|
2013
|
+
),
|
|
2014
|
+
),
|
|
2015
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
2016
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
2017
|
+
(
|
|
2018
|
+
"id",
|
|
2019
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
2020
|
+
blank=True,
|
|
2021
|
+
db_index=True,
|
|
2022
|
+
editable=False,
|
|
2023
|
+
help_text="System auto field. UUID primary key.",
|
|
2024
|
+
),
|
|
2025
|
+
),
|
|
2026
|
+
(
|
|
2027
|
+
"visit_code",
|
|
2028
|
+
models.CharField(editable=False, max_length=25, null=True),
|
|
2029
|
+
),
|
|
2030
|
+
(
|
|
2031
|
+
"visit_code_sequence",
|
|
2032
|
+
models.IntegerField(
|
|
2033
|
+
blank=True,
|
|
2034
|
+
default=0,
|
|
2035
|
+
help_text="An integer to represent the sequence of additional appointments relative to the base appointment, 0, needed to complete data collection for the timepoint. (NNNN.0)",
|
|
2036
|
+
null=True,
|
|
2037
|
+
verbose_name="Sequence",
|
|
2038
|
+
),
|
|
2039
|
+
),
|
|
2040
|
+
(
|
|
2041
|
+
"qty",
|
|
2042
|
+
models.DecimalField(decimal_places=2, max_digits=10, null=True),
|
|
2043
|
+
),
|
|
2044
|
+
("packed", models.BooleanField(default=False)),
|
|
2045
|
+
("packed_datetime", models.DateTimeField(blank=True, null=True)),
|
|
2046
|
+
("shipped", models.BooleanField(default=False)),
|
|
2047
|
+
("shipped_datetime", models.DateTimeField(blank=True, null=True)),
|
|
2048
|
+
("received_at_site", models.BooleanField(default=False)),
|
|
2049
|
+
(
|
|
2050
|
+
"received_at_site_datetime",
|
|
2051
|
+
models.DateTimeField(blank=True, null=True),
|
|
2052
|
+
),
|
|
2053
|
+
(
|
|
2054
|
+
"dose",
|
|
2055
|
+
models.DecimalField(
|
|
2056
|
+
blank=True,
|
|
2057
|
+
decimal_places=1,
|
|
2058
|
+
help_text="dose per frequency if NOT considering weight",
|
|
2059
|
+
max_digits=6,
|
|
2060
|
+
null=True,
|
|
2061
|
+
),
|
|
2062
|
+
),
|
|
2063
|
+
("calculate_dose", models.BooleanField(default=True)),
|
|
2064
|
+
(
|
|
2065
|
+
"frequency",
|
|
2066
|
+
models.IntegerField(
|
|
2067
|
+
blank=True,
|
|
2068
|
+
null=True,
|
|
2069
|
+
validators=[django.core.validators.MinValueValidator(1)],
|
|
2070
|
+
),
|
|
2071
|
+
),
|
|
2072
|
+
(
|
|
2073
|
+
"weight_in_kgs",
|
|
2074
|
+
models.DecimalField(
|
|
2075
|
+
blank=True, decimal_places=1, max_digits=6, null=True
|
|
2076
|
+
),
|
|
2077
|
+
),
|
|
2078
|
+
(
|
|
2079
|
+
"refill_date",
|
|
2080
|
+
models.DateField(
|
|
2081
|
+
default=edc_utils.date.get_utcnow_as_date,
|
|
2082
|
+
verbose_name="Refill date",
|
|
2083
|
+
),
|
|
2084
|
+
),
|
|
2085
|
+
("number_of_days", models.IntegerField(null=True)),
|
|
2086
|
+
(
|
|
2087
|
+
"total",
|
|
2088
|
+
models.DecimalField(
|
|
2089
|
+
blank=True,
|
|
2090
|
+
decimal_places=1,
|
|
2091
|
+
help_text="Leave blank to auto-calculate",
|
|
2092
|
+
max_digits=6,
|
|
2093
|
+
null=True,
|
|
2094
|
+
),
|
|
2095
|
+
),
|
|
2096
|
+
(
|
|
2097
|
+
"remaining",
|
|
2098
|
+
models.DecimalField(
|
|
2099
|
+
blank=True,
|
|
2100
|
+
decimal_places=1,
|
|
2101
|
+
help_text="Leave blank to auto-calculate",
|
|
2102
|
+
max_digits=6,
|
|
2103
|
+
null=True,
|
|
2104
|
+
),
|
|
2105
|
+
),
|
|
2106
|
+
(
|
|
2107
|
+
"notes",
|
|
2108
|
+
models.TextField(
|
|
2109
|
+
blank=True,
|
|
2110
|
+
help_text="Additional information for patient",
|
|
2111
|
+
max_length=250,
|
|
2112
|
+
null=True,
|
|
2113
|
+
),
|
|
2114
|
+
),
|
|
2115
|
+
("active", models.BooleanField(default=False)),
|
|
2116
|
+
("verified", models.BooleanField(default=False)),
|
|
2117
|
+
("verified_datetime", models.DateTimeField(blank=True, null=True)),
|
|
2118
|
+
("as_string", models.CharField(editable=False, max_length=150)),
|
|
2119
|
+
(
|
|
2120
|
+
"history_id",
|
|
2121
|
+
models.UUIDField(
|
|
2122
|
+
default=uuid.uuid4,
|
|
2123
|
+
editable=False,
|
|
2124
|
+
primary_key=True,
|
|
2125
|
+
serialize=False,
|
|
2126
|
+
),
|
|
2127
|
+
),
|
|
2128
|
+
("history_date", models.DateTimeField()),
|
|
2129
|
+
("history_change_reason", models.CharField(max_length=100, null=True)),
|
|
2130
|
+
(
|
|
2131
|
+
"history_type",
|
|
2132
|
+
models.CharField(
|
|
2133
|
+
choices=[("+", "Created"), ("~", "Changed"), ("-", "Deleted")],
|
|
2134
|
+
max_length=1,
|
|
2135
|
+
),
|
|
2136
|
+
),
|
|
2137
|
+
],
|
|
2138
|
+
options={
|
|
2139
|
+
"verbose_name": "historical RX refill",
|
|
2140
|
+
"ordering": ("-history_date", "-history_id"),
|
|
2141
|
+
"get_latest_by": "history_date",
|
|
2142
|
+
},
|
|
2143
|
+
bases=(simple_history.models.HistoricalChanges, models.Model),
|
|
2144
|
+
),
|
|
2145
|
+
migrations.CreateModel(
|
|
2146
|
+
name="Labels",
|
|
2147
|
+
fields=[
|
|
2148
|
+
(
|
|
2149
|
+
"revision",
|
|
2150
|
+
django_revision.revision_field.RevisionField(
|
|
2151
|
+
blank=True,
|
|
2152
|
+
editable=False,
|
|
2153
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
2154
|
+
max_length=75,
|
|
2155
|
+
null=True,
|
|
2156
|
+
verbose_name="Revision",
|
|
2157
|
+
),
|
|
2158
|
+
),
|
|
2159
|
+
(
|
|
2160
|
+
"created",
|
|
2161
|
+
models.DateTimeField(
|
|
2162
|
+
blank=True,
|
|
2163
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
2164
|
+
),
|
|
2165
|
+
),
|
|
2166
|
+
(
|
|
2167
|
+
"modified",
|
|
2168
|
+
models.DateTimeField(
|
|
2169
|
+
blank=True,
|
|
2170
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
2171
|
+
),
|
|
2172
|
+
),
|
|
2173
|
+
(
|
|
2174
|
+
"user_created",
|
|
2175
|
+
django_audit_fields.fields.userfield.UserField(
|
|
2176
|
+
blank=True,
|
|
2177
|
+
help_text="Updated by admin.save_model",
|
|
2178
|
+
max_length=50,
|
|
2179
|
+
verbose_name="user created",
|
|
2180
|
+
),
|
|
2181
|
+
),
|
|
2182
|
+
(
|
|
2183
|
+
"user_modified",
|
|
2184
|
+
django_audit_fields.fields.userfield.UserField(
|
|
2185
|
+
blank=True,
|
|
2186
|
+
help_text="Updated by admin.save_model",
|
|
2187
|
+
max_length=50,
|
|
2188
|
+
verbose_name="user modified",
|
|
2189
|
+
),
|
|
2190
|
+
),
|
|
2191
|
+
(
|
|
2192
|
+
"hostname_created",
|
|
2193
|
+
models.CharField(
|
|
2194
|
+
blank=True,
|
|
2195
|
+
default=_socket.gethostname,
|
|
2196
|
+
help_text="System field. (modified on create only)",
|
|
2197
|
+
max_length=60,
|
|
2198
|
+
),
|
|
2199
|
+
),
|
|
2200
|
+
(
|
|
2201
|
+
"hostname_modified",
|
|
2202
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
2203
|
+
blank=True,
|
|
2204
|
+
help_text="System field. (modified on every save)",
|
|
2205
|
+
max_length=50,
|
|
2206
|
+
),
|
|
2207
|
+
),
|
|
2208
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
2209
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
2210
|
+
(
|
|
2211
|
+
"id",
|
|
2212
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
2213
|
+
blank=True,
|
|
2214
|
+
editable=False,
|
|
2215
|
+
help_text="System auto field. UUID primary key.",
|
|
2216
|
+
primary_key=True,
|
|
2217
|
+
serialize=False,
|
|
2218
|
+
),
|
|
2219
|
+
),
|
|
2220
|
+
(
|
|
2221
|
+
"stock_identifier",
|
|
2222
|
+
models.CharField(default=uuid.uuid4, max_length=36, unique=True),
|
|
2223
|
+
),
|
|
2224
|
+
("printed", models.BooleanField(default=False)),
|
|
2225
|
+
("printed_datetime", models.DateTimeField(blank=True, null=True)),
|
|
2226
|
+
("in_stock", models.BooleanField(default=False)),
|
|
2227
|
+
("in_stock_datetime", models.DateTimeField(blank=True, null=True)),
|
|
2228
|
+
],
|
|
2229
|
+
options={
|
|
2230
|
+
"verbose_name": "Label",
|
|
2231
|
+
"verbose_name_plural": "Labels",
|
|
2232
|
+
"ordering": ("-modified", "-created"),
|
|
2233
|
+
"get_latest_by": "modified",
|
|
2234
|
+
"abstract": False,
|
|
2235
|
+
"default_permissions": (
|
|
2236
|
+
"add",
|
|
2237
|
+
"change",
|
|
2238
|
+
"delete",
|
|
2239
|
+
"view",
|
|
2240
|
+
"export",
|
|
2241
|
+
"import",
|
|
2242
|
+
),
|
|
2243
|
+
},
|
|
2244
|
+
managers=[
|
|
2245
|
+
(
|
|
2246
|
+
"objects",
|
|
2247
|
+
django.db.models.Manager(),
|
|
2248
|
+
),
|
|
2249
|
+
],
|
|
2250
|
+
),
|
|
2251
|
+
migrations.CreateModel(
|
|
2252
|
+
name="Medication",
|
|
2253
|
+
fields=[
|
|
2254
|
+
(
|
|
2255
|
+
"revision",
|
|
2256
|
+
django_revision.revision_field.RevisionField(
|
|
2257
|
+
blank=True,
|
|
2258
|
+
editable=False,
|
|
2259
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
2260
|
+
max_length=75,
|
|
2261
|
+
null=True,
|
|
2262
|
+
verbose_name="Revision",
|
|
2263
|
+
),
|
|
2264
|
+
),
|
|
2265
|
+
(
|
|
2266
|
+
"created",
|
|
2267
|
+
models.DateTimeField(
|
|
2268
|
+
blank=True,
|
|
2269
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
2270
|
+
),
|
|
2271
|
+
),
|
|
2272
|
+
(
|
|
2273
|
+
"modified",
|
|
2274
|
+
models.DateTimeField(
|
|
2275
|
+
blank=True,
|
|
2276
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
2277
|
+
),
|
|
2278
|
+
),
|
|
2279
|
+
(
|
|
2280
|
+
"user_created",
|
|
2281
|
+
django_audit_fields.fields.userfield.UserField(
|
|
2282
|
+
blank=True,
|
|
2283
|
+
help_text="Updated by admin.save_model",
|
|
2284
|
+
max_length=50,
|
|
2285
|
+
verbose_name="user created",
|
|
2286
|
+
),
|
|
2287
|
+
),
|
|
2288
|
+
(
|
|
2289
|
+
"user_modified",
|
|
2290
|
+
django_audit_fields.fields.userfield.UserField(
|
|
2291
|
+
blank=True,
|
|
2292
|
+
help_text="Updated by admin.save_model",
|
|
2293
|
+
max_length=50,
|
|
2294
|
+
verbose_name="user modified",
|
|
2295
|
+
),
|
|
2296
|
+
),
|
|
2297
|
+
(
|
|
2298
|
+
"hostname_created",
|
|
2299
|
+
models.CharField(
|
|
2300
|
+
blank=True,
|
|
2301
|
+
default=_socket.gethostname,
|
|
2302
|
+
help_text="System field. (modified on create only)",
|
|
2303
|
+
max_length=60,
|
|
2304
|
+
),
|
|
2305
|
+
),
|
|
2306
|
+
(
|
|
2307
|
+
"hostname_modified",
|
|
2308
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
2309
|
+
blank=True,
|
|
2310
|
+
help_text="System field. (modified on every save)",
|
|
2311
|
+
max_length=50,
|
|
2312
|
+
),
|
|
2313
|
+
),
|
|
2314
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
2315
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
2316
|
+
(
|
|
2317
|
+
"id",
|
|
2318
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
2319
|
+
blank=True,
|
|
2320
|
+
editable=False,
|
|
2321
|
+
help_text="System auto field. UUID primary key.",
|
|
2322
|
+
primary_key=True,
|
|
2323
|
+
serialize=False,
|
|
2324
|
+
),
|
|
2325
|
+
),
|
|
2326
|
+
("name", models.CharField(max_length=35, unique=True)),
|
|
2327
|
+
("display_name", models.CharField(max_length=50, unique=True)),
|
|
2328
|
+
("notes", models.TextField(blank=True, max_length=250, null=True)),
|
|
2329
|
+
],
|
|
2330
|
+
options={
|
|
2331
|
+
"verbose_name": "Medication",
|
|
2332
|
+
"verbose_name_plural": "Medications",
|
|
2333
|
+
"ordering": ("-modified", "-created"),
|
|
2334
|
+
"get_latest_by": "modified",
|
|
2335
|
+
"abstract": False,
|
|
2336
|
+
"default_permissions": (
|
|
2337
|
+
"add",
|
|
2338
|
+
"change",
|
|
2339
|
+
"delete",
|
|
2340
|
+
"view",
|
|
2341
|
+
"export",
|
|
2342
|
+
"import",
|
|
2343
|
+
),
|
|
2344
|
+
},
|
|
2345
|
+
managers=[
|
|
2346
|
+
("objects", django.db.models.Manager()),
|
|
2347
|
+
],
|
|
2348
|
+
),
|
|
2349
|
+
migrations.CreateModel(
|
|
2350
|
+
name="MedicationLot",
|
|
2351
|
+
fields=[
|
|
2352
|
+
(
|
|
2353
|
+
"revision",
|
|
2354
|
+
django_revision.revision_field.RevisionField(
|
|
2355
|
+
blank=True,
|
|
2356
|
+
editable=False,
|
|
2357
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
2358
|
+
max_length=75,
|
|
2359
|
+
null=True,
|
|
2360
|
+
verbose_name="Revision",
|
|
2361
|
+
),
|
|
2362
|
+
),
|
|
2363
|
+
(
|
|
2364
|
+
"created",
|
|
2365
|
+
models.DateTimeField(
|
|
2366
|
+
blank=True,
|
|
2367
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
2368
|
+
),
|
|
2369
|
+
),
|
|
2370
|
+
(
|
|
2371
|
+
"modified",
|
|
2372
|
+
models.DateTimeField(
|
|
2373
|
+
blank=True,
|
|
2374
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
2375
|
+
),
|
|
2376
|
+
),
|
|
2377
|
+
(
|
|
2378
|
+
"user_created",
|
|
2379
|
+
django_audit_fields.fields.userfield.UserField(
|
|
2380
|
+
blank=True,
|
|
2381
|
+
help_text="Updated by admin.save_model",
|
|
2382
|
+
max_length=50,
|
|
2383
|
+
verbose_name="user created",
|
|
2384
|
+
),
|
|
2385
|
+
),
|
|
2386
|
+
(
|
|
2387
|
+
"user_modified",
|
|
2388
|
+
django_audit_fields.fields.userfield.UserField(
|
|
2389
|
+
blank=True,
|
|
2390
|
+
help_text="Updated by admin.save_model",
|
|
2391
|
+
max_length=50,
|
|
2392
|
+
verbose_name="user modified",
|
|
2393
|
+
),
|
|
2394
|
+
),
|
|
2395
|
+
(
|
|
2396
|
+
"hostname_created",
|
|
2397
|
+
models.CharField(
|
|
2398
|
+
blank=True,
|
|
2399
|
+
default=_socket.gethostname,
|
|
2400
|
+
help_text="System field. (modified on create only)",
|
|
2401
|
+
max_length=60,
|
|
2402
|
+
),
|
|
2403
|
+
),
|
|
2404
|
+
(
|
|
2405
|
+
"hostname_modified",
|
|
2406
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
2407
|
+
blank=True,
|
|
2408
|
+
help_text="System field. (modified on every save)",
|
|
2409
|
+
max_length=50,
|
|
2410
|
+
),
|
|
2411
|
+
),
|
|
2412
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
2413
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
2414
|
+
(
|
|
2415
|
+
"id",
|
|
2416
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
2417
|
+
blank=True,
|
|
2418
|
+
editable=False,
|
|
2419
|
+
help_text="System auto field. UUID primary key.",
|
|
2420
|
+
primary_key=True,
|
|
2421
|
+
serialize=False,
|
|
2422
|
+
),
|
|
2423
|
+
),
|
|
2424
|
+
("lot_no", models.CharField(max_length=50, unique=True)),
|
|
2425
|
+
("expiration_date", models.DateField()),
|
|
2426
|
+
],
|
|
2427
|
+
options={
|
|
2428
|
+
"verbose_name": "Medication lot",
|
|
2429
|
+
"verbose_name_plural": "Medication lots",
|
|
2430
|
+
"ordering": ("-modified", "-created"),
|
|
2431
|
+
"get_latest_by": "modified",
|
|
2432
|
+
"abstract": False,
|
|
2433
|
+
"default_permissions": (
|
|
2434
|
+
"add",
|
|
2435
|
+
"change",
|
|
2436
|
+
"delete",
|
|
2437
|
+
"view",
|
|
2438
|
+
"export",
|
|
2439
|
+
"import",
|
|
2440
|
+
),
|
|
2441
|
+
},
|
|
2442
|
+
managers=[
|
|
2443
|
+
("objects", django.db.models.Manager()),
|
|
2444
|
+
],
|
|
2445
|
+
),
|
|
2446
|
+
migrations.CreateModel(
|
|
2447
|
+
name="MedicationProduct",
|
|
2448
|
+
fields=[
|
|
2449
|
+
(
|
|
2450
|
+
"revision",
|
|
2451
|
+
django_revision.revision_field.RevisionField(
|
|
2452
|
+
blank=True,
|
|
2453
|
+
editable=False,
|
|
2454
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
2455
|
+
max_length=75,
|
|
2456
|
+
null=True,
|
|
2457
|
+
verbose_name="Revision",
|
|
2458
|
+
),
|
|
2459
|
+
),
|
|
2460
|
+
(
|
|
2461
|
+
"created",
|
|
2462
|
+
models.DateTimeField(
|
|
2463
|
+
blank=True,
|
|
2464
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
2465
|
+
),
|
|
2466
|
+
),
|
|
2467
|
+
(
|
|
2468
|
+
"modified",
|
|
2469
|
+
models.DateTimeField(
|
|
2470
|
+
blank=True,
|
|
2471
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
2472
|
+
),
|
|
2473
|
+
),
|
|
2474
|
+
(
|
|
2475
|
+
"user_created",
|
|
2476
|
+
django_audit_fields.fields.userfield.UserField(
|
|
2477
|
+
blank=True,
|
|
2478
|
+
help_text="Updated by admin.save_model",
|
|
2479
|
+
max_length=50,
|
|
2480
|
+
verbose_name="user created",
|
|
2481
|
+
),
|
|
2482
|
+
),
|
|
2483
|
+
(
|
|
2484
|
+
"user_modified",
|
|
2485
|
+
django_audit_fields.fields.userfield.UserField(
|
|
2486
|
+
blank=True,
|
|
2487
|
+
help_text="Updated by admin.save_model",
|
|
2488
|
+
max_length=50,
|
|
2489
|
+
verbose_name="user modified",
|
|
2490
|
+
),
|
|
2491
|
+
),
|
|
2492
|
+
(
|
|
2493
|
+
"hostname_created",
|
|
2494
|
+
models.CharField(
|
|
2495
|
+
blank=True,
|
|
2496
|
+
default=_socket.gethostname,
|
|
2497
|
+
help_text="System field. (modified on create only)",
|
|
2498
|
+
max_length=60,
|
|
2499
|
+
),
|
|
2500
|
+
),
|
|
2501
|
+
(
|
|
2502
|
+
"hostname_modified",
|
|
2503
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
2504
|
+
blank=True,
|
|
2505
|
+
help_text="System field. (modified on every save)",
|
|
2506
|
+
max_length=50,
|
|
2507
|
+
),
|
|
2508
|
+
),
|
|
2509
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
2510
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
2511
|
+
(
|
|
2512
|
+
"id",
|
|
2513
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
2514
|
+
blank=True,
|
|
2515
|
+
editable=False,
|
|
2516
|
+
help_text="System auto field. UUID primary key.",
|
|
2517
|
+
primary_key=True,
|
|
2518
|
+
serialize=False,
|
|
2519
|
+
),
|
|
2520
|
+
),
|
|
2521
|
+
(
|
|
2522
|
+
"product_identifier",
|
|
2523
|
+
models.CharField(default=uuid.uuid4, max_length=36, unique=True),
|
|
2524
|
+
),
|
|
2525
|
+
("name", models.CharField(editable=False, max_length=250, unique=True)),
|
|
2526
|
+
(
|
|
2527
|
+
"count_per_container",
|
|
2528
|
+
models.DecimalField(
|
|
2529
|
+
decimal_places=1,
|
|
2530
|
+
max_digits=6,
|
|
2531
|
+
verbose_name="Items per container",
|
|
2532
|
+
),
|
|
2533
|
+
),
|
|
2534
|
+
],
|
|
2535
|
+
options={
|
|
2536
|
+
"verbose_name": "Medication product",
|
|
2537
|
+
"verbose_name_plural": "Medication products",
|
|
2538
|
+
"ordering": ("-modified", "-created"),
|
|
2539
|
+
"get_latest_by": "modified",
|
|
2540
|
+
"abstract": False,
|
|
2541
|
+
"default_permissions": (
|
|
2542
|
+
"add",
|
|
2543
|
+
"change",
|
|
2544
|
+
"delete",
|
|
2545
|
+
"view",
|
|
2546
|
+
"export",
|
|
2547
|
+
"import",
|
|
2548
|
+
),
|
|
2549
|
+
},
|
|
2550
|
+
managers=[
|
|
2551
|
+
("objects", django.db.models.Manager()),
|
|
2552
|
+
],
|
|
2553
|
+
),
|
|
2554
|
+
migrations.CreateModel(
|
|
2555
|
+
name="MedicationStock",
|
|
2556
|
+
fields=[
|
|
2557
|
+
(
|
|
2558
|
+
"revision",
|
|
2559
|
+
django_revision.revision_field.RevisionField(
|
|
2560
|
+
blank=True,
|
|
2561
|
+
editable=False,
|
|
2562
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
2563
|
+
max_length=75,
|
|
2564
|
+
null=True,
|
|
2565
|
+
verbose_name="Revision",
|
|
2566
|
+
),
|
|
2567
|
+
),
|
|
2568
|
+
(
|
|
2569
|
+
"created",
|
|
2570
|
+
models.DateTimeField(
|
|
2571
|
+
blank=True,
|
|
2572
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
2573
|
+
),
|
|
2574
|
+
),
|
|
2575
|
+
(
|
|
2576
|
+
"modified",
|
|
2577
|
+
models.DateTimeField(
|
|
2578
|
+
blank=True,
|
|
2579
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
2580
|
+
),
|
|
2581
|
+
),
|
|
2582
|
+
(
|
|
2583
|
+
"user_created",
|
|
2584
|
+
django_audit_fields.fields.userfield.UserField(
|
|
2585
|
+
blank=True,
|
|
2586
|
+
help_text="Updated by admin.save_model",
|
|
2587
|
+
max_length=50,
|
|
2588
|
+
verbose_name="user created",
|
|
2589
|
+
),
|
|
2590
|
+
),
|
|
2591
|
+
(
|
|
2592
|
+
"user_modified",
|
|
2593
|
+
django_audit_fields.fields.userfield.UserField(
|
|
2594
|
+
blank=True,
|
|
2595
|
+
help_text="Updated by admin.save_model",
|
|
2596
|
+
max_length=50,
|
|
2597
|
+
verbose_name="user modified",
|
|
2598
|
+
),
|
|
2599
|
+
),
|
|
2600
|
+
(
|
|
2601
|
+
"hostname_created",
|
|
2602
|
+
models.CharField(
|
|
2603
|
+
blank=True,
|
|
2604
|
+
default=_socket.gethostname,
|
|
2605
|
+
help_text="System field. (modified on create only)",
|
|
2606
|
+
max_length=60,
|
|
2607
|
+
),
|
|
2608
|
+
),
|
|
2609
|
+
(
|
|
2610
|
+
"hostname_modified",
|
|
2611
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
2612
|
+
blank=True,
|
|
2613
|
+
help_text="System field. (modified on every save)",
|
|
2614
|
+
max_length=50,
|
|
2615
|
+
),
|
|
2616
|
+
),
|
|
2617
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
2618
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
2619
|
+
(
|
|
2620
|
+
"id",
|
|
2621
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
2622
|
+
blank=True,
|
|
2623
|
+
editable=False,
|
|
2624
|
+
help_text="System auto field. UUID primary key.",
|
|
2625
|
+
primary_key=True,
|
|
2626
|
+
serialize=False,
|
|
2627
|
+
),
|
|
2628
|
+
),
|
|
2629
|
+
(
|
|
2630
|
+
"stock_identifier",
|
|
2631
|
+
models.CharField(default=uuid.uuid4, max_length=36, unique=True),
|
|
2632
|
+
),
|
|
2633
|
+
],
|
|
2634
|
+
options={
|
|
2635
|
+
"verbose_name": "Medication stock",
|
|
2636
|
+
"verbose_name_plural": "Medication stock",
|
|
2637
|
+
"ordering": ("-modified", "-created"),
|
|
2638
|
+
"get_latest_by": "modified",
|
|
2639
|
+
"abstract": False,
|
|
2640
|
+
"default_permissions": (
|
|
2641
|
+
"add",
|
|
2642
|
+
"change",
|
|
2643
|
+
"delete",
|
|
2644
|
+
"view",
|
|
2645
|
+
"export",
|
|
2646
|
+
"import",
|
|
2647
|
+
),
|
|
2648
|
+
},
|
|
2649
|
+
managers=[
|
|
2650
|
+
("objects", django.db.models.Manager()),
|
|
2651
|
+
],
|
|
2652
|
+
),
|
|
2653
|
+
migrations.CreateModel(
|
|
2654
|
+
name="MedicationStockCreateLabels",
|
|
2655
|
+
fields=[
|
|
2656
|
+
(
|
|
2657
|
+
"revision",
|
|
2658
|
+
django_revision.revision_field.RevisionField(
|
|
2659
|
+
blank=True,
|
|
2660
|
+
editable=False,
|
|
2661
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
2662
|
+
max_length=75,
|
|
2663
|
+
null=True,
|
|
2664
|
+
verbose_name="Revision",
|
|
2665
|
+
),
|
|
2666
|
+
),
|
|
2667
|
+
(
|
|
2668
|
+
"created",
|
|
2669
|
+
models.DateTimeField(
|
|
2670
|
+
blank=True,
|
|
2671
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
2672
|
+
),
|
|
2673
|
+
),
|
|
2674
|
+
(
|
|
2675
|
+
"modified",
|
|
2676
|
+
models.DateTimeField(
|
|
2677
|
+
blank=True,
|
|
2678
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
2679
|
+
),
|
|
2680
|
+
),
|
|
2681
|
+
(
|
|
2682
|
+
"user_created",
|
|
2683
|
+
django_audit_fields.fields.userfield.UserField(
|
|
2684
|
+
blank=True,
|
|
2685
|
+
help_text="Updated by admin.save_model",
|
|
2686
|
+
max_length=50,
|
|
2687
|
+
verbose_name="user created",
|
|
2688
|
+
),
|
|
2689
|
+
),
|
|
2690
|
+
(
|
|
2691
|
+
"user_modified",
|
|
2692
|
+
django_audit_fields.fields.userfield.UserField(
|
|
2693
|
+
blank=True,
|
|
2694
|
+
help_text="Updated by admin.save_model",
|
|
2695
|
+
max_length=50,
|
|
2696
|
+
verbose_name="user modified",
|
|
2697
|
+
),
|
|
2698
|
+
),
|
|
2699
|
+
(
|
|
2700
|
+
"hostname_created",
|
|
2701
|
+
models.CharField(
|
|
2702
|
+
blank=True,
|
|
2703
|
+
default=_socket.gethostname,
|
|
2704
|
+
help_text="System field. (modified on create only)",
|
|
2705
|
+
max_length=60,
|
|
2706
|
+
),
|
|
2707
|
+
),
|
|
2708
|
+
(
|
|
2709
|
+
"hostname_modified",
|
|
2710
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
2711
|
+
blank=True,
|
|
2712
|
+
help_text="System field. (modified on every save)",
|
|
2713
|
+
max_length=50,
|
|
2714
|
+
),
|
|
2715
|
+
),
|
|
2716
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
2717
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
2718
|
+
(
|
|
2719
|
+
"id",
|
|
2720
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
2721
|
+
blank=True,
|
|
2722
|
+
editable=False,
|
|
2723
|
+
help_text="System auto field. UUID primary key.",
|
|
2724
|
+
primary_key=True,
|
|
2725
|
+
serialize=False,
|
|
2726
|
+
),
|
|
2727
|
+
),
|
|
2728
|
+
("qty", models.IntegerField(verbose_name="Number of labels to print")),
|
|
2729
|
+
("printed", models.BooleanField(default=False)),
|
|
2730
|
+
("printed_datetime", models.DateTimeField(blank=True, null=True)),
|
|
2731
|
+
],
|
|
2732
|
+
options={
|
|
2733
|
+
"verbose_name": "Medication stock: Create labels",
|
|
2734
|
+
"verbose_name_plural": "Medication stock: Create labels",
|
|
2735
|
+
"ordering": ("-modified", "-created"),
|
|
2736
|
+
"get_latest_by": "modified",
|
|
2737
|
+
"abstract": False,
|
|
2738
|
+
"default_permissions": (
|
|
2739
|
+
"add",
|
|
2740
|
+
"change",
|
|
2741
|
+
"delete",
|
|
2742
|
+
"view",
|
|
2743
|
+
"export",
|
|
2744
|
+
"import",
|
|
2745
|
+
),
|
|
2746
|
+
},
|
|
2747
|
+
managers=[
|
|
2748
|
+
(
|
|
2749
|
+
"objects",
|
|
2750
|
+
django.db.models.Manager(),
|
|
2751
|
+
),
|
|
2752
|
+
],
|
|
2753
|
+
),
|
|
2754
|
+
migrations.CreateModel(
|
|
2755
|
+
name="MedicationStockReceiving",
|
|
2756
|
+
fields=[
|
|
2757
|
+
(
|
|
2758
|
+
"revision",
|
|
2759
|
+
django_revision.revision_field.RevisionField(
|
|
2760
|
+
blank=True,
|
|
2761
|
+
editable=False,
|
|
2762
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
2763
|
+
max_length=75,
|
|
2764
|
+
null=True,
|
|
2765
|
+
verbose_name="Revision",
|
|
2766
|
+
),
|
|
2767
|
+
),
|
|
2768
|
+
(
|
|
2769
|
+
"created",
|
|
2770
|
+
models.DateTimeField(
|
|
2771
|
+
blank=True,
|
|
2772
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
2773
|
+
),
|
|
2774
|
+
),
|
|
2775
|
+
(
|
|
2776
|
+
"modified",
|
|
2777
|
+
models.DateTimeField(
|
|
2778
|
+
blank=True,
|
|
2779
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
2780
|
+
),
|
|
2781
|
+
),
|
|
2782
|
+
(
|
|
2783
|
+
"user_created",
|
|
2784
|
+
django_audit_fields.fields.userfield.UserField(
|
|
2785
|
+
blank=True,
|
|
2786
|
+
help_text="Updated by admin.save_model",
|
|
2787
|
+
max_length=50,
|
|
2788
|
+
verbose_name="user created",
|
|
2789
|
+
),
|
|
2790
|
+
),
|
|
2791
|
+
(
|
|
2792
|
+
"user_modified",
|
|
2793
|
+
django_audit_fields.fields.userfield.UserField(
|
|
2794
|
+
blank=True,
|
|
2795
|
+
help_text="Updated by admin.save_model",
|
|
2796
|
+
max_length=50,
|
|
2797
|
+
verbose_name="user modified",
|
|
2798
|
+
),
|
|
2799
|
+
),
|
|
2800
|
+
(
|
|
2801
|
+
"hostname_created",
|
|
2802
|
+
models.CharField(
|
|
2803
|
+
blank=True,
|
|
2804
|
+
default=_socket.gethostname,
|
|
2805
|
+
help_text="System field. (modified on create only)",
|
|
2806
|
+
max_length=60,
|
|
2807
|
+
),
|
|
2808
|
+
),
|
|
2809
|
+
(
|
|
2810
|
+
"hostname_modified",
|
|
2811
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
2812
|
+
blank=True,
|
|
2813
|
+
help_text="System field. (modified on every save)",
|
|
2814
|
+
max_length=50,
|
|
2815
|
+
),
|
|
2816
|
+
),
|
|
2817
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
2818
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
2819
|
+
(
|
|
2820
|
+
"id",
|
|
2821
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
2822
|
+
blank=True,
|
|
2823
|
+
editable=False,
|
|
2824
|
+
help_text="System auto field. UUID primary key.",
|
|
2825
|
+
primary_key=True,
|
|
2826
|
+
serialize=False,
|
|
2827
|
+
),
|
|
2828
|
+
),
|
|
2829
|
+
("qty", models.IntegerField()),
|
|
2830
|
+
("stock_identifiers", models.TextField()),
|
|
2831
|
+
("received", models.BooleanField(default=False)),
|
|
2832
|
+
("received_datetime", models.DateTimeField(blank=True, null=True)),
|
|
2833
|
+
],
|
|
2834
|
+
options={
|
|
2835
|
+
"verbose_name": "Medication stock: Receiving",
|
|
2836
|
+
"verbose_name_plural": "Medication stock: Receiving",
|
|
2837
|
+
"ordering": ("-modified", "-created"),
|
|
2838
|
+
"get_latest_by": "modified",
|
|
2839
|
+
"abstract": False,
|
|
2840
|
+
"default_permissions": (
|
|
2841
|
+
"add",
|
|
2842
|
+
"change",
|
|
2843
|
+
"delete",
|
|
2844
|
+
"view",
|
|
2845
|
+
"export",
|
|
2846
|
+
"import",
|
|
2847
|
+
),
|
|
2848
|
+
},
|
|
2849
|
+
managers=[
|
|
2850
|
+
("objects", django.db.models.Manager()),
|
|
2851
|
+
],
|
|
2852
|
+
),
|
|
2853
|
+
migrations.CreateModel(
|
|
2854
|
+
name="ReturnHistory",
|
|
2855
|
+
fields=[
|
|
2856
|
+
(
|
|
2857
|
+
"revision",
|
|
2858
|
+
django_revision.revision_field.RevisionField(
|
|
2859
|
+
blank=True,
|
|
2860
|
+
editable=False,
|
|
2861
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
2862
|
+
max_length=75,
|
|
2863
|
+
null=True,
|
|
2864
|
+
verbose_name="Revision",
|
|
2865
|
+
),
|
|
2866
|
+
),
|
|
2867
|
+
(
|
|
2868
|
+
"created",
|
|
2869
|
+
models.DateTimeField(
|
|
2870
|
+
blank=True,
|
|
2871
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
2872
|
+
),
|
|
2873
|
+
),
|
|
2874
|
+
(
|
|
2875
|
+
"modified",
|
|
2876
|
+
models.DateTimeField(
|
|
2877
|
+
blank=True,
|
|
2878
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
2879
|
+
),
|
|
2880
|
+
),
|
|
2881
|
+
(
|
|
2882
|
+
"user_created",
|
|
2883
|
+
django_audit_fields.fields.userfield.UserField(
|
|
2884
|
+
blank=True,
|
|
2885
|
+
help_text="Updated by admin.save_model",
|
|
2886
|
+
max_length=50,
|
|
2887
|
+
verbose_name="user created",
|
|
2888
|
+
),
|
|
2889
|
+
),
|
|
2890
|
+
(
|
|
2891
|
+
"user_modified",
|
|
2892
|
+
django_audit_fields.fields.userfield.UserField(
|
|
2893
|
+
blank=True,
|
|
2894
|
+
help_text="Updated by admin.save_model",
|
|
2895
|
+
max_length=50,
|
|
2896
|
+
verbose_name="user modified",
|
|
2897
|
+
),
|
|
2898
|
+
),
|
|
2899
|
+
(
|
|
2900
|
+
"hostname_created",
|
|
2901
|
+
models.CharField(
|
|
2902
|
+
blank=True,
|
|
2903
|
+
default=_socket.gethostname,
|
|
2904
|
+
help_text="System field. (modified on create only)",
|
|
2905
|
+
max_length=60,
|
|
2906
|
+
),
|
|
2907
|
+
),
|
|
2908
|
+
(
|
|
2909
|
+
"hostname_modified",
|
|
2910
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
2911
|
+
blank=True,
|
|
2912
|
+
help_text="System field. (modified on every save)",
|
|
2913
|
+
max_length=50,
|
|
2914
|
+
),
|
|
2915
|
+
),
|
|
2916
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
2917
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
2918
|
+
(
|
|
2919
|
+
"id",
|
|
2920
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
2921
|
+
blank=True,
|
|
2922
|
+
editable=False,
|
|
2923
|
+
help_text="System auto field. UUID primary key.",
|
|
2924
|
+
primary_key=True,
|
|
2925
|
+
serialize=False,
|
|
2926
|
+
),
|
|
2927
|
+
),
|
|
2928
|
+
(
|
|
2929
|
+
"return_datetime",
|
|
2930
|
+
models.DateTimeField(default=edc_utils.date.get_utcnow),
|
|
2931
|
+
),
|
|
2932
|
+
("returned", models.DecimalField(decimal_places=1, max_digits=6)),
|
|
2933
|
+
],
|
|
2934
|
+
options={
|
|
2935
|
+
"verbose_name": "Return history",
|
|
2936
|
+
"verbose_name_plural": "Return history",
|
|
2937
|
+
"ordering": ("-modified", "-created"),
|
|
2938
|
+
"get_latest_by": "modified",
|
|
2939
|
+
"abstract": False,
|
|
2940
|
+
"default_permissions": (
|
|
2941
|
+
"add",
|
|
2942
|
+
"change",
|
|
2943
|
+
"delete",
|
|
2944
|
+
"view",
|
|
2945
|
+
"export",
|
|
2946
|
+
"import",
|
|
2947
|
+
),
|
|
2948
|
+
},
|
|
2949
|
+
managers=[
|
|
2950
|
+
("objects", django.db.models.Manager()),
|
|
2951
|
+
],
|
|
2952
|
+
),
|
|
2953
|
+
migrations.CreateModel(
|
|
2954
|
+
name="Route",
|
|
2955
|
+
fields=[
|
|
2956
|
+
(
|
|
2957
|
+
"name",
|
|
2958
|
+
models.CharField(
|
|
2959
|
+
db_index=True,
|
|
2960
|
+
help_text="This is the stored value, required",
|
|
2961
|
+
max_length=250,
|
|
2962
|
+
unique=True,
|
|
2963
|
+
verbose_name="Stored value",
|
|
2964
|
+
),
|
|
2965
|
+
),
|
|
2966
|
+
(
|
|
2967
|
+
"display_name",
|
|
2968
|
+
models.CharField(
|
|
2969
|
+
db_index=True,
|
|
2970
|
+
help_text="(suggest 40 characters max.)",
|
|
2971
|
+
max_length=250,
|
|
2972
|
+
unique=True,
|
|
2973
|
+
verbose_name="Name",
|
|
2974
|
+
),
|
|
2975
|
+
),
|
|
2976
|
+
(
|
|
2977
|
+
"display_index",
|
|
2978
|
+
models.IntegerField(
|
|
2979
|
+
db_index=True,
|
|
2980
|
+
default=0,
|
|
2981
|
+
help_text="Index to control display order if not alphabetical, not required",
|
|
2982
|
+
verbose_name="display index",
|
|
2983
|
+
),
|
|
2984
|
+
),
|
|
2985
|
+
(
|
|
2986
|
+
"field_name",
|
|
2987
|
+
models.CharField(
|
|
2988
|
+
blank=True,
|
|
2989
|
+
editable=False,
|
|
2990
|
+
help_text="Not required",
|
|
2991
|
+
max_length=25,
|
|
2992
|
+
null=True,
|
|
2993
|
+
),
|
|
2994
|
+
),
|
|
2995
|
+
(
|
|
2996
|
+
"version",
|
|
2997
|
+
models.CharField(default="1.0", editable=False, max_length=35),
|
|
2998
|
+
),
|
|
2999
|
+
("id", models.AutoField(primary_key=True, serialize=False)),
|
|
3000
|
+
],
|
|
3001
|
+
options={
|
|
3002
|
+
"verbose_name": "Route",
|
|
3003
|
+
"verbose_name_plural": "Routes",
|
|
3004
|
+
"ordering": ["display_index", "display_name"],
|
|
3005
|
+
"abstract": False,
|
|
3006
|
+
"default_permissions": (
|
|
3007
|
+
"add",
|
|
3008
|
+
"change",
|
|
3009
|
+
"delete",
|
|
3010
|
+
"view",
|
|
3011
|
+
"export",
|
|
3012
|
+
"import",
|
|
3013
|
+
),
|
|
3014
|
+
},
|
|
3015
|
+
),
|
|
3016
|
+
migrations.CreateModel(
|
|
3017
|
+
name="Rx",
|
|
3018
|
+
fields=[
|
|
3019
|
+
(
|
|
3020
|
+
"revision",
|
|
3021
|
+
django_revision.revision_field.RevisionField(
|
|
3022
|
+
blank=True,
|
|
3023
|
+
editable=False,
|
|
3024
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
3025
|
+
max_length=75,
|
|
3026
|
+
null=True,
|
|
3027
|
+
verbose_name="Revision",
|
|
3028
|
+
),
|
|
3029
|
+
),
|
|
3030
|
+
(
|
|
3031
|
+
"created",
|
|
3032
|
+
models.DateTimeField(
|
|
3033
|
+
blank=True,
|
|
3034
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
3035
|
+
),
|
|
3036
|
+
),
|
|
3037
|
+
(
|
|
3038
|
+
"modified",
|
|
3039
|
+
models.DateTimeField(
|
|
3040
|
+
blank=True,
|
|
3041
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
3042
|
+
),
|
|
3043
|
+
),
|
|
3044
|
+
(
|
|
3045
|
+
"user_created",
|
|
3046
|
+
django_audit_fields.fields.userfield.UserField(
|
|
3047
|
+
blank=True,
|
|
3048
|
+
help_text="Updated by admin.save_model",
|
|
3049
|
+
max_length=50,
|
|
3050
|
+
verbose_name="user created",
|
|
3051
|
+
),
|
|
3052
|
+
),
|
|
3053
|
+
(
|
|
3054
|
+
"user_modified",
|
|
3055
|
+
django_audit_fields.fields.userfield.UserField(
|
|
3056
|
+
blank=True,
|
|
3057
|
+
help_text="Updated by admin.save_model",
|
|
3058
|
+
max_length=50,
|
|
3059
|
+
verbose_name="user modified",
|
|
3060
|
+
),
|
|
3061
|
+
),
|
|
3062
|
+
(
|
|
3063
|
+
"hostname_created",
|
|
3064
|
+
models.CharField(
|
|
3065
|
+
blank=True,
|
|
3066
|
+
default=_socket.gethostname,
|
|
3067
|
+
help_text="System field. (modified on create only)",
|
|
3068
|
+
max_length=60,
|
|
3069
|
+
),
|
|
3070
|
+
),
|
|
3071
|
+
(
|
|
3072
|
+
"hostname_modified",
|
|
3073
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
3074
|
+
blank=True,
|
|
3075
|
+
help_text="System field. (modified on every save)",
|
|
3076
|
+
max_length=50,
|
|
3077
|
+
),
|
|
3078
|
+
),
|
|
3079
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
3080
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
3081
|
+
(
|
|
3082
|
+
"id",
|
|
3083
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
3084
|
+
blank=True,
|
|
3085
|
+
editable=False,
|
|
3086
|
+
help_text="System auto field. UUID primary key.",
|
|
3087
|
+
primary_key=True,
|
|
3088
|
+
serialize=False,
|
|
3089
|
+
),
|
|
3090
|
+
),
|
|
3091
|
+
("subject_identifier", models.CharField(max_length=50)),
|
|
3092
|
+
(
|
|
3093
|
+
"parent_action_identifier",
|
|
3094
|
+
models.CharField(
|
|
3095
|
+
blank=True,
|
|
3096
|
+
help_text="action identifier that links to parent reference model instance.",
|
|
3097
|
+
max_length=30,
|
|
3098
|
+
null=True,
|
|
3099
|
+
),
|
|
3100
|
+
),
|
|
3101
|
+
(
|
|
3102
|
+
"related_action_identifier",
|
|
3103
|
+
models.CharField(
|
|
3104
|
+
blank=True,
|
|
3105
|
+
help_text="action identifier that links to related reference model instance.",
|
|
3106
|
+
max_length=30,
|
|
3107
|
+
null=True,
|
|
3108
|
+
),
|
|
3109
|
+
),
|
|
3110
|
+
("action_item_reason", models.TextField(editable=False, null=True)),
|
|
3111
|
+
(
|
|
3112
|
+
"slug",
|
|
3113
|
+
models.CharField(
|
|
3114
|
+
db_index=True,
|
|
3115
|
+
default="",
|
|
3116
|
+
editable=False,
|
|
3117
|
+
help_text="a field used for quick search",
|
|
3118
|
+
max_length=250,
|
|
3119
|
+
null=True,
|
|
3120
|
+
),
|
|
3121
|
+
),
|
|
3122
|
+
(
|
|
3123
|
+
"action_identifier",
|
|
3124
|
+
models.CharField(max_length=50, null=True, unique=True),
|
|
3125
|
+
),
|
|
3126
|
+
(
|
|
3127
|
+
"report_datetime",
|
|
3128
|
+
models.DateTimeField(default=edc_utils.date.get_utcnow),
|
|
3129
|
+
),
|
|
3130
|
+
(
|
|
3131
|
+
"rx_date",
|
|
3132
|
+
models.DateField(
|
|
3133
|
+
default=edc_utils.date.get_utcnow,
|
|
3134
|
+
verbose_name="Date RX written",
|
|
3135
|
+
),
|
|
3136
|
+
),
|
|
3137
|
+
(
|
|
3138
|
+
"rx_expiration_date",
|
|
3139
|
+
models.DateField(
|
|
3140
|
+
blank=True,
|
|
3141
|
+
help_text="Leave blank. Will be filled when end of study report is submitted",
|
|
3142
|
+
null=True,
|
|
3143
|
+
verbose_name="Date RX expires",
|
|
3144
|
+
),
|
|
3145
|
+
),
|
|
3146
|
+
(
|
|
3147
|
+
"status",
|
|
3148
|
+
models.CharField(
|
|
3149
|
+
choices=[
|
|
3150
|
+
("New", "New"),
|
|
3151
|
+
("partial", "Partially filled"),
|
|
3152
|
+
("filled", "Filled"),
|
|
3153
|
+
("cancelled", "Cancelled"),
|
|
3154
|
+
],
|
|
3155
|
+
default="New",
|
|
3156
|
+
max_length=25,
|
|
3157
|
+
),
|
|
3158
|
+
),
|
|
3159
|
+
(
|
|
3160
|
+
"refill",
|
|
3161
|
+
models.IntegerField(
|
|
3162
|
+
blank=True,
|
|
3163
|
+
help_text="Number of times this prescription may be refilled",
|
|
3164
|
+
null=True,
|
|
3165
|
+
),
|
|
3166
|
+
),
|
|
3167
|
+
("rando_sid", models.CharField(blank=True, max_length=25, null=True)),
|
|
3168
|
+
(
|
|
3169
|
+
"randomizer_name",
|
|
3170
|
+
models.CharField(blank=True, max_length=25, null=True),
|
|
3171
|
+
),
|
|
3172
|
+
(
|
|
3173
|
+
"weight_in_kgs",
|
|
3174
|
+
models.DecimalField(
|
|
3175
|
+
blank=True, decimal_places=1, max_digits=6, null=True
|
|
3176
|
+
),
|
|
3177
|
+
),
|
|
3178
|
+
("clinician_initials", models.CharField(max_length=3, null=True)),
|
|
3179
|
+
(
|
|
3180
|
+
"notes",
|
|
3181
|
+
models.TextField(
|
|
3182
|
+
blank=True,
|
|
3183
|
+
help_text="Private notes for pharmacist only",
|
|
3184
|
+
max_length=250,
|
|
3185
|
+
null=True,
|
|
3186
|
+
),
|
|
3187
|
+
),
|
|
3188
|
+
],
|
|
3189
|
+
options={
|
|
3190
|
+
"verbose_name": "Prescription",
|
|
3191
|
+
"verbose_name_plural": "Prescriptions",
|
|
3192
|
+
"ordering": ("-modified", "-created"),
|
|
3193
|
+
"get_latest_by": "modified",
|
|
3194
|
+
"abstract": False,
|
|
3195
|
+
"default_permissions": (
|
|
3196
|
+
"add",
|
|
3197
|
+
"change",
|
|
3198
|
+
"delete",
|
|
3199
|
+
"view",
|
|
3200
|
+
"export",
|
|
3201
|
+
"import",
|
|
3202
|
+
),
|
|
3203
|
+
},
|
|
3204
|
+
managers=[
|
|
3205
|
+
("on_site", edc_sites.models.CurrentSiteManager()),
|
|
3206
|
+
],
|
|
3207
|
+
),
|
|
3208
|
+
migrations.CreateModel(
|
|
3209
|
+
name="RxRefill",
|
|
3210
|
+
fields=[
|
|
3211
|
+
(
|
|
3212
|
+
"revision",
|
|
3213
|
+
django_revision.revision_field.RevisionField(
|
|
3214
|
+
blank=True,
|
|
3215
|
+
editable=False,
|
|
3216
|
+
help_text="System field. Git repository tag:branch:commit.",
|
|
3217
|
+
max_length=75,
|
|
3218
|
+
null=True,
|
|
3219
|
+
verbose_name="Revision",
|
|
3220
|
+
),
|
|
3221
|
+
),
|
|
3222
|
+
(
|
|
3223
|
+
"created",
|
|
3224
|
+
models.DateTimeField(
|
|
3225
|
+
blank=True,
|
|
3226
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
3227
|
+
),
|
|
3228
|
+
),
|
|
3229
|
+
(
|
|
3230
|
+
"modified",
|
|
3231
|
+
models.DateTimeField(
|
|
3232
|
+
blank=True,
|
|
3233
|
+
default=django_audit_fields.models.audit_model_mixin.utcnow,
|
|
3234
|
+
),
|
|
3235
|
+
),
|
|
3236
|
+
(
|
|
3237
|
+
"user_created",
|
|
3238
|
+
django_audit_fields.fields.userfield.UserField(
|
|
3239
|
+
blank=True,
|
|
3240
|
+
help_text="Updated by admin.save_model",
|
|
3241
|
+
max_length=50,
|
|
3242
|
+
verbose_name="user created",
|
|
3243
|
+
),
|
|
3244
|
+
),
|
|
3245
|
+
(
|
|
3246
|
+
"user_modified",
|
|
3247
|
+
django_audit_fields.fields.userfield.UserField(
|
|
3248
|
+
blank=True,
|
|
3249
|
+
help_text="Updated by admin.save_model",
|
|
3250
|
+
max_length=50,
|
|
3251
|
+
verbose_name="user modified",
|
|
3252
|
+
),
|
|
3253
|
+
),
|
|
3254
|
+
(
|
|
3255
|
+
"hostname_created",
|
|
3256
|
+
models.CharField(
|
|
3257
|
+
blank=True,
|
|
3258
|
+
default=_socket.gethostname,
|
|
3259
|
+
help_text="System field. (modified on create only)",
|
|
3260
|
+
max_length=60,
|
|
3261
|
+
),
|
|
3262
|
+
),
|
|
3263
|
+
(
|
|
3264
|
+
"hostname_modified",
|
|
3265
|
+
django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
|
|
3266
|
+
blank=True,
|
|
3267
|
+
help_text="System field. (modified on every save)",
|
|
3268
|
+
max_length=50,
|
|
3269
|
+
),
|
|
3270
|
+
),
|
|
3271
|
+
("device_created", models.CharField(blank=True, max_length=10)),
|
|
3272
|
+
("device_modified", models.CharField(blank=True, max_length=10)),
|
|
3273
|
+
(
|
|
3274
|
+
"id",
|
|
3275
|
+
django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
|
|
3276
|
+
blank=True,
|
|
3277
|
+
editable=False,
|
|
3278
|
+
help_text="System auto field. UUID primary key.",
|
|
3279
|
+
primary_key=True,
|
|
3280
|
+
serialize=False,
|
|
3281
|
+
),
|
|
3282
|
+
),
|
|
3283
|
+
(
|
|
3284
|
+
"visit_code",
|
|
3285
|
+
models.CharField(editable=False, max_length=25, null=True),
|
|
3286
|
+
),
|
|
3287
|
+
(
|
|
3288
|
+
"visit_code_sequence",
|
|
3289
|
+
models.IntegerField(
|
|
3290
|
+
blank=True,
|
|
3291
|
+
default=0,
|
|
3292
|
+
help_text="An integer to represent the sequence of additional appointments relative to the base appointment, 0, needed to complete data collection for the timepoint. (NNNN.0)",
|
|
3293
|
+
null=True,
|
|
3294
|
+
verbose_name="Sequence",
|
|
3295
|
+
),
|
|
3296
|
+
),
|
|
3297
|
+
(
|
|
3298
|
+
"qty",
|
|
3299
|
+
models.DecimalField(decimal_places=2, max_digits=10, null=True),
|
|
3300
|
+
),
|
|
3301
|
+
("packed", models.BooleanField(default=False)),
|
|
3302
|
+
("packed_datetime", models.DateTimeField(blank=True, null=True)),
|
|
3303
|
+
("shipped", models.BooleanField(default=False)),
|
|
3304
|
+
("shipped_datetime", models.DateTimeField(blank=True, null=True)),
|
|
3305
|
+
("received_at_site", models.BooleanField(default=False)),
|
|
3306
|
+
(
|
|
3307
|
+
"received_at_site_datetime",
|
|
3308
|
+
models.DateTimeField(blank=True, null=True),
|
|
3309
|
+
),
|
|
3310
|
+
(
|
|
3311
|
+
"dose",
|
|
3312
|
+
models.DecimalField(
|
|
3313
|
+
blank=True,
|
|
3314
|
+
decimal_places=1,
|
|
3315
|
+
help_text="dose per frequency if NOT considering weight",
|
|
3316
|
+
max_digits=6,
|
|
3317
|
+
null=True,
|
|
3318
|
+
),
|
|
3319
|
+
),
|
|
3320
|
+
("calculate_dose", models.BooleanField(default=True)),
|
|
3321
|
+
(
|
|
3322
|
+
"frequency",
|
|
3323
|
+
models.IntegerField(
|
|
3324
|
+
blank=True,
|
|
3325
|
+
null=True,
|
|
3326
|
+
validators=[django.core.validators.MinValueValidator(1)],
|
|
3327
|
+
),
|
|
3328
|
+
),
|
|
3329
|
+
(
|
|
3330
|
+
"weight_in_kgs",
|
|
3331
|
+
models.DecimalField(
|
|
3332
|
+
blank=True, decimal_places=1, max_digits=6, null=True
|
|
3333
|
+
),
|
|
3334
|
+
),
|
|
3335
|
+
(
|
|
3336
|
+
"refill_date",
|
|
3337
|
+
models.DateField(
|
|
3338
|
+
default=edc_utils.date.get_utcnow_as_date,
|
|
3339
|
+
verbose_name="Refill date",
|
|
3340
|
+
),
|
|
3341
|
+
),
|
|
3342
|
+
("number_of_days", models.IntegerField(null=True)),
|
|
3343
|
+
(
|
|
3344
|
+
"total",
|
|
3345
|
+
models.DecimalField(
|
|
3346
|
+
blank=True,
|
|
3347
|
+
decimal_places=1,
|
|
3348
|
+
help_text="Leave blank to auto-calculate",
|
|
3349
|
+
max_digits=6,
|
|
3350
|
+
null=True,
|
|
3351
|
+
),
|
|
3352
|
+
),
|
|
3353
|
+
(
|
|
3354
|
+
"remaining",
|
|
3355
|
+
models.DecimalField(
|
|
3356
|
+
blank=True,
|
|
3357
|
+
decimal_places=1,
|
|
3358
|
+
help_text="Leave blank to auto-calculate",
|
|
3359
|
+
max_digits=6,
|
|
3360
|
+
null=True,
|
|
3361
|
+
),
|
|
3362
|
+
),
|
|
3363
|
+
(
|
|
3364
|
+
"notes",
|
|
3365
|
+
models.TextField(
|
|
3366
|
+
blank=True,
|
|
3367
|
+
help_text="Additional information for patient",
|
|
3368
|
+
max_length=250,
|
|
3369
|
+
null=True,
|
|
3370
|
+
),
|
|
3371
|
+
),
|
|
3372
|
+
("active", models.BooleanField(default=False)),
|
|
3373
|
+
("verified", models.BooleanField(default=False)),
|
|
3374
|
+
("verified_datetime", models.DateTimeField(blank=True, null=True)),
|
|
3375
|
+
("as_string", models.CharField(editable=False, max_length=150)),
|
|
3376
|
+
],
|
|
3377
|
+
options={
|
|
3378
|
+
"verbose_name": "RX refill",
|
|
3379
|
+
"verbose_name_plural": "RX refills",
|
|
3380
|
+
"ordering": ("-modified", "-created"),
|
|
3381
|
+
"get_latest_by": "modified",
|
|
3382
|
+
"abstract": False,
|
|
3383
|
+
"default_permissions": (
|
|
3384
|
+
"add",
|
|
3385
|
+
"change",
|
|
3386
|
+
"delete",
|
|
3387
|
+
"view",
|
|
3388
|
+
"export",
|
|
3389
|
+
"import",
|
|
3390
|
+
),
|
|
3391
|
+
},
|
|
3392
|
+
managers=[
|
|
3393
|
+
("on_site", edc_sites.models.CurrentSiteManager()),
|
|
3394
|
+
("objects", edc_pharmacy.models.prescription.rx_refill.Manager()),
|
|
3395
|
+
],
|
|
3396
|
+
),
|
|
3397
|
+
migrations.CreateModel(
|
|
3398
|
+
name="Units",
|
|
3399
|
+
fields=[
|
|
3400
|
+
(
|
|
3401
|
+
"name",
|
|
3402
|
+
models.CharField(
|
|
3403
|
+
db_index=True,
|
|
3404
|
+
help_text="This is the stored value, required",
|
|
3405
|
+
max_length=250,
|
|
3406
|
+
unique=True,
|
|
3407
|
+
verbose_name="Stored value",
|
|
3408
|
+
),
|
|
3409
|
+
),
|
|
3410
|
+
(
|
|
3411
|
+
"display_name",
|
|
3412
|
+
models.CharField(
|
|
3413
|
+
db_index=True,
|
|
3414
|
+
help_text="(suggest 40 characters max.)",
|
|
3415
|
+
max_length=250,
|
|
3416
|
+
unique=True,
|
|
3417
|
+
verbose_name="Name",
|
|
3418
|
+
),
|
|
3419
|
+
),
|
|
3420
|
+
(
|
|
3421
|
+
"display_index",
|
|
3422
|
+
models.IntegerField(
|
|
3423
|
+
db_index=True,
|
|
3424
|
+
default=0,
|
|
3425
|
+
help_text="Index to control display order if not alphabetical, not required",
|
|
3426
|
+
verbose_name="display index",
|
|
3427
|
+
),
|
|
3428
|
+
),
|
|
3429
|
+
(
|
|
3430
|
+
"field_name",
|
|
3431
|
+
models.CharField(
|
|
3432
|
+
blank=True,
|
|
3433
|
+
editable=False,
|
|
3434
|
+
help_text="Not required",
|
|
3435
|
+
max_length=25,
|
|
3436
|
+
null=True,
|
|
3437
|
+
),
|
|
3438
|
+
),
|
|
3439
|
+
(
|
|
3440
|
+
"version",
|
|
3441
|
+
models.CharField(default="1.0", editable=False, max_length=35),
|
|
3442
|
+
),
|
|
3443
|
+
("id", models.AutoField(primary_key=True, serialize=False)),
|
|
3444
|
+
],
|
|
3445
|
+
options={
|
|
3446
|
+
"verbose_name": "Units",
|
|
3447
|
+
"verbose_name_plural": "Units",
|
|
3448
|
+
"ordering": ["display_index", "display_name"],
|
|
3449
|
+
"abstract": False,
|
|
3450
|
+
"default_permissions": (
|
|
3451
|
+
"add",
|
|
3452
|
+
"change",
|
|
3453
|
+
"delete",
|
|
3454
|
+
"view",
|
|
3455
|
+
"export",
|
|
3456
|
+
"import",
|
|
3457
|
+
),
|
|
3458
|
+
},
|
|
3459
|
+
),
|
|
3460
|
+
migrations.CreateModel(
|
|
3461
|
+
name="Subject",
|
|
3462
|
+
fields=[],
|
|
3463
|
+
options={
|
|
3464
|
+
"verbose_name": "Subject",
|
|
3465
|
+
"verbose_name_plural": "Subjects",
|
|
3466
|
+
"proxy": True,
|
|
3467
|
+
"default_permissions": ("view", "export"),
|
|
3468
|
+
"indexes": [],
|
|
3469
|
+
"constraints": [],
|
|
3470
|
+
},
|
|
3471
|
+
bases=("edc_registration.registeredsubject",),
|
|
3472
|
+
managers=[
|
|
3473
|
+
("on_site", edc_sites.models.CurrentSiteManager()),
|
|
3474
|
+
(
|
|
3475
|
+
"objects",
|
|
3476
|
+
edc_registration.models.managers.RegisteredSubjectManager(),
|
|
3477
|
+
),
|
|
3478
|
+
],
|
|
3479
|
+
),
|
|
3480
|
+
migrations.CreateModel(
|
|
3481
|
+
name="VisitSchedule",
|
|
3482
|
+
fields=[],
|
|
3483
|
+
options={
|
|
3484
|
+
"proxy": True,
|
|
3485
|
+
"indexes": [],
|
|
3486
|
+
"constraints": [],
|
|
3487
|
+
},
|
|
3488
|
+
bases=("edc_visit_schedule.visitschedule",),
|
|
3489
|
+
),
|
|
3490
|
+
migrations.AddIndex(
|
|
3491
|
+
model_name="units",
|
|
3492
|
+
index=models.Index(
|
|
3493
|
+
fields=["id", "display_name", "display_index"],
|
|
3494
|
+
name="edc_pharmac_id_93aa79_idx",
|
|
3495
|
+
),
|
|
3496
|
+
),
|
|
3497
|
+
migrations.AddField(
|
|
3498
|
+
model_name="rxrefill",
|
|
3499
|
+
name="dosage_guideline",
|
|
3500
|
+
field=models.ForeignKey(
|
|
3501
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3502
|
+
to="edc_pharmacy.dosageguideline",
|
|
3503
|
+
),
|
|
3504
|
+
),
|
|
3505
|
+
migrations.AddField(
|
|
3506
|
+
model_name="rxrefill",
|
|
3507
|
+
name="formulation",
|
|
3508
|
+
field=models.ForeignKey(
|
|
3509
|
+
null=True,
|
|
3510
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3511
|
+
to="edc_pharmacy.formulation",
|
|
3512
|
+
),
|
|
3513
|
+
),
|
|
3514
|
+
migrations.AddField(
|
|
3515
|
+
model_name="rxrefill",
|
|
3516
|
+
name="frequency_units",
|
|
3517
|
+
field=models.ForeignKey(
|
|
3518
|
+
blank=True,
|
|
3519
|
+
null=True,
|
|
3520
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3521
|
+
to="edc_pharmacy.frequencyunits",
|
|
3522
|
+
verbose_name="per",
|
|
3523
|
+
),
|
|
3524
|
+
),
|
|
3525
|
+
migrations.AddField(
|
|
3526
|
+
model_name="rxrefill",
|
|
3527
|
+
name="medication_stock",
|
|
3528
|
+
field=models.ForeignKey(
|
|
3529
|
+
null=True,
|
|
3530
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3531
|
+
to="edc_pharmacy.medicationstock",
|
|
3532
|
+
),
|
|
3533
|
+
),
|
|
3534
|
+
migrations.AddField(
|
|
3535
|
+
model_name="rxrefill",
|
|
3536
|
+
name="rx",
|
|
3537
|
+
field=models.ForeignKey(
|
|
3538
|
+
on_delete=django.db.models.deletion.PROTECT, to="edc_pharmacy.rx"
|
|
3539
|
+
),
|
|
3540
|
+
),
|
|
3541
|
+
migrations.AddField(
|
|
3542
|
+
model_name="rxrefill",
|
|
3543
|
+
name="site",
|
|
3544
|
+
field=models.ForeignKey(
|
|
3545
|
+
editable=False,
|
|
3546
|
+
null=True,
|
|
3547
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3548
|
+
related_name="+",
|
|
3549
|
+
to="sites.site",
|
|
3550
|
+
),
|
|
3551
|
+
),
|
|
3552
|
+
migrations.AddField(
|
|
3553
|
+
model_name="rx",
|
|
3554
|
+
name="action_item",
|
|
3555
|
+
field=models.ForeignKey(
|
|
3556
|
+
blank=True,
|
|
3557
|
+
null=True,
|
|
3558
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3559
|
+
to="edc_action_item.actionitem",
|
|
3560
|
+
),
|
|
3561
|
+
),
|
|
3562
|
+
migrations.AddField(
|
|
3563
|
+
model_name="rx",
|
|
3564
|
+
name="medication",
|
|
3565
|
+
field=models.ForeignKey(
|
|
3566
|
+
null=True,
|
|
3567
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3568
|
+
to="edc_pharmacy.medication",
|
|
3569
|
+
),
|
|
3570
|
+
),
|
|
3571
|
+
migrations.AddField(
|
|
3572
|
+
model_name="rx",
|
|
3573
|
+
name="parent_action_item",
|
|
3574
|
+
field=models.ForeignKey(
|
|
3575
|
+
blank=True,
|
|
3576
|
+
null=True,
|
|
3577
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3578
|
+
related_name="+",
|
|
3579
|
+
to="edc_action_item.actionitem",
|
|
3580
|
+
),
|
|
3581
|
+
),
|
|
3582
|
+
migrations.AddField(
|
|
3583
|
+
model_name="rx",
|
|
3584
|
+
name="registered_subject",
|
|
3585
|
+
field=models.ForeignKey(
|
|
3586
|
+
null=True,
|
|
3587
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3588
|
+
to="edc_registration.registeredsubject",
|
|
3589
|
+
verbose_name="Subject Identifier",
|
|
3590
|
+
),
|
|
3591
|
+
),
|
|
3592
|
+
migrations.AddField(
|
|
3593
|
+
model_name="rx",
|
|
3594
|
+
name="related_action_item",
|
|
3595
|
+
field=models.ForeignKey(
|
|
3596
|
+
blank=True,
|
|
3597
|
+
null=True,
|
|
3598
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3599
|
+
related_name="+",
|
|
3600
|
+
to="edc_action_item.actionitem",
|
|
3601
|
+
),
|
|
3602
|
+
),
|
|
3603
|
+
migrations.AddField(
|
|
3604
|
+
model_name="rx",
|
|
3605
|
+
name="site",
|
|
3606
|
+
field=models.ForeignKey(
|
|
3607
|
+
editable=False,
|
|
3608
|
+
null=True,
|
|
3609
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3610
|
+
related_name="+",
|
|
3611
|
+
to="sites.site",
|
|
3612
|
+
),
|
|
3613
|
+
),
|
|
3614
|
+
migrations.AddIndex(
|
|
3615
|
+
model_name="route",
|
|
3616
|
+
index=models.Index(
|
|
3617
|
+
fields=["id", "display_name", "display_index"],
|
|
3618
|
+
name="edc_pharmac_id_b35112_idx",
|
|
3619
|
+
),
|
|
3620
|
+
),
|
|
3621
|
+
migrations.AddField(
|
|
3622
|
+
model_name="returnhistory",
|
|
3623
|
+
name="rx_refill",
|
|
3624
|
+
field=models.ForeignKey(
|
|
3625
|
+
on_delete=django.db.models.deletion.PROTECT, to="edc_pharmacy.rxrefill"
|
|
3626
|
+
),
|
|
3627
|
+
),
|
|
3628
|
+
migrations.AddField(
|
|
3629
|
+
model_name="medicationstockreceiving",
|
|
3630
|
+
name="medication_product",
|
|
3631
|
+
field=models.ForeignKey(
|
|
3632
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3633
|
+
to="edc_pharmacy.medicationproduct",
|
|
3634
|
+
),
|
|
3635
|
+
),
|
|
3636
|
+
migrations.AddField(
|
|
3637
|
+
model_name="medicationstockcreatelabels",
|
|
3638
|
+
name="medication_product",
|
|
3639
|
+
field=models.ForeignKey(
|
|
3640
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3641
|
+
to="edc_pharmacy.medicationproduct",
|
|
3642
|
+
),
|
|
3643
|
+
),
|
|
3644
|
+
migrations.AddField(
|
|
3645
|
+
model_name="medicationstock",
|
|
3646
|
+
name="medication_product",
|
|
3647
|
+
field=models.ForeignKey(
|
|
3648
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3649
|
+
to="edc_pharmacy.medicationproduct",
|
|
3650
|
+
),
|
|
3651
|
+
),
|
|
3652
|
+
migrations.AddField(
|
|
3653
|
+
model_name="medicationstock",
|
|
3654
|
+
name="site",
|
|
3655
|
+
field=models.ForeignKey(
|
|
3656
|
+
editable=False,
|
|
3657
|
+
null=True,
|
|
3658
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3659
|
+
related_name="+",
|
|
3660
|
+
to="sites.site",
|
|
3661
|
+
),
|
|
3662
|
+
),
|
|
3663
|
+
migrations.AddField(
|
|
3664
|
+
model_name="medicationproduct",
|
|
3665
|
+
name="container",
|
|
3666
|
+
field=models.ForeignKey(
|
|
3667
|
+
on_delete=django.db.models.deletion.PROTECT, to="edc_pharmacy.container"
|
|
3668
|
+
),
|
|
3669
|
+
),
|
|
3670
|
+
migrations.AddField(
|
|
3671
|
+
model_name="medicationproduct",
|
|
3672
|
+
name="formulation",
|
|
3673
|
+
field=models.ForeignKey(
|
|
3674
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3675
|
+
to="edc_pharmacy.formulation",
|
|
3676
|
+
),
|
|
3677
|
+
),
|
|
3678
|
+
migrations.AddField(
|
|
3679
|
+
model_name="medicationproduct",
|
|
3680
|
+
name="lot_no",
|
|
3681
|
+
field=models.ForeignKey(
|
|
3682
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3683
|
+
to="edc_pharmacy.medicationlot",
|
|
3684
|
+
),
|
|
3685
|
+
),
|
|
3686
|
+
migrations.AddField(
|
|
3687
|
+
model_name="medicationproduct",
|
|
3688
|
+
name="site",
|
|
3689
|
+
field=models.ForeignKey(
|
|
3690
|
+
editable=False,
|
|
3691
|
+
null=True,
|
|
3692
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3693
|
+
related_name="+",
|
|
3694
|
+
to="sites.site",
|
|
3695
|
+
),
|
|
3696
|
+
),
|
|
3697
|
+
migrations.AddField(
|
|
3698
|
+
model_name="medicationlot",
|
|
3699
|
+
name="formulation",
|
|
3700
|
+
field=models.ForeignKey(
|
|
3701
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3702
|
+
to="edc_pharmacy.formulation",
|
|
3703
|
+
),
|
|
3704
|
+
),
|
|
3705
|
+
migrations.AddField(
|
|
3706
|
+
model_name="labels",
|
|
3707
|
+
name="medication_stock_create_labels",
|
|
3708
|
+
field=models.ForeignKey(
|
|
3709
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
3710
|
+
to="edc_pharmacy.medicationstockcreatelabels",
|
|
3711
|
+
),
|
|
3712
|
+
),
|
|
3713
|
+
migrations.AddField(
|
|
3714
|
+
model_name="historicalrxrefill",
|
|
3715
|
+
name="dosage_guideline",
|
|
3716
|
+
field=models.ForeignKey(
|
|
3717
|
+
blank=True,
|
|
3718
|
+
db_constraint=False,
|
|
3719
|
+
null=True,
|
|
3720
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
3721
|
+
related_name="+",
|
|
3722
|
+
to="edc_pharmacy.dosageguideline",
|
|
3723
|
+
),
|
|
3724
|
+
),
|
|
3725
|
+
migrations.AddField(
|
|
3726
|
+
model_name="historicalrxrefill",
|
|
3727
|
+
name="formulation",
|
|
3728
|
+
field=models.ForeignKey(
|
|
3729
|
+
blank=True,
|
|
3730
|
+
db_constraint=False,
|
|
3731
|
+
null=True,
|
|
3732
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
3733
|
+
related_name="+",
|
|
3734
|
+
to="edc_pharmacy.formulation",
|
|
3735
|
+
),
|
|
3736
|
+
),
|
|
3737
|
+
migrations.AddField(
|
|
3738
|
+
model_name="historicalrxrefill",
|
|
3739
|
+
name="frequency_units",
|
|
3740
|
+
field=models.ForeignKey(
|
|
3741
|
+
blank=True,
|
|
3742
|
+
db_constraint=False,
|
|
3743
|
+
null=True,
|
|
3744
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
3745
|
+
related_name="+",
|
|
3746
|
+
to="edc_pharmacy.frequencyunits",
|
|
3747
|
+
verbose_name="per",
|
|
3748
|
+
),
|
|
3749
|
+
),
|
|
3750
|
+
migrations.AddField(
|
|
3751
|
+
model_name="historicalrxrefill",
|
|
3752
|
+
name="history_user",
|
|
3753
|
+
field=models.ForeignKey(
|
|
3754
|
+
null=True,
|
|
3755
|
+
on_delete=django.db.models.deletion.SET_NULL,
|
|
3756
|
+
related_name="+",
|
|
3757
|
+
to=settings.AUTH_USER_MODEL,
|
|
3758
|
+
),
|
|
3759
|
+
),
|
|
3760
|
+
migrations.AddField(
|
|
3761
|
+
model_name="historicalrxrefill",
|
|
3762
|
+
name="medication_stock",
|
|
3763
|
+
field=models.ForeignKey(
|
|
3764
|
+
blank=True,
|
|
3765
|
+
db_constraint=False,
|
|
3766
|
+
null=True,
|
|
3767
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
3768
|
+
related_name="+",
|
|
3769
|
+
to="edc_pharmacy.medicationstock",
|
|
3770
|
+
),
|
|
3771
|
+
),
|
|
3772
|
+
migrations.AddField(
|
|
3773
|
+
model_name="historicalrxrefill",
|
|
3774
|
+
name="rx",
|
|
3775
|
+
field=models.ForeignKey(
|
|
3776
|
+
blank=True,
|
|
3777
|
+
db_constraint=False,
|
|
3778
|
+
null=True,
|
|
3779
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
3780
|
+
related_name="+",
|
|
3781
|
+
to="edc_pharmacy.rx",
|
|
3782
|
+
),
|
|
3783
|
+
),
|
|
3784
|
+
migrations.AddField(
|
|
3785
|
+
model_name="historicalrxrefill",
|
|
3786
|
+
name="site",
|
|
3787
|
+
field=models.ForeignKey(
|
|
3788
|
+
blank=True,
|
|
3789
|
+
db_constraint=False,
|
|
3790
|
+
editable=False,
|
|
3791
|
+
null=True,
|
|
3792
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
3793
|
+
related_name="+",
|
|
3794
|
+
to="sites.site",
|
|
3795
|
+
),
|
|
3796
|
+
),
|
|
3797
|
+
migrations.AddField(
|
|
3798
|
+
model_name="historicalrx",
|
|
3799
|
+
name="action_item",
|
|
3800
|
+
field=models.ForeignKey(
|
|
3801
|
+
blank=True,
|
|
3802
|
+
db_constraint=False,
|
|
3803
|
+
null=True,
|
|
3804
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
3805
|
+
related_name="+",
|
|
3806
|
+
to="edc_action_item.actionitem",
|
|
3807
|
+
),
|
|
3808
|
+
),
|
|
3809
|
+
migrations.AddField(
|
|
3810
|
+
model_name="historicalrx",
|
|
3811
|
+
name="history_user",
|
|
3812
|
+
field=models.ForeignKey(
|
|
3813
|
+
null=True,
|
|
3814
|
+
on_delete=django.db.models.deletion.SET_NULL,
|
|
3815
|
+
related_name="+",
|
|
3816
|
+
to=settings.AUTH_USER_MODEL,
|
|
3817
|
+
),
|
|
3818
|
+
),
|
|
3819
|
+
migrations.AddField(
|
|
3820
|
+
model_name="historicalrx",
|
|
3821
|
+
name="medication",
|
|
3822
|
+
field=models.ForeignKey(
|
|
3823
|
+
blank=True,
|
|
3824
|
+
db_constraint=False,
|
|
3825
|
+
null=True,
|
|
3826
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
3827
|
+
related_name="+",
|
|
3828
|
+
to="edc_pharmacy.medication",
|
|
3829
|
+
),
|
|
3830
|
+
),
|
|
3831
|
+
migrations.AddField(
|
|
3832
|
+
model_name="historicalrx",
|
|
3833
|
+
name="parent_action_item",
|
|
3834
|
+
field=models.ForeignKey(
|
|
3835
|
+
blank=True,
|
|
3836
|
+
db_constraint=False,
|
|
3837
|
+
null=True,
|
|
3838
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
3839
|
+
related_name="+",
|
|
3840
|
+
to="edc_action_item.actionitem",
|
|
3841
|
+
),
|
|
3842
|
+
),
|
|
3843
|
+
migrations.AddField(
|
|
3844
|
+
model_name="historicalrx",
|
|
3845
|
+
name="registered_subject",
|
|
3846
|
+
field=models.ForeignKey(
|
|
3847
|
+
blank=True,
|
|
3848
|
+
db_constraint=False,
|
|
3849
|
+
null=True,
|
|
3850
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
3851
|
+
related_name="+",
|
|
3852
|
+
to="edc_registration.registeredsubject",
|
|
3853
|
+
verbose_name="Subject Identifier",
|
|
3854
|
+
),
|
|
3855
|
+
),
|
|
3856
|
+
migrations.AddField(
|
|
3857
|
+
model_name="historicalrx",
|
|
3858
|
+
name="related_action_item",
|
|
3859
|
+
field=models.ForeignKey(
|
|
3860
|
+
blank=True,
|
|
3861
|
+
db_constraint=False,
|
|
3862
|
+
null=True,
|
|
3863
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
3864
|
+
related_name="+",
|
|
3865
|
+
to="edc_action_item.actionitem",
|
|
3866
|
+
),
|
|
3867
|
+
),
|
|
3868
|
+
migrations.AddField(
|
|
3869
|
+
model_name="historicalrx",
|
|
3870
|
+
name="site",
|
|
3871
|
+
field=models.ForeignKey(
|
|
3872
|
+
blank=True,
|
|
3873
|
+
db_constraint=False,
|
|
3874
|
+
editable=False,
|
|
3875
|
+
null=True,
|
|
3876
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
3877
|
+
related_name="+",
|
|
3878
|
+
to="sites.site",
|
|
3879
|
+
),
|
|
3880
|
+
),
|
|
3881
|
+
migrations.AddField(
|
|
3882
|
+
model_name="historicalreturnhistory",
|
|
3883
|
+
name="history_user",
|
|
3884
|
+
field=models.ForeignKey(
|
|
3885
|
+
null=True,
|
|
3886
|
+
on_delete=django.db.models.deletion.SET_NULL,
|
|
3887
|
+
related_name="+",
|
|
3888
|
+
to=settings.AUTH_USER_MODEL,
|
|
3889
|
+
),
|
|
3890
|
+
),
|
|
3891
|
+
migrations.AddField(
|
|
3892
|
+
model_name="historicalreturnhistory",
|
|
3893
|
+
name="rx_refill",
|
|
3894
|
+
field=models.ForeignKey(
|
|
3895
|
+
blank=True,
|
|
3896
|
+
db_constraint=False,
|
|
3897
|
+
null=True,
|
|
3898
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
3899
|
+
related_name="+",
|
|
3900
|
+
to="edc_pharmacy.rxrefill",
|
|
3901
|
+
),
|
|
3902
|
+
),
|
|
3903
|
+
migrations.AddField(
|
|
3904
|
+
model_name="historicalmedicationstockreceiving",
|
|
3905
|
+
name="history_user",
|
|
3906
|
+
field=models.ForeignKey(
|
|
3907
|
+
null=True,
|
|
3908
|
+
on_delete=django.db.models.deletion.SET_NULL,
|
|
3909
|
+
related_name="+",
|
|
3910
|
+
to=settings.AUTH_USER_MODEL,
|
|
3911
|
+
),
|
|
3912
|
+
),
|
|
3913
|
+
migrations.AddField(
|
|
3914
|
+
model_name="historicalmedicationstockreceiving",
|
|
3915
|
+
name="medication_product",
|
|
3916
|
+
field=models.ForeignKey(
|
|
3917
|
+
blank=True,
|
|
3918
|
+
db_constraint=False,
|
|
3919
|
+
null=True,
|
|
3920
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
3921
|
+
related_name="+",
|
|
3922
|
+
to="edc_pharmacy.medicationproduct",
|
|
3923
|
+
),
|
|
3924
|
+
),
|
|
3925
|
+
migrations.AddField(
|
|
3926
|
+
model_name="historicalmedicationstockcreatelabels",
|
|
3927
|
+
name="history_user",
|
|
3928
|
+
field=models.ForeignKey(
|
|
3929
|
+
null=True,
|
|
3930
|
+
on_delete=django.db.models.deletion.SET_NULL,
|
|
3931
|
+
related_name="+",
|
|
3932
|
+
to=settings.AUTH_USER_MODEL,
|
|
3933
|
+
),
|
|
3934
|
+
),
|
|
3935
|
+
migrations.AddField(
|
|
3936
|
+
model_name="historicalmedicationstockcreatelabels",
|
|
3937
|
+
name="medication_product",
|
|
3938
|
+
field=models.ForeignKey(
|
|
3939
|
+
blank=True,
|
|
3940
|
+
db_constraint=False,
|
|
3941
|
+
null=True,
|
|
3942
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
3943
|
+
related_name="+",
|
|
3944
|
+
to="edc_pharmacy.medicationproduct",
|
|
3945
|
+
),
|
|
3946
|
+
),
|
|
3947
|
+
migrations.AddField(
|
|
3948
|
+
model_name="historicalmedicationstock",
|
|
3949
|
+
name="history_user",
|
|
3950
|
+
field=models.ForeignKey(
|
|
3951
|
+
null=True,
|
|
3952
|
+
on_delete=django.db.models.deletion.SET_NULL,
|
|
3953
|
+
related_name="+",
|
|
3954
|
+
to=settings.AUTH_USER_MODEL,
|
|
3955
|
+
),
|
|
3956
|
+
),
|
|
3957
|
+
migrations.AddField(
|
|
3958
|
+
model_name="historicalmedicationstock",
|
|
3959
|
+
name="medication_product",
|
|
3960
|
+
field=models.ForeignKey(
|
|
3961
|
+
blank=True,
|
|
3962
|
+
db_constraint=False,
|
|
3963
|
+
null=True,
|
|
3964
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
3965
|
+
related_name="+",
|
|
3966
|
+
to="edc_pharmacy.medicationproduct",
|
|
3967
|
+
),
|
|
3968
|
+
),
|
|
3969
|
+
migrations.AddField(
|
|
3970
|
+
model_name="historicalmedicationstock",
|
|
3971
|
+
name="site",
|
|
3972
|
+
field=models.ForeignKey(
|
|
3973
|
+
blank=True,
|
|
3974
|
+
db_constraint=False,
|
|
3975
|
+
editable=False,
|
|
3976
|
+
null=True,
|
|
3977
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
3978
|
+
related_name="+",
|
|
3979
|
+
to="sites.site",
|
|
3980
|
+
),
|
|
3981
|
+
),
|
|
3982
|
+
migrations.AddField(
|
|
3983
|
+
model_name="historicalmedicationproduct",
|
|
3984
|
+
name="container",
|
|
3985
|
+
field=models.ForeignKey(
|
|
3986
|
+
blank=True,
|
|
3987
|
+
db_constraint=False,
|
|
3988
|
+
null=True,
|
|
3989
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
3990
|
+
related_name="+",
|
|
3991
|
+
to="edc_pharmacy.container",
|
|
3992
|
+
),
|
|
3993
|
+
),
|
|
3994
|
+
migrations.AddField(
|
|
3995
|
+
model_name="historicalmedicationproduct",
|
|
3996
|
+
name="formulation",
|
|
3997
|
+
field=models.ForeignKey(
|
|
3998
|
+
blank=True,
|
|
3999
|
+
db_constraint=False,
|
|
4000
|
+
null=True,
|
|
4001
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
4002
|
+
related_name="+",
|
|
4003
|
+
to="edc_pharmacy.formulation",
|
|
4004
|
+
),
|
|
4005
|
+
),
|
|
4006
|
+
migrations.AddField(
|
|
4007
|
+
model_name="historicalmedicationproduct",
|
|
4008
|
+
name="history_user",
|
|
4009
|
+
field=models.ForeignKey(
|
|
4010
|
+
null=True,
|
|
4011
|
+
on_delete=django.db.models.deletion.SET_NULL,
|
|
4012
|
+
related_name="+",
|
|
4013
|
+
to=settings.AUTH_USER_MODEL,
|
|
4014
|
+
),
|
|
4015
|
+
),
|
|
4016
|
+
migrations.AddField(
|
|
4017
|
+
model_name="historicalmedicationproduct",
|
|
4018
|
+
name="lot_no",
|
|
4019
|
+
field=models.ForeignKey(
|
|
4020
|
+
blank=True,
|
|
4021
|
+
db_constraint=False,
|
|
4022
|
+
null=True,
|
|
4023
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
4024
|
+
related_name="+",
|
|
4025
|
+
to="edc_pharmacy.medicationlot",
|
|
4026
|
+
),
|
|
4027
|
+
),
|
|
4028
|
+
migrations.AddField(
|
|
4029
|
+
model_name="historicalmedicationproduct",
|
|
4030
|
+
name="site",
|
|
4031
|
+
field=models.ForeignKey(
|
|
4032
|
+
blank=True,
|
|
4033
|
+
db_constraint=False,
|
|
4034
|
+
editable=False,
|
|
4035
|
+
null=True,
|
|
4036
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
4037
|
+
related_name="+",
|
|
4038
|
+
to="sites.site",
|
|
4039
|
+
),
|
|
4040
|
+
),
|
|
4041
|
+
migrations.AddField(
|
|
4042
|
+
model_name="historicalmedicationlot",
|
|
4043
|
+
name="formulation",
|
|
4044
|
+
field=models.ForeignKey(
|
|
4045
|
+
blank=True,
|
|
4046
|
+
db_constraint=False,
|
|
4047
|
+
null=True,
|
|
4048
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
4049
|
+
related_name="+",
|
|
4050
|
+
to="edc_pharmacy.formulation",
|
|
4051
|
+
),
|
|
4052
|
+
),
|
|
4053
|
+
migrations.AddField(
|
|
4054
|
+
model_name="historicalmedicationlot",
|
|
4055
|
+
name="history_user",
|
|
4056
|
+
field=models.ForeignKey(
|
|
4057
|
+
null=True,
|
|
4058
|
+
on_delete=django.db.models.deletion.SET_NULL,
|
|
4059
|
+
related_name="+",
|
|
4060
|
+
to=settings.AUTH_USER_MODEL,
|
|
4061
|
+
),
|
|
4062
|
+
),
|
|
4063
|
+
migrations.AddField(
|
|
4064
|
+
model_name="historicalmedication",
|
|
4065
|
+
name="history_user",
|
|
4066
|
+
field=models.ForeignKey(
|
|
4067
|
+
null=True,
|
|
4068
|
+
on_delete=django.db.models.deletion.SET_NULL,
|
|
4069
|
+
related_name="+",
|
|
4070
|
+
to=settings.AUTH_USER_MODEL,
|
|
4071
|
+
),
|
|
4072
|
+
),
|
|
4073
|
+
migrations.AddField(
|
|
4074
|
+
model_name="historicallabels",
|
|
4075
|
+
name="history_user",
|
|
4076
|
+
field=models.ForeignKey(
|
|
4077
|
+
null=True,
|
|
4078
|
+
on_delete=django.db.models.deletion.SET_NULL,
|
|
4079
|
+
related_name="+",
|
|
4080
|
+
to=settings.AUTH_USER_MODEL,
|
|
4081
|
+
),
|
|
4082
|
+
),
|
|
4083
|
+
migrations.AddField(
|
|
4084
|
+
model_name="historicallabels",
|
|
4085
|
+
name="medication_stock_create_labels",
|
|
4086
|
+
field=models.ForeignKey(
|
|
4087
|
+
blank=True,
|
|
4088
|
+
db_constraint=False,
|
|
4089
|
+
null=True,
|
|
4090
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
4091
|
+
related_name="+",
|
|
4092
|
+
to="edc_pharmacy.medicationstockcreatelabels",
|
|
4093
|
+
),
|
|
4094
|
+
),
|
|
4095
|
+
migrations.AddField(
|
|
4096
|
+
model_name="historicalformulation",
|
|
4097
|
+
name="formulation_type",
|
|
4098
|
+
field=models.ForeignKey(
|
|
4099
|
+
blank=True,
|
|
4100
|
+
db_constraint=False,
|
|
4101
|
+
null=True,
|
|
4102
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
4103
|
+
related_name="+",
|
|
4104
|
+
to="edc_pharmacy.formulationtype",
|
|
4105
|
+
),
|
|
4106
|
+
),
|
|
4107
|
+
migrations.AddField(
|
|
4108
|
+
model_name="historicalformulation",
|
|
4109
|
+
name="history_user",
|
|
4110
|
+
field=models.ForeignKey(
|
|
4111
|
+
null=True,
|
|
4112
|
+
on_delete=django.db.models.deletion.SET_NULL,
|
|
4113
|
+
related_name="+",
|
|
4114
|
+
to=settings.AUTH_USER_MODEL,
|
|
4115
|
+
),
|
|
4116
|
+
),
|
|
4117
|
+
migrations.AddField(
|
|
4118
|
+
model_name="historicalformulation",
|
|
4119
|
+
name="medication",
|
|
4120
|
+
field=models.ForeignKey(
|
|
4121
|
+
blank=True,
|
|
4122
|
+
db_constraint=False,
|
|
4123
|
+
null=True,
|
|
4124
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
4125
|
+
related_name="+",
|
|
4126
|
+
to="edc_pharmacy.medication",
|
|
4127
|
+
),
|
|
4128
|
+
),
|
|
4129
|
+
migrations.AddField(
|
|
4130
|
+
model_name="historicalformulation",
|
|
4131
|
+
name="route",
|
|
4132
|
+
field=models.ForeignKey(
|
|
4133
|
+
blank=True,
|
|
4134
|
+
db_constraint=False,
|
|
4135
|
+
null=True,
|
|
4136
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
4137
|
+
related_name="+",
|
|
4138
|
+
to="edc_pharmacy.route",
|
|
4139
|
+
),
|
|
4140
|
+
),
|
|
4141
|
+
migrations.AddField(
|
|
4142
|
+
model_name="historicalformulation",
|
|
4143
|
+
name="units",
|
|
4144
|
+
field=models.ForeignKey(
|
|
4145
|
+
blank=True,
|
|
4146
|
+
db_constraint=False,
|
|
4147
|
+
null=True,
|
|
4148
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
4149
|
+
related_name="+",
|
|
4150
|
+
to="edc_pharmacy.units",
|
|
4151
|
+
),
|
|
4152
|
+
),
|
|
4153
|
+
migrations.AddField(
|
|
4154
|
+
model_name="historicaldosageguideline",
|
|
4155
|
+
name="dose_units",
|
|
4156
|
+
field=models.ForeignKey(
|
|
4157
|
+
blank=True,
|
|
4158
|
+
db_constraint=False,
|
|
4159
|
+
null=True,
|
|
4160
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
4161
|
+
related_name="+",
|
|
4162
|
+
to="edc_pharmacy.units",
|
|
4163
|
+
),
|
|
4164
|
+
),
|
|
4165
|
+
migrations.AddField(
|
|
4166
|
+
model_name="historicaldosageguideline",
|
|
4167
|
+
name="frequency_units",
|
|
4168
|
+
field=models.ForeignKey(
|
|
4169
|
+
blank=True,
|
|
4170
|
+
db_constraint=False,
|
|
4171
|
+
null=True,
|
|
4172
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
4173
|
+
related_name="+",
|
|
4174
|
+
to="edc_pharmacy.frequencyunits",
|
|
4175
|
+
verbose_name="Frequency unit",
|
|
4176
|
+
),
|
|
4177
|
+
),
|
|
4178
|
+
migrations.AddField(
|
|
4179
|
+
model_name="historicaldosageguideline",
|
|
4180
|
+
name="history_user",
|
|
4181
|
+
field=models.ForeignKey(
|
|
4182
|
+
null=True,
|
|
4183
|
+
on_delete=django.db.models.deletion.SET_NULL,
|
|
4184
|
+
related_name="+",
|
|
4185
|
+
to=settings.AUTH_USER_MODEL,
|
|
4186
|
+
),
|
|
4187
|
+
),
|
|
4188
|
+
migrations.AddField(
|
|
4189
|
+
model_name="historicaldosageguideline",
|
|
4190
|
+
name="medication",
|
|
4191
|
+
field=models.ForeignKey(
|
|
4192
|
+
blank=True,
|
|
4193
|
+
db_constraint=False,
|
|
4194
|
+
null=True,
|
|
4195
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
4196
|
+
related_name="+",
|
|
4197
|
+
to="edc_pharmacy.medication",
|
|
4198
|
+
),
|
|
4199
|
+
),
|
|
4200
|
+
migrations.AddField(
|
|
4201
|
+
model_name="historicaldispensinghistory",
|
|
4202
|
+
name="history_user",
|
|
4203
|
+
field=models.ForeignKey(
|
|
4204
|
+
null=True,
|
|
4205
|
+
on_delete=django.db.models.deletion.SET_NULL,
|
|
4206
|
+
related_name="+",
|
|
4207
|
+
to=settings.AUTH_USER_MODEL,
|
|
4208
|
+
),
|
|
4209
|
+
),
|
|
4210
|
+
migrations.AddField(
|
|
4211
|
+
model_name="historicaldispensinghistory",
|
|
4212
|
+
name="rx_refill",
|
|
4213
|
+
field=models.ForeignKey(
|
|
4214
|
+
blank=True,
|
|
4215
|
+
db_constraint=False,
|
|
4216
|
+
null=True,
|
|
4217
|
+
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
4218
|
+
related_name="+",
|
|
4219
|
+
to="edc_pharmacy.rxrefill",
|
|
4220
|
+
),
|
|
4221
|
+
),
|
|
4222
|
+
migrations.AddIndex(
|
|
4223
|
+
model_name="frequencyunits",
|
|
4224
|
+
index=models.Index(
|
|
4225
|
+
fields=["id", "display_name", "display_index"],
|
|
4226
|
+
name="edc_pharmac_id_840f3f_idx",
|
|
4227
|
+
),
|
|
4228
|
+
),
|
|
4229
|
+
migrations.AddIndex(
|
|
4230
|
+
model_name="formulationtype",
|
|
4231
|
+
index=models.Index(
|
|
4232
|
+
fields=["id", "display_name", "display_index"],
|
|
4233
|
+
name="edc_pharmac_id_ff22c9_idx",
|
|
4234
|
+
),
|
|
4235
|
+
),
|
|
4236
|
+
migrations.AddField(
|
|
4237
|
+
model_name="formulation",
|
|
4238
|
+
name="formulation_type",
|
|
4239
|
+
field=models.ForeignKey(
|
|
4240
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
4241
|
+
to="edc_pharmacy.formulationtype",
|
|
4242
|
+
),
|
|
4243
|
+
),
|
|
4244
|
+
migrations.AddField(
|
|
4245
|
+
model_name="formulation",
|
|
4246
|
+
name="medication",
|
|
4247
|
+
field=models.ForeignKey(
|
|
4248
|
+
null=True,
|
|
4249
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
4250
|
+
to="edc_pharmacy.medication",
|
|
4251
|
+
),
|
|
4252
|
+
),
|
|
4253
|
+
migrations.AddField(
|
|
4254
|
+
model_name="formulation",
|
|
4255
|
+
name="route",
|
|
4256
|
+
field=models.ForeignKey(
|
|
4257
|
+
on_delete=django.db.models.deletion.PROTECT, to="edc_pharmacy.route"
|
|
4258
|
+
),
|
|
4259
|
+
),
|
|
4260
|
+
migrations.AddField(
|
|
4261
|
+
model_name="formulation",
|
|
4262
|
+
name="units",
|
|
4263
|
+
field=models.ForeignKey(
|
|
4264
|
+
on_delete=django.db.models.deletion.PROTECT, to="edc_pharmacy.units"
|
|
4265
|
+
),
|
|
4266
|
+
),
|
|
4267
|
+
migrations.AddField(
|
|
4268
|
+
model_name="dosageguideline",
|
|
4269
|
+
name="dose_units",
|
|
4270
|
+
field=models.ForeignKey(
|
|
4271
|
+
on_delete=django.db.models.deletion.PROTECT, to="edc_pharmacy.units"
|
|
4272
|
+
),
|
|
4273
|
+
),
|
|
4274
|
+
migrations.AddField(
|
|
4275
|
+
model_name="dosageguideline",
|
|
4276
|
+
name="frequency_units",
|
|
4277
|
+
field=models.ForeignKey(
|
|
4278
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
4279
|
+
to="edc_pharmacy.frequencyunits",
|
|
4280
|
+
verbose_name="Frequency unit",
|
|
4281
|
+
),
|
|
4282
|
+
),
|
|
4283
|
+
migrations.AddField(
|
|
4284
|
+
model_name="dosageguideline",
|
|
4285
|
+
name="medication",
|
|
4286
|
+
field=models.ForeignKey(
|
|
4287
|
+
null=True,
|
|
4288
|
+
on_delete=django.db.models.deletion.PROTECT,
|
|
4289
|
+
to="edc_pharmacy.medication",
|
|
4290
|
+
),
|
|
4291
|
+
),
|
|
4292
|
+
migrations.AddField(
|
|
4293
|
+
model_name="dispensinghistory",
|
|
4294
|
+
name="rx_refill",
|
|
4295
|
+
field=models.ForeignKey(
|
|
4296
|
+
on_delete=django.db.models.deletion.PROTECT, to="edc_pharmacy.rxrefill"
|
|
4297
|
+
),
|
|
4298
|
+
),
|
|
4299
|
+
migrations.AddIndex(
|
|
4300
|
+
model_name="container",
|
|
4301
|
+
index=models.Index(
|
|
4302
|
+
fields=["id", "display_name", "display_index"],
|
|
4303
|
+
name="edc_pharmac_id_b68aba_idx",
|
|
4304
|
+
),
|
|
4305
|
+
),
|
|
4306
|
+
migrations.CreateModel(
|
|
4307
|
+
name="MedicationOrder",
|
|
4308
|
+
fields=[],
|
|
4309
|
+
options={
|
|
4310
|
+
"verbose_name": "Medication order",
|
|
4311
|
+
"verbose_name_plural": "Medication orders",
|
|
4312
|
+
"proxy": True,
|
|
4313
|
+
"indexes": [],
|
|
4314
|
+
"constraints": [],
|
|
4315
|
+
},
|
|
4316
|
+
bases=("edc_pharmacy.rxrefill",),
|
|
4317
|
+
managers=[
|
|
4318
|
+
("on_site", edc_sites.models.CurrentSiteManager()),
|
|
4319
|
+
("objects", edc_pharmacy.models.prescription.rx_refill.Manager()),
|
|
4320
|
+
],
|
|
4321
|
+
),
|
|
4322
|
+
migrations.AlterUniqueTogether(
|
|
4323
|
+
name="rxrefill",
|
|
4324
|
+
unique_together={
|
|
4325
|
+
("rx", "visit_code", "visit_code_sequence"),
|
|
4326
|
+
("rx", "dosage_guideline", "refill_date"),
|
|
4327
|
+
},
|
|
4328
|
+
),
|
|
4329
|
+
migrations.AlterUniqueTogether(
|
|
4330
|
+
name="returnhistory",
|
|
4331
|
+
unique_together={("rx_refill", "return_datetime")},
|
|
4332
|
+
),
|
|
4333
|
+
migrations.AlterUniqueTogether(
|
|
4334
|
+
name="formulation",
|
|
4335
|
+
unique_together={("medication", "strength", "units", "formulation_type")},
|
|
4336
|
+
),
|
|
4337
|
+
migrations.AlterUniqueTogether(
|
|
4338
|
+
name="dosageguideline",
|
|
4339
|
+
unique_together={("medication", "dose", "dose_units", "dose_per_kg")},
|
|
4340
|
+
),
|
|
4341
|
+
migrations.AlterUniqueTogether(
|
|
4342
|
+
name="dispensinghistory",
|
|
4343
|
+
unique_together={("rx_refill", "dispensed_datetime")},
|
|
4344
|
+
),
|
|
4345
|
+
]
|