Glossary

What is FHIR compartment?

A FHIR compartment is a logical grouping of resources related to a compartment owner (typically a Patient, Practitioner, RelatedPerson, Device, or Encounter). It is defined in the FHIR specification per resource type.

In context

The Patient compartment, for example, includes all resources that reference a given Patient: their Observations, MedicationRequests, CarePlans, Encounters, Tasks raised on their behalf, and so on. The compartment is a useful access boundary for 'read your own data'-style rules.

FHIR compartments are defined as inclusion criteria per resource type. A FHIR backend implements those criteria as access rules that narrow reads and searches to the resources belonging to a given compartment owner.

How Fire Arrow handles it

Fire Arrow has compartment-based access rules for the standard FHIR compartment owners (Patient, Practitioner, RelatedPerson, Device). On Fire Arrow Server they implement the full FHIR R4 inclusion criteria. On Fire Arrow Core they cover one inclusion parameter per resource. Multiple compartment rules on the same role and resource type combine additively, so 'see your own data' and 'see your team's data' compose without rewriting either.