Code Block |
---|
language | xml |
---|
theme | RDark |
---|
title | version 2.2 |
---|
linenumbers | true |
---|
| <xs:complexType name="itemBaseType" abstract="true">
<xs:annotation>
<xs:documentation xml:lang="en">Abstract base type of donor and CBU items</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="ID" minOccurs="0">
...
</xs:element>
<xs:element name="GRID" minOccurs="0">
...
</xs:element>
<xs:element name="ATTR" minOccurs="0">
...
|
Because GRID is compulsory for DONOR, and ID is optional for DONOR, but compulsory for CBU, the xsd schema 1.0 we use can not handle with conditions structure, so we need move GRID and ID, - Move ID to the sequence to the type "donItemType", keep ID as "optional"
- Move ID to the sequence to the type "cbuItemType", and changed ID to 'required'.
- Move GRID to the sequence to the type "donItemType", and changed GRID to 'required'.
Code Block |
---|
language | xml |
---|
theme | RDark |
---|
firstline | 86 |
---|
title | Version 2.3 |
---|
linenumbers | true |
---|
| <xs:complexType name="donItemType">
<xs:annotation>
<xs:documentation xml:lang="en">A donor is an adult person who has consented to donate haematopoietic progenitor cells to an unrelated patient.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="itemBaseType">
<xs:sequence>
<xs:element name="STAT_REASON" type="statReasonDonType" minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="en">Additional information relevant to the donor status</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ID" minOccurs="0">
...
</xs:element>
<xs:element name="GRID" minOccurs="1">
...
</xs:element>
|
Code Block |
---|
language | xml |
---|
theme | RDark |
---|
firstline | 199 |
---|
title | Version 2.3 |
---|
linenumbers | true |
---|
| <xs:complexType name="cbuItemType">
<xs:annotation>
<xs:documentation xml:lang="en">A cord blood unit (CBU) is a banked, frozen blood product extracted from a newborn baby's umbilical cord.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="itemBaseType">
<xs:sequence>
<xs:element name="STAT_REASON" type="statReasonCbuType" minOccurs="0">
...
</xs:element>
<xs:element name="ID" minOccurs="1">
...
</xs:element>
|
XML Example version 2.3: Code Block |
---|
language | xml |
---|
title | XML Example version 2.3 |
---|
| <DONOR>
<BIRTH_DATE>...</BIRTH_DATE>
...
<HLA>...</HLA>
<IDM>...</IDM>
<STATUS>RS</STATUS>
<STAT_END_DATE>2022-10-20</STAT_END_DATE>
<ID>WMDA001</ID>
<GRID>1234000000WMDA00121</GRID>
<STAT_REASON>TX</STAT_REASON>
... |
|