Per the specification, a client can ask a server to generate a fully bundled document from a composition resource. I’ve pulled together a Postman to help demonstrate this feature on the IBM FHIR Server.
- Download the Postman
2. Update the SERVER_HOSTNAME
3. Update the Authorization for your username and password
4. Click Tests > Run
5. Click Run

6. You’ll see the tests run.

7. Click on the Tests of Interest, and then check the curl you are interested, such as:
curl --location --request GET 'https://localhost:9443/fhir-server/api/v4/Composition/17b83b99f91-3c0d6274-0498-4fe4-999e-ba8574f85b09/$document?persist=true' \
--header 'Content-Type: application/fhir+json' \
--header 'Authorization: Basic .....'
Good Luck with Composition/$document.