A COMPOSITION update that asks for canonical XML is answered in it
composition_write_xml_accept/update_composition-accept_xml
Description
Creates an EHR and an event COMPOSITION in canonical JSON, then updates it with Prefer return=representation and Accept application/xml. The update is answered 200 with Content-Type application/xml, and its document element is a composition carrying the members the ITS-XML schema requires.
document: composition_write_xml_accept
Where it sits
- Chapter
- EHR
- Capability
- COMPOSITIONcomposition
- Option
- composition-xml-read arm composition-xml-supportedOptional (MAY)
Spec citation
XML Format
Proper header `Content-Type: application/xml` MUST be present in the response of the service unless the response has no content body (HTTP status code `204`).
An expectation is refuted by a better reading of the cited text, and by nothing else.
Steps
| Step | Operation | Description |
|---|---|---|
| create-ehr | $sourceDescriptions.ehr.ehr_create_with_id | Create the EHR with the client-supplied ehr_id. |
| commit | $sourceDescriptions.ehr.composition_create | Create the event COMPOSITION in canonical JSON, keep the version_uid of the full representation the create answers with, and derive its versioned_object_uid. |
| update | $sourceDescriptions.ehr.composition_update | Update the COMPOSITION and ask for its full representation in canonical XML. |