Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
AM 1.4 XML Schema: wrong minOccurs for C_PRIMITIVE_OBJECT.item
Raise
Analysis
Raise
Analysis
Description
C_PRIMITIVE_OBJECT.item has minOccurs=0 (see https://github.com/openEHR/specifications-ITS-XML/blob/master/components/AM/Release-1.4/Archetype.xsd#L119C7-L119C64)
<xs:complexType name="C_PRIMITIVE_OBJECT">
<xs:complexContent>
<xs:extension base="C_DEFINED_OBJECT">
<xs:sequence>
<xs:element name="item" type="C_PRIMITIVE" minOccurs="0"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
C_PRIMITIVE_OBJECT.item in the AOM is 1..1
https://specifications.openehr.org/releases/AM/Release-2.2.0/AOM1.4.html#_c_primitive_object_class
Solution: minOccurs should be 1 in the XML Schema for AM 1.4
C_PRIMITIVE_OBJECT.item has minOccurs=0 (see https://github.com/openEHR/specifications-ITS-XML/blob/master/components/AM/Release-1.4/Archetype.xsd#L119C7-L119C64) <xs:complexType name="C_PRIMITIVE_OBJECT"> <xs:complexContent> <xs:extension base="C_DEFINED_OBJECT"> <xs:sequence> <xs:element name="item" type="C_PRIMITIVE" minOccurs="0"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> C_PRIMITIVE_OBJECT.item in the AOM is 1..1 https://specifications.openehr.org/releases/AM/Release-2.2.0/AOM1.4.html#_c_primitive_object_class Solution: minOccurs should be 1 in the XML Schema for AM 1.4