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.


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 - Request

curl --location --request GET '$document?persist=true' \

Try operation $document with our Kodjin FHIR Server Postman Collection