Getting back empty FHIR bundle for Encounter even though Encounter exists

83 views
Skip to first unread message

Diane Nguyen

unread,
Oct 6, 2022, 12:24:49 PM10/6/22
to Oracle Cerner FHIR Developers
Hi all,

I did a search for an Encounter and got back an empty FHIR bundle:

{"resourceType":"Bundle","id":"012d1bd4-c467-4c27-9dbd-3f2940d1efa2","type":"searchset","total":0,"link":[{"relation":"self","url":"https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Encounter?patient=12807542&date=ge2022-10-06T13%3A16%3A54.981Z&date=le2022-10-06T15%3A20%3A20.498Z"}]}

However, when I do an HTTP GET on the URL that's referenced in the bundle, it returns the Encounter resource:

{'resourceType': 'Bundle', 'id': '6251ec45-cfd0-4718-9a8d-95400a7fb49e', 'type': 'searchset', 'total': 1, 'link': [{'relation': 'self', 'url': 'https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Encounter?patient=12807542&date=ge2022-10-06T13%3A16%3A54.981Z&date=le2022-10-06T15%3A20%3A20.498Z'}], 'entry': [{'fullUrl': 'https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Encounter/97987061', 'resource': {'resourceType': 'Encounter', 'id': '97987061', 'meta': {'versionId': '0', 'lastUpdated': '2022-10-06T15:01:36.000Z'}, 'text': {'status': 'generated', 'div': '<div xmlns="http://www.w3.org/1999/xhtml"><p><b>Encounter</b></p><p><b>Patient</b>: May, Anna</p><p><b>Location</b>: .interface</p><p><b>Type</b>: Outpatient</p><p><b>Class</b>: Outpatient</p><p><b>Status</b>: Finished</p><p><b>Period Start Date</b>: Oct  6, 2022  2:00 P.M. UTC</p><p><b>Period End Date</b>: Oct  6, 2022  2:30 P.M. UTC</p><p><b>Attending Physician</b>: Anderson1, Corey</p><p><b>Service Provider</b>: .interface</p></div>'}, 'identifier': [{'use': 'usual', 'type': {'coding': [{'system': 'https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/319', 'code': '1077', 'display': 'FIN NBR', 'userSelected': True}, {'system': 'http://terminology.hl7.org/CodeSystem/v2-0203', 'code': 'AN', 'display': 'Account number', 'userSelected': False}], 'text': 'FIN NBR'}, 'system': 'urn:oid:5.5.5.5.5.5.', 'value': '40112', 'period': {'start': '2022-10-06T14:00:54.000Z'}}], 'status': 'finished', 'class': {'system': 'http://terminology.hl7.org/CodeSystem/v2-0004', 'code': 'O', 'display': 'Outpatient', 'userSelected': False}, 'type': [{'coding': [{'system': 'https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/71', 'code': '309309', 'display': 'Outpatient', 'userSelected': True}, {'system': 'http://terminology.hl7.org/CodeSystem/v2-0004', 'code': 'O', 'display': 'Outpatient', 'userSelected': False}], 'text': 'Outpatient'}], 'subject': {'reference': 'Patient/12807542', 'display': 'May, Anna'}, 'participant': [{'type': [{'coding': [{'system': 'https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/333', 'code': '1119', 'display': 'Attending Physician', 'userSelected': True}, {'system': 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType', 'code': 'ATND', 'display': 'attender', 'userSelected': False}], 'text': 'Attending Physician'}], 'individual': {'reference': 'Practitioner/12800408', 'display': 'Anderson1, Corey'}}], 'period': {'start': '2022-10-06T14:00:54.000Z', 'end': '2022-10-06T14:30:20.000Z'}, 'location': [{'location': {'reference': 'Location/2553640691', 'display': '.interface'}, 'status': 'completed'}], 'serviceProvider': {'reference': 'Organization/3170032', 'display': '.interface'}}, 'search': {'mode': 'match'}}]}

Is this the expected behavior in the Sandbox?
Reply all
Reply to author
Forward
0 new messages