FHIR $everything Query

FHIR has the option to query everything associated to an individual patient. This is useful when transmitting batch data or getting the full patient history. 1upHealth supports the $everything FHIR endpoint.

Although the $everything endpoint is in the FHIR standard, many other servers do not support it due to the additional complexity it adds behind the scenes. Many of our customers have requested it and we also believe in it's usefulness. Therefore any app can query $everything via the 1upHealth FHIR API.

To query everything simply hit this endpoint with the patient's id and their bearer access token.

curl -X GET https://api.1up.health/fhir/dstu2/Patient/{patient_id}/$everything \
  -H "Authorization: Bearer accesstokenaccesstoken"

The query works behind the scenes by iterating through all the resources in alphabetical order and providing them in the FHIR bundle response 10 at a time. You can then paginate over the bundle to get additional resources. The total count will also be available in the response so you know how many pages deep to go.