Composition

The FHIR R4 Composition resource represents a set of healthcare-related documents or a summary of a patient's clinical history. It is used to structure documents such as discharge summaries, progress notes, or other collections of related information.

Health Gorilla exposes Composition as part of its FHIR R4 API to support access to structured clinical documents and document-style summaries.

Use Cases

  • Retrieving structured clinical documents associated with an encounter or hospital stay
  • Reviewing discharge summaries or continuity-of-care documents as part of longitudinal patient records
  • Filtering compositions by patient, type, author, encounter, or status
  • Supporting document viewing and care transition workflows

Scope and Behavior

This documentation describes the FHIR R4 API interface for Composition. Health Gorilla’s platform may use additional internal services and data standards to acquire, normalize, and route clinical information. Only the FHIR R4–exposed behavior is documented here.

Health Gorilla supports a subset of the HL7 FHIR R4 Composition resource. Not all optional elements defined in the HL7 specification may be stored, indexed, or returned. Unsupported or unrecognized elements may be ignored or normalized during processing.

In Health Gorilla, Composition is most commonly accessed as part of patient record retrieval workflows, where document-style summaries may be aggregated from connected clinical sources and normalized for longitudinal review. This resource supports document viewing, care transitions, and clinical summary use cases by exposing structured document metadata and sections alongside other patient clinical data.

Authentication

All requests to the FHIR R4 API require OAuth 2.0 authentication using a bearer token. Unauthorized requests return a 401 Unauthorized response.

Required Scopes

  • composition.read for GET
  • composition.write for POST, PUT, DELETE

For more information, go to: OAuth 2.0 Authentication.

Search Behavior

  • Searches are scoped to the authenticated tenant.
  • The patient parameter is required for patient-scoped searches and is recommended for most search use cases.
  • Results are returned as a FHIR Bundle.
  • Pagination may be applied. Use standard FHIR pagination links (Bundle.link) to retrieve additional result pages.

Note: The parameters listed below are not exhaustive and reflect commonly used fields in typical Health Gorilla workflows. Supported parameters and behavior may vary by configuration.

Frequently Used Search Parameters

ParameterDescriptionExample ValuesFHIR Data Type
patientFilters by patientPatient/{id}Reference
encounterFilters by associated encounterEncounter/{id}Reference
typeFilters by document typeLOINC codestoken
statusFilters by composition statuspreliminary, final, amendedtoken
authorFilters by authorPractitioner/{id}, Organization/{id}Reference

Commonly Returned Resource Attributes

AttributeDescriptionExample ValuesFHIR Data Type
subjectPatient the composition applies toPatient/{id}Reference(Patient)
encounterEncounter associated with the documentEncounter/{id}Reference(Encounter)
statusWorkflow status of the documentpreliminary, final, amendedcode
typeKind of clinical document (commonly LOINC-coded)18842-5 (Discharge Summary)CodeableConcept
categoryClassification of the documentsummary, reportCodeableConcept[]
dateWhen the document was authoredYYYY-MM-DDThh:mm:ssZdateTime
authorWho authored the compositionPractitioner/{id}, Organization/{id}Reference[]
titleHuman-readable titleFree textstring
attesterAttestation details for the documentPractitioner referenceBackboneElement[]
sectionDocument sections containing titles, codes, and referenced entriesSection titles + referenced entriesBackboneElement[]

Notifications

The FHIR R4 API does not provide direct resource-change subscriptions for Composition. Changes to composition information may surface through broader notification workflows, depending on enabled Health Gorilla products and configuration.

Error Handling

All Composition operations use standard Health Gorilla error handling practices using the FHIR OperationOutcome structure. For more information, go to: Error Handling.

Additional Resources

FHIR R4: Composition