Composition

The Composition resource represents a signed form document in Open Aidn.

Open Aidn supports selected fields from the base HL7 FHIR R4 Composition resource. A formal Aidn profile may be published later.

Standards and profiles

Endpoints

Method Path Required scope Description
POST /Composition/_search composition.search Search using application/x-www-form-urlencoded body parameters.
GET /Composition/{id} composition.read Read one Composition by form ID.

Search results are returned in a FHIR Bundle with type set to searchset.

Search parameters

Parameter Type Description
patient.Identifier identifier Patient identifier used to filter compositions for one patient.
type token Composition type. Multiple type values can be sent as a comma-separated value.
_include token, repeatable Adds supported referenced resources to the response Bundle.

patient.Identifier and type are required for search.

Supported document types

The type parameter identifies the document type to search for. Supported values may expand over time. Examples include:

Code System Notes
A04-2 volven:9602 Sykepleiesammenfatning.
B01-2 volven:9602 Tverrfaglig behandlingsplan.
445414007 http://snomed.info/sct Clinical Frailty Scale.

Format the type search parameter as <system>|<code>, for example type=urn:oid:2.16.578.1.12.4.1.1.9602|A04-2. Open Aidn supports both urn:oid:2.16.578.1.12.4.1.1.9602 and volven:9602 as identifiers for the Volven document type system. Send multiple document types as a comma-separated value without spaces, for example type=volven:9602|A04-2,volven:9602|B01-2.

Supported includes

_include value Included resource Description
Composition:author Practitioner Adds referenced author resources.
Composition:subject Patient Adds referenced patient resources.
Composition:encounter Encounter Adds referenced encounter resources.

Response fields

Open Aidn may add fields over time. Integrations should expect the following fields to be available:

Field Description
id Composition identifier.
meta.lastUpdated Last update timestamp when available.
type Composition type coding.
status FHIR Composition status, such as final, preliminary, or entered-in-error.
date Clinical time for the composition.
title Document title.
author.reference Reference to the authoring practitioner.
subject.reference Reference to the patient.
encounter.reference Reference to the encounter when available.
section.title Section title for each form field.
section.text.div Text value for each form field when available.
POST /Composition/_search HTTP/1.1
Host: <OPEN_AIDN_FHIR_HOST>
Accept: application/fhir+json
Content-Type: application/x-www-form-urlencoded
Authorization: Bearer <ACCESS_TOKEN>

patient.Identifier=<PATIENT_IDENTIFIER>&type=<SYSTEM>|<CODE>&_include=Composition:author

The response is a FHIR Bundle containing matching Composition resources and any requested included resources.

Back to home