Issue searching by Encounters (PatientId and Date range)

120 views
Skip to first unread message

Snailin Inoa

unread,
Feb 1, 2023, 8:47:56 PM2/1/23
to Oracle Cerner FHIR Developers

Hello guys

I'm trying to call the Get Encounter API using R4.

Sample URL
{{FHI_API_URL}}/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Encounter?patient=12724066&date=ge2023-02-01T00:00:00.000Z&date=le2023-02-01T23:59:59.000Z

I tried to search for a given date, but I see that the period.start property have dates outside my range... I'm getting date in the past and in the future based on the Date that passed. 

I see that it is really hard to communicate through this group ... can someone let me know how this API is suppose to filter ?? 

I just want the encounter based on the Range Date. nothing else.

thanks

Aaron McGinn (Oracle Cerner)

unread,
Feb 2, 2023, 2:22:09 PM2/2/23
to Oracle Cerner FHIR Developers
Can you provide the X-Request-Id for investigation?

-Aaron (Oracle Cerner)

stephen.s...@gmail.com

unread,
Feb 2, 2023, 2:24:42 PM2/2/23
to Oracle Cerner FHIR Developers
With the encounter date range it is possible that if there is not an end.period on the encounter (which happens) or does not have a start.period (usually not the case but I have seen instances of it) those encounters will also show upas the resource looks to see if the encounter is active in that timeframe. Let me know if that answers your question. 

Snailin Inoa

unread,
Feb 2, 2023, 4:55:41 PM2/2/23
to Oracle Cerner FHIR Developers

Hey Aaron

X-Request-Id :   8ef0339d-9864-4c4c-96e9-27ccbee2f2d2+Xc96_F6JQ

URL : {{FHI_API_URL}}/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Encounter?patient=12724066&date=ge2023-02-01T00:00:00.000Z&date=le2023-02-02T23:59:59.000Z

it is returning data outside the range.

@Stephen , I see elements with period.start , outside the range specified. The same issue is happening with the R4 getAppointments API. Dates filtering are not working as it should.
Reply all
Reply to author
Forward
0 new messages