Composition

Work with FHIR R4 4.0.1 Composition resources.

Choose an operation for this resource:

The diagram summarizes Composition requests and responses. See Supported FHIR REST Interactions for the shared interaction model.


A FHIR client sends requests to the DDFS R4 Composition API. Search returns a Bundle; create, read and update return a resource; vread returns one historical version; delete returns HTTP 204 without a body. Custom operations and FHIR-formatted errors can return OperationOutcome.

FHIR R4 definition: https://hl7.org/fhir/R4/composition.html. See interaction response codes and common error responses.

Interactions and permissions

Composition capabilitySupport or requirement
Conditional createNot supported.
Conditional updateNot supported.
Transaction bundlesNot supported.

Required content and validation

For shared validation-error responses, see OperationOutcome errors.

Composition detailRequirement or behavior
Required contentProvide status (preliminary, final, amended, or entered-in-error), type, date (editing time), at least one author, and title.
Resource ruleRequired primitive values can instead carry a valid extension explaining the absent value.
Token filtersComposition preserves identifiers, references, attestations, relationships, events, nested sections, narratives, and extensions in each resource version.
Token filtersA relationship requires exactly one targetIdentifier or targetReference.
sectionEach section requires text, entries, or subsections (cmp-1); emptyReason is allowed only without entries (cmp-2).
Patient referencesContained section entries with a known subject must agree with the section focus, inherited from the parent section or Composition subject when absent.
Resource ruleRead or versioned-read of an unknown resource returns 404; current reads of deleted resources return 410.
{"resourceType":"Composition","identifier":{"system":"urn:example:composition","value":"synthetic-report"},"status":"final","type":{"coding":[{"system":"http://loinc.org","code":"11502-2"}]},"subject":{"reference":"Patient/p"},"date":"2026-10-22T10:00:00Z","author":[{"reference":"Practitioner/author"}],"title":"Synthetic genetic report"}

Searches

Composition detailRequirement or behavior
Resource ruleCommon searches include _id and _lastUpdated.
Patient referencesResource searches are identifier (the single Composition.identifier), patient (Patient subjects only), type, category, status, and date (Composition editing time).
Date filtersDate does not search event.period or server last-updated time.
Token filtersToken searches accept value, system|value, |value, or system|.
Token filtersA token parameter accepts a single unmodified value, without comma alternatives or repeated occurrences.
Patient referencesPatient supports literal references and the :identifier modifier, without chaining.
Date filtersDate and _lastUpdated accept up to two repeated bounds with eq, ne, gt, lt, ge, le, sa, eb, and ap comparators.
LimitationsComma alternatives are unsupported.
Resource ruleUse the shared result controls for pagination, counts, and totals described in FHIR Search Parameters.
Resource ruleThe _sort parameter is ignored.
GET /api/fhir/r4/Composition?patient=Patient/p&type=http%3A%2F%2Floinc.org%7C11502-2&status=final&date=ge2026-01-01&date=lt2027-01-01

Batch and limitations

Composition detailRequirement or behavior
Resource ruleComposition participates in independent R4 batch entries at POST /api/fhir/r4.
Resource ruleAn invalid entry does not undo other successful entries.
LimitationsConditional create, conditional update, and transactions are unsupported.
LimitationsEncounter/context, author/organization, detailed section searches, new chains, composites, full text, document generation operations, and US Core certification are outside the supported scope.
standaloneA standalone Composition does not itself constitute a FHIR document Bundle.