A COMPOSITION sent as canonical XML is created and reads back as sent
composition_xml/create_composition-xml
Description
Creates an EHR, then creates an event COMPOSITION sent as canonical XML and asks for the full representation as JSON, and retrieves the version its uid names as JSON. The version holds the COMPOSITION sent: its archetype_node_id, template_id, setting code and EVALUATION quantity.
document: composition_xml
Where it sits
- Chapter
- EHR
- Capability
- COMPOSITIONcomposition
- Option
- composition-xml-write arm composition-xml-write-acceptedOptional (MAY)
Spec citation
description
Creates the first version of a new COMPOSITION in the EHR identified by `ehr_id`.
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 COMPOSITION from canonical XML and keep the version_uid of the full representation it answers with. |
| read | $sourceDescriptions.ehr.composition_get | Retrieve the committed version as JSON. |