Skip to content

Commit

Permalink
Added an inactive patient to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Filienko committed Nov 18, 2023
1 parent c44fb9b commit 2163c42
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
2 changes: 1 addition & 1 deletion isacc_messaging/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
43 changes: 43 additions & 0 deletions tests/test_models/patient_70.json
Original file line number Diff line number Diff line change
@@ -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": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><div class=\"hapiHeaderText\">Dwight <b>SCHRUTE </b></div><table class=\"hapiPropertyTable\"><tbody><tr><td>Date of birth</td><td><span>03 February 1960</span></td></tr></tbody></table></div>"
},
"extension": [ {
"url": "http://isacc.app/time-of-last-unfollowedup-message",
"valueDateTime": "2023-04-28T17:49:52.609906+00:00"
}, {
"url": "http://isacc.app/date-time-of-next-outgoing-message",
"valueDateTime": "1973-10-18T12:53:21Z"
} ],
"identifier": [ {
"system": "https://github.com/uwcirg/cosri-patientsearch/counter",
"value": "23"
} ],
"name": [ {
"family": "Schrute",
"given": [ "Dwight" ]
} ],
"telecom": [ {
"system": "sms",
"value": "3602815483"
} ],
"birthDate": "1960-02-03",
"active": false,
"generalPractitioner": [ {
"reference": "Practitioner/57",
"type": "Practitioner",
"display": "McRainodes, J.R."
} ]
}

0 comments on commit 2163c42

Please sign in to comment.