meta-edc 0.3.7__py3-none-any.whl → 0.3.50__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (411) hide show
  1. meta_ae/action_items.py +2 -2
  2. meta_ae/migrations/0017_auto_20221130_2257.py +12 -7
  3. meta_ae/tests/holidays.csv +1 -1
  4. meta_analytics/README.rst +17 -0
  5. meta_analytics/dataframes/__init__.py +19 -0
  6. meta_analytics/dataframes/constants.py +33 -0
  7. meta_analytics/dataframes/enrolled/__init__.py +1 -0
  8. meta_analytics/dataframes/enrolled/get_glucose_df.py +122 -0
  9. meta_analytics/dataframes/get_eos_df.py +26 -0
  10. meta_analytics/dataframes/get_last_imp_visits_df.py +101 -0
  11. meta_analytics/dataframes/glucose_endpoints/__init__.py +2 -0
  12. meta_analytics/dataframes/glucose_endpoints/endpoint_by_date.py +183 -0
  13. meta_analytics/dataframes/glucose_endpoints/glucose_endpoints_by_date.py +531 -0
  14. meta_analytics/dataframes/screening/__init__.py +2 -0
  15. meta_analytics/dataframes/screening/get_glucose_tested_only_df.py +20 -0
  16. meta_analytics/dataframes/screening/get_screening_df.py +163 -0
  17. meta_analytics/dataframes/utils.py +65 -0
  18. meta_analytics/get_tables.py +81 -0
  19. meta_analytics/tables/__init__.py +2 -0
  20. meta_analytics/tables/eligible.py +106 -0
  21. meta_analytics/tables/enrolled/__init__.py +0 -0
  22. meta_analytics/tables/enrolled/glucose.py +28 -0
  23. meta_analytics/tables/has_dm.py +61 -0
  24. meta_analytics/tests/__init__.py +0 -0
  25. meta_analytics/tests/test_endpoints_by_date.py +94 -0
  26. meta_auth/auth_objects.py +32 -3
  27. meta_auth/auths.py +18 -3
  28. meta_consent/action_items.py +18 -1
  29. meta_consent/admin/__init__.py +1 -0
  30. meta_consent/admin/subject_consent_v1_ext_admin.py +45 -0
  31. meta_consent/baker_recipes.py +5 -4
  32. meta_consent/consents.py +21 -2
  33. meta_consent/constants.py +1 -0
  34. meta_consent/forms/__init__.py +1 -0
  35. meta_consent/forms/subject_consent_v1_ext_form.py +16 -0
  36. meta_consent/locale/lg/LC_MESSAGES/django.po +69 -0
  37. meta_consent/locale/sw/LC_MESSAGES/django.po +12 -12
  38. meta_consent/migrations/0025_alter_historicalsubjectconsent_first_name_and_more.py +151 -0
  39. meta_consent/migrations/0026_historicalsubjectconsentv1ext_subjectconsentv1ext.py +544 -0
  40. meta_consent/migrations/0027_auto_20250111_0344.py +30 -0
  41. meta_consent/models/__init__.py +1 -0
  42. meta_consent/models/signals.py +34 -13
  43. meta_consent/models/subject_consent_v1.py +1 -3
  44. meta_consent/models/subject_consent_v1_ext.py +29 -0
  45. meta_consent/tests/holidays.csv +1 -1
  46. meta_consent/tests/tests/test_form_validators.py +1 -1
  47. meta_dashboard/locale/lg/LC_MESSAGES/django.po +30 -0
  48. meta_dashboard/locale/sw/LC_MESSAGES/django.po +11 -2
  49. meta_dashboard/navbars.py +3 -1
  50. meta_dashboard/templates/meta_dashboard/bootstrap3/buttons/eligibility_button.html +1 -1
  51. meta_dashboard/templates/meta_dashboard/bootstrap3/buttons/screening_button.html +1 -1
  52. meta_dashboard/templates/meta_dashboard/bootstrap3/screening/listboard.html +4 -4
  53. meta_dashboard/templates/meta_dashboard/bootstrap3/subject/dashboard/sidebar.html +24 -0
  54. meta_dashboard/templates/meta_dashboard/bootstrap3/subject/dashboard.html +3 -0
  55. meta_dashboard/templates/meta_dashboard/bootstrap3/subject/listboard.html +1 -2
  56. meta_dashboard/templatetags/meta_dashboard_extras.py +1 -1
  57. meta_dashboard/tests/holidays.csv +1 -1
  58. meta_dashboard/tests/urls.py +0 -1
  59. meta_dashboard/view_utils/__init__.py +6 -0
  60. meta_dashboard/view_utils/subject_screening_button.py +2 -2
  61. meta_dashboard/views/subject/dashboard/dashboard_view.py +38 -0
  62. meta_edc/__init__.py +7 -0
  63. meta_edc/celery.py +4 -13
  64. meta_edc/celery_live.py +18 -0
  65. meta_edc/celery_uat.py +24 -0
  66. meta_edc/management/commands/update_forms_reference.py +6 -2
  67. meta_edc/migrations/__init__.py +0 -0
  68. meta_edc/navbars.py +2 -1
  69. meta_edc/settings/debug.py +17 -9
  70. meta_edc/settings/defaults.py +82 -60
  71. meta_edc/settings/live.py +1 -9
  72. meta_edc/settings/uat.py +1 -14
  73. meta_edc/templates/meta_edc/bootstrap3/home.html +13 -7
  74. meta_edc/tests/tests/test_endpoints.py +22 -19
  75. meta_edc/urls.py +5 -2
  76. meta_edc/wsgi.py +1 -1
  77. meta_edc/wsgi_live.py +1 -1
  78. meta_edc/wsgi_uat.py +1 -1
  79. meta_edc-0.3.50.dist-info/AUTHORS +0 -0
  80. meta_edc-0.3.50.dist-info/METADATA +766 -0
  81. {meta_edc-0.3.7.dist-info → meta_edc-0.3.50.dist-info}/RECORD +400 -157
  82. {meta_edc-0.3.7.dist-info → meta_edc-0.3.50.dist-info}/WHEEL +1 -1
  83. {meta_edc-0.3.7.dist-info → meta_edc-0.3.50.dist-info}/top_level.txt +1 -0
  84. meta_pharmacy/admin/__init__.py +2 -0
  85. meta_pharmacy/admin/rx_admin.py +75 -0
  86. meta_pharmacy/admin/substitutions_admin.py +67 -0
  87. meta_pharmacy/admin_site.py +9 -0
  88. meta_pharmacy/apps.py +5 -0
  89. meta_pharmacy/constants.py +10 -0
  90. meta_pharmacy/forms/__init__.py +2 -0
  91. meta_pharmacy/forms/rx_form.py +16 -0
  92. meta_pharmacy/forms/substitutions_form.py +54 -0
  93. meta_pharmacy/label_configs.py +30 -0
  94. meta_pharmacy/labels/__init__.py +5 -0
  95. meta_pharmacy/labels/draw_label_for_subject_with_barcode.py +62 -0
  96. meta_pharmacy/labels/draw_label_for_subject_with_code128.py +14 -0
  97. meta_pharmacy/labels/draw_label_with_test_data.py +26 -0
  98. meta_pharmacy/labels/label_data.py +14 -0
  99. meta_pharmacy/labels/print_sheets.py +97 -0
  100. meta_pharmacy/list_data.py +8 -0
  101. meta_pharmacy/management/__init__.py +0 -0
  102. meta_pharmacy/management/commands/__init__.py +0 -0
  103. meta_pharmacy/management/commands/update_initial_pharmacy_data.py +10 -0
  104. meta_pharmacy/migrations/0002_initial.py +695 -0
  105. meta_pharmacy/migrations/0003_auto_20240909_2335.py +64 -0
  106. meta_pharmacy/migrations/0004_alter_historicalsubstitutions_report_datetime_and_more.py +23 -0
  107. meta_pharmacy/migrations/0005_auto_20240911_0352.py +17 -0
  108. meta_pharmacy/migrations/0006_lotnumber_label.py +289 -0
  109. meta_pharmacy/migrations/0007_lotnumber_medication.py +24 -0
  110. meta_pharmacy/migrations/0008_remove_lotnumber_medication_and_more.py +390 -0
  111. meta_pharmacy/migrations/0009_remove_historicalrx_slug.py +17 -0
  112. meta_pharmacy/models/__init__.py +3 -0
  113. meta_pharmacy/models/label_data.py +38 -0
  114. meta_pharmacy/models/rx.py +18 -0
  115. meta_pharmacy/models/rx_label.py +39 -0
  116. meta_pharmacy/models/substitutions.py +88 -0
  117. meta_pharmacy/urls.py +8 -0
  118. meta_pharmacy/utils/__init__.py +1 -0
  119. meta_pharmacy/utils/update_initial_pharmacy_data.py +146 -0
  120. meta_prn/action_items.py +52 -2
  121. meta_prn/admin/__init__.py +3 -0
  122. meta_prn/admin/dm_referral_admin.py +49 -0
  123. meta_prn/admin/offschedule_dm_referral_admin.py +47 -0
  124. meta_prn/admin/onschedule_dm_referral_admin.py +39 -0
  125. meta_prn/admin/pregnancy_notification_admin.py +6 -2
  126. meta_prn/baker_recipes.py +8 -1
  127. meta_prn/choices.py +2 -1
  128. meta_prn/constants.py +4 -1
  129. meta_prn/forms/__init__.py +2 -0
  130. meta_prn/forms/dm_referral_form.py +40 -0
  131. meta_prn/forms/offschedule_dm_referral_form.py +35 -0
  132. meta_prn/forms/offschedule_form.py +6 -0
  133. meta_prn/migrations/0034_auto_20220630_1110.py +3 -3
  134. meta_prn/migrations/0035_auto_20220630_1140.py +59 -56
  135. meta_prn/migrations/0057_historicalonscheduledmreferral_and_more.py +1156 -0
  136. meta_prn/migrations/0058_dmreferral_referral_note_and_more.py +29 -0
  137. meta_prn/migrations/0059_alter_historicaloffstudymedication_reason_and_more.py +53 -0
  138. meta_prn/models/__init__.py +13 -2
  139. meta_prn/models/dm_referral.py +39 -0
  140. meta_prn/models/offschedule.py +15 -1
  141. meta_prn/models/onschedule.py +6 -0
  142. meta_prn/models/signals.py +41 -1
  143. meta_prn/tests/tests/test_dm_referral.py +203 -0
  144. meta_reports/__init__.py +1 -0
  145. meta_reports/admin/__init__.py +15 -0
  146. meta_reports/admin/dbviews/__init__.py +14 -0
  147. meta_reports/admin/dbviews/glucose_summary_admin.py +116 -0
  148. meta_reports/admin/dbviews/imp_substitutions_admin.py +101 -0
  149. meta_reports/admin/dbviews/missing_screening_ogtt_admin/__init__.py +2 -0
  150. meta_reports/admin/dbviews/missing_screening_ogtt_admin/note_model_admin.py +53 -0
  151. meta_reports/admin/dbviews/missing_screening_ogtt_admin/unmanaged_model_admin.py +84 -0
  152. meta_reports/admin/dbviews/on_study_missing_lab_values_admin/__init__.py +1 -0
  153. meta_reports/admin/dbviews/on_study_missing_lab_values_admin/unmanaged_model_admin.py +13 -0
  154. meta_reports/admin/dbviews/on_study_missing_values_admin/__init__.py +1 -0
  155. meta_reports/admin/dbviews/on_study_missing_values_admin/unmanaged_model_admin.py +13 -0
  156. meta_reports/admin/dbviews/patient_history_missing_baseline_cd4_admin.py +58 -0
  157. meta_reports/admin/dbviews/unattended_three_in_row2_admin.py +47 -0
  158. meta_reports/admin/dbviews/unattended_three_in_row_admin.py +35 -0
  159. meta_reports/admin/dbviews/unattended_two_in_row_admin.py +34 -0
  160. meta_reports/admin/endpoints_admin.py +14 -0
  161. meta_reports/admin/endpoints_all_admin.py +13 -0
  162. meta_reports/admin/last_imp_refill_admin.py +181 -0
  163. meta_reports/admin/list_filters.py +30 -0
  164. meta_reports/admin/modeladmin_mixins.py +112 -0
  165. meta_reports/admin_site.py +5 -0
  166. meta_reports/apps.py +1 -16
  167. meta_reports/forms/__init__.py +1 -0
  168. meta_reports/forms/missing_ogtt_note_form.py +33 -0
  169. meta_reports/management/__init__.py +0 -0
  170. meta_reports/management/commands/__init__.py +0 -0
  171. meta_reports/management/commands/generate_endpoints.py +13 -0
  172. meta_reports/migrations/0001_initial.py +87 -0
  173. meta_reports/migrations/0002_patienthistorymissingbaselinecd4_and_more.py +64 -0
  174. meta_reports/migrations/0003_auto_20240618_0505.py +12 -0
  175. meta_reports/migrations/0004_alter_patienthistorymissingbaselinecd4_table.py +17 -0
  176. meta_reports/migrations/0005_endpoints.py +47 -0
  177. meta_reports/migrations/0006_endpoints_baseline_datetime.py +18 -0
  178. meta_reports/migrations/0007_alter_endpoints_endpoint_label_and_more.py +43 -0
  179. meta_reports/migrations/0008_alter_endpoints_endpoint_label.py +18 -0
  180. meta_reports/migrations/0009_alter_endpoints_options.py +21 -0
  181. meta_reports/migrations/0010_alter_patienthistorymissingbaselinecd4_options_and_more.py +49 -0
  182. meta_reports/migrations/0011_auto_20240813_0156.py +54 -0
  183. meta_reports/migrations/0012_auto_20240813_1516.py +48 -0
  184. meta_reports/migrations/0013_auto_20240813_1516.py +48 -0
  185. meta_reports/migrations/0014_auto_20240813_1517.py +48 -0
  186. meta_reports/migrations/0015_alter_endpoints_site.py +22 -0
  187. meta_reports/migrations/0016_missingscreeningogtt.py +47 -0
  188. meta_reports/migrations/0017_auto_20240819_1711.py +166 -0
  189. meta_reports/migrations/0018_auto_20240819_1713.py +54 -0
  190. meta_reports/migrations/0019_auto_20240819_1721.py +54 -0
  191. meta_reports/migrations/0020_auto_20240819_1811.py +54 -0
  192. meta_reports/migrations/0021_auto_20240819_1817.py +54 -0
  193. meta_reports/migrations/0022_auto_20240819_1832.py +54 -0
  194. meta_reports/migrations/0023_endpoints_meta_report_subject_a56b22_idx.py +20 -0
  195. meta_reports/migrations/0024_glucosesummary.py +38 -0
  196. meta_reports/migrations/0025_auto_20240822_0115.py +87 -0
  197. meta_reports/migrations/0026_auto_20240822_0120.py +54 -0
  198. meta_reports/migrations/0027_auto_20240822_0140.py +54 -0
  199. meta_reports/migrations/0028_alter_glucosesummary_options.py +22 -0
  200. meta_reports/migrations/0029_auto_20240822_0149.py +54 -0
  201. meta_reports/migrations/0030_auto_20240822_1637.py +54 -0
  202. meta_reports/migrations/0031_endpointsproxy.py +25 -0
  203. meta_reports/migrations/0032_alter_endpointsproxy_options.py +21 -0
  204. meta_reports/migrations/0033_auto_20240823_0012.py +54 -0
  205. meta_reports/migrations/0034_auto_20240823_1642.py +54 -0
  206. meta_reports/migrations/0035_historicalmissingogttnote_missingogttnote.py +457 -0
  207. meta_reports/migrations/0036_historicalmissingogttnote_fasting_and_more.py +86 -0
  208. meta_reports/migrations/0037_historicalmissingogttnote_result_status_and_more.py +51 -0
  209. meta_reports/migrations/0038_alter_historicalmissingogttnote_fasting_and_more.py +33 -0
  210. meta_reports/migrations/0039_onstudymissingvalues.py +44 -0
  211. meta_reports/migrations/0040_auto_20240824_0412.py +282 -0
  212. meta_reports/migrations/0041_auto_20240828_2229.py +14 -0
  213. meta_reports/migrations/0042_onstudymissinglabvalues.py +43 -0
  214. meta_reports/migrations/0043_auto_20240828_2309.py +88 -0
  215. meta_reports/migrations/0044_auto_20240828_2323.py +93 -0
  216. meta_reports/migrations/0045_auto_20240829_0248.py +54 -0
  217. meta_reports/migrations/0046_auto_20240829_0250.py +54 -0
  218. meta_reports/migrations/0047_impsubstitutions.py +56 -0
  219. meta_reports/migrations/0048_auto_20240909_2338.py +48 -0
  220. meta_reports/migrations/0049_auto_20240911_0327.py +54 -0
  221. meta_reports/migrations/0050_alter_endpoints_created.py +19 -0
  222. meta_reports/migrations/0051_remove_endpoints_baseline_datetime_and_more.py +40 -0
  223. meta_reports/migrations/0052_lastimpvisit.py +57 -0
  224. meta_reports/migrations/0053_rename_lastimpvisit_lastimprefill_and_more.py +31 -0
  225. meta_reports/models/__init__.py +16 -0
  226. meta_reports/models/dbviews/README +14 -0
  227. meta_reports/models/dbviews/__init__.py +9 -0
  228. meta_reports/models/dbviews/glucose_summary/__init__.py +2 -0
  229. meta_reports/models/dbviews/glucose_summary/unmanaged_model.py +35 -0
  230. meta_reports/models/dbviews/glucose_summary/view_definition.py +28 -0
  231. meta_reports/models/dbviews/imp_substitutions/__init__.py +1 -0
  232. meta_reports/models/dbviews/imp_substitutions/unmanaged_model.py +41 -0
  233. meta_reports/models/dbviews/imp_substitutions/view_definition.py +21 -0
  234. meta_reports/models/dbviews/missing_screening_ogtt/__init__.py +2 -0
  235. meta_reports/models/dbviews/missing_screening_ogtt/note_model.py +57 -0
  236. meta_reports/models/dbviews/missing_screening_ogtt/unmanaged_model.py +41 -0
  237. meta_reports/models/dbviews/missing_screening_ogtt/view_definition.py +20 -0
  238. meta_reports/models/dbviews/on_study_missing_lab_values/__init__.py +1 -0
  239. meta_reports/models/dbviews/on_study_missing_lab_values/qa_cases.py +53 -0
  240. meta_reports/models/dbviews/on_study_missing_lab_values/unmanged_model.py +20 -0
  241. meta_reports/models/dbviews/on_study_missing_lab_values/view_definition.py +17 -0
  242. meta_reports/models/dbviews/on_study_missing_values/__init__.py +1 -0
  243. meta_reports/models/dbviews/on_study_missing_values/qa_cases.py +54 -0
  244. meta_reports/models/dbviews/on_study_missing_values/unmanged_model.py +20 -0
  245. meta_reports/models/dbviews/on_study_missing_values/view_definition.py +17 -0
  246. meta_reports/models/dbviews/patient_history_missing_baseline_cd4/__init__.py +1 -0
  247. meta_reports/models/dbviews/patient_history_missing_baseline_cd4/unmanaged_model.py +31 -0
  248. meta_reports/models/dbviews/patient_history_missing_baseline_cd4/view_definition.py +21 -0
  249. meta_reports/models/dbviews/unattended_three_in_row/__init__.py +1 -0
  250. meta_reports/models/dbviews/unattended_three_in_row/unmanaged_model.py +29 -0
  251. meta_reports/models/dbviews/unattended_three_in_row/view_definition.py +31 -0
  252. meta_reports/models/dbviews/unattended_three_in_row2/__init__.py +1 -0
  253. meta_reports/models/dbviews/unattended_three_in_row2/unmanaged_model.py +29 -0
  254. meta_reports/models/dbviews/unattended_three_in_row2/view_definition.py +50 -0
  255. meta_reports/models/dbviews/unattended_two_in_row/__init__.py +1 -0
  256. meta_reports/models/dbviews/unattended_two_in_row/unmanaged_model.py +27 -0
  257. meta_reports/models/dbviews/unattended_two_in_row/view_definition.py +30 -0
  258. meta_reports/models/endpoints.py +31 -0
  259. meta_reports/models/endpoints_proxy.py +11 -0
  260. meta_reports/models/last_imp_refill.py +34 -0
  261. meta_reports/tasks.py +12 -0
  262. meta_reports/templates/meta_reports/columns/subject_identifier_column.html +1 -0
  263. meta_reports/templates/meta_reports/endpoints_all_change_list_note.html +12 -0
  264. meta_reports/templates/meta_reports/endpoints_change_list_note.html +12 -0
  265. meta_reports/tests/test_sql_gen.py +5 -0
  266. meta_reports/urls.py +8 -0
  267. meta_reports/utils.py +0 -0
  268. meta_screening/admin/subject_screening_admin.py +1 -0
  269. meta_screening/form_validators/screening_part_two.py +1 -1
  270. meta_screening/migrations/0062_remove_icpreferral_site_and_more.py +27 -0
  271. meta_screening/migrations/0063_alter_historicalscreeningpartone_fasting_duration_str_and_more.py +184 -0
  272. meta_screening/migrations/0064_remove_historicalscreeningpartone_fasting_duration_minutes_and_more.py +126 -0
  273. meta_screening/migrations/0065_auto_20240516_0352.py +31 -0
  274. meta_screening/migrations/0066_alter_historicalscreeningpartone_fasting_duration_delta_and_more.py +103 -0
  275. meta_screening/migrations/0067_alter_historicalscreeningpartone_report_datetime_and_more.py +84 -0
  276. meta_screening/models/__init__.py +1 -1
  277. meta_screening/tests/holidays.csv +1 -1
  278. meta_screening/tests/meta_test_case_mixin.py +17 -2
  279. meta_screening/tests/options.py +3 -3
  280. meta_sites/__init__.py +0 -1
  281. meta_sites/sites.py +8 -7
  282. meta_sites/tests/test_sites.py +1 -1
  283. meta_subject/action_items.py +25 -2
  284. meta_subject/admin/__init__.py +2 -1
  285. meta_subject/admin/birth_outcome_admin.py +4 -3
  286. meta_subject/admin/blood_results/__init__.py +1 -1
  287. meta_subject/admin/blood_results/{blood_results_lipid_admin.py → blood_results_lipids_admin.py} +7 -7
  288. meta_subject/admin/delivery_admin.py +0 -1
  289. meta_subject/admin/diabetes/__init__.py +2 -0
  290. meta_subject/admin/diabetes/dm_endpoint_admin.py +35 -0
  291. meta_subject/admin/{dm_referral_followup_admin.py → diabetes/dm_followup_admin.py} +15 -8
  292. meta_subject/admin/glucose_admin.py +1 -1
  293. meta_subject/admin/glucose_fbg_admin.py +38 -8
  294. meta_subject/admin/other_arv_regimens_admin.py +2 -0
  295. meta_subject/admin/study_medication_admin.py +10 -0
  296. meta_subject/admin/subject_visit_admin.py +4 -1
  297. meta_subject/baker_recipes.py +6 -0
  298. meta_subject/choices.py +8 -0
  299. meta_subject/constants.py +2 -1
  300. meta_subject/form_validators/__init__.py +2 -1
  301. meta_subject/form_validators/dm_endpoint_form_validator.py +35 -0
  302. meta_subject/form_validators/{dm_referral_followup_form_validator.py → dm_followup_form_validator.py} +41 -2
  303. meta_subject/forms/__init__.py +2 -1
  304. meta_subject/forms/blood_results/__init__.py +1 -1
  305. meta_subject/forms/blood_results/{blood_results_lipid_form.py → blood_results_lipids_form.py} +5 -5
  306. meta_subject/forms/diabetes/__init__.py +2 -0
  307. meta_subject/forms/diabetes/dm_endpoint_form.py +13 -0
  308. meta_subject/forms/diabetes/dm_followup_form.py +25 -0
  309. meta_subject/forms/glucose_fbg_form.py +38 -16
  310. meta_subject/forms/study_medication_form.py +35 -0
  311. meta_subject/forms/subject_visit_form.py +16 -0
  312. meta_subject/locale/lg/LC_MESSAGES/django.po +470 -0
  313. meta_subject/locale/sw/LC_MESSAGES/django.po +191 -89
  314. meta_subject/metadata_rules/metadata_rules.py +21 -0
  315. meta_subject/metadata_rules/predicates.py +67 -8
  316. meta_subject/migrations/0107_auto_20220415_0043.py +28 -22
  317. meta_subject/migrations/0126_auto_20220719_2142.py +4 -4
  318. meta_subject/migrations/0131_auto_20220722_0411.py +28 -23
  319. meta_subject/migrations/0132_auto_20220722_1825.py +10 -6
  320. meta_subject/migrations/0135_auto_20220722_2212.py +39 -35
  321. meta_subject/migrations/0150_auto_20220914_0039.py +15 -11
  322. meta_subject/migrations/0181_dmreferralfollowup_action_identifier_and_more.py +143 -0
  323. meta_subject/migrations/0182_rename_dmreferralfollowup_dmfollowup_and_more.py +54 -0
  324. meta_subject/migrations/0183_alter_dmfollowup_on_dm_medications_and_more.py +31 -0
  325. meta_subject/migrations/0184_alter_glucose_options_and_more.py +31 -0
  326. meta_subject/migrations/0185_alter_bloodresultsins_fasting_duration_str_and_more.py +82 -0
  327. meta_subject/migrations/0186_healtheconomicsupdate_singleton_field_and_more.py +55 -0
  328. meta_subject/migrations/0187_dmdiagnosis_historicaldmdiagnosis_dmdxresult_and_more.py +451 -0
  329. meta_subject/migrations/0188_historicaldmdxresult_dmdxresult.py +403 -0
  330. meta_subject/migrations/0189_alter_dmdxresult_options_and_more.py +116 -0
  331. meta_subject/migrations/0190_dmdiagnosis_dx_no_tmg_reason_and_more.py +65 -0
  332. meta_subject/migrations/0191_alter_dmdiagnosis_dx_no_tmg_reason_and_more.py +70 -0
  333. meta_subject/migrations/0192_rename_glucose_quantifier_glucosefbg_fbg_quantifier_and_more.py +44 -0
  334. meta_subject/migrations/0193_alter_glucosefbg_fbg_value_and_more.py +44 -0
  335. meta_subject/migrations/0194_remove_glucosefbg_assay_datetime_and_more.py +166 -0
  336. meta_subject/migrations/0195_alter_glucosefbg_fbg_datetime_and_more.py +27 -0
  337. meta_subject/migrations/0196_glucosefbg_fbg_not_performed_reason_and_more.py +49 -0
  338. meta_subject/migrations/0197_glucosefbg_fasting_duration_estimated_and_more.py +33 -0
  339. meta_subject/migrations/0198_alter_glucosefbg_fasting_duration_estimated_and_more.py +33 -0
  340. meta_subject/migrations/0199_auto_20240516_0247.py +18 -0
  341. meta_subject/migrations/0200_rename_fasting_duration_minutes_bloodresultsins_fasting_duration_delta_and_more.py +43 -0
  342. meta_subject/migrations/0201_alter_bloodresultsins_fasting_duration_delta_and_more.py +58 -0
  343. meta_subject/migrations/0202_auto_20240516_0315.py +32 -0
  344. meta_subject/migrations/0203_alter_bloodresultsins_fasting_duration_delta_and_more.py +67 -0
  345. meta_subject/migrations/0204_glucosefbg_repeat_fbg_date_and_more.py +27 -0
  346. meta_subject/migrations/0205_historicalsubjectrequisition_crf_status_and_more.py +80 -0
  347. meta_subject/migrations/0206_bloodresultsfbc_crf_status_and_more.py +62 -0
  348. meta_subject/migrations/0207_alter_historicalphysicalexam_waist_circumference_and_more.py +46 -0
  349. meta_subject/migrations/0208_birthoutcomes_crf_status_and_more.py +62 -0
  350. meta_subject/migrations/0209_remove_historicaldmdxresult_dm_diagnosis_and_more.py +37 -0
  351. meta_subject/migrations/0210_remove_dmdxresult_dm_diagnosis_and_more.py +123 -0
  352. meta_subject/migrations/0211_dmendpoint_endpoint_reached_and_more.py +45 -0
  353. meta_subject/migrations/0212_auto_20240827_2222.py +23 -0
  354. meta_subject/migrations/0213_rename_bloodresultslipid_bloodresultslipids_and_more.py +35 -0
  355. meta_subject/migrations/0214_historicalstudymedication_stock_codes_and_more.py +44 -0
  356. meta_subject/migrations/0215_alter_historicalstudymedication_stock_codes_and_more.py +46 -0
  357. meta_subject/model_mixins/arv_history_model_mixin.py +3 -3
  358. meta_subject/models/__init__.py +3 -2
  359. meta_subject/models/birth_outcomes.py +6 -1
  360. meta_subject/models/blood_results/__init__.py +1 -1
  361. meta_subject/models/blood_results/blood_results_fbc.py +3 -2
  362. meta_subject/models/blood_results/blood_results_hba1c.py +2 -0
  363. meta_subject/models/blood_results/blood_results_ins.py +2 -0
  364. meta_subject/models/blood_results/blood_results_lft.py +2 -0
  365. meta_subject/models/blood_results/{blood_results_lipid.py → blood_results_lipids.py} +5 -3
  366. meta_subject/models/blood_results/blood_results_rft.py +2 -0
  367. meta_subject/models/diabetes/__init__.py +2 -0
  368. meta_subject/models/diabetes/dm_endpoint.py +61 -0
  369. meta_subject/models/{dm_referral_followup.py → diabetes/dm_followup.py} +18 -6
  370. meta_subject/models/glucose.py +7 -14
  371. meta_subject/models/glucose_fbg.py +40 -51
  372. meta_subject/models/health_economics/health_economics_update.py +2 -0
  373. meta_subject/models/physical_exam.py +1 -0
  374. meta_subject/models/signals.py +19 -0
  375. meta_subject/models/subject_requisition.py +3 -4
  376. meta_subject/models/todo.txt +1 -1
  377. meta_subject/static/meta_subject/slider.css +1 -1
  378. meta_subject/templates/meta_subject/endpoint_review_instructions.html +1 -1
  379. meta_subject/templates/meta_subject/widgets/slider.html +0 -1
  380. meta_subject/tests/holidays.csv +1 -1
  381. meta_subject/tests/tests/test_egfr.py +6 -5
  382. meta_subject/tests/tests/test_medication_adherence.py +5 -1
  383. meta_subject/tests/tests/test_metadata_rules.py +34 -4
  384. meta_subject/tests/tests/test_mnsi.py +212 -121
  385. meta_subject/tests/tests/test_sf12.py +0 -12
  386. meta_visit_schedule/constants.py +7 -1
  387. meta_visit_schedule/tests/tests/test_schedule.py +4 -0
  388. meta_visit_schedule/visit_schedules/phase_three/crfs.py +87 -14
  389. meta_visit_schedule/visit_schedules/phase_three/requisitions.py +12 -0
  390. meta_visit_schedule/visit_schedules/phase_three/schedule.py +65 -2
  391. meta_visit_schedule/visit_schedules/phase_three/schedule_dm_referral.py +60 -0
  392. meta_visit_schedule/visit_schedules/phase_three/visit_schedule.py +2 -0
  393. tests/etc/randomization_list.csv +1 -1
  394. {meta_edc/tests → tests}/etc/randomization_list_phase_three.csv +4 -4
  395. tests/holidays.csv +1 -1
  396. tests/test_settings.py +186 -0
  397. meta_edc/tests/etc/user-aes-local.key +0 -1
  398. meta_edc/tests/etc/user-aes-restricted.key +0 -0
  399. meta_edc/tests/etc/user-rsa-local-private.pem +0 -27
  400. meta_edc/tests/etc/user-rsa-local-public.pem +0 -9
  401. meta_edc/tests/etc/user-rsa-restricted-private.pem +0 -27
  402. meta_edc/tests/etc/user-rsa-restricted-public.pem +0 -9
  403. meta_edc/tests/etc/user-salt-local.key +0 -0
  404. meta_edc/tests/etc/user-salt-restricted.key +0 -0
  405. meta_edc-0.3.7.dist-info/METADATA +0 -87
  406. meta_reports/tests/holidays.csv +0 -15
  407. meta_subject/forms/dm_referral_followup.py +0 -18
  408. /meta_edc-0.3.7.dist-info/AUTHORS → /meta_analytics/__init__.py +0 -0
  409. /meta_pharmacy/models.py → /meta_analytics/constants.py +0 -0
  410. /meta_reports/models.py → /meta_analytics/notebooks/cleaning/__init__.py +0 -0
  411. {meta_edc-0.3.7.dist-info → meta_edc-0.3.50.dist-info}/LICENSE +0 -0
@@ -0,0 +1,766 @@
1
+ Metadata-Version: 2.2
2
+ Name: meta-edc
3
+ Version: 0.3.50
4
+ Summary: META Trial EDC (http://www.isrctn.com/ISRCTN76157257)
5
+ Home-page: https://github.com/meta-trial/meta-edc
6
+ Author: Erik van Widenfelt
7
+ Author-email: Erik van Widenfelt <ew2789@gmail.com>, Jonathan Willitts <j.willitts@ucl.ac.uk>
8
+ License: GNU GENERAL PUBLIC LICENSE
9
+ Version 3, 29 June 2007
10
+
11
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
12
+ Everyone is permitted to copy and distribute verbatim copies
13
+ of this license document, but changing it is not allowed.
14
+
15
+ Preamble
16
+
17
+ The GNU General Public License is a free, copyleft license for
18
+ software and other kinds of works.
19
+
20
+ The licenses for most software and other practical works are designed
21
+ to take away your freedom to share and change the works. By contrast,
22
+ the GNU General Public License is intended to guarantee your freedom to
23
+ share and change all versions of a program--to make sure it remains free
24
+ software for all its users. We, the Free Software Foundation, use the
25
+ GNU General Public License for most of our software; it applies also to
26
+ any other work released this way by its authors. You can apply it to
27
+ your programs, too.
28
+
29
+ When we speak of free software, we are referring to freedom, not
30
+ price. Our General Public Licenses are designed to make sure that you
31
+ have the freedom to distribute copies of free software (and charge for
32
+ them if you wish), that you receive source code or can get it if you
33
+ want it, that you can change the software or use pieces of it in new
34
+ free programs, and that you know you can do these things.
35
+
36
+ To protect your rights, we need to prevent others from denying you
37
+ these rights or asking you to surrender the rights. Therefore, you have
38
+ certain responsibilities if you distribute copies of the software, or if
39
+ you modify it: responsibilities to respect the freedom of others.
40
+
41
+ For example, if you distribute copies of such a program, whether
42
+ gratis or for a fee, you must pass on to the recipients the same
43
+ freedoms that you received. You must make sure that they, too, receive
44
+ or can get the source code. And you must show them these terms so they
45
+ know their rights.
46
+
47
+ Developers that use the GNU GPL protect your rights with two steps:
48
+ (1) assert copyright on the software, and (2) offer you this License
49
+ giving you legal permission to copy, distribute and/or modify it.
50
+
51
+ For the developers' and authors' protection, the GPL clearly explains
52
+ that there is no warranty for this free software. For both users' and
53
+ authors' sake, the GPL requires that modified versions be marked as
54
+ changed, so that their problems will not be attributed erroneously to
55
+ authors of previous versions.
56
+
57
+ Some devices are designed to deny users access to install or run
58
+ modified versions of the software inside them, although the manufacturer
59
+ can do so. This is fundamentally incompatible with the aim of
60
+ protecting users' freedom to change the software. The systematic
61
+ pattern of such abuse occurs in the area of products for individuals to
62
+ use, which is precisely where it is most unacceptable. Therefore, we
63
+ have designed this version of the GPL to prohibit the practice for those
64
+ products. If such problems arise substantially in other domains, we
65
+ stand ready to extend this provision to those domains in future versions
66
+ of the GPL, as needed to protect the freedom of users.
67
+
68
+ Finally, every program is threatened constantly by software patents.
69
+ States should not allow patents to restrict development and use of
70
+ software on general-purpose computers, but in those that do, we wish to
71
+ avoid the special danger that patents applied to a free program could
72
+ make it effectively proprietary. To prevent this, the GPL assures that
73
+ patents cannot be used to render the program non-free.
74
+
75
+ The precise terms and conditions for copying, distribution and
76
+ modification follow.
77
+
78
+ TERMS AND CONDITIONS
79
+
80
+ 0. Definitions.
81
+
82
+ "This License" refers to version 3 of the GNU General Public License.
83
+
84
+ "Copyright" also means copyright-like laws that apply to other kinds of
85
+ works, such as semiconductor masks.
86
+
87
+ "The Program" refers to any copyrightable work licensed under this
88
+ License. Each licensee is addressed as "you". "Licensees" and
89
+ "recipients" may be individuals or organizations.
90
+
91
+ To "modify" a work means to copy from or adapt all or part of the work
92
+ in a fashion requiring copyright permission, other than the making of an
93
+ exact copy. The resulting work is called a "modified version" of the
94
+ earlier work or a work "based on" the earlier work.
95
+
96
+ A "covered work" means either the unmodified Program or a work based
97
+ on the Program.
98
+
99
+ To "propagate" a work means to do anything with it that, without
100
+ permission, would make you directly or secondarily liable for
101
+ infringement under applicable copyright law, except executing it on a
102
+ computer or modifying a private copy. Propagation includes copying,
103
+ distribution (with or without modification), making available to the
104
+ public, and in some countries other activities as well.
105
+
106
+ To "convey" a work means any kind of propagation that enables other
107
+ parties to make or receive copies. Mere interaction with a user through
108
+ a computer network, with no transfer of a copy, is not conveying.
109
+
110
+ An interactive user interface displays "Appropriate Legal Notices"
111
+ to the extent that it includes a convenient and prominently visible
112
+ feature that (1) displays an appropriate copyright notice, and (2)
113
+ tells the user that there is no warranty for the work (except to the
114
+ extent that warranties are provided), that licensees may convey the
115
+ work under this License, and how to view a copy of this License. If
116
+ the interface presents a list of user commands or options, such as a
117
+ menu, a prominent item in the list meets this criterion.
118
+
119
+ 1. Source Code.
120
+
121
+ The "source code" for a work means the preferred form of the work
122
+ for making modifications to it. "Object code" means any non-source
123
+ form of a work.
124
+
125
+ A "Standard Interface" means an interface that either is an official
126
+ standard defined by a recognized standards body, or, in the case of
127
+ interfaces specified for a particular programming language, one that
128
+ is widely used among developers working in that language.
129
+
130
+ The "System Libraries" of an executable work include anything, other
131
+ than the work as a whole, that (a) is included in the normal form of
132
+ packaging a Major Component, but which is not part of that Major
133
+ Component, and (b) serves only to enable use of the work with that
134
+ Major Component, or to implement a Standard Interface for which an
135
+ implementation is available to the public in source code form. A
136
+ "Major Component", in this context, means a major essential component
137
+ (kernel, window system, and so on) of the specific operating system
138
+ (if any) on which the executable work runs, or a compiler used to
139
+ produce the work, or an object code interpreter used to run it.
140
+
141
+ The "Corresponding Source" for a work in object code form means all
142
+ the source code needed to generate, install, and (for an executable
143
+ work) run the object code and to modify the work, including scripts to
144
+ control those activities. However, it does not include the work's
145
+ System Libraries, or general-purpose tools or generally available free
146
+ programs which are used unmodified in performing those activities but
147
+ which are not part of the work. For example, Corresponding Source
148
+ includes interface definition files associated with source files for
149
+ the work, and the source code for shared libraries and dynamically
150
+ linked subprograms that the work is specifically designed to require,
151
+ such as by intimate data communication or control flow between those
152
+ subprograms and other parts of the work.
153
+
154
+ The Corresponding Source need not include anything that users
155
+ can regenerate automatically from other parts of the Corresponding
156
+ Source.
157
+
158
+ The Corresponding Source for a work in source code form is that
159
+ same work.
160
+
161
+ 2. Basic Permissions.
162
+
163
+ All rights granted under this License are granted for the term of
164
+ copyright on the Program, and are irrevocable provided the stated
165
+ conditions are met. This License explicitly affirms your unlimited
166
+ permission to run the unmodified Program. The output from running a
167
+ covered work is covered by this License only if the output, given its
168
+ content, constitutes a covered work. This License acknowledges your
169
+ rights of fair use or other equivalent, as provided by copyright law.
170
+
171
+ You may make, run and propagate covered works that you do not
172
+ convey, without conditions so long as your license otherwise remains
173
+ in force. You may convey covered works to others for the sole purpose
174
+ of having them make modifications exclusively for you, or provide you
175
+ with facilities for running those works, provided that you comply with
176
+ the terms of this License in conveying all material for which you do
177
+ not control copyright. Those thus making or running the covered works
178
+ for you must do so exclusively on your behalf, under your direction
179
+ and control, on terms that prohibit them from making any copies of
180
+ your copyrighted material outside their relationship with you.
181
+
182
+ Conveying under any other circumstances is permitted solely under
183
+ the conditions stated below. Sublicensing is not allowed; section 10
184
+ makes it unnecessary.
185
+
186
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
187
+
188
+ No covered work shall be deemed part of an effective technological
189
+ measure under any applicable law fulfilling obligations under article
190
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
191
+ similar laws prohibiting or restricting circumvention of such
192
+ measures.
193
+
194
+ When you convey a covered work, you waive any legal power to forbid
195
+ circumvention of technological measures to the extent such circumvention
196
+ is effected by exercising rights under this License with respect to
197
+ the covered work, and you disclaim any intention to limit operation or
198
+ modification of the work as a means of enforcing, against the work's
199
+ users, your or third parties' legal rights to forbid circumvention of
200
+ technological measures.
201
+
202
+ 4. Conveying Verbatim Copies.
203
+
204
+ You may convey verbatim copies of the Program's source code as you
205
+ receive it, in any medium, provided that you conspicuously and
206
+ appropriately publish on each copy an appropriate copyright notice;
207
+ keep intact all notices stating that this License and any
208
+ non-permissive terms added in accord with section 7 apply to the code;
209
+ keep intact all notices of the absence of any warranty; and give all
210
+ recipients a copy of this License along with the Program.
211
+
212
+ You may charge any price or no price for each copy that you convey,
213
+ and you may offer support or warranty protection for a fee.
214
+
215
+ 5. Conveying Modified Source Versions.
216
+
217
+ You may convey a work based on the Program, or the modifications to
218
+ produce it from the Program, in the form of source code under the
219
+ terms of section 4, provided that you also meet all of these conditions:
220
+
221
+ a) The work must carry prominent notices stating that you modified
222
+ it, and giving a relevant date.
223
+
224
+ b) The work must carry prominent notices stating that it is
225
+ released under this License and any conditions added under section
226
+ 7. This requirement modifies the requirement in section 4 to
227
+ "keep intact all notices".
228
+
229
+ c) You must license the entire work, as a whole, under this
230
+ License to anyone who comes into possession of a copy. This
231
+ License will therefore apply, along with any applicable section 7
232
+ additional terms, to the whole of the work, and all its parts,
233
+ regardless of how they are packaged. This License gives no
234
+ permission to license the work in any other way, but it does not
235
+ invalidate such permission if you have separately received it.
236
+
237
+ d) If the work has interactive user interfaces, each must display
238
+ Appropriate Legal Notices; however, if the Program has interactive
239
+ interfaces that do not display Appropriate Legal Notices, your
240
+ work need not make them do so.
241
+
242
+ A compilation of a covered work with other separate and independent
243
+ works, which are not by their nature extensions of the covered work,
244
+ and which are not combined with it such as to form a larger program,
245
+ in or on a volume of a storage or distribution medium, is called an
246
+ "aggregate" if the compilation and its resulting copyright are not
247
+ used to limit the access or legal rights of the compilation's users
248
+ beyond what the individual works permit. Inclusion of a covered work
249
+ in an aggregate does not cause this License to apply to the other
250
+ parts of the aggregate.
251
+
252
+ 6. Conveying Non-Source Forms.
253
+
254
+ You may convey a covered work in object code form under the terms
255
+ of sections 4 and 5, provided that you also convey the
256
+ machine-readable Corresponding Source under the terms of this License,
257
+ in one of these ways:
258
+
259
+ a) Convey the object code in, or embodied in, a physical product
260
+ (including a physical distribution medium), accompanied by the
261
+ Corresponding Source fixed on a durable physical medium
262
+ customarily used for software interchange.
263
+
264
+ b) Convey the object code in, or embodied in, a physical product
265
+ (including a physical distribution medium), accompanied by a
266
+ written offer, valid for at least three years and valid for as
267
+ long as you offer spare parts or customer support for that product
268
+ model, to give anyone who possesses the object code either (1) a
269
+ copy of the Corresponding Source for all the software in the
270
+ product that is covered by this License, on a durable physical
271
+ medium customarily used for software interchange, for a price no
272
+ more than your reasonable cost of physically performing this
273
+ conveying of source, or (2) access to copy the
274
+ Corresponding Source from a network server at no charge.
275
+
276
+ c) Convey individual copies of the object code with a copy of the
277
+ written offer to provide the Corresponding Source. This
278
+ alternative is allowed only occasionally and noncommercially, and
279
+ only if you received the object code with such an offer, in accord
280
+ with subsection 6b.
281
+
282
+ d) Convey the object code by offering access from a designated
283
+ place (gratis or for a charge), and offer equivalent access to the
284
+ Corresponding Source in the same way through the same place at no
285
+ further charge. You need not require recipients to copy the
286
+ Corresponding Source along with the object code. If the place to
287
+ copy the object code is a network server, the Corresponding Source
288
+ may be on a different server (operated by you or a third party)
289
+ that supports equivalent copying facilities, provided you maintain
290
+ clear directions next to the object code saying where to find the
291
+ Corresponding Source. Regardless of what server hosts the
292
+ Corresponding Source, you remain obligated to ensure that it is
293
+ available for as long as needed to satisfy these requirements.
294
+
295
+ e) Convey the object code using peer-to-peer transmission, provided
296
+ you inform other peers where the object code and Corresponding
297
+ Source of the work are being offered to the general public at no
298
+ charge under subsection 6d.
299
+
300
+ A separable portion of the object code, whose source code is excluded
301
+ from the Corresponding Source as a System Library, need not be
302
+ included in conveying the object code work.
303
+
304
+ A "User Product" is either (1) a "consumer product", which means any
305
+ tangible personal property which is normally used for personal, family,
306
+ or household purposes, or (2) anything designed or sold for incorporation
307
+ into a dwelling. In determining whether a product is a consumer product,
308
+ doubtful cases shall be resolved in favor of coverage. For a particular
309
+ product received by a particular user, "normally used" refers to a
310
+ typical or common use of that class of product, regardless of the status
311
+ of the particular user or of the way in which the particular user
312
+ actually uses, or expects or is expected to use, the product. A product
313
+ is a consumer product regardless of whether the product has substantial
314
+ commercial, industrial or non-consumer uses, unless such uses represent
315
+ the only significant mode of use of the product.
316
+
317
+ "Installation Information" for a User Product means any methods,
318
+ procedures, authorization keys, or other information required to install
319
+ and execute modified versions of a covered work in that User Product from
320
+ a modified version of its Corresponding Source. The information must
321
+ suffice to ensure that the continued functioning of the modified object
322
+ code is in no case prevented or interfered with solely because
323
+ modification has been made.
324
+
325
+ If you convey an object code work under this section in, or with, or
326
+ specifically for use in, a User Product, and the conveying occurs as
327
+ part of a transaction in which the right of possession and use of the
328
+ User Product is transferred to the recipient in perpetuity or for a
329
+ fixed term (regardless of how the transaction is characterized), the
330
+ Corresponding Source conveyed under this section must be accompanied
331
+ by the Installation Information. But this requirement does not apply
332
+ if neither you nor any third party retains the ability to install
333
+ modified object code on the User Product (for example, the work has
334
+ been installed in ROM).
335
+
336
+ The requirement to provide Installation Information does not include a
337
+ requirement to continue to provide support service, warranty, or updates
338
+ for a work that has been modified or installed by the recipient, or for
339
+ the User Product in which it has been modified or installed. Access to a
340
+ network may be denied when the modification itself materially and
341
+ adversely affects the operation of the network or violates the rules and
342
+ protocols for communication across the network.
343
+
344
+ Corresponding Source conveyed, and Installation Information provided,
345
+ in accord with this section must be in a format that is publicly
346
+ documented (and with an implementation available to the public in
347
+ source code form), and must require no special password or key for
348
+ unpacking, reading or copying.
349
+
350
+ 7. Additional Terms.
351
+
352
+ "Additional permissions" are terms that supplement the terms of this
353
+ License by making exceptions from one or more of its conditions.
354
+ Additional permissions that are applicable to the entire Program shall
355
+ be treated as though they were included in this License, to the extent
356
+ that they are valid under applicable law. If additional permissions
357
+ apply only to part of the Program, that part may be used separately
358
+ under those permissions, but the entire Program remains governed by
359
+ this License without regard to the additional permissions.
360
+
361
+ When you convey a copy of a covered work, you may at your option
362
+ remove any additional permissions from that copy, or from any part of
363
+ it. (Additional permissions may be written to require their own
364
+ removal in certain cases when you modify the work.) You may place
365
+ additional permissions on material, added by you to a covered work,
366
+ for which you have or can give appropriate copyright permission.
367
+
368
+ Notwithstanding any other provision of this License, for material you
369
+ add to a covered work, you may (if authorized by the copyright holders of
370
+ that material) supplement the terms of this License with terms:
371
+
372
+ a) Disclaiming warranty or limiting liability differently from the
373
+ terms of sections 15 and 16 of this License; or
374
+
375
+ b) Requiring preservation of specified reasonable legal notices or
376
+ author attributions in that material or in the Appropriate Legal
377
+ Notices displayed by works containing it; or
378
+
379
+ c) Prohibiting misrepresentation of the origin of that material, or
380
+ requiring that modified versions of such material be marked in
381
+ reasonable ways as different from the original version; or
382
+
383
+ d) Limiting the use for publicity purposes of names of licensors or
384
+ authors of the material; or
385
+
386
+ e) Declining to grant rights under trademark law for use of some
387
+ trade names, trademarks, or service marks; or
388
+
389
+ f) Requiring indemnification of licensors and authors of that
390
+ material by anyone who conveys the material (or modified versions of
391
+ it) with contractual assumptions of liability to the recipient, for
392
+ any liability that these contractual assumptions directly impose on
393
+ those licensors and authors.
394
+
395
+ All other non-permissive additional terms are considered "further
396
+ restrictions" within the meaning of section 10. If the Program as you
397
+ received it, or any part of it, contains a notice stating that it is
398
+ governed by this License along with a term that is a further
399
+ restriction, you may remove that term. If a license document contains
400
+ a further restriction but permits relicensing or conveying under this
401
+ License, you may add to a covered work material governed by the terms
402
+ of that license document, provided that the further restriction does
403
+ not survive such relicensing or conveying.
404
+
405
+ If you add terms to a covered work in accord with this section, you
406
+ must place, in the relevant source files, a statement of the
407
+ additional terms that apply to those files, or a notice indicating
408
+ where to find the applicable terms.
409
+
410
+ Additional terms, permissive or non-permissive, may be stated in the
411
+ form of a separately written license, or stated as exceptions;
412
+ the above requirements apply either way.
413
+
414
+ 8. Termination.
415
+
416
+ You may not propagate or modify a covered work except as expressly
417
+ provided under this License. Any attempt otherwise to propagate or
418
+ modify it is void, and will automatically terminate your rights under
419
+ this License (including any patent licenses granted under the third
420
+ paragraph of section 11).
421
+
422
+ However, if you cease all violation of this License, then your
423
+ license from a particular copyright holder is reinstated (a)
424
+ provisionally, unless and until the copyright holder explicitly and
425
+ finally terminates your license, and (b) permanently, if the copyright
426
+ holder fails to notify you of the violation by some reasonable means
427
+ prior to 60 days after the cessation.
428
+
429
+ Moreover, your license from a particular copyright holder is
430
+ reinstated permanently if the copyright holder notifies you of the
431
+ violation by some reasonable means, this is the first time you have
432
+ received notice of violation of this License (for any work) from that
433
+ copyright holder, and you cure the violation prior to 30 days after
434
+ your receipt of the notice.
435
+
436
+ Termination of your rights under this section does not terminate the
437
+ licenses of parties who have received copies or rights from you under
438
+ this License. If your rights have been terminated and not permanently
439
+ reinstated, you do not qualify to receive new licenses for the same
440
+ material under section 10.
441
+
442
+ 9. Acceptance Not Required for Having Copies.
443
+
444
+ You are not required to accept this License in order to receive or
445
+ run a copy of the Program. Ancillary propagation of a covered work
446
+ occurring solely as a consequence of using peer-to-peer transmission
447
+ to receive a copy likewise does not require acceptance. However,
448
+ nothing other than this License grants you permission to propagate or
449
+ modify any covered work. These actions infringe copyright if you do
450
+ not accept this License. Therefore, by modifying or propagating a
451
+ covered work, you indicate your acceptance of this License to do so.
452
+
453
+ 10. Automatic Licensing of Downstream Recipients.
454
+
455
+ Each time you convey a covered work, the recipient automatically
456
+ receives a license from the original licensors, to run, modify and
457
+ propagate that work, subject to this License. You are not responsible
458
+ for enforcing compliance by third parties with this License.
459
+
460
+ An "entity transaction" is a transaction transferring control of an
461
+ organization, or substantially all assets of one, or subdividing an
462
+ organization, or merging organizations. If propagation of a covered
463
+ work results from an entity transaction, each party to that
464
+ transaction who receives a copy of the work also receives whatever
465
+ licenses to the work the party's predecessor in interest had or could
466
+ give under the previous paragraph, plus a right to possession of the
467
+ Corresponding Source of the work from the predecessor in interest, if
468
+ the predecessor has it or can get it with reasonable efforts.
469
+
470
+ You may not impose any further restrictions on the exercise of the
471
+ rights granted or affirmed under this License. For example, you may
472
+ not impose a license fee, royalty, or other charge for exercise of
473
+ rights granted under this License, and you may not initiate litigation
474
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
475
+ any patent claim is infringed by making, using, selling, offering for
476
+ sale, or importing the Program or any portion of it.
477
+
478
+ 11. Patents.
479
+
480
+ A "contributor" is a copyright holder who authorizes use under this
481
+ License of the Program or a work on which the Program is based. The
482
+ work thus licensed is called the contributor's "contributor version".
483
+
484
+ A contributor's "essential patent claims" are all patent claims
485
+ owned or controlled by the contributor, whether already acquired or
486
+ hereafter acquired, that would be infringed by some manner, permitted
487
+ by this License, of making, using, or selling its contributor version,
488
+ but do not include claims that would be infringed only as a
489
+ consequence of further modification of the contributor version. For
490
+ purposes of this definition, "control" includes the right to grant
491
+ patent sublicenses in a manner consistent with the requirements of
492
+ this License.
493
+
494
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
495
+ patent license under the contributor's essential patent claims, to
496
+ make, use, sell, offer for sale, import and otherwise run, modify and
497
+ propagate the contents of its contributor version.
498
+
499
+ In the following three paragraphs, a "patent license" is any express
500
+ agreement or commitment, however denominated, not to enforce a patent
501
+ (such as an express permission to practice a patent or covenant not to
502
+ sue for patent infringement). To "grant" such a patent license to a
503
+ party means to make such an agreement or commitment not to enforce a
504
+ patent against the party.
505
+
506
+ If you convey a covered work, knowingly relying on a patent license,
507
+ and the Corresponding Source of the work is not available for anyone
508
+ to copy, free of charge and under the terms of this License, through a
509
+ publicly available network server or other readily accessible means,
510
+ then you must either (1) cause the Corresponding Source to be so
511
+ available, or (2) arrange to deprive yourself of the benefit of the
512
+ patent license for this particular work, or (3) arrange, in a manner
513
+ consistent with the requirements of this License, to extend the patent
514
+ license to downstream recipients. "Knowingly relying" means you have
515
+ actual knowledge that, but for the patent license, your conveying the
516
+ covered work in a country, or your recipient's use of the covered work
517
+ in a country, would infringe one or more identifiable patents in that
518
+ country that you have reason to believe are valid.
519
+
520
+ If, pursuant to or in connection with a single transaction or
521
+ arrangement, you convey, or propagate by procuring conveyance of, a
522
+ covered work, and grant a patent license to some of the parties
523
+ receiving the covered work authorizing them to use, propagate, modify
524
+ or convey a specific copy of the covered work, then the patent license
525
+ you grant is automatically extended to all recipients of the covered
526
+ work and works based on it.
527
+
528
+ A patent license is "discriminatory" if it does not include within
529
+ the scope of its coverage, prohibits the exercise of, or is
530
+ conditioned on the non-exercise of one or more of the rights that are
531
+ specifically granted under this License. You may not convey a covered
532
+ work if you are a party to an arrangement with a third party that is
533
+ in the business of distributing software, under which you make payment
534
+ to the third party based on the extent of your activity of conveying
535
+ the work, and under which the third party grants, to any of the
536
+ parties who would receive the covered work from you, a discriminatory
537
+ patent license (a) in connection with copies of the covered work
538
+ conveyed by you (or copies made from those copies), or (b) primarily
539
+ for and in connection with specific products or compilations that
540
+ contain the covered work, unless you entered into that arrangement,
541
+ or that patent license was granted, prior to 28 March 2007.
542
+
543
+ Nothing in this License shall be construed as excluding or limiting
544
+ any implied license or other defenses to infringement that may
545
+ otherwise be available to you under applicable patent law.
546
+
547
+ 12. No Surrender of Others' Freedom.
548
+
549
+ If conditions are imposed on you (whether by court order, agreement or
550
+ otherwise) that contradict the conditions of this License, they do not
551
+ excuse you from the conditions of this License. If you cannot convey a
552
+ covered work so as to satisfy simultaneously your obligations under this
553
+ License and any other pertinent obligations, then as a consequence you may
554
+ not convey it at all. For example, if you agree to terms that obligate you
555
+ to collect a royalty for further conveying from those to whom you convey
556
+ the Program, the only way you could satisfy both those terms and this
557
+ License would be to refrain entirely from conveying the Program.
558
+
559
+ 13. Use with the GNU Affero General Public License.
560
+
561
+ Notwithstanding any other provision of this License, you have
562
+ permission to link or combine any covered work with a work licensed
563
+ under version 3 of the GNU Affero General Public License into a single
564
+ combined work, and to convey the resulting work. The terms of this
565
+ License will continue to apply to the part which is the covered work,
566
+ but the special requirements of the GNU Affero General Public License,
567
+ section 13, concerning interaction through a network will apply to the
568
+ combination as such.
569
+
570
+ 14. Revised Versions of this License.
571
+
572
+ The Free Software Foundation may publish revised and/or new versions of
573
+ the GNU General Public License from time to time. Such new versions will
574
+ be similar in spirit to the present version, but may differ in detail to
575
+ address new problems or concerns.
576
+
577
+ Each version is given a distinguishing version number. If the
578
+ Program specifies that a certain numbered version of the GNU General
579
+ Public License "or any later version" applies to it, you have the
580
+ option of following the terms and conditions either of that numbered
581
+ version or of any later version published by the Free Software
582
+ Foundation. If the Program does not specify a version number of the
583
+ GNU General Public License, you may choose any version ever published
584
+ by the Free Software Foundation.
585
+
586
+ If the Program specifies that a proxy can decide which future
587
+ versions of the GNU General Public License can be used, that proxy's
588
+ public statement of acceptance of a version permanently authorizes you
589
+ to choose that version for the Program.
590
+
591
+ Later license versions may give you additional or different
592
+ permissions. However, no additional obligations are imposed on any
593
+ author or copyright holder as a result of your choosing to follow a
594
+ later version.
595
+
596
+ 15. Disclaimer of Warranty.
597
+
598
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
599
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
600
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
601
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
602
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
603
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
604
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
605
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
606
+
607
+ 16. Limitation of Liability.
608
+
609
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
610
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
611
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
612
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
613
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
614
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
615
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
616
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
617
+ SUCH DAMAGES.
618
+
619
+ 17. Interpretation of Sections 15 and 16.
620
+
621
+ If the disclaimer of warranty and limitation of liability provided
622
+ above cannot be given local legal effect according to their terms,
623
+ reviewing courts shall apply local law that most closely approximates
624
+ an absolute waiver of all civil liability in connection with the
625
+ Program, unless a warranty or assumption of liability accompanies a
626
+ copy of the Program in return for a fee.
627
+
628
+ END OF TERMS AND CONDITIONS
629
+
630
+ How to Apply These Terms to Your New Programs
631
+
632
+ If you develop a new program, and you want it to be of the greatest
633
+ possible use to the public, the best way to achieve this is to make it
634
+ free software which everyone can redistribute and change under these terms.
635
+
636
+ To do so, attach the following notices to the program. It is safest
637
+ to attach them to the start of each source file to most effectively
638
+ state the exclusion of warranty; and each file should have at least
639
+ the "copyright" line and a pointer to where the full notice is found.
640
+
641
+ <one line to give the program's name and a brief idea of what it does.>
642
+ Copyright (C) <year> <name of author>
643
+
644
+ This program is free software: you can redistribute it and/or modify
645
+ it under the terms of the GNU General Public License as published by
646
+ the Free Software Foundation, either version 3 of the License, or
647
+ (at your option) any later version.
648
+
649
+ This program is distributed in the hope that it will be useful,
650
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
651
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
652
+ GNU General Public License for more details.
653
+
654
+ You should have received a copy of the GNU General Public License
655
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
656
+
657
+ Also add information on how to contact you by electronic and paper mail.
658
+
659
+ If the program does terminal interaction, make it output a short
660
+ notice like this when it starts in an interactive mode:
661
+
662
+ <program> Copyright (C) <year> <name of author>
663
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
664
+ This is free software, and you are welcome to redistribute it
665
+ under certain conditions; type `show c' for details.
666
+
667
+ The hypothetical commands `show w' and `show c' should show the appropriate
668
+ parts of the General Public License. Of course, your program's commands
669
+ might be different; for a GUI interface, you would use an "about box".
670
+
671
+ You should also get your employer (if you work as a programmer) or school,
672
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
673
+ For more information on this, and how to apply and follow the GNU GPL, see
674
+ <https://www.gnu.org/licenses/>.
675
+
676
+ The GNU General Public License does not permit incorporating your program
677
+ into proprietary programs. If your program is a subroutine library, you
678
+ may consider it more useful to permit linking proprietary applications with
679
+ the library. If this is what you want to do, use the GNU Lesser General
680
+ Public License instead of this License. But first, please read
681
+ <https://www.gnu.org/licenses/why-not-lgpl.html>.
682
+
683
+ Keywords: django,clinicedc,META EDC,EDC,clinical trials
684
+ Classifier: Environment :: Web Environment
685
+ Classifier: Framework :: Django
686
+ Classifier: Framework :: Django :: 5.1
687
+ Classifier: Intended Audience :: Developers
688
+ Classifier: Intended Audience :: Science/Research
689
+ Classifier: Operating System :: OS Independent
690
+ Classifier: Programming Language :: Python :: 3.12
691
+ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
692
+ Requires-Python: >=3.12
693
+ Description-Content-Type: text/x-rst
694
+ License-File: LICENSE
695
+ License-File: AUTHORS
696
+ Requires-Dist: edc==0.6.24
697
+ Requires-Dist: edc-microscopy
698
+ Requires-Dist: beautifulsoup4
699
+ Requires-Dist: celery[redis]
700
+ Requires-Dist: django-pylabels
701
+
702
+ |pypi| |actions| |codecov| |downloads|
703
+
704
+
705
+ META Edc
706
+ --------
707
+
708
+ Metformin treatment in Africa- META
709
+
710
+ * https://www.ucl.ac.uk/global-health/research/z-research/respond-africa/metformin-treatment-africa-meta
711
+ * https://www.inteafrica.org/related-projects/meta-trial/
712
+ * https://www.lstmed.ac.uk/research/departments/international-public-health/respond-africa/meta
713
+ * http://www.isrctn.com/ISRCTN76157257
714
+
715
+ py 3.12 / DJ 5.1 / edc 0.6.0 (META3)
716
+
717
+ This codebase is used for two randomized clinical trials:
718
+
719
+ ____
720
+
721
+ META PHASE II:
722
+
723
+ (final version `0.1.77 <https://github.com/meta-trial/meta-edc/tree/0.1.77>`_)
724
+
725
+ Metformin Treatment for Diabetes Prevention in Africa: META Trial
726
+ TASO, MRC/UVRI/LSHTM, NIMR – TZ and Liverpool School of Tropical Medicine (ISRCTN76157257)
727
+ http://www.isrctn.com/ISRCTN76157257
728
+
729
+ ____
730
+
731
+ META PHASE III:
732
+
733
+ A randomised placebo-controlled double-blind phase III trial to determine the effects of metformin versus placebo on the incidence of diabetes in HIV-infected persons with pre-diabetes in Tanzania.
734
+
735
+ Liverpool School of Tropical Medicine
736
+
737
+ EDCTP grant number: RIA2018CO-2513
738
+
739
+ Trial registration: ISCRTN 77382043
740
+
741
+ https://ico.org.uk/ESDWebPages/Entry/Z4763134
742
+
743
+ ____
744
+
745
+ See also https://github.com/clinicedc/edc
746
+
747
+ |django|
748
+
749
+ To setup a demo system, see https://github.com/meta-trial/meta3-sample
750
+
751
+
752
+ .. |pypi| image:: https://img.shields.io/pypi/v/meta-edc.svg
753
+ :target: https://pypi.python.org/pypi/meta-edc
754
+
755
+ .. |actions| image:: https://github.com/meta-trial/meta-edc/actions/workflows/build.yml/badge.svg
756
+ :target: https://github.com/meta-trial/meta-edc/actions/workflows/build.yml
757
+
758
+ .. |codecov| image:: https://codecov.io/gh/meta-trial/meta-edc/branch/develop/graph/badge.svg
759
+ :target: https://codecov.io/gh/meta-trial/meta-edc
760
+
761
+ .. |downloads| image:: https://pepy.tech/badge/meta-edc
762
+ :target: https://pepy.tech/project/meta-edc
763
+
764
+ .. |django| image:: https://www.djangoproject.com/m/img/badges/djangomade124x25.gif
765
+ :target: http://www.djangoproject.com/
766
+ :alt: Made with Django