$document
Generates a Bundle document from Composition resource
Since the 2503 version, Aidbox supports FHIR $document operation. $document is used to generate a Bundle document from existing Composition resource. It includes the Composition resource itself and some resources referenced in the Composition according to the FHIR specification.
$document operation uses several Search requests under the hood. These requests should be allowed by Access Policies. See Setting up Access Policies for $document operation
Example request
Example response
Saving Bundle after $document operation
When persist
parameter is provided, the generated bundle is saved in the database. The request
will return the Bundle containing id
of the saved Bundle. The following request can retrieve it:
Setting up Access Policies for $document operation
Every $document operation consists of several Search requests, that should be permitted by Access Policies. Aidbox takes all the required references (according to the FHIR specification, depending on FHIR version) from the Composition resource and performs Search requests for each found resource type.
For example, the following Access Policy will permit the client with id=my-client-id
to access all resources in R4:
Last updated
Was this helpful?