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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. meta_auth/auth_objects.py +10 -3
  2. meta_consent/baker_recipes.py +4 -4
  3. meta_consent/consents.py +1 -1
  4. meta_consent/migrations/0025_alter_historicalsubjectconsent_first_name_and_more.py +151 -0
  5. meta_consent/models/signals.py +16 -13
  6. meta_consent/models/subject_consent_v1.py +1 -3
  7. meta_consent/tests/tests/test_form_validators.py +1 -1
  8. meta_dashboard/templates/meta_dashboard/bootstrap3/screening/listboard.html +4 -4
  9. meta_dashboard/templates/meta_dashboard/bootstrap3/subject/listboard.html +1 -2
  10. meta_edc/settings/debug.py +9 -9
  11. meta_edc/settings/defaults.py +25 -18
  12. meta_edc/settings/live.py +1 -9
  13. meta_edc/settings/uat.py +1 -14
  14. meta_edc/templates/meta_edc/bootstrap3/home.html +8 -5
  15. meta_edc/tests/test_settings.py +176 -0
  16. meta_edc/tests/tests/test_endpoints.py +20 -19
  17. meta_edc/urls.py +1 -1
  18. {meta_edc-0.3.7.dist-info → meta_edc-0.3.15.dist-info}/METADATA +5 -4
  19. {meta_edc-0.3.7.dist-info → meta_edc-0.3.15.dist-info}/RECORD +128 -74
  20. meta_prn/action_items.py +44 -2
  21. meta_prn/admin/__init__.py +3 -0
  22. meta_prn/admin/dm_referral_admin.py +49 -0
  23. meta_prn/admin/offschedule_dm_referral_admin.py +47 -0
  24. meta_prn/admin/onschedule_dm_referral_admin.py +39 -0
  25. meta_prn/baker_recipes.py +8 -1
  26. meta_prn/choices.py +2 -1
  27. meta_prn/constants.py +4 -1
  28. meta_prn/forms/__init__.py +2 -0
  29. meta_prn/forms/dm_referral_form.py +40 -0
  30. meta_prn/forms/offschedule_dm_referral_form.py +35 -0
  31. meta_prn/forms/offschedule_form.py +6 -0
  32. meta_prn/migrations/0057_historicalonscheduledmreferral_and_more.py +1156 -0
  33. meta_prn/migrations/0058_dmreferral_referral_note_and_more.py +29 -0
  34. meta_prn/migrations/0059_alter_historicaloffstudymedication_reason_and_more.py +53 -0
  35. meta_prn/models/__init__.py +13 -2
  36. meta_prn/models/dm_referral.py +39 -0
  37. meta_prn/models/offschedule.py +15 -1
  38. meta_prn/models/onschedule.py +6 -0
  39. meta_prn/models/signals.py +41 -1
  40. meta_prn/tests/tests/test_dm_referral.py +206 -0
  41. meta_screening/form_validators/screening_part_two.py +1 -1
  42. meta_screening/migrations/0062_remove_icpreferral_site_and_more.py +27 -0
  43. meta_screening/migrations/0063_alter_historicalscreeningpartone_fasting_duration_str_and_more.py +184 -0
  44. meta_screening/migrations/0064_remove_historicalscreeningpartone_fasting_duration_minutes_and_more.py +126 -0
  45. meta_screening/migrations/0065_auto_20240516_0352.py +31 -0
  46. meta_screening/migrations/0066_alter_historicalscreeningpartone_fasting_duration_delta_and_more.py +103 -0
  47. meta_screening/models/__init__.py +1 -1
  48. meta_screening/tests/meta_test_case_mixin.py +2 -2
  49. meta_screening/tests/options.py +3 -3
  50. meta_sites/__init__.py +0 -1
  51. meta_sites/sites.py +8 -7
  52. meta_subject/action_items.py +23 -0
  53. meta_subject/admin/__init__.py +1 -1
  54. meta_subject/admin/birth_outcome_admin.py +2 -3
  55. meta_subject/admin/delivery_admin.py +0 -1
  56. meta_subject/admin/diabetes/__init__.py +2 -0
  57. meta_subject/admin/diabetes/dm_diagnosis_admin.py +89 -0
  58. meta_subject/admin/{dm_referral_followup_admin.py → diabetes/dm_followup_admin.py} +15 -8
  59. meta_subject/admin/glucose_admin.py +1 -1
  60. meta_subject/admin/glucose_fbg_admin.py +34 -8
  61. meta_subject/admin/subject_visit_admin.py +4 -1
  62. meta_subject/baker_recipes.py +6 -0
  63. meta_subject/choices.py +8 -0
  64. meta_subject/constants.py +2 -1
  65. meta_subject/form_validators/__init__.py +2 -1
  66. meta_subject/form_validators/dm_diagnosis_form_validator.py +38 -0
  67. meta_subject/form_validators/dm_dx_result_form_validator.py +7 -0
  68. meta_subject/form_validators/{dm_referral_followup_form_validator.py → dm_followup_form_validator.py} +41 -2
  69. meta_subject/forms/__init__.py +1 -0
  70. meta_subject/forms/diabetes/__init__.py +3 -0
  71. meta_subject/forms/diabetes/dm_diagnosis_form.py +13 -0
  72. meta_subject/forms/diabetes/dm_dx_result_form.py +11 -0
  73. meta_subject/forms/diabetes/dm_followup_form.py +25 -0
  74. meta_subject/forms/glucose_fbg_form.py +38 -16
  75. meta_subject/forms/subject_visit_form.py +16 -0
  76. meta_subject/metadata_rules/metadata_rules.py +14 -0
  77. meta_subject/metadata_rules/predicates.py +22 -0
  78. meta_subject/migrations/0181_dmreferralfollowup_action_identifier_and_more.py +143 -0
  79. meta_subject/migrations/0182_rename_dmreferralfollowup_dmfollowup_and_more.py +54 -0
  80. meta_subject/migrations/0183_alter_dmfollowup_on_dm_medications_and_more.py +31 -0
  81. meta_subject/migrations/0184_alter_glucose_options_and_more.py +31 -0
  82. meta_subject/migrations/0185_alter_bloodresultsins_fasting_duration_str_and_more.py +82 -0
  83. meta_subject/migrations/0186_healtheconomicsupdate_singleton_field_and_more.py +55 -0
  84. meta_subject/migrations/0187_dmdiagnosis_historicaldmdiagnosis_dmdxresult_and_more.py +451 -0
  85. meta_subject/migrations/0188_historicaldmdxresult_dmdxresult.py +403 -0
  86. meta_subject/migrations/0189_alter_dmdxresult_options_and_more.py +116 -0
  87. meta_subject/migrations/0190_dmdiagnosis_dx_no_tmg_reason_and_more.py +65 -0
  88. meta_subject/migrations/0191_alter_dmdiagnosis_dx_no_tmg_reason_and_more.py +70 -0
  89. meta_subject/migrations/0192_rename_glucose_quantifier_glucosefbg_fbg_quantifier_and_more.py +44 -0
  90. meta_subject/migrations/0193_alter_glucosefbg_fbg_value_and_more.py +44 -0
  91. meta_subject/migrations/0194_remove_glucosefbg_assay_datetime_and_more.py +166 -0
  92. meta_subject/migrations/0195_alter_glucosefbg_fbg_datetime_and_more.py +27 -0
  93. meta_subject/migrations/0196_glucosefbg_fbg_not_performed_reason_and_more.py +49 -0
  94. meta_subject/migrations/0197_glucosefbg_fasting_duration_estimated_and_more.py +33 -0
  95. meta_subject/migrations/0198_alter_glucosefbg_fasting_duration_estimated_and_more.py +33 -0
  96. meta_subject/migrations/0199_auto_20240516_0247.py +18 -0
  97. meta_subject/migrations/0200_rename_fasting_duration_minutes_bloodresultsins_fasting_duration_delta_and_more.py +43 -0
  98. meta_subject/migrations/0201_alter_bloodresultsins_fasting_duration_delta_and_more.py +58 -0
  99. meta_subject/migrations/0202_auto_20240516_0315.py +32 -0
  100. meta_subject/migrations/0203_alter_bloodresultsins_fasting_duration_delta_and_more.py +67 -0
  101. meta_subject/migrations/0204_glucosefbg_repeat_fbg_date_and_more.py +27 -0
  102. meta_subject/migrations/0205_historicalsubjectrequisition_crf_status_and_more.py +80 -0
  103. meta_subject/migrations/0206_bloodresultsfbc_crf_status_and_more.py +62 -0
  104. meta_subject/models/__init__.py +1 -1
  105. meta_subject/models/blood_results/blood_results_fbc.py +3 -2
  106. meta_subject/models/blood_results/blood_results_hba1c.py +2 -0
  107. meta_subject/models/blood_results/blood_results_ins.py +2 -0
  108. meta_subject/models/blood_results/blood_results_lft.py +2 -0
  109. meta_subject/models/blood_results/blood_results_lipid.py +2 -0
  110. meta_subject/models/blood_results/blood_results_rft.py +2 -0
  111. meta_subject/models/diabetes/__init__.py +3 -0
  112. meta_subject/models/diabetes/dm_diagnosis.py +50 -0
  113. meta_subject/models/diabetes/dm_dx_result.py +70 -0
  114. meta_subject/models/{dm_referral_followup.py → diabetes/dm_followup.py} +18 -6
  115. meta_subject/models/glucose.py +5 -15
  116. meta_subject/models/glucose_fbg.py +40 -51
  117. meta_subject/models/health_economics/health_economics_update.py +2 -0
  118. meta_subject/models/subject_requisition.py +3 -4
  119. meta_subject/tests/tests/test_egfr.py +6 -5
  120. meta_subject/tests/tests/test_metadata_rules.py +32 -2
  121. meta_visit_schedule/constants.py +3 -1
  122. meta_visit_schedule/visit_schedules/phase_three/crfs.py +12 -1
  123. meta_visit_schedule/visit_schedules/phase_three/schedule_dm_referral.py +60 -0
  124. meta_visit_schedule/visit_schedules/phase_three/visit_schedule.py +2 -0
  125. meta_subject/forms/dm_referral_followup.py +0 -18
  126. {meta_edc-0.3.7.dist-info → meta_edc-0.3.15.dist-info}/AUTHORS +0 -0
  127. {meta_edc-0.3.7.dist-info → meta_edc-0.3.15.dist-info}/LICENSE +0 -0
  128. {meta_edc-0.3.7.dist-info → meta_edc-0.3.15.dist-info}/WHEEL +0 -0
  129. {meta_edc-0.3.7.dist-info → meta_edc-0.3.15.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,403 @@
1
+ # Generated by Django 4.2.11 on 2024-05-15 17:56
2
+
3
+ import _socket
4
+ from django.conf import settings
5
+ import django.contrib.sites.managers
6
+ from django.db import migrations, models
7
+ import django.db.models.deletion
8
+ import django.db.models.manager
9
+ import django_audit_fields.fields.hostname_modification_field
10
+ import django_audit_fields.fields.userfield
11
+ import django_audit_fields.fields.uuid_auto_field
12
+ import django_audit_fields.models.audit_model_mixin
13
+ import django_revision.revision_field
14
+ import simple_history.models
15
+ import uuid
16
+
17
+
18
+ class Migration(migrations.Migration):
19
+
20
+ dependencies = [
21
+ ("sites", "0002_alter_domain_unique"),
22
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
23
+ ("meta_subject", "0187_dmdiagnosis_historicaldmdiagnosis_dmdxresult_and_more"),
24
+ ]
25
+
26
+ operations = [
27
+ migrations.CreateModel(
28
+ name="HistoricalDmDxResult",
29
+ fields=[
30
+ (
31
+ "revision",
32
+ django_revision.revision_field.RevisionField(
33
+ blank=True,
34
+ editable=False,
35
+ help_text="System field. Git repository tag:branch:commit.",
36
+ max_length=75,
37
+ null=True,
38
+ verbose_name="Revision",
39
+ ),
40
+ ),
41
+ (
42
+ "created",
43
+ models.DateTimeField(
44
+ blank=True, default=django_audit_fields.models.audit_model_mixin.utcnow
45
+ ),
46
+ ),
47
+ (
48
+ "modified",
49
+ models.DateTimeField(
50
+ blank=True, default=django_audit_fields.models.audit_model_mixin.utcnow
51
+ ),
52
+ ),
53
+ (
54
+ "user_created",
55
+ django_audit_fields.fields.userfield.UserField(
56
+ blank=True,
57
+ help_text="Updated by admin.save_model",
58
+ max_length=50,
59
+ verbose_name="user created",
60
+ ),
61
+ ),
62
+ (
63
+ "user_modified",
64
+ django_audit_fields.fields.userfield.UserField(
65
+ blank=True,
66
+ help_text="Updated by admin.save_model",
67
+ max_length=50,
68
+ verbose_name="user modified",
69
+ ),
70
+ ),
71
+ (
72
+ "hostname_created",
73
+ models.CharField(
74
+ blank=True,
75
+ default=_socket.gethostname,
76
+ help_text="System field. (modified on create only)",
77
+ max_length=60,
78
+ verbose_name="Hostname created",
79
+ ),
80
+ ),
81
+ (
82
+ "hostname_modified",
83
+ django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
84
+ blank=True,
85
+ help_text="System field. (modified on every save)",
86
+ max_length=50,
87
+ verbose_name="Hostname modified",
88
+ ),
89
+ ),
90
+ (
91
+ "device_created",
92
+ models.CharField(blank=True, max_length=10, verbose_name="Device created"),
93
+ ),
94
+ (
95
+ "device_modified",
96
+ models.CharField(
97
+ blank=True, max_length=10, verbose_name="Device modified"
98
+ ),
99
+ ),
100
+ (
101
+ "locale_created",
102
+ models.CharField(
103
+ blank=True,
104
+ help_text="Auto-updated by Modeladmin",
105
+ max_length=10,
106
+ null=True,
107
+ verbose_name="Locale created",
108
+ ),
109
+ ),
110
+ (
111
+ "locale_modified",
112
+ models.CharField(
113
+ blank=True,
114
+ help_text="Auto-updated by Modeladmin",
115
+ max_length=10,
116
+ null=True,
117
+ verbose_name="Locale modified",
118
+ ),
119
+ ),
120
+ (
121
+ "id",
122
+ django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
123
+ blank=True,
124
+ db_index=True,
125
+ editable=False,
126
+ help_text="System auto field. UUID primary key.",
127
+ ),
128
+ ),
129
+ ("report_date", models.DateField(verbose_name="Date")),
130
+ (
131
+ "utestid",
132
+ models.CharField(
133
+ choices=[("fbg", "FBG")], max_length=15, verbose_name="Test"
134
+ ),
135
+ ),
136
+ (
137
+ "quantifier",
138
+ models.CharField(
139
+ choices=[
140
+ ("=", "="),
141
+ (">", ">"),
142
+ (">=", ">="),
143
+ ("<", "<"),
144
+ ("<=", "<="),
145
+ ],
146
+ default="=",
147
+ max_length=10,
148
+ ),
149
+ ),
150
+ ("value", models.DecimalField(decimal_places=2, max_digits=8)),
151
+ (
152
+ "units",
153
+ models.CharField(
154
+ choices=[
155
+ ("mg/dL", "mg/dL"),
156
+ ("mmol/L", "mmol/L (millimoles/L)"),
157
+ ("%", "%"),
158
+ ],
159
+ max_length=15,
160
+ verbose_name="Units",
161
+ ),
162
+ ),
163
+ (
164
+ "fasted",
165
+ models.BooleanField(default=False, max_length=15, verbose_name="Fasted?"),
166
+ ),
167
+ ("comment", models.CharField(blank=True, max_length=35, null=True)),
168
+ (
169
+ "history_id",
170
+ models.UUIDField(
171
+ default=uuid.uuid4, editable=False, primary_key=True, serialize=False
172
+ ),
173
+ ),
174
+ ("history_date", models.DateTimeField(db_index=True)),
175
+ ("history_change_reason", models.CharField(max_length=100, null=True)),
176
+ (
177
+ "history_type",
178
+ models.CharField(
179
+ choices=[("+", "Created"), ("~", "Changed"), ("-", "Deleted")],
180
+ max_length=1,
181
+ ),
182
+ ),
183
+ (
184
+ "dm_diagnosis",
185
+ models.ForeignKey(
186
+ blank=True,
187
+ db_constraint=False,
188
+ null=True,
189
+ on_delete=django.db.models.deletion.DO_NOTHING,
190
+ related_name="+",
191
+ to="meta_subject.dmdiagnosis",
192
+ ),
193
+ ),
194
+ (
195
+ "history_user",
196
+ models.ForeignKey(
197
+ null=True,
198
+ on_delete=django.db.models.deletion.SET_NULL,
199
+ related_name="+",
200
+ to=settings.AUTH_USER_MODEL,
201
+ ),
202
+ ),
203
+ (
204
+ "site",
205
+ models.ForeignKey(
206
+ blank=True,
207
+ db_constraint=False,
208
+ null=True,
209
+ on_delete=django.db.models.deletion.DO_NOTHING,
210
+ related_name="+",
211
+ to="sites.site",
212
+ ),
213
+ ),
214
+ ],
215
+ options={
216
+ "verbose_name": "historical Diabetes diagmnosis: Result",
217
+ "verbose_name_plural": "historical Diabetes diagmnosis: Results",
218
+ "ordering": ("-history_date", "-history_id"),
219
+ "get_latest_by": ("history_date", "history_id"),
220
+ },
221
+ bases=(simple_history.models.HistoricalChanges, models.Model),
222
+ ),
223
+ migrations.CreateModel(
224
+ name="DmDxResult",
225
+ fields=[
226
+ (
227
+ "revision",
228
+ django_revision.revision_field.RevisionField(
229
+ blank=True,
230
+ editable=False,
231
+ help_text="System field. Git repository tag:branch:commit.",
232
+ max_length=75,
233
+ null=True,
234
+ verbose_name="Revision",
235
+ ),
236
+ ),
237
+ (
238
+ "created",
239
+ models.DateTimeField(
240
+ blank=True, default=django_audit_fields.models.audit_model_mixin.utcnow
241
+ ),
242
+ ),
243
+ (
244
+ "modified",
245
+ models.DateTimeField(
246
+ blank=True, default=django_audit_fields.models.audit_model_mixin.utcnow
247
+ ),
248
+ ),
249
+ (
250
+ "user_created",
251
+ django_audit_fields.fields.userfield.UserField(
252
+ blank=True,
253
+ help_text="Updated by admin.save_model",
254
+ max_length=50,
255
+ verbose_name="user created",
256
+ ),
257
+ ),
258
+ (
259
+ "user_modified",
260
+ django_audit_fields.fields.userfield.UserField(
261
+ blank=True,
262
+ help_text="Updated by admin.save_model",
263
+ max_length=50,
264
+ verbose_name="user modified",
265
+ ),
266
+ ),
267
+ (
268
+ "hostname_created",
269
+ models.CharField(
270
+ blank=True,
271
+ default=_socket.gethostname,
272
+ help_text="System field. (modified on create only)",
273
+ max_length=60,
274
+ verbose_name="Hostname created",
275
+ ),
276
+ ),
277
+ (
278
+ "hostname_modified",
279
+ django_audit_fields.fields.hostname_modification_field.HostnameModificationField(
280
+ blank=True,
281
+ help_text="System field. (modified on every save)",
282
+ max_length=50,
283
+ verbose_name="Hostname modified",
284
+ ),
285
+ ),
286
+ (
287
+ "device_created",
288
+ models.CharField(blank=True, max_length=10, verbose_name="Device created"),
289
+ ),
290
+ (
291
+ "device_modified",
292
+ models.CharField(
293
+ blank=True, max_length=10, verbose_name="Device modified"
294
+ ),
295
+ ),
296
+ (
297
+ "locale_created",
298
+ models.CharField(
299
+ blank=True,
300
+ help_text="Auto-updated by Modeladmin",
301
+ max_length=10,
302
+ null=True,
303
+ verbose_name="Locale created",
304
+ ),
305
+ ),
306
+ (
307
+ "locale_modified",
308
+ models.CharField(
309
+ blank=True,
310
+ help_text="Auto-updated by Modeladmin",
311
+ max_length=10,
312
+ null=True,
313
+ verbose_name="Locale modified",
314
+ ),
315
+ ),
316
+ (
317
+ "id",
318
+ django_audit_fields.fields.uuid_auto_field.UUIDAutoField(
319
+ blank=True,
320
+ editable=False,
321
+ help_text="System auto field. UUID primary key.",
322
+ primary_key=True,
323
+ serialize=False,
324
+ ),
325
+ ),
326
+ ("report_date", models.DateField(verbose_name="Date")),
327
+ (
328
+ "utestid",
329
+ models.CharField(
330
+ choices=[("fbg", "FBG")], max_length=15, verbose_name="Test"
331
+ ),
332
+ ),
333
+ (
334
+ "quantifier",
335
+ models.CharField(
336
+ choices=[
337
+ ("=", "="),
338
+ (">", ">"),
339
+ (">=", ">="),
340
+ ("<", "<"),
341
+ ("<=", "<="),
342
+ ],
343
+ default="=",
344
+ max_length=10,
345
+ ),
346
+ ),
347
+ ("value", models.DecimalField(decimal_places=2, max_digits=8)),
348
+ (
349
+ "units",
350
+ models.CharField(
351
+ choices=[
352
+ ("mg/dL", "mg/dL"),
353
+ ("mmol/L", "mmol/L (millimoles/L)"),
354
+ ("%", "%"),
355
+ ],
356
+ max_length=15,
357
+ verbose_name="Units",
358
+ ),
359
+ ),
360
+ (
361
+ "fasted",
362
+ models.BooleanField(default=False, max_length=15, verbose_name="Fasted?"),
363
+ ),
364
+ ("comment", models.CharField(blank=True, max_length=35, null=True)),
365
+ (
366
+ "dm_diagnosis",
367
+ models.ForeignKey(
368
+ on_delete=django.db.models.deletion.PROTECT,
369
+ to="meta_subject.dmdiagnosis",
370
+ ),
371
+ ),
372
+ (
373
+ "site",
374
+ models.ForeignKey(
375
+ null=True,
376
+ on_delete=django.db.models.deletion.PROTECT,
377
+ related_name="+",
378
+ to="sites.site",
379
+ ),
380
+ ),
381
+ ],
382
+ options={
383
+ "verbose_name": "Diabetes diagmnosis: Result",
384
+ "verbose_name_plural": "Diabetes diagmnosis: Results",
385
+ "abstract": False,
386
+ "default_permissions": ("add", "change", "delete", "view", "export", "import"),
387
+ "default_manager_name": "objects",
388
+ "indexes": [
389
+ models.Index(
390
+ fields=["modified", "created"], name="meta_subjec_modifie_6c33f9_idx"
391
+ ),
392
+ models.Index(
393
+ fields=["user_modified", "user_created"],
394
+ name="meta_subjec_user_mo_a4a0c6_idx",
395
+ ),
396
+ ],
397
+ },
398
+ managers=[
399
+ ("objects", django.db.models.manager.Manager()),
400
+ ("on_site", django.contrib.sites.managers.CurrentSiteManager()),
401
+ ],
402
+ ),
403
+ ]
@@ -0,0 +1,116 @@
1
+ # Generated by Django 4.2.11 on 2024-05-15 21:35
2
+
3
+ from django.db import migrations, models
4
+ import edc_model_fields.fields.other_charfield
5
+
6
+
7
+ class Migration(migrations.Migration):
8
+
9
+ dependencies = [
10
+ ("meta_subject", "0188_historicaldmdxresult_dmdxresult"),
11
+ ]
12
+
13
+ operations = [
14
+ migrations.AlterModelOptions(
15
+ name="dmdxresult",
16
+ options={
17
+ "default_manager_name": "objects",
18
+ "default_permissions": ("add", "change", "delete", "view", "export", "import"),
19
+ "verbose_name": "Diabetes diagnosis: Result",
20
+ "verbose_name_plural": "Diabetes diagnosis: Results",
21
+ },
22
+ ),
23
+ migrations.AlterModelOptions(
24
+ name="historicaldmdxresult",
25
+ options={
26
+ "get_latest_by": ("history_date", "history_id"),
27
+ "ordering": ("-history_date", "-history_id"),
28
+ "verbose_name": "historical Diabetes diagnosis: Result",
29
+ "verbose_name_plural": "historical Diabetes diagnosis: Results",
30
+ },
31
+ ),
32
+ migrations.AddField(
33
+ model_name="dmdiagnosis",
34
+ name="dx_initiated_by_other",
35
+ field=edc_model_fields.fields.other_charfield.OtherCharField(
36
+ blank=True,
37
+ max_length=35,
38
+ null=True,
39
+ verbose_name="If other, please specify ...",
40
+ ),
41
+ ),
42
+ migrations.AddField(
43
+ model_name="historicaldmdiagnosis",
44
+ name="dx_initiated_by_other",
45
+ field=edc_model_fields.fields.other_charfield.OtherCharField(
46
+ blank=True,
47
+ max_length=35,
48
+ null=True,
49
+ verbose_name="If other, please specify ...",
50
+ ),
51
+ ),
52
+ migrations.AlterField(
53
+ model_name="dmdiagnosis",
54
+ name="comments",
55
+ field=models.TextField(blank=True, null=True, verbose_name="Any other comments"),
56
+ ),
57
+ migrations.AlterField(
58
+ model_name="dmdiagnosis",
59
+ name="dx_initiated_by",
60
+ field=models.CharField(
61
+ choices=[
62
+ ("fbg_confirmed", "Any FBG >= 7.0 mmol/L (confirmed by OGTT)"),
63
+ ("fbg_unconfirmed", "Any FBG >= 7.0 mmol/L (NOT confirmed by OGTT)"),
64
+ ("ogtt_annaul", "Annual OGTT >= 11.1 mmol/L"),
65
+ (
66
+ "ogtt_unscheduled",
67
+ "Any OGTT >= 11.1 mmol/L (excluding annual or used in confirmation)",
68
+ ),
69
+ ("OTHER", "Other"),
70
+ ],
71
+ max_length=25,
72
+ verbose_name="What initiated the diagnosis",
73
+ ),
74
+ ),
75
+ migrations.AlterField(
76
+ model_name="dmdxresult",
77
+ name="utestid",
78
+ field=models.CharField(
79
+ choices=[("fbg", "FBG"), ("ogtt", "OGTT"), ("hba1c", "HbA1c")],
80
+ max_length=15,
81
+ verbose_name="Test",
82
+ ),
83
+ ),
84
+ migrations.AlterField(
85
+ model_name="historicaldmdiagnosis",
86
+ name="comments",
87
+ field=models.TextField(blank=True, null=True, verbose_name="Any other comments"),
88
+ ),
89
+ migrations.AlterField(
90
+ model_name="historicaldmdiagnosis",
91
+ name="dx_initiated_by",
92
+ field=models.CharField(
93
+ choices=[
94
+ ("fbg_confirmed", "Any FBG >= 7.0 mmol/L (confirmed by OGTT)"),
95
+ ("fbg_unconfirmed", "Any FBG >= 7.0 mmol/L (NOT confirmed by OGTT)"),
96
+ ("ogtt_annaul", "Annual OGTT >= 11.1 mmol/L"),
97
+ (
98
+ "ogtt_unscheduled",
99
+ "Any OGTT >= 11.1 mmol/L (excluding annual or used in confirmation)",
100
+ ),
101
+ ("OTHER", "Other"),
102
+ ],
103
+ max_length=25,
104
+ verbose_name="What initiated the diagnosis",
105
+ ),
106
+ ),
107
+ migrations.AlterField(
108
+ model_name="historicaldmdxresult",
109
+ name="utestid",
110
+ field=models.CharField(
111
+ choices=[("fbg", "FBG"), ("ogtt", "OGTT"), ("hba1c", "HbA1c")],
112
+ max_length=15,
113
+ verbose_name="Test",
114
+ ),
115
+ ),
116
+ ]
@@ -0,0 +1,65 @@
1
+ # Generated by Django 4.2.11 on 2024-05-15 22:07
2
+
3
+ from django.db import migrations, models
4
+
5
+
6
+ class Migration(migrations.Migration):
7
+
8
+ dependencies = [
9
+ ("meta_subject", "0189_alter_dmdxresult_options_and_more"),
10
+ ]
11
+
12
+ operations = [
13
+ migrations.AddField(
14
+ model_name="dmdiagnosis",
15
+ name="dx_no_tmg_reason",
16
+ field=models.CharField(
17
+ blank=True,
18
+ max_length=50,
19
+ null=True,
20
+ verbose_name="If not discussed with the TMG, please explain",
21
+ ),
22
+ ),
23
+ migrations.AddField(
24
+ model_name="historicaldmdiagnosis",
25
+ name="dx_no_tmg_reason",
26
+ field=models.CharField(
27
+ blank=True,
28
+ max_length=50,
29
+ null=True,
30
+ verbose_name="If not discussed with the TMG, please explain",
31
+ ),
32
+ ),
33
+ migrations.AlterField(
34
+ model_name="dmdiagnosis",
35
+ name="dx_tmg",
36
+ field=models.CharField(
37
+ choices=[("Yes", "Yes"), ("No", "No")],
38
+ max_length=15,
39
+ verbose_name="Was this case discussed with the TMG?",
40
+ ),
41
+ ),
42
+ migrations.AlterField(
43
+ model_name="dmdiagnosis",
44
+ name="dx_tmg_date",
45
+ field=models.DateField(
46
+ blank=True, null=True, verbose_name="Date of TMG discussion"
47
+ ),
48
+ ),
49
+ migrations.AlterField(
50
+ model_name="historicaldmdiagnosis",
51
+ name="dx_tmg",
52
+ field=models.CharField(
53
+ choices=[("Yes", "Yes"), ("No", "No")],
54
+ max_length=15,
55
+ verbose_name="Was this case discussed with the TMG?",
56
+ ),
57
+ ),
58
+ migrations.AlterField(
59
+ model_name="historicaldmdiagnosis",
60
+ name="dx_tmg_date",
61
+ field=models.DateField(
62
+ blank=True, null=True, verbose_name="Date of TMG discussion"
63
+ ),
64
+ ),
65
+ ]
@@ -0,0 +1,70 @@
1
+ # Generated by Django 4.2.11 on 2024-05-15 23:16
2
+
3
+ from django.db import migrations, models
4
+ import edc_model.validators.date
5
+
6
+
7
+ class Migration(migrations.Migration):
8
+
9
+ dependencies = [
10
+ ("meta_subject", "0190_dmdiagnosis_dx_no_tmg_reason_and_more"),
11
+ ]
12
+
13
+ operations = [
14
+ migrations.AlterField(
15
+ model_name="dmdiagnosis",
16
+ name="dx_no_tmg_reason",
17
+ field=models.TextField(
18
+ blank=True,
19
+ null=True,
20
+ verbose_name="If NO, please explain why this case was not discussed with the TMG",
21
+ ),
22
+ ),
23
+ migrations.AlterField(
24
+ model_name="dmdiagnosis",
25
+ name="dx_tmg_date",
26
+ field=models.DateField(
27
+ blank=True,
28
+ null=True,
29
+ verbose_name="If YES, provide the date of the TMG discussion",
30
+ ),
31
+ ),
32
+ migrations.AlterField(
33
+ model_name="glucosefbg",
34
+ name="assay_datetime",
35
+ field=models.DateTimeField(
36
+ blank=True,
37
+ null=True,
38
+ validators=[edc_model.validators.date.datetime_not_future],
39
+ verbose_name="Result date and time of FBG",
40
+ ),
41
+ ),
42
+ migrations.AlterField(
43
+ model_name="historicaldmdiagnosis",
44
+ name="dx_no_tmg_reason",
45
+ field=models.TextField(
46
+ blank=True,
47
+ null=True,
48
+ verbose_name="If NO, please explain why this case was not discussed with the TMG",
49
+ ),
50
+ ),
51
+ migrations.AlterField(
52
+ model_name="historicaldmdiagnosis",
53
+ name="dx_tmg_date",
54
+ field=models.DateField(
55
+ blank=True,
56
+ null=True,
57
+ verbose_name="If YES, provide the date of the TMG discussion",
58
+ ),
59
+ ),
60
+ migrations.AlterField(
61
+ model_name="historicalglucosefbg",
62
+ name="assay_datetime",
63
+ field=models.DateTimeField(
64
+ blank=True,
65
+ null=True,
66
+ validators=[edc_model.validators.date.datetime_not_future],
67
+ verbose_name="Result date and time of FBG",
68
+ ),
69
+ ),
70
+ ]