I have a question about the XML schema for archetypes based on ADL version 1.4
The set of schemas we are using to validate XML archetype exports are 1.0.1
<!-- openEHR Release 1.0.1 OpenehrProfile XML schema -->
<!-- openEHR Release 1.0.1 Archetype XML schema -->
<!-- openEHR Release 1.0.1 BaseTypes XML schema -->
ETC..
The issue we are getting is that sometimes an archetype has a <uid> tag. All
those downloaded from our CKM (ckm.hscic.gov.uk) have this tag, but it's not
present on all archetypes from other CKMs (which may be why this could be a new
issue).
The schema is expecting the <uid> tag before the <archetype_id> tag
<xs:complexType name="ARCHETYPE">
<xs:complexContent>
<xs:extension base="AUTHORED_RESOURCE">
<xs:sequence>
<xs:element
name="uid" type="HIER_OBJECT_ID" minOccurs="0"/>
<xs:element
name="archetype_id" type="ARCHETYPE_ID"/>
<xs:element
name="adl_version" type="xs:string" minOccurs="0"/>
However, in the XML instances, the <uid> (if present) appears after the
<adl_version> tag
<archetype_id>
<value>openEHR-EHR-OBSERVATION.newborn_birth_details.v0</value>
</archetype_id>
<adl_version>1.4</adl_version>
<uid>7f716e0e-5fa8-4fec-942d-208764409b07</uid>
Further, changing the schema to change the expected tag order to match the XML
instances shows up a further issue in that the format of <uid> (according to
the schema) should use a <value> tag like this
<uid>
<value>7f716e0e-5fa8-4fec-942d-208764409b07</value>
</uid>
Are we using an out of date set of schema? Or are these known issues? Have
people corrected the schema for their own use (if so could I have a copy
please)?
Kind regards
Dave Barnet
Interoperability Lead
Interoperability Specifications
Health & Social Care Information Centre
[email protected]<mailto:[email protected]>
www.hscic.gov.uk<http://www.hscic.gov.uk>
********************************************************************************************************************
This message may contain confidential information. If you are not the intended
recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take
any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.
Thank you for your co-operation.
NHSmail is the secure email and directory service available for all NHS staff
in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information
with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be
accessed anywhere
********************************************************************************************************************
_______________________________________________
openEHR-technical mailing list
[email protected]
http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org