Skip to content

Operation $document

Operation $document allows to generate a fully bundled document from a composition resource. The server takes the composition resource, locates all the referenced resources and either returns a full document bundle or returns an error.

Endpoints

URL: [base]/Composition/$document

URL: [base]/Composition/[id]/$document

Query parameters

Query parameter Type Status Description
id uri supported Identifies the composition to use.
persist boolean supported Whether to store the document at the bundle end-point (/Bundle) or not once it is generated. The location of the bundle is provided in HTTP Location header in the response
graph uri unsupported Canonical reference to a GraphDefinition.

Example

Example - Request

curl --location --request GET 'https://demo.kodjin.com/fhir/Composition/46745318-dbf3-4a2c-b70a-6d4ea85ee7fb/$document?persist=true' \

Try operation $document with our Kodjin FHIR Server Postman Collection