diff --git a/isacc_messaging/api/views.py b/isacc_messaging/api/views.py index 98274b70..48cf2d2d 100644 --- a/isacc_messaging/api/views.py +++ b/isacc_messaging/api/views.py @@ -208,7 +208,7 @@ def update_patient_extensions(dry_run): @click.argument('param_to_update', default='active', help='Parameter to update for the patient') @click.argument('value', default='True', help='Value to set for the parameter') @click.option("--dry-run", is_flag=True, default=False, help="Simulate execution; don't persist to FHIR store") -def update_dict(param_to_update, value): +def update_patient_params(param_to_update, value): """Iterate through all patients, update any the parameter values for all of them""" if value.lower() in ('true', 'false'): value = value.lower() in ('true') # Convert to boolean diff --git a/tests/test_models/patient_70.json b/tests/test_models/patient_70.json new file mode 100644 index 00000000..24c2d7da --- /dev/null +++ b/tests/test_models/patient_70.json @@ -0,0 +1,43 @@ +{ + "resourceType": "Patient", + "id": "69", + "meta": { + "versionId": "39", + "lastUpdated": "2023-10-19T00:53:21.195+00:00", + "source": "#RFawZwTDR1vXuSSq", + "security": [ { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason", + "code": "HTEST" + } ] + }, + "text": { + "status": "generated", + "div": "
Date of birth | 03 February 1960 |