Hi Giovanni,
do you use the master branch? Could you please try the latest develop branch and check if the error still occurs?
Cheers,
Birger
@surfer am pretty sure Ethercis does export in âRAWâ JSON - just use format=RAW as a parameter and change Content-type to application/json.
I canât test so apols if I got that wrong
I can confirm what Ian mentioned about generating RAW compositions from Ethercis. However I have not yet tried to commit it to EHRBase.
regards
1 Like
surfer
(giovanni delussu)
26 February 2020 07:39
24
This is what I get in Ethercis if I put âformatâ:âRAWâ in parameters, regardless of the Content-type chosen:
htp://127.0.0.1:8080/rest/v1/composition/d5745655-f131-4856-a72d-6537d5c005a9::ethercis.crs4::1?format=RAW
500
Error 500 #1.0.0 Invocation exception to method:retrieve:java.lang.IllegalArgumentException: Invalid element detected in map
HTTP ERROR 500
Problem accessing /rest/v1/composition/d5745655-f131-4856-a72d-6537d5c005a9::ethercis.crs4::1. Reason:
#1.0.0 Invocation exception to method:retrieve:java.lang.IllegalArgumentException: Invalid element detected in map Powered by Jetty:// 9.4.z-SNAPSHOT
The same composition with âformatâ:âECISFLATâ:
htp://127.0.0.1:8080/rest/v1/composition/d5745655-f131-4856-a72d-6537d5c005a9::ethercis.crs4::1?format=ECISFLAT
200
{
âcompositionâ : {
â/composer|nameâ : âPhysicianâ,
â/content[openEHR-EHR-ACTION.procedure-sus.v1]/description[at0001]/items[at0002]|valueâ : âSUS::0408060140|FASCIECTOMIA|â,
â/content[openEHR-EHR-ACTION.procedure-sus.v1]/ism_transition/careflow_step|valueâ : âlocal::at0043|Completed|â,
â/content[openEHR-EHR-ACTION.procedure-sus.v1]/ism_transition/current_state|valueâ : âopenehr::532|completed|â,
â/content[openEHR-EHR-ACTION.procedure-sus.v1]/time|valueâ : â2018-12-11T11:20:07,230â,
â/content[openEHR-EHR-ADMIN_ENTRY.admission.v1]/data[at0001]/items[at0013]|valueâ : âlocal::at0020|Eletiva|â,
â/content[openEHR-EHR-ADMIN_ENTRY.admission.v1]/data[at0001]/items[at0041]|valueâ : âCirĂșrgicoâ,
â/content[openEHR-EHR-ADMIN_ENTRY.admission.v1]/data[at0001]/items[at0071]|valueâ : â2010-09-01T00:00:00-03:00â,
â/content[openEHR-EHR-ADMIN_ENTRY.admission.v1]/data[at0001]/items[at0073]/items[at0084]/items[at0087]|valueâ : âIBGE::MT|MATO GROSSO|â,
â/content[openEHR-EHR-ADMIN_ENTRY.admission.v1]/data[at0001]/items[at0073]/items[at0104]/items[at0106]|valueâ : âCGC_HOSP::029f40596e8f365e39a10337202fcde4|4dc5277c8fb69ad41181cad1844491e6d2eb7999ae9f638a|â,
â/content[openEHR-EHR-ADMIN_ENTRY.hospitalization_authorization.v1]/data[at0001]/items[at0016]|valueâ : â0â,
â/content[openEHR-EHR-ADMIN_ENTRY.hospitalization_authorization.v1]/data[at0001]/items[at0061]|valueâ : â2010-09-01T00:00:00-03:00â,
â/content[openEHR-EHR-ADMIN_ENTRY.patient_discharge.v1]/data[at0001]/items[at0002]|valueâ : â2010-09-01T00:00:00-03:00â,
â/content[openEHR-EHR-ADMIN_ENTRY.patient_discharge.v1]/data[at0001]/items[at0047]|valueâ : âMOTSAIPE::12|Alta - melhorado|â,
â/content[openEHR-EHR-ADMIN_ENTRY.patient_discharge.v1]/data[at0001]/items[at0048]|valueâ : âfalseâ,
â/content[openEHR-EHR-EVALUATION.problem_diagnosis-sus.v1]/data[at0001]/items[at0002.1]|valueâ : âCID10::M720|M72.0 Fibromatose de fascia palmar|â,
â/context/settingâ : âopenehr::232|secondary medical care|â,
â/context/start_timeâ : â2018-12-11T11:20:07.227+01:00â,
â/languageâ : âenâ,
â/territoryâ : âBRâ
},
âmetaâ : {
âhrefâ : ârest/v1/composition?uid=d5745655-f131-4856-a72d-6537d5c005a9::ethercis.crs4::1â
},
âformatâ : âECISFLATâ,
âtemplateIdâ : âhospitalization_oceanâ
@Dileep_V_S how did you do it?
Can you upload the .opt as well @surfer ? I will try and test it later today.
I would suggest you use the xml for now - I played with Better and ehrBase CDRs last night and got xml moving between the two with only as minor tweak to add the openehr schema to the namespace. THe raw json formats were somewhat different, which is not a surprise as this is still very early in adoption/ conformance testing.
surfer
(giovanni delussu)
26 February 2020 10:10
26
Thanks Ian,
Here they are (composition and template):
composition.xml
<?xml version="1.0" encoding="US-ASCII"?>
<v1:composition xmlns:v1="http://schemas.openehr.org/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" archetype_node_id="openEHR-EHR-COMPOSITION.hospitalisation.v1"><v1:name><v1:value>Hospitalisation</v1:value></v1:name><v1:uid xsi:type="v1:HIER_OBJECT_ID"><v1:value>1.2.1.10157491015210.19750101575710.29910249484850.49565250514851.515410098575099</v1:value></v1:uid><v1:archetype_details><v1:archetype_id><v1:value>openEHR-EHR-COMPOSITION.hospitalisation.v1</v1:value></v1:archetype_id><v1:template_id><v1:value>hospitalization_ocean</v1:value></v1:template_id><v1:rm_version>1.0.2</v1:rm_version></v1:archetype_details><v1:language><v1:terminology_id><v1:value>ISO_639-1</v1:value></v1:terminology_id><v1:code_string>en</v1:code_string></v1:language><v1:territory><v1:terminology_id><v1:value>ISO_3166-1</v1:value></v1:terminology_id><v1:code_string>BR</v1:code_string></v1:territory><v1:category><v1:value>event</v1:value><v1:defining_code><v1:terminology_id><v1:value>openehr</v1:value></v1:terminology_id><v1:code_string>433</v1:code_string></v1:defining_code></v1:category><v1:composer xsi:type="v1:PARTY_IDENTIFIED"><v1:name>Physician</v1:name></v1:composer><v1:context><v1:start_time><v1:value>2018-12-11T11:20:07,227</v1:value></v1:start_time><v1:setting><v1:value>secondary medical</v1:value><v1:defining_code><v1:terminology_id><v1:value>openehr</v1:value></v1:terminology_id><v1:code_string>232</v1:code_string></v1:defining_code></v1:setting></v1:context><v1:content archetype_node_id="openEHR-EHR-ADMIN_ENTRY.patient_discharge.v1" xsi:type="v1:ADMIN_ENTRY"><v1:name><v1:value>Patient discharge</v1:value></v1:name><v1:archetype_details><v1:archetype_id><v1:value>openEHR-EHR-ADMIN_ENTRY.patient_discharge.v1</v1:value></v1:archetype_id><v1:template_id><v1:value>hospitalization_ocean</v1:value></v1:template_id><v1:rm_version>1.0.2</v1:rm_version></v1:archetype_details><v1:language><v1:terminology_id><v1:value>ISO_639-1</v1:value></v1:terminology_id><v1:code_string>en</v1:code_string></v1:language><v1:encoding><v1:terminology_id><v1:value>IANA_character-sets</v1:value></v1:terminology_id><v1:code_string>UTF-8</v1:code_string></v1:encoding><v1:subject xsi:type="v1:PARTY_SELF">
</v1:subject><v1:data archetype_node_id="at0001" xsi:type="v1:ITEM_TREE"><v1:name><v1:value>Components</v1:value></v1:name><v1:items archetype_node_id="at0002" xsi:type="v1:ELEMENT"><v1:name><v1:value>date of discharge</v1:value></v1:name><v1:value xsi:type="v1:DV_DATE_TIME"><v1:value>2010-09-01T00:00:00-03:00</v1:value></v1:value></v1:items><v1:items archetype_node_id="at0046" xsi:type="v1:ELEMENT"><v1:name><v1:value>hospital infection</v1:value></v1:name><v1:null_flavour><v1:value>unknown</v1:value><v1:defining_code><v1:terminology_id><v1:value>openehr</v1:value></v1:terminology_id><v1:code_string>253</v1:code_string></v1:defining_code></v1:null_flavour></v1:items><v1:items archetype_node_id="at0047" xsi:type="v1:ELEMENT"><v1:name><v1:value>claim reason</v1:value></v1:name><v1:value xsi:type="v1:DV_CODED_TEXT"><v1:value>Alta - melhorado</v1:value><v1:defining_code><v1:terminology_id><v1:value>MOTSAIPE</v1:value></v1:terminology_id><v1:code_string>12</v1:code_string></v1:defining_code></v1:value></v1:items><v1:items archetype_node_id="at0048" xsi:type="v1:ELEMENT"><v1:name><v1:value>death indicator</v1:value></v1:name><v1:value xsi:type="v1:DV_BOOLEAN"><v1:value>false</v1:value></v1:value></v1:items></v1:data></v1:content><v1:content archetype_node_id="openEHR-EHR-ADMIN_ENTRY.hospitalization_authorization.v1" xsi:type="v1:ADMIN_ENTRY"><v1:name><v1:value>Autorizacao de internacao hospitalar</v1:value></v1:name><v1:archetype_details><v1:archetype_id><v1:value>openEHR-EHR-ADMIN_ENTRY.hospitalization_authorization.v1</v1:value></v1:archetype_id><v1:template_id><v1:value>hospitalization_ocean</v1:value></v1:template_id><v1:rm_version>1.0.2</v1:rm_version></v1:archetype_details><v1:language><v1:terminology_id><v1:value>ISO_639-1</v1:value></v1:terminology_id><v1:code_string>en</v1:code_string></v1:language><v1:encoding><v1:terminology_id><v1:value>IANA_character-sets</v1:value></v1:terminology_id><v1:code_string>UTF-8</v1:code_string></v1:encoding><v1:subject xsi:type="v1:PARTY_SELF">
</v1:subject><v1:data archetype_node_id="at0001" xsi:type="v1:ITEM_TREE"><v1:name><v1:value>Components</v1:value></v1:name><v1:items archetype_node_id="at0061" xsi:type="v1:ELEMENT"><v1:name><v1:value>Issue date</v1:value></v1:name><v1:value xsi:type="v1:DV_DATE_TIME"><v1:value>2010-09-01T00:00:00-03:00</v1:value></v1:value></v1:items><v1:items archetype_node_id="at0016" xsi:type="v1:ELEMENT"><v1:name><v1:value>ICU - Total</v1:value></v1:name><v1:value xsi:type="v1:DV_COUNT"><v1:accuracy>0.0</v1:accuracy><v1:magnitude>0</v1:magnitude></v1:value></v1:items></v1:data></v1:content><v1:content archetype_node_id="openEHR-EHR-ADMIN_ENTRY.admission.v1" xsi:type="v1:ADMIN_ENTRY"><v1:name><v1:value>Patient admission</v1:value></v1:name><v1:archetype_details><v1:archetype_id><v1:value>openEHR-EHR-ADMIN_ENTRY.admission.v1</v1:value></v1:archetype_id><v1:template_id><v1:value>hospitalization_ocean</v1:value></v1:template_id><v1:rm_version>1.0.2</v1:rm_version></v1:archetype_details><v1:language><v1:terminology_id><v1:value>ISO_639-1</v1:value></v1:terminology_id><v1:code_string>en</v1:code_string></v1:language><v1:encoding><v1:terminology_id><v1:value>IANA_character-sets</v1:value></v1:terminology_id><v1:code_string>UTF-8</v1:code_string></v1:encoding><v1:subject xsi:type="v1:PARTY_SELF">
</v1:subject><v1:data archetype_node_id="at0001" xsi:type="v1:ITEM_TREE"><v1:name><v1:value>Tree</v1:value></v1:name><v1:items archetype_node_id="at0002" xsi:type="v1:ELEMENT"><v1:name><v1:value>Patient class</v1:value></v1:name><v1:null_flavour><v1:value>unknown</v1:value><v1:defining_code><v1:terminology_id><v1:value>openehr</v1:value></v1:terminology_id><v1:code_string>253</v1:code_string></v1:defining_code></v1:null_flavour></v1:items><v1:items archetype_node_id="at0073" xsi:type="v1:CLUSTER"><v1:name><v1:value>Assigned patient location</v1:value></v1:name><v1:items archetype_node_id="at0104" xsi:type="v1:CLUSTER"><v1:name><v1:value>Facility</v1:value></v1:name><v1:items archetype_node_id="at0106" xsi:type="v1:ELEMENT"><v1:name><v1:value>Universal ID</v1:value></v1:name><v1:value xsi:type="v1:DV_CODED_TEXT"><v1:value>4dc5277c8fb69ad41181cad1844491e6d2eb7999ae9f638a</v1:value><v1:defining_code><v1:terminology_id><v1:value>CGC_HOSP</v1:value></v1:terminology_id><v1:code_string>029f40596e8f365e39a10337202fcde4</v1:code_string></v1:defining_code></v1:value></v1:items></v1:items><v1:items archetype_node_id="at0084" xsi:type="v1:CLUSTER"><v1:name><v1:value>Address</v1:value></v1:name><v1:items archetype_node_id="at0087" xsi:type="v1:ELEMENT"><v1:name><v1:value>State/province</v1:value></v1:name><v1:value xsi:type="v1:DV_CODED_TEXT"><v1:value>MATO GROSSO</v1:value><v1:defining_code><v1:terminology_id><v1:value>IBGE</v1:value></v1:terminology_id><v1:code_string>MT</v1:code_string></v1:defining_code></v1:value></v1:items></v1:items></v1:items><v1:items archetype_node_id="at0013" xsi:type="v1:ELEMENT"><v1:name><v1:value>Admission type</v1:value></v1:name><v1:value xsi:type="v1:DV_CODED_TEXT"><v1:value>Eletiva</v1:value><v1:defining_code><v1:terminology_id><v1:value>local</v1:value></v1:terminology_id><v1:code_string>at0020</v1:code_string></v1:defining_code></v1:value></v1:items><v1:items archetype_node_id="at0041" xsi:type="v1:ELEMENT"><v1:name><v1:value>Hospital service</v1:value></v1:name><v1:value xsi:type="v1:DV_TEXT"><v1:value>Cirúrgico</v1:value></v1:value></v1:items><v1:items archetype_node_id="at0071" xsi:type="v1:ELEMENT"><v1:name><v1:value>Admit date/time</v1:value></v1:name><v1:value xsi:type="v1:DV_DATE_TIME"><v1:value>2010-09-01T00:00:00-03:00</v1:value></v1:value></v1:items></v1:data></v1:content><v1:content archetype_node_id="openEHR-EHR-EVALUATION.problem_diagnosis-sus.v1" xsi:type="v1:EVALUATION"><v1:name><v1:value>Problem/Diagnosis</v1:value></v1:name><v1:archetype_details><v1:archetype_id><v1:value>openEHR-EHR-EVALUATION.problem_diagnosis-sus.v1</v1:value></v1:archetype_id><v1:template_id><v1:value>hospitalization_ocean</v1:value></v1:template_id><v1:rm_version>1.0.2</v1:rm_version></v1:archetype_details><v1:language><v1:terminology_id><v1:value>ISO_639-1</v1:value></v1:terminology_id><v1:code_string>en</v1:code_string></v1:language><v1:encoding><v1:terminology_id><v1:value>IANA_character-sets</v1:value></v1:terminology_id><v1:code_string>UTF-8</v1:code_string></v1:encoding><v1:subject xsi:type="v1:PARTY_SELF">
</v1:subject><v1:data archetype_node_id="at0001" xsi:type="v1:ITEM_TREE"><v1:name><v1:value>structure</v1:value></v1:name><v1:items archetype_node_id="at0002.1" xsi:type="v1:ELEMENT"><v1:name><v1:value>Problem</v1:value></v1:name><v1:value xsi:type="v1:DV_CODED_TEXT"><v1:value>M72.0 Fibromatose de fascia palmar</v1:value><v1:defining_code><v1:terminology_id><v1:value>CID10</v1:value></v1:terminology_id><v1:code_string>M720</v1:code_string></v1:defining_code></v1:value></v1:items><v1:items archetype_node_id="at0.1" xsi:type="v1:ELEMENT"><v1:name><v1:value>Secondary Diagnosis</v1:value></v1:name><v1:null_flavour><v1:value>unknown</v1:value><v1:defining_code><v1:terminology_id><v1:value>openehr</v1:value></v1:terminology_id><v1:code_string>253</v1:code_string></v1:defining_code></v1:null_flavour></v1:items></v1:data></v1:content><v1:content archetype_node_id="openEHR-EHR-ACTION.procedure-sus.v1" xsi:type="v1:ACTION"><v1:name><v1:value>Procedure undertaken</v1:value></v1:name><v1:archetype_details><v1:archetype_id><v1:value>openEHR-EHR-ACTION.procedure-sus.v1</v1:value></v1:archetype_id><v1:template_id><v1:value>hospitalization_ocean</v1:value></v1:template_id><v1:rm_version>1.0.2</v1:rm_version></v1:archetype_details><v1:language><v1:terminology_id><v1:value>ISO_639-1</v1:value></v1:terminology_id><v1:code_string>en</v1:code_string></v1:language><v1:encoding><v1:terminology_id><v1:value>IANA_character-sets</v1:value></v1:terminology_id><v1:code_string>UTF-8</v1:code_string></v1:encoding><v1:subject xsi:type="v1:PARTY_SELF">
</v1:subject><v1:time><v1:value>2018-12-11T11:20:07,230</v1:value></v1:time><v1:description archetype_node_id="at0001" xsi:type="v1:ITEM_TREE"><v1:name><v1:value>Procedure list</v1:value></v1:name><v1:items archetype_node_id="at0002" xsi:type="v1:ELEMENT"><v1:name><v1:value>Procedure</v1:value></v1:name><v1:value xsi:type="v1:DV_CODED_TEXT"><v1:value>FASCIECTOMIA</v1:value><v1:defining_code><v1:terminology_id><v1:value>SUS</v1:value></v1:terminology_id><v1:code_string>0408060140</v1:code_string></v1:defining_code></v1:value></v1:items></v1:description><v1:ism_transition><v1:current_state><v1:value>completed</v1:value><v1:defining_code><v1:terminology_id><v1:value>openehr</v1:value></v1:terminology_id><v1:code_string>532</v1:code_string></v1:defining_code></v1:current_state><v1:careflow_step><v1:value>Completed</v1:value><v1:defining_code><v1:terminology_id><v1:value>local</v1:value></v1:terminology_id><v1:code_string>at0043</v1:code_string></v1:defining_code></v1:careflow_step></v1:ism_transition></v1:content></v1:composition>
template.opt
<?xml version="1.0" encoding="utf-8"?>
<!--Operational template XML automatically generated by Ocean Template Designer Version 2.8.94Beta-->
<template xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.openehr.org/v1"><language><terminology_id><value>ISO_639-1</value></terminology_id><code_string>it</code_string></language><description><original_author id="Original Author">Not Specified</original_author><lifecycle_state>Initial</lifecycle_state><other_details id="MetaDataSet:Sample Set ">Template metadata sample set </other_details><other_details id="Acknowledgements"/><other_details id="Business Process Level"/><other_details id="Care setting"/><other_details id="Client group"/><other_details id="Clinical Record Element"/><other_details id="Copyright"/><other_details id="Issues"/><other_details id="Owner"/><other_details id="Sign off"/><other_details id="Speciality"/><other_details id="User roles"/><details><language><terminology_id><value>ISO_639-1</value></terminology_id><code_string>it</code_string></language><purpose>Not Specified</purpose></details></description><uid><value>02e9b88a-2af7-4fc0-9724-8cd71434188b</value></uid><template_id><value>hospitalization_ocean</value></template_id><concept>hospitalization</concept><definition><rm_type_name>COMPOSITION</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0000</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>category</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>openehr</value></terminology_id><code_list>433</code_list></children></attributes></children></attributes><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>context</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>EVENT_CONTEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>other_context</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ITEM_TREE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0001</node_id></children></attributes></children></attributes><attributes xsi:type="C_MULTIPLE_ATTRIBUTE"><rm_attribute_name>content</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_ARCHETYPE_ROOT"><rm_type_name>ADMIN_ENTRY</rm_type_name><occurrences><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>0</lower></occurrences><node_id>at0000</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>data</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ITEM_TREE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0001</node_id><attributes xsi:type="C_MULTIPLE_ATTRIBUTE"><rm_attribute_name>items</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0002</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_DATE_TIME</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0003</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="CONSTRAINT_REF"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><reference>ac0002</reference></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0046</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_BOOLEAN</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_PRIMITIVE_OBJECT"><rm_type_name>BOOLEAN</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><item xsi:type="C_BOOLEAN"><true_valid>true</true_valid><false_valid>true</false_valid></item></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0047</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="CONSTRAINT_REF"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><reference>ac0001</reference></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0048</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_BOOLEAN</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_PRIMITIVE_OBJECT"><rm_type_name>BOOLEAN</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><item xsi:type="C_BOOLEAN"><true_valid>true</true_valid><false_valid>true</false_valid></item></children></attributes></children></attributes></children><cardinality><is_ordered>false</is_ordered><is_unique>false</is_unique><interval><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>0</lower></interval></cardinality></attributes></children></attributes><archetype_id><value>openEHR-EHR-ADMIN_ENTRY.patient_discharge.v1</value></archetype_id><term_definitions code="at0000"><items id="description">ArquĂ©tipo elaborado para registrar os dados de alta do SIH-SUS que nĂŁo constavam do CKM</items><items id="text">Alta do paciente</items></term_definitions><term_definitions code="at0001"><items id="description">Componentes</items><items id="text">Componentes</items></term_definitions><term_definitions code="at0002"><items id="description">Data de alta</items><items id="text">data de alta</items></term_definitions><term_definitions code="at0003"><items id="description">razĂŁo para a saĂda</items><items id="text">razĂŁo para a saĂda</items></term_definitions><term_definitions code="at0046"><items id="description">OcorrĂȘncia de infecção hospitalar durante a internação</items><items id="text">infecção hospitalar</items></term_definitions><term_definitions code="at0047"><items id="description">motivo de cobrança</items><items id="text">motivo de cobrança</items></term_definitions><term_definitions code="at0048"><items id="description">indicador de Ăłbito</items><items id="text">indicador de Ăłbito</items></term_definitions></children><children xsi:type="C_ARCHETYPE_ROOT"><rm_type_name>ADMIN_ENTRY</rm_type_name><occurrences><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>0</lower></occurrences><node_id>at0000</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>data</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ITEM_TREE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0001</node_id><attributes xsi:type="C_MULTIPLE_ATTRIBUTE"><rm_attribute_name>items</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0061</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_DATE_TIME</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0013</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_COUNT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>magnitude</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_PRIMITIVE_OBJECT"><rm_type_name>INTEGER</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><item xsi:type="C_INTEGER"><range><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>31</upper></range></item></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0014</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_COUNT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>magnitude</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_PRIMITIVE_OBJECT"><rm_type_name>INTEGER</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><item xsi:type="C_INTEGER"><range><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>31</upper></range></item></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0015</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_COUNT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>magnitude</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_PRIMITIVE_OBJECT"><rm_type_name>INTEGER</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><item xsi:type="C_INTEGER"><range><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>31</upper></range></item></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0016</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_COUNT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>magnitude</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_PRIMITIVE_OBJECT"><rm_type_name>INTEGER</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><item xsi:type="C_INTEGER"><range><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>99</upper></range></item></children></attributes></children></attributes></children><cardinality><is_ordered>false</is_ordered><is_unique>false</is_unique><interval><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>0</lower></interval></cardinality></attributes></children></attributes><archetype_id><value>openEHR-EHR-ADMIN_ENTRY.hospitalization_authorization.v1</value></archetype_id><term_definitions code="at0000"><items id="description">ArquĂ©tipo elaborado para registrar os dados administrativos do SIH-SUS que nĂŁo constavam do CKM</items><items id="text">Autorizacao de internacao hospitalar</items></term_definitions><term_definitions code="at0001"><items id="description">componentes</items><items id="text">Componentes</items></term_definitions><term_definitions code="at0013"><items id="description">NĂșmero de dias de UTI (nĂvel I) utilizados no mĂȘs da internação</items><items id="text">MĂȘs inicial - UTI</items></term_definitions><term_definitions code="at0014"><items id="description">NĂșmero de dias de UTI (nĂvel I) utilizados no mĂȘs anterior Ă alta</items><items id="text">MĂȘs anterior - UTI</items></term_definitions><term_definitions code="at0015"><items id="description">NĂșmero de dias de UTI (nĂvel I) utilizados no mĂȘs da alta, Ăłbito ou transferĂȘncia</items><items id="text">MĂȘs alta - UTI</items></term_definitions><term_definitions code="at0016"><items id="description">NĂșmero total de dias de UTI (nĂvel I) utilizados</items><items id="text">Total - UTI</items></term_definitions><term_definitions code="at0061"><items id="description">Data da emissĂŁo da AIH</items><items id="text">Data da emissĂŁo</items></term_definitions></children><children xsi:type="C_ARCHETYPE_ROOT"><rm_type_name>ADMIN_ENTRY</rm_type_name><occurrences><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>0</lower></occurrences><node_id>at0000</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>data</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ITEM_TREE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0001</node_id><attributes xsi:type="C_MULTIPLE_ATTRIBUTE"><rm_attribute_name>items</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0002</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>local</value></terminology_id><code_list>at0003</code_list><code_list>at0004</code_list><code_list>at0005</code_list><code_list>at0006</code_list><code_list>at0007</code_list><code_list>at0008</code_list><code_list>at0009</code_list><code_list>at0010</code_list><code_list>at0011</code_list></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>CLUSTER</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0073</node_id><attributes xsi:type="C_MULTIPLE_ATTRIBUTE"><rm_attribute_name>items</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0077</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0079</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>CLUSTER</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0104</node_id><attributes xsi:type="C_MULTIPLE_ATTRIBUTE"><rm_attribute_name>items</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0105</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0106</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0107</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>local</value></terminology_id><code_list>at0108</code_list><code_list>at0109</code_list><code_list>at0110</code_list><code_list>at0111</code_list><code_list>at0112</code_list><code_list>at0113</code_list><code_list>at0114</code_list><code_list>at0115</code_list><code_list>at0116</code_list><code_list>at0118</code_list></children></attributes></children></attributes></children><cardinality><is_ordered>false</is_ordered><is_unique>false</is_unique><interval><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>1</lower></interval></cardinality></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>CLUSTER</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0084</node_id><attributes xsi:type="C_MULTIPLE_ATTRIBUTE"><rm_attribute_name>items</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0087</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/></children></attributes></children><cardinality><is_ordered>false</is_ordered><is_unique>false</is_unique><interval><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>1</lower></interval></cardinality></attributes></children><cardinality><is_ordered>false</is_ordered><is_unique>false</is_unique><interval><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>1</lower></interval></cardinality></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0013</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>local</value></terminology_id><code_list>at0014</code_list><code_list>at0015</code_list><code_list>at0016</code_list><code_list>at0017</code_list><code_list>at0018</code_list><code_list>at0019</code_list><code_list>at0020</code_list><code_list>at0021</code_list><code_list>at0022</code_list></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0041</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0071</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_DATE_TIME</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/></children></attributes></children><cardinality><is_ordered>false</is_ordered><is_unique>false</is_unique><interval><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>2</lower></interval></cardinality></attributes></children></attributes><archetype_id><value>openEHR-EHR-ADMIN_ENTRY.admission.v1</value></archetype_id><term_definitions code="at0000"><items id="description">Used for admitted patient only. It signals the beginning of a patient's stay in a health care facility.</items><items id="text">Patient admission</items></term_definitions><term_definitions code="at0001"><items id="description">@ internal @</items><items id="text">Tree</items></term_definitions><term_definitions code="at0002"><items id="description">Intended mode of treatement.</items><items id="text">Patient class</items></term_definitions><term_definitions code="at0003"><items id="description">Inpatient/overnight patient</items><items id="text">Inpatient/overnight patient</items></term_definitions><term_definitions code="at0004"><items id="description">Same day patient</items><items id="text">Same day patient</items></term_definitions><term_definitions code="at0005"><items id="description">Outpatient</items><items id="text">Outpatient</items></term_definitions><term_definitions code="at0006"><items id="description">Emergency patient</items><items id="text">Emergency patient</items></term_definitions><term_definitions code="at0007"><items id="description">Community client</items><items id="text">Community client</items></term_definitions><term_definitions code="at0008"><items id="description">Pre-admit</items><items id="text">Pre-admit</items></term_definitions><term_definitions code="at0009"><items id="description">Commercial account</items><items id="text">Commercial account</items></term_definitions><term_definitions code="at0010"><items id="description">Not-applicable</items><items id="text">Not-applicable</items></term_definitions><term_definitions code="at0011"><items id="description">Unknown</items><items id="text">Unknown</items></term_definitions><term_definitions code="at0013"><items id="description">The circumstance under which the patient will be admitted.</items><items id="text">Admission type</items></term_definitions><term_definitions code="at0014"><items id="description">Accident</items><items id="text">Accident</items></term_definitions><term_definitions code="at0015"><items id="description">Emergency</items><items id="text">Emergency</items></term_definitions><term_definitions code="at0016"><items id="description">Labour & Delivery</items><items id="text">Labour & Delivery</items></term_definitions><term_definitions code="at0017"><items id="description">Routine</items><items id="text">Routine</items></term_definitions><term_definitions code="at0018"><items id="description">Newborn</items><items id="text">Newborn</items></term_definitions><term_definitions code="at0019"><items id="description">Urgent</items><items id="text">Urgent</items></term_definitions><term_definitions code="at0020"><items id="description">Elective</items><items id="text">Elective</items></term_definitions><term_definitions code="at0021"><items id="description">Geriatric respite admission</items><items id="text">Geriatric respite admission</items></term_definitions><term_definitions code="at0022"><items id="description">Statistical admission</items><items id="text">Statistical admission</items></term_definitions><term_definitions code="at0023"><items id="description">ID number of patient's pre-admission</items><items id="text">Pre-admit number</items></term_definitions><term_definitions code="at0025"><items id="description">Clinician who referred patient to the consulting doctor</items><items id="text">Referring doctor</items></term_definitions><term_definitions code="at0041"><items id="description">For local use, this field hold the type of organizational unit or clinical unit, e.g. CARDO1.</items><items id="text">Hospital service</items></term_definitions><term_definitions code="at0049"><items id="description">Refer to NHDD 000385 Mode of admission and NHDD 000150 Source of referral to public psychiatric hospital</items><items id="text">Admit source</items></term_definitions><term_definitions code="at0051"><items id="description">*</items><items id="text">Admitting doctor</items></term_definitions><term_definitions code="at0061"><items id="description">*</items><items id="text">Financial class</items></term_definitions><term_definitions code="at0062"><items id="description">Australian Health Care Agreements </items><items id="text">Australian Health Care Agreements</items></term_definitions><term_definitions code="at0063"><items id="description">Private health insurance</items><items id="text">Private health insurance</items></term_definitions><term_definitions code="at0064"><items id="description">Self-funded</items><items id="text">Self-funded</items></term_definitions><term_definitions code="at0065"><items id="description">Worker's compensation</items><items id="text">Worker's compensation</items></term_definitions><term_definitions code="at0066"><items id="description">*</items><items id="text">Charge price indicator</items></term_definitions><term_definitions code="at0071"><items id="description">Date/time the patient was admitted.</items><items id="text">Admit date/time</items></term_definitions><term_definitions code="at0073"><items id="description">Assigned patient location when the patient was admitted.</items><items id="text">Assigned patient location</items></term_definitions><term_definitions code="at0074"><items id="description">*</items><items id="text">Point of care/Unit</items></term_definitions><term_definitions code="at0077"><items id="description">*</items><items id="text">Ward</items></term_definitions><term_definitions code="at0078"><items id="description">*</items><items id="text">Room</items></term_definitions><term_definitions code="at0079"><items id="description">*</items><items id="text">Bed</items></term_definitions><term_definitions code="at0081"><items id="description">*</items><items id="text">Location type</items></term_definitions><term_definitions code="at0082"><items id="description">*</items><items id="text">Clinic</items></term_definitions><term_definitions code="at0084"><items id="description">*</items><items id="text">Address</items></term_definitions><term_definitions code="at0085"><items id="description">*</items><items id="text">Street</items></term_definitions><term_definitions code="at0086"><items id="description">*</items><items id="text">City</items></term_definitions><term_definitions code="at0087"><items id="description">*</items><items id="text">State/province</items></term_definitions><term_definitions code="at0088"><items id="description">*</items><items id="text">Post code</items></term_definitions><term_definitions code="at0089"><items id="description">*</items><items id="text">Country</items></term_definitions><term_definitions code="at0090"><items id="description">*</items><items id="text">Home</items></term_definitions><term_definitions code="at0091"><items id="description">*</items><items id="text">Department</items></term_definitions><term_definitions code="at0092"><items id="description">*</items><items id="text">Nursing unit</items></term_definitions><term_definitions code="at0093"><items id="description">*</items><items id="text">Provider's office</items></term_definitions><term_definitions code="at0094"><items id="description">The patient location prior admission</items><items id="text">Prior patient location</items></term_definitions><term_definitions code="at0095"><items id="description">*</items><items id="text">Adress</items></term_definitions><term_definitions code="at0098"><items id="description">The attending doctor providing services to the patient</items><items id="text">Attending doctor</items></term_definitions><term_definitions code="at0099"><items id="description">*</items><items id="text">ID</items></term_definitions><term_definitions code="at0100"><items id="description">*</items><items id="text">Family name</items></term_definitions><term_definitions code="at0101"><items id="description">*</items><items id="text">Building</items></term_definitions><term_definitions code="at0102"><items id="description">*</items><items id="text">Floor</items></term_definitions><term_definitions code="at0103"><items id="description">*</items><items id="text">Location description</items></term_definitions><term_definitions code="at0104"><items id="description">*</items><items id="text">Facility</items></term_definitions><term_definitions code="at0105"><items id="description">*</items><items id="text">Namespace ID</items></term_definitions><term_definitions code="at0106"><items id="description">*</items><items id="text">Universal ID</items></term_definitions><term_definitions code="at0107"><items id="description">*</items><items id="text">Universal ID type</items></term_definitions><term_definitions code="at0108"><items id="description">*</items><items id="text">DNS</items></term_definitions><term_definitions code="at0109"><items id="description">*</items><items id="text">GUID</items></term_definitions><term_definitions code="at0110"><items id="description">*</items><items id="text">HCD</items></term_definitions><term_definitions code="at0111"><items id="description">*</items><items id="text">HL7</items></term_definitions><term_definitions code="at0112"><items id="description">*</items><items id="text">ISO</items></term_definitions><term_definitions code="at0113"><items id="description">*</items><items id="text">L, M, N</items></term_definitions><term_definitions code="at0114"><items id="description">*</items><items id="text">Random</items></term_definitions><term_definitions code="at0115"><items id="description">*</items><items id="text">UUID</items></term_definitions><term_definitions code="at0116"><items id="description">*</items><items id="text">x400</items></term_definitions><term_definitions code="at0118"><items id="description">*</items><items id="text">x500</items></term_definitions><term_definitions code="at0119"><items id="description">*</items><items id="text">Facility</items></term_definitions><term_definitions code="at0120"><items id="description">*</items><items id="text">Last name</items></term_definitions><term_definitions code="at0121"><items id="description">Consultant responsible for the care of the patient,including salaried specialist, visiting medical officer</items><items id="text">Consulting doctor</items></term_definitions><term_definitions code="at0122"><items id="description">*</items><items id="text">Motor vehicle third party personal claim</items></term_definitions><term_definitions code="at0123"><items id="description">*</items><items id="text">Other compensation (e.g. public liability, common law, medical negligence)</items></term_definitions><term_definitions code="at0124"><items id="description">*</items><items id="text">Department of Veterans' Affairs</items></term_definitions><term_definitions code="at0125"><items id="description">*</items><items id="text">Department of Defence</items></term_definitions><term_definitions code="at0126"><items id="description">*</items><items id="text">Correctional facility</items></term_definitions><term_definitions code="at0127"><items id="description">*</items><items id="text">Other hospital or public authority (contracted care)</items></term_definitions><term_definitions code="at0128"><items id="description">*</items><items id="text">Reciprocal health care agreements (with other countries)</items></term_definitions><term_definitions code="at0129"><items id="description">*</items><items id="text">Other</items></term_definitions><term_definitions code="at0130"><items id="description">*</items><items id="text">Not known</items></term_definitions></children><children xsi:type="C_ARCHETYPE_ROOT"><rm_type_name>EVALUATION</rm_type_name><occurrences><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>0</lower></occurrences><node_id>at0000.1</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>data</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ITEM_TREE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0001</node_id><attributes xsi:type="C_MULTIPLE_ATTRIBUTE"><rm_attribute_name>items</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0002.1</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="CONSTRAINT_REF"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><reference>ac0.3</reference></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0.1</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="CONSTRAINT_REF"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><reference>ac0.1</reference></children></attributes></children></attributes></children><children xsi:type="ARCHETYPE_SLOT"><rm_type_name>CLUSTER</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0039</node_id><includes><expression xsi:type="EXPR_BINARY_OPERATOR"><type>Boolean</type><operator>2007</operator><precedence_overridden>false</precedence_overridden><left_operand xsi:type="EXPR_LEAF"><type>String</type><item xsi:type="xsd:string">archetype_id/value</item><reference_type>attribute</reference_type></left_operand><right_operand xsi:type="EXPR_LEAF"><type>C_STRING</type><item xsi:type="C_STRING"><pattern>openEHR-EHR-CLUSTER\.anatomical_location(-[a-zA-Z0-9_]+)*\.v1</pattern></item><reference_type>constraint</reference_type></right_operand></expression></includes></children><children xsi:type="ARCHETYPE_SLOT"><rm_type_name>CLUSTER</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0042</node_id><includes><expression xsi:type="EXPR_BINARY_OPERATOR"><type>Boolean</type><operator>2007</operator><precedence_overridden>false</precedence_overridden><left_operand xsi:type="EXPR_LEAF"><type>String</type><item xsi:type="xsd:string">archetype_id/value</item><reference_type>attribute</reference_type></left_operand><right_operand xsi:type="EXPR_LEAF"><type>C_STRING</type><item xsi:type="C_STRING"><pattern>.*</pattern></item><reference_type>constraint</reference_type></right_operand></expression></includes></children><children xsi:type="ARCHETYPE_SLOT"><rm_type_name>CLUSTER</rm_type_name><occurrences><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>0</lower></occurrences><node_id>at0043.1</node_id><includes><expression xsi:type="EXPR_BINARY_OPERATOR"><type>Boolean</type><operator>2007</operator><precedence_overridden>false</precedence_overridden><left_operand xsi:type="EXPR_LEAF"><type>String</type><item xsi:type="xsd:string">archetype_id/value</item><reference_type>attribute</reference_type></left_operand><right_operand xsi:type="EXPR_LEAF"><type>C_STRING</type><item xsi:type="C_STRING"><pattern>.*</pattern></item><reference_type>constraint</reference_type></right_operand></expression></includes><excludes><expression xsi:type="EXPR_BINARY_OPERATOR"><type>Boolean</type><operator>2007</operator><precedence_overridden>false</precedence_overridden><left_operand xsi:type="EXPR_LEAF"><type>String</type><item xsi:type="xsd:string">archetype_id/value</item><reference_type>attribute</reference_type></left_operand><right_operand xsi:type="EXPR_LEAF"><type>C_STRING</type><item xsi:type="C_STRING"><pattern>openEHR-EHR-CLUSTER\.tnm_staging-sus(-[a-zA-Z0-9_]+)*\.v1|openEHR-EHR-CLUSTER\.tnm_staging(-[a-zA-Z0-9_]+)*\.v1</pattern></item><reference_type>constraint</reference_type></right_operand></expression></excludes></children><cardinality><is_ordered>true</is_ordered><is_unique>false</is_unique><interval><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>1</lower></interval></cardinality></attributes></children></attributes><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>protocol</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ITEM_TREE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0032</node_id><attributes xsi:type="C_MULTIPLE_ATTRIBUTE"><rm_attribute_name>items</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>0</lower></occurrences><node_id>at0035</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_EHR_URI</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/></children></attributes></children><children xsi:type="ARCHETYPE_SLOT"><rm_type_name>CLUSTER</rm_type_name><occurrences><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>0</lower></occurrences><node_id>at0046</node_id><includes><expression xsi:type="EXPR_BINARY_OPERATOR"><type>Boolean</type><operator>2007</operator><precedence_overridden>false</precedence_overridden><left_operand xsi:type="EXPR_LEAF"><type>String</type><item xsi:type="xsd:string">archetype_id/value</item><reference_type>attribute</reference_type></left_operand><right_operand xsi:type="EXPR_LEAF"><type>C_STRING</type><item xsi:type="C_STRING"><pattern>.*</pattern></item><reference_type>constraint</reference_type></right_operand></expression></includes></children><cardinality><is_ordered>false</is_ordered><is_unique>false</is_unique><interval><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>0</lower></interval></cardinality></attributes></children></attributes><archetype_id><value>openEHR-EHR-EVALUATION.problem_diagnosis-sus.v1</value></archetype_id><term_definitions code="at0.1"><items id="description">Secondary Diagnosis</items><items id="text">Secondary Diagnosis</items></term_definitions><term_definitions code="at0.2"><items id="description">Associated causes</items><items id="text">Associated causes</items></term_definitions><term_definitions code="at0.3"><items id="description">Metastasis</items><items id="text">Metastasis</items></term_definitions><term_definitions code="at0.4"><items id="description">Invaded regional linphonodes</items><items id="text">Invaded regional linphonodes</items></term_definitions><term_definitions code="at0000.1"><items id="description">An issue or obstacle which adversely impacts on the physical, mental and/or social well-being of an individual. The definition of a problem is deliberately kept rather loose and inclusive of a formal biomedical diagnosis so as to capture any real or perceived concerns that may adversely affect an individual's wellbeing to any degree.</items><items id="text">Problem/Diagnosis</items></term_definitions><term_definitions code="at0001"><items id="description">*</items><items id="text">structure</items></term_definitions><term_definitions code="at0002"><items id="description">Identification of the index problem, issue or diagnosis.</items><items id="text">Problem/Diagnosis</items></term_definitions><term_definitions code="at0002.1"><items id="description">Identification of the problem</items><items id="text">Problem</items></term_definitions><term_definitions code="at0003"><items id="description">The date / time when the problem was first identified by the individual.</items><items id="text">Date of Onset</items></term_definitions><term_definitions code="at0004"><items id="description">The age of the individual when the problem was first identified by the individual.</items><items id="text">Age at Onset</items></term_definitions><term_definitions code="at0005"><items id="comment"> Coding of the severity with a terminology is preferred, where possible.</items><items id="description">The assessed overall severity of the index problem.</items><items id="text">Severity</items></term_definitions><term_definitions code="at0009"><items id="description">A narrative description of the issue, problem or diagnosis.</items><items id="text">Description</items></term_definitions><term_definitions code="at0012"><items id="description">The body site affected.</items><items id="text">Body Site</items></term_definitions><term_definitions code="at0018"><items id="description">Grouping of information about individual occurrences or exacerbations.</items><items id="text">Previous Occurrences</items></term_definitions><term_definitions code="at0019"><items id="description">The frequency of individual occurrences of the problem.</items><items id="text">Frequency</items></term_definitions><term_definitions code="at0020"><items id="description">The date / time of the last occurrence of the problem.</items><items id="text">Date of last Occurrence</items></term_definitions><term_definitions code="at0022"><items id="description">A description of the exacerbation or occurrence.</items><items id="text">Description</items></term_definitions><term_definitions code="at0025"><items id="description">Number of times this problem has occurred or been apparent.</items><items id="text">Number</items></term_definitions><term_definitions code="at0027"><items id="description">A group of characteristics of the problem complicating the index problem.</items><items id="text">Related Item</items></term_definitions><term_definitions code="at0028"><items id="description">Identification of a related problem as text,coded text or link within the EHR.</items><items id="text">Item</items></term_definitions><term_definitions code="at0029"><items id="description">The type of relationship that this problem/diagnosis has to the related item.</items><items id="text">Relationship Type</items></term_definitions><term_definitions code="at0030"><items id="description">The date that the problem resolved or went into remission.</items><items id="text">Date of Resolution</items></term_definitions><term_definitions code="at0031"><items id="description">The age of the person at the resolution of the problem.</items><items id="text">Age at Resolution</items></term_definitions><term_definitions code="at0032"><items id="description">@ internal @</items><items id="text">Tree</items></term_definitions><term_definitions code="at0035"><items id="description">Useful information on the internet about this condition.</items><items id="text">Supporting clinical evidence</items></term_definitions><term_definitions code="at0039"><items id="description">Details of the body site concerned.</items><items id="text">Body Site Details</items></term_definitions><term_definitions code="at0040"><items id="description">This concept identifies the direct cause or causative agent of a Problem/Diagnosis. The concept includes the idea of âcomplicationsâ, âcausative agentâ and âdue toâ. Note: Where no causality or sequence of events is known, this relationship type should be left blank.</items><items id="text">Caused by</items></term_definitions><term_definitions code="at0041"><items id="description">This value identifies the sequence of events between the related items, but does not assert causality. This can be used for sequelae or late effects. Note: Where no causality or sequence of events is known, this relationship type should be left blank.</items><items id="text">Following</items></term_definitions><term_definitions code="at0042"><items id="description">The criteria on which the problem/diagnosis is based.</items><items id="text">Diagnostic Criteria</items></term_definitions><term_definitions code="at0043"><items id="description">Clinical stage or grade of a problem/diagnosis. Note: May include formal severity assessments.</items><items id="text">Clinical Stage/Grade</items></term_definitions><term_definitions code="at0043.1"><items id="description">*</items><items id="text">Staging</items></term_definitions><term_definitions code="at0044"><items id="description">A narrative description of the related item.</items><items id="text">Description</items></term_definitions><term_definitions code="at0046"><items id="description">Descriptor for context- or use-case specific label or workflow-related aspect of the diagnostic process which may not be safe to exchange between systems or use in a shared environment. Examples include: active/inactive; primary/secondary; preliminary/provisional/working/final.</items><items id="text">Status</items></term_definitions></children><children xsi:type="ARCHETYPE_SLOT"><rm_type_name>INSTRUCTION</rm_type_name><occurrences><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>0</lower></occurrences><node_id>at0010</node_id><includes><expression xsi:type="EXPR_BINARY_OPERATOR"><type>Boolean</type><operator>2007</operator><precedence_overridden>false</precedence_overridden><left_operand xsi:type="EXPR_LEAF"><type>String</type><item xsi:type="xsd:string">archetype_id/value</item><reference_type>attribute</reference_type></left_operand><right_operand xsi:type="EXPR_LEAF"><type>C_STRING</type><item xsi:type="C_STRING"><pattern>openEHR-EHR-INSTRUCTION\.request-procedure(-[a-zA-Z0-9_]+)*\.v1</pattern></item><reference_type>constraint</reference_type></right_operand></expression></includes></children><children xsi:type="C_ARCHETYPE_ROOT"><rm_type_name>ACTION</rm_type_name><occurrences><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>0</lower></occurrences><node_id>at0000.1</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>ism_transition</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ISM_TRANSITION</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0034</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>current_state</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>openehr</value></terminology_id><code_list>524</code_list></children></attributes></children></attributes><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>careflow_step</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>local</value></terminology_id><code_list>at0034</code_list></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ISM_TRANSITION</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0035</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>current_state</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>openehr</value></terminology_id><code_list>524</code_list></children></attributes></children></attributes><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>careflow_step</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>local</value></terminology_id><code_list>at0035</code_list></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ISM_TRANSITION</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0038</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>current_state</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>openehr</value></terminology_id><code_list>527</code_list></children></attributes></children></attributes><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>careflow_step</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>local</value></terminology_id><code_list>at0038</code_list></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ISM_TRANSITION</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0039</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>current_state</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>openehr</value></terminology_id><code_list>528</code_list></children></attributes></children></attributes><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>careflow_step</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>local</value></terminology_id><code_list>at0039</code_list></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ISM_TRANSITION</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0036</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>current_state</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>openehr</value></terminology_id><code_list>529</code_list></children></attributes></children></attributes><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>careflow_step</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>local</value></terminology_id><code_list>at0036</code_list></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ISM_TRANSITION</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0047</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>current_state</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>openehr</value></terminology_id><code_list>245</code_list></children></attributes></children></attributes><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>careflow_step</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>local</value></terminology_id><code_list>at0047</code_list></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ISM_TRANSITION</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0040</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>current_state</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>openehr</value></terminology_id><code_list>530</code_list></children></attributes></children></attributes><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>careflow_step</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>local</value></terminology_id><code_list>at0040</code_list></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ISM_TRANSITION</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0041</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>current_state</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>openehr</value></terminology_id><code_list>531</code_list></children></attributes></children></attributes><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>careflow_step</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>local</value></terminology_id><code_list>at0041</code_list></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ISM_TRANSITION</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0043</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>current_state</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>openehr</value></terminology_id><code_list>532</code_list></children></attributes></children></attributes><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>careflow_step</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>local</value></terminology_id><code_list>at0043</code_list></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ISM_TRANSITION</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0044</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>current_state</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>openehr</value></terminology_id><code_list>532</code_list></children></attributes></children></attributes><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>careflow_step</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>local</value></terminology_id><code_list>at0044</code_list></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ISM_TRANSITION</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0045</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>current_state</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>openehr</value></terminology_id><code_list>532</code_list></children></attributes></children></attributes><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>careflow_step</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>local</value></terminology_id><code_list>at0045</code_list></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ISM_TRANSITION</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0046</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>current_state</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>openehr</value></terminology_id><code_list>532</code_list></children></attributes></children></attributes><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>careflow_step</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_CODE_PHRASE"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><terminology_id><value>local</value></terminology_id><code_list>at0046</code_list></children></attributes></children></attributes></children></attributes><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>description</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ITEM_TREE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0001</node_id><attributes xsi:type="C_MULTIPLE_ATTRIBUTE"><rm_attribute_name>items</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0002</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="CONSTRAINT_REF"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><reference>ac0.2</reference></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0049</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/></children></attributes></children><children xsi:type="ARCHETYPE_SLOT"><rm_type_name>CLUSTER</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0003</node_id><includes><expression xsi:type="EXPR_BINARY_OPERATOR"><type>Boolean</type><operator>2007</operator><precedence_overridden>false</precedence_overridden><left_operand xsi:type="EXPR_LEAF"><type>String</type><item xsi:type="xsd:string">archetype_id/value</item><reference_type>attribute</reference_type></left_operand><right_operand xsi:type="EXPR_LEAF"><type>C_STRING</type><item xsi:type="C_STRING"><pattern>.*</pattern></item><reference_type>constraint</reference_type></right_operand></expression></includes></children><children xsi:type="ARCHETYPE_SLOT"><rm_type_name>CLUSTER</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0050</node_id><includes><expression xsi:type="EXPR_BINARY_OPERATOR"><type>Boolean</type><operator>2007</operator><precedence_overridden>false</precedence_overridden><left_operand xsi:type="EXPR_LEAF"><type>String</type><item xsi:type="xsd:string">archetype_id/value</item><reference_type>attribute</reference_type></left_operand><right_operand xsi:type="EXPR_LEAF"><type>C_STRING</type><item xsi:type="C_STRING"><pattern>.*</pattern></item><reference_type>constraint</reference_type></right_operand></expression></includes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>3</upper></occurrences><node_id>at0.59</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_CODED_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>defining_code</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></existence><children xsi:type="CONSTRAINT_REF"><rm_type_name>CODE_PHRASE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/><reference>ac0.1</reference></children></attributes></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0.60</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_COUNT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/></children></attributes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>3</upper></occurrences><node_id>at0.61</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_COUNT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/></children></attributes></children><cardinality><is_ordered>false</is_ordered><is_unique>false</is_unique><interval><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>1</lower></interval></cardinality></attributes></children></attributes><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>protocol</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ITEM_TREE</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id>at0053</node_id><attributes xsi:type="C_MULTIPLE_ATTRIBUTE"><rm_attribute_name>items</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0054</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/></children></attributes></children><children xsi:type="ARCHETYPE_SLOT"><rm_type_name>CLUSTER</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0055</node_id><includes><expression xsi:type="EXPR_BINARY_OPERATOR"><type>Boolean</type><operator>2007</operator><precedence_overridden>false</precedence_overridden><left_operand xsi:type="EXPR_LEAF"><type>String</type><item xsi:type="xsd:string">archetype_id/value</item><reference_type>attribute</reference_type></left_operand><right_operand xsi:type="EXPR_LEAF"><type>C_STRING</type><item xsi:type="C_STRING"><pattern>.*</pattern></item><reference_type>constraint</reference_type></right_operand></expression></includes></children><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>ELEMENT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0056</node_id><attributes xsi:type="C_SINGLE_ATTRIBUTE"><rm_attribute_name>value</rm_attribute_name><existence><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></existence><children xsi:type="C_COMPLEX_OBJECT"><rm_type_name>DV_TEXT</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>1</lower><upper>1</upper></occurrences><node_id/></children></attributes></children><children xsi:type="ARCHETYPE_SLOT"><rm_type_name>CLUSTER</rm_type_name><occurrences><lower_included>true</lower_included><upper_included>true</upper_included><lower_unbounded>false</lower_unbounded><upper_unbounded>false</upper_unbounded><lower>0</lower><upper>1</upper></occurrences><node_id>at0057</node_id><includes><expression xsi:type="EXPR_BINARY_OPERATOR"><type>Boolean</type><operator>2007</operator><precedence_overridden>false</precedence_overridden><left_operand xsi:type="EXPR_LEAF"><type>String</type><item xsi:type="xsd:string">archetype_id/value</item><reference_type>attribute</reference_type></left_operand><right_operand xsi:type="EXPR_LEAF"><type>C_STRING</type><item xsi:type="C_STRING"><pattern>.*</pattern></item><reference_type>constraint</reference_type></right_operand></expression></includes></children><cardinality><is_ordered>false</is_ordered><is_unique>false</is_unique><interval><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>0</lower></interval></cardinality></attributes></children></attributes><archetype_id><value>openEHR-EHR-ACTION.procedure-sus.v1</value></archetype_id><term_definitions code="at0.59"><items id="description">irradiated area</items><items id="text">irradiated area</items></term_definitions><term_definitions code="at0.60"><items id="description">number of planned fields</items><items id="text">planned fields</items></term_definitions><term_definitions code="at0.61"><items id="description">number of fields/insertions</items><items id="text">fields/insertions</items></term_definitions><term_definitions code="at0.62"><items id="description">procedure quantity</items><items id="text">procedure quantity</items></term_definitions><term_definitions code="at0.63"><items id="description">vascular access</items><items id="text">vascular access</items></term_definitions><term_definitions code="at0000"><items id="description">A clinical activity that has been carried out for therapeutic or diagnostic purposes.</items><items id="text">Procedure undertaken</items></term_definitions><term_definitions code="at0000.1"><items id="description">A clinical activity that has been carried out for therapeutic or diagnostic purposes.!</items><items id="text">Procedure undertaken</items></term_definitions><term_definitions code="at0001"><items id="description">List containing the procedures undertaken</items><items id="text">Procedure list</items></term_definitions><term_definitions code="at0002"><items id="description">The name of the procedure.</items><items id="text">Procedure</items></term_definitions><term_definitions code="at0003"><items id="description">Detailed structure describing the procedure carried out, including preparation and details about the method and equipment/devices used.</items><items id="text">Procedure details</items></term_definitions><term_definitions code="at0004"><items id="description">Was the procedure ultimately unsuccessful? True if unsuccessful.</items><items id="text">Procedure unsuccessful</items></term_definitions><term_definitions code="at0005"><items id="description">Comments about the procedure.</items><items id="text">Comments</items></term_definitions><term_definitions code="at0006"><items id="description">Details about any complication arising from the procedure.</items><items id="text">Complication</items></term_definitions><term_definitions code="at0013"><items id="description">Multimedia representation of the procedure, including images.</items><items id="text">Multimedia</items></term_definitions><term_definitions code="at0014"><items id="description">The reason or indication for the procedure.</items><items id="text">Reason/s for procedure</items></term_definitions><term_definitions code="at0015"><items id="description">An unplanned event prior to or related to the procedure, which may affect its execution e.g patient self-removed cannula.</items><items id="text">Unplanned event</items></term_definitions><term_definitions code="at0018"><items id="description">The number of failed attempts to perform the procedure.</items><items id="text">Failed attempts</items></term_definitions><term_definitions code="at0030"><items id="description">Record information about unplanned or unexpected activities that needed to be done during the procedure. Record the name of the task and a description within this archetype, but detail should be recorded in specific linked INSTRUCTION or ACTION archetypes.</items><items id="text">Additional tasks</items></term_definitions><term_definitions code="at0031"><items id="description">Description of additional task performed during the procedure.</items><items id="text">Task description</items></term_definitions><term_definitions code="at0032"><items id="description">Link to a detailed record of the additional task.</items><items id="text">Record of additional task</items></term_definitions><term_definitions code="at0034"><items id="description">Request for procedure is initiated.</items><items id="text">Request initiated</items></term_definitions><term_definitions code="at0035"><items id="description">Request for procedure sent.</items><items id="text">Request sent</items></term_definitions><term_definitions code="at0036"><items id="description">Procedure has been scheduled.</items><items id="text">Procedure scheduled</items></term_definitions><term_definitions code="at0038"><items id="description">Request for procedure is postponed.</items><items id="text">Request postponed</items></term_definitions><term_definitions code="at0039"><items id="description">Procedure request has been cancelled.</items><items id="text">Request cancelled</items></term_definitions><term_definitions code="at0040"><items id="description">Procedure has been suspended.</items><items id="text">Procedure suspended</items></term_definitions><term_definitions code="at0041"><items id="description">Procedure has been aborted.</items><items id="text">Procedure aborted</items></term_definitions><term_definitions code="at0043"><items id="description">Procedure has been completed.</items><items id="text">Completed</items></term_definitions><term_definitions code="at0044"><items id="description">Procedure report has been written.</items><items id="text">Report authored</items></term_definitions><term_definitions code="at0045"><items id="description">Procedure report has been attested.</items><items id="text">Report attested</items></term_definitions><term_definitions code="at0046"><items id="description">Procedure report has been distributed.</items><items id="text">Report sent</items></term_definitions><term_definitions code="at0047"><items id="description">Procedure is being carried out.</items><items id="text">In progress</items></term_definitions><term_definitions code="at0048"><items id="description">Outcome of procedure performed.</items><items id="text">Outcome</items></term_definitions><term_definitions code="at0049"><items id="description">Narrative description about the procedure carried out.</items><items id="text">Description</items></term_definitions><term_definitions code="at0050"><items id="description">Details about the anatomical site of procedure.</items><items id="text">Anatomical site details</items></term_definitions><term_definitions code="at0051"><items id="description">Identification of specific method or technique used for procedure.</items><items id="text">Method/Technique</items></term_definitions><term_definitions code="at0052"><items id="description">Name of additional task performed during the procedure.</items><items id="text">Task</items></term_definitions><term_definitions code="at0053"><items id="description">@ internal @</items><items id="text">Tree</items></term_definitions><term_definitions code="at0054"><items id="description">The local ID assigned to the order by the healthcare provider or organisation requesting the service.</items><items id="text">Requestor order identifier</items></term_definitions><term_definitions code="at0055"><items id="description">Details about the healthcare provider or organisation requesting the service.</items><items id="text">Requestor</items></term_definitions><term_definitions code="at0056"><items id="description">The ID assigned to the order by the healthcare provider or organisation receiving the request for service. This is also referred to as Filler Order Identifier.</items><items id="text">Receiver order identifier</items></term_definitions><term_definitions code="at0057"><items id="description">Details about the healthcare provider or organisation receiving the request for service.</items><items id="text">Receiver</items></term_definitions><term_definitions code="at0058"><items id="description">Was this procedure performed as an emergency? True if Yes.</items><items id="text">Emergency?</items></term_definitions></children><children xsi:type="ARCHETYPE_SLOT"><rm_type_name>OBSERVATION</rm_type_name><occurrences><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>0</lower></occurrences><node_id>at0012</node_id><includes><expression xsi:type="EXPR_BINARY_OPERATOR"><type>Boolean</type><operator>2007</operator><precedence_overridden>false</precedence_overridden><left_operand xsi:type="EXPR_LEAF"><type>String</type><item xsi:type="xsd:string">archetype_id/value</item><reference_type>attribute</reference_type></left_operand><right_operand xsi:type="EXPR_LEAF"><type>C_STRING</type><item xsi:type="C_STRING"><pattern>openEHR-EHR-OBSERVATION\.menstruation(-[a-zA-Z0-9_]+)*\.v1</pattern></item><reference_type>constraint</reference_type></right_operand></expression></includes></children><cardinality><is_ordered>false</is_ordered><is_unique>false</is_unique><interval><lower_included>true</lower_included><lower_unbounded>false</lower_unbounded><upper_unbounded>true</upper_unbounded><lower>1</lower></interval></cardinality></attributes><archetype_id><value>openEHR-EHR-COMPOSITION.hospitalisation.v1</value></archetype_id><template_id><value>hospitalization_ocean</value></template_id><term_definitions code="at0000"><items id="description">Hospitalização</items><items id="text">Hospitalização</items></term_definitions><term_definitions code="at0001"><items id="description">Componentes</items><items id="text">Componentes</items></term_definitions><term_definitions code="at0007"><items id="description">*</items><items id="text">dados administrativos</items></term_definitions><term_definitions code="at0009"><items id="description">*</items><items id="text">diagnĂłstico</items></term_definitions><term_definitions code="at0010"><items id="description">*</items><items id="text">solicitaçÔes</items></term_definitions><term_definitions code="at0011"><items id="description">*</items><items id="text">procedimentos</items></term_definitions><term_definitions code="at0012"><items id="description">*</items><items id="text">observaçÔes</items></term_definitions></definition><view><constraints path="[openEHR-EHR-COMPOSITION.hospitalisation.v1]/content[openEHR-EHR-ADMIN_ENTRY.admission.v1]/data[at0001]/items[at0002]"><items id="pass_through"><value>true</value></items></constraints><constraints path="[openEHR-EHR-COMPOSITION.hospitalisation.v1]/content[openEHR-EHR-EVALUATION.problem_diagnosis-sus.v1]/protocol[at0032]"><items id="pass_through"><value>true</value></items></constraints><constraints path="[openEHR-EHR-COMPOSITION.hospitalisation.v1]/content[openEHR-EHR-ACTION.procedure-sus.v1]/protocol[at0053]"><items id="pass_through"><value>true</value></items></constraints></view></template>
surfer
(giovanni delussu)
26 February 2020 10:17
27
Yes. Iâm using the master branch. The zip 0.10.0 official alpha release https://github.com/ehrbase/ehrbase/archive/v0.10.0.tar.gz
When I try with the develop branch I get this error:
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project test-data: Fatal error compiling: invalid flag: --release -> [Help 1]
Iâm trying to investigate the causeâŠ
The latest version on the dev branch requires Java 11. Maybe this is the issue.
surfer
(giovanni delussu)
26 February 2020 10:59
29
Thanks, Itâs definitely something I have to correct
surfer
(giovanni delussu)
26 February 2020 15:17
30
Built up the develop branch version successfully.
I tried the composition and template posted but I receive the same error:
500
{âerrorâ:âUnable to create an instance of com.nedap.archie.rm.support.identification.UIDBasedIdâ,âstatusâ:âInternal Server Errorâ}
Any idea of whatâs going wrong?
Hi Giovanni,
the first issue I found is regarding the namespaces in XML. The file should look like this:
<composition
xmlns="http://schemas.openehr.org/v1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" archetype_node_id="openEHR-EHR-COMPOSITION.hospitalisation.v1">
<name>
<value>Hospitalisation</value>
</name>
<archetype_details>
<archetype_id>
<value>openEHR-EHR-COMPOSITION.hospitalisation.v1</value>
</archetype_id>
<template_id>
<value>hospitalization_ocean</value>
</template_id>
<rm_version>1.0.2</rm_version>
</archetype_details>
<language>
<terminology_id>
<value>ISO_639-1</value>
</terminology_id>
<code_string>en</code_string>
</language>
<territory>
<terminology_id>
<value>ISO_3166-1</value>
</terminology_id>
<code_string>BR</code_string>
</territory>
However, there seem to be more issues regarding the validation of DV_CODED_TEXT. We will take a closer look whatâs going on. I will hopefully have some news next week.
One issue I was able to resolve was this one:
<items archetype_node_id="at0013" xsi:type="ELEMENT">
<name>
<value>Admission type</value>
</name>
<value xsi:type="DV_CODED_TEXT">
<value>Eletiva</value>
<defining_code>
<terminology_id>
<value>local</value>
</terminology_id>
<code_string>at0020</code_string>
</defining_code>
</value>
</items>
as the language was set to âenâ, I had to replace âEletivaâ with âElectiveâ.
Hi Birger,
That XML namespace issue is one I have known about - I think it is down to the slightly different behaviours of the serialization libs used by Better and ehrBase (or more likely somebody told me that!!).
The issue about codedText validation of the text value as well as the code_string is interesting - it might be worth raising this with other implementers and @thomas.beale . I can see some arguments that validating on the text is not required or helpful. There are going to be some interesting issues in this area around SNOMED CT synoynms.
surfer
(giovanni delussu)
28 February 2020 06:58
33
thanks @birger.haarbrandt . looking forward to see the file cleaned.
@ian.mcnicoll What I can tell, in my little experience, is that starting from the ORBDA db I had to make corrections, both in Template and Compositions, to use Better and Ethercis that arenât overlapping. In general Better is more âforgivingâ and needs less corrections. And now Ehrbase is again different from the other two in terms of adjustments needed.
At least the namespace handling is something that we could certainly fix by doing some internal pre-processing. However, I cannot say when this will be ready and for now this needs to be done client-side.
It is something to consider as part of conformance testing before you âfixâ it - it is possible that it is Better who are doing things slightly differently. Or does this matter, at all in conformance terms. The Better approach makes sense, in their terms, where the element is not the root element - the openEHR ns is on the root which is a simple wrapper.
These are just the small (hopefully!!) niggles that confomance testing will bring up and that we need clarify.
I think from an XML perspective, the use of namespaces in the example given by @surfer looks appropriate. I think it still is canonical XML. Hence, I think EHRbase should accept the compositions.
Birger
digging into this a little further, I suspect it should not be an issue. It is I think an artefact of the Ehrscape GET /composition that wraps the composition in a metadata header (which carries the openEHR ns) . From what I can see the REST API mandates that the composition is the root element and therefore should carry the ns there. Iâll test ASAP.
Ah now I see I am talking nonsense!!
This not the lack of an openEHR namespace on the root but the fact that it is not expressed as a âdefaultâ namespace. I agree @birger.haarbrandt the format that @surfer sent over should be acceptable, as should the current ehrBase approach (digging back into my creaky knowledge of XML namespaces ).
matijap
(Matija Polajnar)
6 March 2020 08:27
39
I believe youâve figured it all out now (did not check, but your last post makes sense), Iâd just like to point out that Better EHR (and consequently Ehrscape) has 2 REST APIs; the legacy proprietary one, and the slightly different openEHR one.
Yep - just doing a little tidyup of a single Postman collection that will handle both, so we can start to compare and contrast.