The current Google Cloud Platform implementation of $everything only returns FHIR resources that directly reference a Patient ID in the resource. As such, there are 6 resources that are not retrieved with the $everything operation. There is, however, an easy way to download the remaining resources.
Below are the resources and additional API calls needed to retrieve those resources (beyond an initial $everything call); these calls do not require the inclusion of a patient_id:
Resource | Additional API call to retrieve this Resource |
---|---|
Device | https://api.particlehealth.com/R4/Device |
Location | https://api.particlehealth.com/R4/Location |
Medication | https://api.particlehealth.com/R4/Medication |
Organization | https://api.particlehealth.com/R4/Organization |
Practitioner | https://api.particlehealth.com/R4/Practitioner |
PractitionerRole | https://api.particlehealth.com/R4/PractitionerRole |
To avoid downloading the same data twice for future queries, you can also limit the search results for a resource using the _lastupdated
modifier. For example, to retrieve all Device resources created from queries made after 2022-09-18
, you could make the following API call:
<https://api.particlehealth.com/R4/Device?_lastUpdated=ge2022-09-18>
Additional information on performing FHIR searches can be found here.