In a standard FHIR server, Patient/$everything and Patient/$summary are scoped to a single Patient resource. Flexpa extends this behavior for linked patients — when you use $PATIENT_ID with either operation, Flexpa automatically follows seealso links and aggregates data from all linked source patients into a single response.
Calling $everything or $summary with a specific Patient ID still returns data scoped to only that Patient.
#The $PATIENT_ID wildcard
$PATIENT_ID is a special wildcard that resolves to all Patient resources accessible under the current access token. For IAL2 Consents with linked patients, this means the IAL2 master and all source patients. For standard OAuth Consents, $PATIENT_ID resolves to the single Patient resource associated with that authorization. See Wildcard Parameters for more details.
#$everything
Aggregates raw FHIR resources from all linked patients into a single searchset Bundle:
- Flexpa resolves
$PATIENT_ID to the IAL2 master Patient
- The master's
seealso links are followed to discover all source Patients
$everything is fetched for each source Patient in parallel
- Results are deduplicated — if the same resource appears from multiple sources, only the first occurrence is kept
- A single searchset Bundle is returned with access control tags preserved on every resource
See Patient/$everything for full operation details.
#$summary
Follows the same aggregation as $everything, then generates an International Patient Summary (IPS) Bundle from the merged data. The IPS is a standardized clinical document containing allergies, medications, conditions, immunizations, and other key clinical data — structured for cross-border and cross-system portability.
See Patient/$summary for full operation details.