VALDITIY_KIND - ambiguous

Description

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>

Activity

Show:
Done

Details

Reporter

Raised By

Bjørn Næss

Components

Affects versions

Original estimate

Created May 10, 2018 at 5:37 AM
Updated March 22, 2021 at 9:14 AM
Resolved March 22, 2021 at 8:18 AM