clinicedc 2.0.10__py3-none-any.whl → 2.0.12__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of clinicedc might be problematic. Click here for more details.

Files changed (45) hide show
  1. {clinicedc-2.0.10.dist-info → clinicedc-2.0.12.dist-info}/METADATA +2 -2
  2. {clinicedc-2.0.10.dist-info → clinicedc-2.0.12.dist-info}/RECORD +45 -9
  3. {clinicedc-2.0.10.dist-info → clinicedc-2.0.12.dist-info}/WHEEL +1 -1
  4. edc_action_item/migrations/0041_alter_actionitem_revision_alter_actiontype_revision_and_more.py +86 -0
  5. edc_adverse_event/migrations/0017_alter_aeactionclassification_revision_and_more.py +77 -0
  6. edc_appointment/migrations/0051_alter_appointment_revision_and_more.py +38 -0
  7. edc_auth/migrations/0037_alter_edcpermissions_revision_alter_role_revision.py +38 -0
  8. edc_consent/migrations/0007_alter_edcpermissions_revision.py +26 -0
  9. edc_consent/modelform_mixins/consent_modelform_mixin/consent_modelform_validation_mixin.py +0 -7
  10. edc_crf/migrations/0010_alter_crfstatus_revision.py +26 -0
  11. edc_dashboard/migrations/0007_alter_edcpermissions_revision.py +26 -0
  12. edc_data_manager/migrations/0042_alter_datadictionary_revision_and_more.py +98 -0
  13. edc_export/migrations/0024_alter_datarequest_revision_and_more.py +170 -0
  14. edc_facility/migrations/0018_alter_healthfacility_revision_and_more.py +38 -0
  15. edc_form_runners/migrations/0006_alter_issue_revision.py +26 -0
  16. edc_form_validators/applicable_field_validator.py +1 -2
  17. edc_glucose/utils.py +3 -3
  18. edc_identifier/migrations/0012_alter_identifiermodel_revision.py +26 -0
  19. edc_lab/migrations/0039_alter_aliquot_revision_alter_box_revision_and_more.py +269 -0
  20. edc_lab_dashboard/migrations/0006_alter_edcpermissions_revision.py +26 -0
  21. edc_lab_results/get_summary.py +3 -3
  22. edc_label/migrations/0008_alter_zpllabeltemplates_revision.py +26 -0
  23. edc_listboard/migrations/0008_alter_listboard_revision.py +26 -0
  24. edc_listboard/view_mixins/search_form_view_mixin.py +2 -3
  25. edc_locator/migrations/0042_alter_historicalsubjectlocator_revision_and_more.py +38 -0
  26. edc_metadata/migrations/0032_alter_crfmetadata_revision_and_more.py +38 -0
  27. edc_navbar/migrations/0010_alter_edcpermissions_revision.py +26 -0
  28. edc_notification/migrations/0012_alter_notification_revision.py +26 -0
  29. edc_offstudy/migrations/0025_alter_historicalsubjectoffstudy_revision_and_more.py +41 -0
  30. edc_pharmacy/migrations/0091_alter_allocation_revision_alter_assignment_revision_and_more.py +794 -0
  31. edc_protocol_incident/migrations/0026_alter_historicalprotocoldeviationviolation_revision_and_more.py +65 -0
  32. edc_pylabels/migrations/0014_alter_labelconfiguration_revision.py +26 -0
  33. edc_qareports/migrations/0021_alter_edcpermissions_revision_alter_note_revision.py +38 -0
  34. edc_randomization/migrations/0015_alter_edcpermissions_revision_and_more.py +50 -0
  35. edc_refusal/migrations/0014_alter_historicalsubjectrefusal_revision_and_more.py +38 -0
  36. edc_registration/migrations/0034_alter_historicalregisteredsubject_revision_and_more.py +41 -0
  37. edc_reportable/migrations/0008_alter_gradingdata_revision_and_more.py +110 -0
  38. edc_review_dashboard/migrations/0007_alter_edcpermissions_revision.py +26 -0
  39. edc_screening/migrations/0006_alter_edcpermissions_revision.py +26 -0
  40. edc_sites/migrations/0011_alter_edcpermissions_revision.py +26 -0
  41. edc_subject_dashboard/migrations/0006_alter_edcpermissions_revision.py +26 -0
  42. edc_unblinding/migrations/0016_alter_historicalunblindingrequest_revision_and_more.py +65 -0
  43. edc_visit_schedule/migrations/0021_alter_historicalonschedule_revision_and_more.py +89 -0
  44. edc_visit_tracking/migrations/0011_alter_historicalsubjectvisit_revision_and_more.py +65 -0
  45. {clinicedc-2.0.10.dist-info → clinicedc-2.0.12.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,26 @@
1
+ # Generated by Django 5.2.6 on 2025-09-24 04:56
2
+
3
+ import django_revision.revision_field
4
+ from django.db import migrations
5
+
6
+
7
+ class Migration(migrations.Migration):
8
+
9
+ dependencies = [
10
+ ("edc_consent", "0006_alter_edcpermissions_device_created_and_more"),
11
+ ]
12
+
13
+ operations = [
14
+ migrations.AlterField(
15
+ model_name="edcpermissions",
16
+ name="revision",
17
+ field=django_revision.revision_field.RevisionField(
18
+ blank=True,
19
+ default="",
20
+ editable=False,
21
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
22
+ max_length=75,
23
+ verbose_name="Revision",
24
+ ),
25
+ ),
26
+ ]
@@ -74,13 +74,6 @@ class ConsentModelFormValidationMixin:
74
74
  raise forms.ValidationError(str(e))
75
75
  return None
76
76
 
77
- # def validate_last_allowed_visitcode(self, visit_code: str) -> str:
78
- # name = "last_allowed_visitcode"
79
- # value = self.cleaned_data.get(name, getattr(self.instance, name, None))
80
- # if value and int(visit_code) > int(value):
81
- # raise forms.ValidationError({"__all__": msg})
82
- # return value
83
-
84
77
  def validate_min_age(self) -> None:
85
78
  """Raises if age is below the age of consent"""
86
79
  if self.age_delta:
@@ -0,0 +1,26 @@
1
+ # Generated by Django 5.2.6 on 2025-09-24 04:56
2
+
3
+ import django_revision.revision_field
4
+ from django.db import migrations
5
+
6
+
7
+ class Migration(migrations.Migration):
8
+
9
+ dependencies = [
10
+ ("edc_crf", "0009_alter_crfstatus_device_created_and_more"),
11
+ ]
12
+
13
+ operations = [
14
+ migrations.AlterField(
15
+ model_name="crfstatus",
16
+ name="revision",
17
+ field=django_revision.revision_field.RevisionField(
18
+ blank=True,
19
+ default="",
20
+ editable=False,
21
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
22
+ max_length=75,
23
+ verbose_name="Revision",
24
+ ),
25
+ ),
26
+ ]
@@ -0,0 +1,26 @@
1
+ # Generated by Django 5.2.6 on 2025-09-24 04:56
2
+
3
+ import django_revision.revision_field
4
+ from django.db import migrations
5
+
6
+
7
+ class Migration(migrations.Migration):
8
+
9
+ dependencies = [
10
+ ("edc_dashboard", "0006_alter_edcpermissions_device_created_and_more"),
11
+ ]
12
+
13
+ operations = [
14
+ migrations.AlterField(
15
+ model_name="edcpermissions",
16
+ name="revision",
17
+ field=django_revision.revision_field.RevisionField(
18
+ blank=True,
19
+ default="",
20
+ editable=False,
21
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
22
+ max_length=75,
23
+ verbose_name="Revision",
24
+ ),
25
+ ),
26
+ ]
@@ -0,0 +1,98 @@
1
+ # Generated by Django 5.2.6 on 2025-09-24 04:56
2
+
3
+ import django_revision.revision_field
4
+ from django.db import migrations
5
+
6
+
7
+ class Migration(migrations.Migration):
8
+
9
+ dependencies = [
10
+ ("edc_data_manager", "0041_alter_dataquery_dm_user_and_more"),
11
+ ]
12
+
13
+ operations = [
14
+ migrations.AlterField(
15
+ model_name="datadictionary",
16
+ name="revision",
17
+ field=django_revision.revision_field.RevisionField(
18
+ blank=True,
19
+ default="",
20
+ editable=False,
21
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
22
+ max_length=75,
23
+ verbose_name="Revision",
24
+ ),
25
+ ),
26
+ migrations.AlterField(
27
+ model_name="dataquery",
28
+ name="revision",
29
+ field=django_revision.revision_field.RevisionField(
30
+ blank=True,
31
+ default="",
32
+ editable=False,
33
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
34
+ max_length=75,
35
+ verbose_name="Revision",
36
+ ),
37
+ ),
38
+ migrations.AlterField(
39
+ model_name="edcpermissions",
40
+ name="revision",
41
+ field=django_revision.revision_field.RevisionField(
42
+ blank=True,
43
+ default="",
44
+ editable=False,
45
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
46
+ max_length=75,
47
+ verbose_name="Revision",
48
+ ),
49
+ ),
50
+ migrations.AlterField(
51
+ model_name="historicaldatadictionary",
52
+ name="revision",
53
+ field=django_revision.revision_field.RevisionField(
54
+ blank=True,
55
+ default="",
56
+ editable=False,
57
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
58
+ max_length=75,
59
+ verbose_name="Revision",
60
+ ),
61
+ ),
62
+ migrations.AlterField(
63
+ model_name="historicaldataquery",
64
+ name="revision",
65
+ field=django_revision.revision_field.RevisionField(
66
+ blank=True,
67
+ default="",
68
+ editable=False,
69
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
70
+ max_length=75,
71
+ verbose_name="Revision",
72
+ ),
73
+ ),
74
+ migrations.AlterField(
75
+ model_name="historicalqueryrule",
76
+ name="revision",
77
+ field=django_revision.revision_field.RevisionField(
78
+ blank=True,
79
+ default="",
80
+ editable=False,
81
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
82
+ max_length=75,
83
+ verbose_name="Revision",
84
+ ),
85
+ ),
86
+ migrations.AlterField(
87
+ model_name="queryrule",
88
+ name="revision",
89
+ field=django_revision.revision_field.RevisionField(
90
+ blank=True,
91
+ default="",
92
+ editable=False,
93
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
94
+ max_length=75,
95
+ verbose_name="Revision",
96
+ ),
97
+ ),
98
+ ]
@@ -0,0 +1,170 @@
1
+ # Generated by Django 5.2.6 on 2025-09-24 04:56
2
+
3
+ import django_revision.revision_field
4
+ from django.db import migrations
5
+
6
+
7
+ class Migration(migrations.Migration):
8
+
9
+ dependencies = [
10
+ ("edc_export", "0023_alter_datarequesthistory_archive_filename_and_more"),
11
+ ]
12
+
13
+ operations = [
14
+ migrations.AlterField(
15
+ model_name="datarequest",
16
+ name="revision",
17
+ field=django_revision.revision_field.RevisionField(
18
+ blank=True,
19
+ default="",
20
+ editable=False,
21
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
22
+ max_length=75,
23
+ verbose_name="Revision",
24
+ ),
25
+ ),
26
+ migrations.AlterField(
27
+ model_name="datarequesthistory",
28
+ name="revision",
29
+ field=django_revision.revision_field.RevisionField(
30
+ blank=True,
31
+ default="",
32
+ editable=False,
33
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
34
+ max_length=75,
35
+ verbose_name="Revision",
36
+ ),
37
+ ),
38
+ migrations.AlterField(
39
+ model_name="edcpermissions",
40
+ name="revision",
41
+ field=django_revision.revision_field.RevisionField(
42
+ blank=True,
43
+ default="",
44
+ editable=False,
45
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
46
+ max_length=75,
47
+ verbose_name="Revision",
48
+ ),
49
+ ),
50
+ migrations.AlterField(
51
+ model_name="exportreceipt",
52
+ name="revision",
53
+ field=django_revision.revision_field.RevisionField(
54
+ blank=True,
55
+ default="",
56
+ editable=False,
57
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
58
+ max_length=75,
59
+ verbose_name="Revision",
60
+ ),
61
+ ),
62
+ migrations.AlterField(
63
+ model_name="filehistory",
64
+ name="revision",
65
+ field=django_revision.revision_field.RevisionField(
66
+ blank=True,
67
+ default="",
68
+ editable=False,
69
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
70
+ max_length=75,
71
+ verbose_name="Revision",
72
+ ),
73
+ ),
74
+ migrations.AlterField(
75
+ model_name="historicaldatarequest",
76
+ name="revision",
77
+ field=django_revision.revision_field.RevisionField(
78
+ blank=True,
79
+ default="",
80
+ editable=False,
81
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
82
+ max_length=75,
83
+ verbose_name="Revision",
84
+ ),
85
+ ),
86
+ migrations.AlterField(
87
+ model_name="historicalexportreceipt",
88
+ name="revision",
89
+ field=django_revision.revision_field.RevisionField(
90
+ blank=True,
91
+ default="",
92
+ editable=False,
93
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
94
+ max_length=75,
95
+ verbose_name="Revision",
96
+ ),
97
+ ),
98
+ migrations.AlterField(
99
+ model_name="historicalfilehistory",
100
+ name="revision",
101
+ field=django_revision.revision_field.RevisionField(
102
+ blank=True,
103
+ default="",
104
+ editable=False,
105
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
106
+ max_length=75,
107
+ verbose_name="Revision",
108
+ ),
109
+ ),
110
+ migrations.AlterField(
111
+ model_name="historicalobjecthistory",
112
+ name="revision",
113
+ field=django_revision.revision_field.RevisionField(
114
+ blank=True,
115
+ default="",
116
+ editable=False,
117
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
118
+ max_length=75,
119
+ verbose_name="Revision",
120
+ ),
121
+ ),
122
+ migrations.AlterField(
123
+ model_name="historicalplan",
124
+ name="revision",
125
+ field=django_revision.revision_field.RevisionField(
126
+ blank=True,
127
+ default="",
128
+ editable=False,
129
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
130
+ max_length=75,
131
+ verbose_name="Revision",
132
+ ),
133
+ ),
134
+ migrations.AlterField(
135
+ model_name="objecthistory",
136
+ name="revision",
137
+ field=django_revision.revision_field.RevisionField(
138
+ blank=True,
139
+ default="",
140
+ editable=False,
141
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
142
+ max_length=75,
143
+ verbose_name="Revision",
144
+ ),
145
+ ),
146
+ migrations.AlterField(
147
+ model_name="plan",
148
+ name="revision",
149
+ field=django_revision.revision_field.RevisionField(
150
+ blank=True,
151
+ default="",
152
+ editable=False,
153
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
154
+ max_length=75,
155
+ verbose_name="Revision",
156
+ ),
157
+ ),
158
+ migrations.AlterField(
159
+ model_name="uploadexportreceiptfile",
160
+ name="revision",
161
+ field=django_revision.revision_field.RevisionField(
162
+ blank=True,
163
+ default="",
164
+ editable=False,
165
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
166
+ max_length=75,
167
+ verbose_name="Revision",
168
+ ),
169
+ ),
170
+ ]
@@ -0,0 +1,38 @@
1
+ # Generated by Django 5.2.6 on 2025-09-24 04:56
2
+
3
+ import django_revision.revision_field
4
+ from django.db import migrations
5
+
6
+
7
+ class Migration(migrations.Migration):
8
+
9
+ dependencies = [
10
+ ("edc_facility", "0017_alter_healthfacility_gps_and_more"),
11
+ ]
12
+
13
+ operations = [
14
+ migrations.AlterField(
15
+ model_name="healthfacility",
16
+ name="revision",
17
+ field=django_revision.revision_field.RevisionField(
18
+ blank=True,
19
+ default="",
20
+ editable=False,
21
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
22
+ max_length=75,
23
+ verbose_name="Revision",
24
+ ),
25
+ ),
26
+ migrations.AlterField(
27
+ model_name="historicalhealthfacility",
28
+ name="revision",
29
+ field=django_revision.revision_field.RevisionField(
30
+ blank=True,
31
+ default="",
32
+ editable=False,
33
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
34
+ max_length=75,
35
+ verbose_name="Revision",
36
+ ),
37
+ ),
38
+ ]
@@ -0,0 +1,26 @@
1
+ # Generated by Django 5.2.6 on 2025-09-24 04:56
2
+
3
+ import django_revision.revision_field
4
+ from django.db import migrations
5
+
6
+
7
+ class Migration(migrations.Migration):
8
+
9
+ dependencies = [
10
+ ("edc_form_runners", "0005_alter_issue_device_created_and_more"),
11
+ ]
12
+
13
+ operations = [
14
+ migrations.AlterField(
15
+ model_name="issue",
16
+ name="revision",
17
+ field=django_revision.revision_field.RevisionField(
18
+ blank=True,
19
+ default="",
20
+ editable=False,
21
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
22
+ max_length=75,
23
+ verbose_name="Revision",
24
+ ),
25
+ ),
26
+ ]
@@ -117,8 +117,7 @@ class ApplicableFieldValidator(BaseFormValidator):
117
117
  field_applicable_value = self.get(field_applicable)
118
118
 
119
119
  if field_value in responses and (
120
- field_applicable_value in (NULL_STRING, not_applicable)
121
- or field_applicable_value is None
120
+ field_applicable_value in (None, NULL_STRING, not_applicable)
122
121
  ):
123
122
  self.raise_applicable(field_applicable, msg=msg, applicable_msg=applicable_msg)
124
123
  elif (
edc_glucose/utils.py CHANGED
@@ -16,9 +16,9 @@ def validate_glucose_as_millimoles_per_liter(
16
16
  min_val = Decimal("0.00")
17
17
  max_val = Decimal("30.00")
18
18
  high_value = Decimal(f"{GLUCOSE_HIGH_READING}")
19
- value = cleaned_data.get(f"{prefix}_value")
20
- units = cleaned_data.get(f"{prefix}_units")
21
- if value and units:
19
+ if (value := cleaned_data.get(f"{prefix}_value")) and (
20
+ units := cleaned_data.get(f"{prefix}_units")
21
+ ):
22
22
  try:
23
23
  converted_value = convert_units(
24
24
  label=prefix,
@@ -0,0 +1,26 @@
1
+ # Generated by Django 5.2.6 on 2025-09-24 04:56
2
+
3
+ import django_revision.revision_field
4
+ from django.db import migrations
5
+
6
+
7
+ class Migration(migrations.Migration):
8
+
9
+ dependencies = [
10
+ ("edc_identifier", "0011_alter_identifiermodel_device_created_and_more"),
11
+ ]
12
+
13
+ operations = [
14
+ migrations.AlterField(
15
+ model_name="identifiermodel",
16
+ name="revision",
17
+ field=django_revision.revision_field.RevisionField(
18
+ blank=True,
19
+ default="",
20
+ editable=False,
21
+ help_text="System field. From git repository (tag:branch:commit), project metadata, project toml, project VERSION, or settings.",
22
+ max_length=75,
23
+ verbose_name="Revision",
24
+ ),
25
+ ),
26
+ ]