Patient $everything | Medplum

On this page

The $everything operation retrieves a complete bundle of all resources associated with a patient in a single API call. This provides a comprehensive view of a patient's clinical record-including encounters, observations, medications, conditions, and related resources-without requiring multiple queries.

This operation is essential for scenarios requiring complete patient data, such as care transitions, patient record requests, and regulatory compliance with data portability requirements.

Use Cases

Invoke the $everything operation

[base]/R4/Patient/<id>/$everything

Parameters

Name Type Description Required
start date Start date for filtering resources by care date No
end date End date for filtering resources by care date No
_since instant Only include resources updated since this time No
_count integer Maximum number of results to return (default: 1000) No
_offset integer Offset for pagination No
_type string[] Restrict output to specific resource types (comma-separated) No

Output

The output of the request is a FHIR bundle with all resources belonging to the patient for whom the request is made. The FHIR Bundle created from this operation is the supported machine readable Electronic Health Information Export (EHI) format for Medplum.

Resources Included

Medplum's patient $everything operation includes:

  1. Patient Compartment Resources - All resources defined in the FHIR R4 Patient Compartment
  2. Referenced Resources - Additional resources referenced by patient compartment resources but outside the compartment itself:
    • Organizations
    • Practitioners
    • PractitionerRoles
    • Locations
    • Medications
    • Devices