For reference, in terms of 'real XML' here is an example of a coded term:
<items xsi:type="ELEMENT"
archetype_node_id="at0001">
<name>
<value>Episodicity</value>
</name>
<value xsi:type="DV_CODED_TEXT">
<value>First ever</value>
<mappings>
<match>=</match>
<target>
<terminology_id>
<value>SNOMED-CT</value>
</terminology_id>
<code_string>255217005</code_string>
</target>
</mappings>
<defining_code>
<terminology_id>
<value>local</value>
</terminology_id>
<code_string>at0033</code_string>
</defining_code>
</value>
</items>
Of course he XSD for the next release of openEHR could be much more
efficient than that. But that's what we use today.
- thomas