Skip to:
There is a problem with VALIDITY_KIND.
The specification http://www.openehr.org/releases/BASE/latest/docs/base_types/base_types.html#_validity_kind_enumeration defines 3 values:
mandatory
optional
prohibited
The XSD defines the values in a different way and as an INTEGERhttps://github.com/openEHR/specifications-ITS/blob/master/RM/XML-schema/Archetype.xsd
<xs:simpleType name="VALIDITY_KIND"><xs:restriction base="xs:integer"><xs:enumeration value="1001" id="mandatory"/><xs:enumeration value="1002" id="optional"/><xs:enumeration value="1003" id="disallowed"/></xs:restriction></xs:simpleType>
There are two issues here:
1. Disallowed and prohibited are used for what seems to be the same "enumeration"2. The numbers used in XSD is not defined in the specification.
Suggestion:
Change XSD into something like this: https://github.com/bjornna/specifications-ITS/blob/taskplanning/RM/XML-schema/TaskPlan.xsd
<xs:simpleType name="VALIDITY_KIND"><xs:restriction base="xs:string"><xs:enumeration value="mandatory"/><xs:enumeration value="optional"/><xs:enumeration value="prohibited"/></xs:restriction></xs:simpleType>
There is a problem with VALIDITY_KIND.
The specification http://www.openehr.org/releases/BASE/latest/docs/base_types/base_types.html#_validity_kind_enumeration defines 3 values:
mandatory
optional
prohibited
The XSD defines the values in a different way and as an INTEGER
https://github.com/openEHR/specifications-ITS/blob/master/RM/XML-schema/Archetype.xsd
<xs:simpleType name="VALIDITY_KIND">
<xs:restriction base="xs:integer">
<xs:enumeration value="1001" id="mandatory"/>
<xs:enumeration value="1002" id="optional"/>
<xs:enumeration value="1003" id="disallowed"/>
</xs:restriction>
</xs:simpleType>
There are two issues here:
1. Disallowed and prohibited are used for what seems to be the same "enumeration"
2. The numbers used in XSD is not defined in the specification.
Suggestion:
Change XSD into something like this: https://github.com/bjornna/specifications-ITS/blob/taskplanning/RM/XML-schema/TaskPlan.xsd
<xs:simpleType name="VALIDITY_KIND">
<xs:restriction base="xs:string">
<xs:enumeration value="mandatory"/>
<xs:enumeration value="optional"/>
<xs:enumeration value="prohibited"/>
</xs:restriction>
</xs:simpleType>