Search Composition

Search Composition using FHIR R4 4.0.1.

Resource category: Composition.

Endpoint

MethodEndpoint
GET/api/fhir/r4/Composition
POST/api/fhir/r4/Composition/_search

Use the R4 base URL from your DDFS instance. Send Authorization: Bearer <access-token> and accept application/fhir+json.

GET uses query parameters. POST search uses the same supported parameters in an application/x-www-form-urlencoded body and requires the same search permission. Follow the server-provided Bundle.link URL with relation next unchanged. See shared search controls.

Parameters

ParameterLocationRequiredTypeDescription
identifierQuery or form bodyNotokenMatches the resource's top-level identifiers (Composition.identifier), using value, system|value, |value (no system), or system|. Supports one unmodified token only: multipleAnd=false and multipleOr=false. Modifiers are not supported. Canonical parameter URI: http://hl7.org/fhir/SearchParameter/clinical-identifier.
_countQuery or form bodyNonumberLimit the number of matches returned per page. See shared search controls for supported values and count-only behavior.
_totalQuery or form bodyNotokenRequest supported total handling; the control name does not imply support for every FHIR total mode.
_idQuery or form bodyNotokenFilter by logical resource ID. Canonical parameter URI: http://hl7.org/fhir/SearchParameter/Resource-id.
_lastUpdatedQuery or form bodyNodateFilter by _lastUpdated using the supported date search semantics. Definition: ddfs-r4-last-updated-date.json.
_profileQuery or form bodyNouriFilter by profile URI. Canonical parameter URI: http://hl7.org/fhir/SearchParameter/Resource-profile.
_tagQuery or form bodyNotokenFilter by a resource metadata tag. Canonical parameter URI: http://hl7.org/fhir/SearchParameter/Resource-tag.
categoryQuery or form bodyNotokenFilter by category using the supported token search semantics. Canonical parameter URI: http://hl7.org/fhir/SearchParameter/Composition-category.
typeQuery or form bodyNotokenFilter by type using the supported token search semantics. Canonical parameter URI: http://hl7.org/fhir/SearchParameter/clinical-type.
statusQuery or form bodyNotokenFilter by status using the supported token search semantics. Canonical parameter URI: http://hl7.org/fhir/SearchParameter/Composition-status.
dateQuery or form bodyNodateFilter by date using the supported date search semantics. Definition: ddfs-r4-date-date.json.
patientQuery or form bodyNoreferenceFilter by patient using the supported reference search semantics. Definition: ddfs-r4-patient-reference-identifier-modifier.json.
_revincludeQuery or form bodyNospecialAllowed values: Provenance:target. Matching Provenance read permission is also required.

Authorization

ContextResource scope
Resource-server definition / issued tokensystem/Composition.s
Client grant / token requestddfssystem/Composition.s

Resource constraints still apply. Use the least privilege needed for this operation; see authentication and scope configuration.

Behavior

Return matching Composition resources in a searchset Bundle. Filters and caller constraints determine which matches can be returned. Do not infer unsupported modifiers, chains, repeated values or result-control modes from the base FHIR specification.

Example Request

Replace the example logical IDs, version IDs and connection values with values for your workflow.

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

Responses

Successful statusMeaning
200A searchset Bundle.

For common error statuses and FHIR-formatted error bodies, see OperationOutcome errors. Authentication/authorization responses follow the shared policy; a protected resource can be concealed as 404. See also interaction responses.