$document
Generates a Bundle document from Composition resource
Last updated
Was this helpful?
Generates a Bundle document from Composition resource
Last updated
Was this helpful?
Since the 2503 version, Aidbox supports FHIR . $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 .
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:
For example, the following Access Policy will permit the client with id=my-client-id
to access all resources in R4:
Every $document operation consists of several Search requests, that should be permitted by Access Policies. Aidbox takes all the required references (according to the , depending on FHIR version) from the Composition resource and performs Search requests for each found resource type.