clinicedc 2.0.28__py3-none-any.whl → 2.0.30__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 (98) hide show
  1. {clinicedc-2.0.28.dist-info → clinicedc-2.0.30.dist-info}/METADATA +2 -2
  2. {clinicedc-2.0.28.dist-info → clinicedc-2.0.30.dist-info}/RECORD +98 -98
  3. edc_auth/admin/fieldsets.py +11 -15
  4. edc_auth/admin/group_admin.py +2 -5
  5. edc_auth/admin/list_filters.py +8 -7
  6. edc_auth/admin/role_admin.py +7 -10
  7. edc_auth/admin/user_admin.py +2 -2
  8. edc_auth/admin/user_profile_admin.py +3 -7
  9. edc_auth/apps.py +2 -2
  10. edc_auth/auth_updater/group_updater.py +4 -4
  11. edc_auth/auth_updater/role_updater.py +1 -3
  12. edc_auth/backends.py +1 -1
  13. edc_auth/export_users.py +6 -5
  14. edc_auth/fix_export_permissions.py +8 -8
  15. edc_auth/forms.py +21 -24
  16. edc_auth/get_app_codenames.py +2 -2
  17. edc_auth/import_users.py +25 -24
  18. edc_auth/management/commands/export_users.py +1 -1
  19. edc_auth/management/commands/fix_export_permissions.py +1 -1
  20. edc_auth/management/commands/import_users.py +1 -1
  21. edc_auth/management/commands/reset_password.py +2 -2
  22. edc_auth/models/signals.py +1 -1
  23. edc_auth/models/user_profile.py +4 -5
  24. edc_auth/password_setter.py +4 -4
  25. edc_auth/post_migrate_signals.py +2 -2
  26. edc_auth/send_new_credentials_to_user.py +1 -1
  27. edc_auth/system_checks.py +7 -6
  28. edc_auth/utils.py +10 -12
  29. edc_consent/consent_definition.py +4 -1
  30. edc_dashboard/view_mixins/edc_view_mixin.py +1 -1
  31. edc_model_admin/mixins/model_admin_form_instructions_mixin.py +9 -3
  32. edc_model_admin/mixins/model_admin_next_url_redirect_mixin.py +3 -3
  33. edc_model_admin/mixins/model_admin_protect_pii_mixin.py +7 -7
  34. edc_model_admin/mixins/model_admin_redirect_on_delete_mixin.py +6 -8
  35. edc_pharmacy/admin_mixin.py +1 -1
  36. edc_pharmacy/approve_prescription.py +10 -8
  37. edc_pharmacy/auth_objects.py +1 -1
  38. edc_pharmacy/exceptions.py +7 -7
  39. edc_pharmacy/settings.py +1 -1
  40. edc_pharmacy/views/add_to_storage_bin_view.py +22 -24
  41. edc_pharmacy/views/allocate_to_subject_view.py +10 -18
  42. edc_pharmacy/views/celery_task_status_view.py +1 -2
  43. edc_pharmacy/views/confirm_stock_from_instance_view.py +1 -1
  44. edc_pharmacy/views/confirm_stock_from_queryset_view.py +5 -8
  45. edc_pharmacy/views/dispense_view.py +1 -1
  46. edc_pharmacy/views/move_to_storage_bin_view.py +7 -3
  47. edc_pharmacy/views/prepare_and_review_stock_request_view.py +62 -70
  48. edc_pharmacy/views/print_labels_view.py +1 -1
  49. edc_pharmacy/views/transfer_stock_view.py +1 -1
  50. edc_prn/modelform_mixins.py +8 -9
  51. edc_prn/models.py +3 -1
  52. edc_prn/site_prn_forms.py +2 -2
  53. edc_prn/templatetags/edc_prn_extras.py +1 -1
  54. edc_protocol/middleware.py +1 -1
  55. edc_protocol/research_protocol_config.py +7 -5
  56. edc_protocol_incident/admin/protocol_deviation_violation_admin.py +1 -1
  57. edc_protocol_incident/form_validators/mixins.py +9 -6
  58. edc_protocol_incident/modeladmin_mixins.py +1 -1
  59. edc_pylabels/admin/label_configuration_admin.py +1 -1
  60. edc_pylabels/admin/label_specification_admin.py +1 -1
  61. edc_pylabels/auth_objects.py +1 -1
  62. edc_pylabels/site_label_configs.py +2 -2
  63. edc_qareports/admin/qa_report_log_admin.py +5 -5
  64. edc_qareports/admin/qa_report_log_summary_admin.py +1 -1
  65. edc_qareports/forms/note_form.py +2 -3
  66. edc_qareports/modeladmin_mixins/list_filters.py +23 -19
  67. edc_qareports/modeladmin_mixins/note_modeladmin_mixin.py +7 -7
  68. edc_qareports/modeladmin_mixins/on_study_missing_values_modeladmin_mixin.py +8 -8
  69. edc_qareports/modeladmin_mixins/qa_report_modeladmin_mixin.py +3 -7
  70. edc_qareports/sql_generator/crf_case.py +1 -1
  71. edc_qareports/sql_generator/crf_subquery.py +1 -1
  72. edc_qareports/sql_generator/requisition_subquery.py +1 -1
  73. edc_qareports/sql_generator/sql_view_generator.py +1 -1
  74. edc_qareports/sql_generator/subquery_from_dict.py +39 -39
  75. edc_qareports/utils.py +12 -13
  76. edc_randomization/model_mixins.py +1 -1
  77. edc_randomization/system_checks.py +1 -1
  78. edc_refusal/admin.py +4 -2
  79. edc_registration/modeladmin_mixins.py +18 -20
  80. edc_registration/modelform_mixins.py +2 -2
  81. edc_registration/models/signals.py +1 -1
  82. edc_registration/utils.py +1 -1
  83. edc_reportable/age_evaluator.py +4 -4
  84. edc_reportable/data/grading_data/daids_july_2017.py +3 -3
  85. edc_reportable/evaluator.py +15 -15
  86. edc_reportable/exceptions.py +4 -4
  87. edc_reportable/forms/reportables_form_validator_mixin.py +6 -2
  88. edc_reportable/management/commands/export_reportables.py +1 -1
  89. edc_reportable/models/grading_exception.py +1 -6
  90. edc_reportable/models/normal_data.py +3 -3
  91. edc_reportable/models/reference_range_collection.py +1 -6
  92. edc_reportable/utils/get_grade_for_value.py +15 -15
  93. edc_reportable/utils/get_normal_data_or_raise.py +14 -14
  94. edc_reportable/utils/in_normal_bounds_or_raise.py +6 -6
  95. edc_reportable/utils/load_data.py +1 -1
  96. edc_reportable/utils/update_grading_exceptions.py +5 -5
  97. {clinicedc-2.0.28.dist-info → clinicedc-2.0.30.dist-info}/WHEEL +0 -0
  98. {clinicedc-2.0.28.dist-info → clinicedc-2.0.30.dist-info}/licenses/LICENSE +0 -0
@@ -14,12 +14,12 @@ __all__ = ["in_normal_bounds_or_raise"]
14
14
 
15
15
  def in_normal_bounds_or_raise(
16
16
  reference_range_collection: ReferenceRangeCollection = None,
17
- label: str = None,
18
- value: int | float = None,
19
- units: str = None,
20
- gender: str = None,
21
- dob: date = None,
22
- report_datetime: datetime = None,
17
+ label: str | None = None,
18
+ value: int | float | None = None,
19
+ units: str | None = None,
20
+ gender: str | None = None,
21
+ dob: date | None = None,
22
+ report_datetime: datetime | None = None,
23
23
  age_units: str | None = None,
24
24
  create_missing_normal: bool | None = None,
25
25
  ) -> bool:
@@ -18,7 +18,7 @@ if TYPE_CHECKING:
18
18
  from ..models import ReferenceRangeCollection
19
19
 
20
20
 
21
- class AlreadyLoaded(Exception):
21
+ class AlreadyLoaded(Exception): # noqa: N818
22
22
  pass
23
23
 
24
24
 
@@ -21,12 +21,12 @@ def update_grading_exceptions(
21
21
  reference_range_collection=reference_range_collection
22
22
  ).delete()
23
23
  for label, grades in reportable_grades_exceptions.items():
24
- grades = [int(g) for g in grades]
24
+ grades = [int(g) for g in grades] # noqa: PLW2901
25
25
  grading_exception_model_cls().objects.get_or_create(
26
26
  reference_range_collection=reference_range_collection,
27
27
  label=label,
28
- grade1=True if 1 in grades else False,
29
- grade2=True if 2 in grades else False,
30
- grade3=True if 3 in grades else False,
31
- grade4=True if 4 in grades else False,
28
+ grade1=1 in grades,
29
+ grade2=2 in grades, # noqa: PLR2004
30
+ grade3=3 in grades, # noqa: PLR2004
31
+ grade4=4 in grades, # noqa: PLR2004
32
32
  )