Skip to content

Instantly share code, notes, and snippets.

@freshehr
Last active January 11, 2019 22:40
Show Gist options
  • Save freshehr/7a9b45b35aed84ccda5e7ab22b4a822a to your computer and use it in GitHub Desktop.
Save freshehr/7a9b45b35aed84ccda5e7ab22b4a822a to your computer and use it in GitHub Desktop.
Corrected SASurfer xml
<v1:composition archetype_node_id="openEHR-EHR-COMPOSITION.hospitalisation.v1" xmlns:v1="http://schemas.openehr.org/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<v1:name>
<v1:value>Hospitalisation</v1:value>
</v1:name>
<v1:archetype_details>
<v1:archetype_id>
<v1:value>openEHR-EHR-COMPOSITION.hospitalisation.v1</v1:value>
</v1:archetype_id>
<v1:template_id>
<v1:value>hospitalization_oceanehr</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-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_oceanehr</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: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: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_oceanehr</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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment