Hello,
I am trying to implement logic that finds all of the appointments across my health system for a given time range. Because the Appointment resource requires searches to be either by patient, practitioner, or location, I can't do this directly.
So instead, I have queried for ALL the locations in my health system (currently showing 232 of them). Now I am trying to loop through each of those locations to get any appointments in a time range for the location. This seems to be working - mostly. But I am getting one strange error that is messing up the logic of this loop.
In this specific error, I have one location ID returned from my list of 232 Location resources that fails. I try to retrieve appointments from that location as follows:
Authorization: Bearer xxxx
Accept:application/json+fhir
When I perform this search, I get a 500 (Internal Server Error) response. This error does not occur for any of the 231 other location IDs, only this one. The response body for this error shows:
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "fatal",
"code": "exception",
"details": {
"text": "Internal service error from resource store"
}
}
]
}
The response headers show an X-Request-Id value of 7897f1c1-4ac1-491e-a71a-250700e0c6a5+4077
I'd appreciate it if someone at Cerner could provide guidance on this error, and suggestions for a way to avoid it if possible.