pre-approval: not yet approved by the openEHR SEC · Trial mode: runs, results and verdicts are complete, and no certificate is issued.

Veredictum

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
It runs only when a statement selects one of these arms.

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

StepOperationDescription
create-ehr$sourceDescriptions.ehr.ehr_create_with_idCreate the EHR with the client-supplied ehr_id.
commit$sourceDescriptions.ehr.composition_createCreate 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_updateUpdate the COMPOSITION and ask for its full representation in canonical XML.