We have a use case where we want to determine the current locations of all patients with encounters down to the unit and room level, where those patient encounters have a particular type of ServiceRequest (order) placed on them in a particular status.
In other words, an API query that will generate a list of all patients (and their locations) that have a particular set of criteria in common (active orders have been written that require a blood sample to be collected to be sent to the laboratory, with those orders in a particular status {e.g. Pending})
We already have an existing CCL query/report that can provide all of this patient/encounter/order/location/order status/ data which meets the business need. It is setup to run via ops job every 15 minutes. The problem is that there is a data latency problem as patients may no longer be where they were 15 minutes ao.
I know that we could run this CCL query to retrieve the list of patients (and their identifiers) that need a blood sample collected. With those patient identifiers in hand, we could THEN call the FHIR API to query for ServiceRequests related to laboratory orders on those specific patient identifiers that we would provide as input parameters. However, this approach defeats the purpose of using the FHIR API because we could meet our business need with the data contained in the initial CCL query output.
What we're trying to establish as a proof of concept is whether there is any way to call the Cerner Ignite API to run a query to search for particular types of ServiceRequests (in this case lab orders) without already having to know IN ADVANCE the specific patient identifiers that have those orders placed on them.
Is there any way to do this via the FHIR API to generate a list of all patients that have certain ServiceRequest/Order criteria in common? It is ok if we have to make multiple API calls to achieve the desired outcome. At this stage we're just trying to determine if this is even possible, or not without first answering our own question by running the CCL query/report designed to show us exactly this data.
Thanks!
Dan Brown