|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<xsd:schema |
| 3 | + attributeFormDefault="unqualified" |
| 4 | + elementFormDefault="unqualified" |
| 5 | + id="drug-neoplasm-schema" |
| 6 | + version="1.0" |
| 7 | + xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
| 8 | + |
| 9 | + <xsd:annotation> |
| 10 | + <xsd:documentation>ICD-10 Drug and Neoplasm Document Definition</xsd:documentation> |
| 11 | + <xsd:documentation>2019-05-17</xsd:documentation> |
| 12 | + </xsd:annotation> |
| 13 | + |
| 14 | + <xsd:complexType mixed="true" name="contentType"> |
| 15 | + <xsd:annotation> |
| 16 | + <xsd:documentation>Allows the new/old tags to identify modifications in the addenda.</xsd:documentation> |
| 17 | + </xsd:annotation> |
| 18 | + <xsd:sequence minOccurs="0" maxOccurs="unbounded"> |
| 19 | + <xsd:element type="xsd:string" minOccurs="0" maxOccurs="1" name="new"/> |
| 20 | + <xsd:element type="xsd:string" minOccurs="0" maxOccurs="1" name="old"/> |
| 21 | + <xsd:element type="xsd:string" minOccurs="0" maxOccurs="1" name="nemod"/> |
| 22 | + </xsd:sequence> |
| 23 | + </xsd:complexType> |
| 24 | + <xsd:element type="contentType" name="version"/> |
| 25 | + <xsd:element type="contentType" name="title"/> |
| 26 | +<!-- <xsd:element type="contentType" name="nemod"/> --> |
| 27 | + <xsd:element type="contentType" name="manif"/> |
| 28 | + <xsd:element type="contentType" name="see"/> |
| 29 | + <xsd:element type="contentType" name="seeAlso"/> |
| 30 | + |
| 31 | + <!--NOTE: IDENTICAL TO CELL TYPE [TH,TD], KEEPING SEPARATE IN CASE OF CHANGE...--> |
| 32 | + <xsd:complexType mixed="true" name="headType"> |
| 33 | + <xsd:annotation> |
| 34 | + <xsd:documentation>Table cell (TH) definition supporting new/old tags.</xsd:documentation> |
| 35 | + </xsd:annotation> |
| 36 | + <xsd:complexContent> |
| 37 | + <xsd:extension base="contentType"> |
| 38 | + <xsd:attribute type="xsd:positiveInteger" use="required" name="col"/> |
| 39 | + </xsd:extension> |
| 40 | + </xsd:complexContent> |
| 41 | + </xsd:complexType> |
| 42 | + <xsd:element type="headType" name="head"/> |
| 43 | + |
| 44 | + <xsd:complexType name="indexHeadingType"> |
| 45 | + <xsd:annotation> |
| 46 | + <xsd:documentation>Collection tag for column headers sub-elements (head tags).</xsd:documentation> |
| 47 | + </xsd:annotation> |
| 48 | + <xsd:sequence> |
| 49 | + <xsd:element ref="head" minOccurs="0" maxOccurs="unbounded"/> |
| 50 | + </xsd:sequence> |
| 51 | + </xsd:complexType> |
| 52 | + <xsd:element type="indexHeadingType" name="indexHeading"/> |
| 53 | + |
| 54 | + <xsd:complexType name="cellType"> |
| 55 | + <xsd:annotation> |
| 56 | + <xsd:documentation>Table cell (TD) definition supporting new/old tags.</xsd:documentation> |
| 57 | + </xsd:annotation> |
| 58 | + <xsd:complexContent> |
| 59 | + <xsd:extension base="contentType"> |
| 60 | + <xsd:attribute type="xsd:positiveInteger" use="required" name="col"/> |
| 61 | + </xsd:extension> |
| 62 | + </xsd:complexContent> |
| 63 | + </xsd:complexType> |
| 64 | + <xsd:element type="cellType" name="cell"/> |
| 65 | + |
| 66 | + <xsd:group name="termGroup"> |
| 67 | + <xsd:annotation> |
| 68 | + <xsd:documentation>Sub-elements shared across term and mainTerm elements.</xsd:documentation> |
| 69 | + </xsd:annotation> |
| 70 | + <xsd:sequence> |
| 71 | + <xsd:element ref="title" minOccurs="0" maxOccurs="1"/> |
| 72 | +<!-- <xsd:element ref="nemod" minOccurs="0" maxOccurs="1"/> --> |
| 73 | + <xsd:element ref="manif" minOccurs="0" maxOccurs="1"/> |
| 74 | + <xsd:element ref="see" minOccurs="0" maxOccurs="1"/> |
| 75 | + <xsd:element ref="seeAlso" minOccurs="0" maxOccurs="1"/> |
| 76 | + <xsd:element ref="cell" minOccurs="0" maxOccurs="unbounded"/> |
| 77 | + <xsd:element ref="term" minOccurs="0" maxOccurs="unbounded"/> |
| 78 | + </xsd:sequence> |
| 79 | + </xsd:group> |
| 80 | + |
| 81 | + <xsd:complexType abstract="false" name="termType"> |
| 82 | + <xsd:annotation> |
| 83 | + <xsd:documentation>Sub-class mainTerm and add the level attribute to it.</xsd:documentation> |
| 84 | + </xsd:annotation> |
| 85 | + <xsd:complexContent> |
| 86 | + <xsd:extension base="mainTermType"> |
| 87 | + <xsd:attribute type="xsd:positiveInteger" use="required" name="level"/> |
| 88 | + </xsd:extension> |
| 89 | + </xsd:complexContent> |
| 90 | + </xsd:complexType> |
| 91 | + <xsd:element type="termType" name="term"/> |
| 92 | + |
| 93 | + <xsd:complexType abstract="false" name="mainTermType"> |
| 94 | + <xsd:annotation> |
| 95 | + <xsd:documentation>The mainTerm type is the base term element.</xsd:documentation> |
| 96 | + </xsd:annotation> |
| 97 | + <xsd:group ref="termGroup"/> |
| 98 | + </xsd:complexType> |
| 99 | + <xsd:element type="mainTermType" name="mainTerm"/> |
| 100 | + |
| 101 | + <xsd:complexType abstract="false" name="letterType"> |
| 102 | + <xsd:sequence> |
| 103 | + <xsd:element ref="title" minOccurs="0" maxOccurs="1"/> |
| 104 | + <xsd:element ref="mainTerm" minOccurs="0" maxOccurs="unbounded"/> |
| 105 | + </xsd:sequence> |
| 106 | + </xsd:complexType> |
| 107 | + <xsd:element type="letterType" name="letter"/> |
| 108 | + |
| 109 | +<!-- <xsd:element name="ICD10CM.index"> --> |
| 110 | + <xsd:element name="ICD10CM.index"> |
| 111 | + <xsd:annotation> |
| 112 | + <xsd:documentation>Top level element and direct child-element sequence.</xsd:documentation> |
| 113 | + </xsd:annotation> |
| 114 | + <xsd:complexType> |
| 115 | + <xsd:sequence> |
| 116 | + <xsd:element ref="version" minOccurs="0" maxOccurs="1"/> |
| 117 | + <xsd:element ref="title" minOccurs="0" maxOccurs="1"/> |
| 118 | + <xsd:element ref="indexHeading" minOccurs="0" maxOccurs="1"/> |
| 119 | + <xsd:element ref="letter" minOccurs="0" maxOccurs="unbounded"/> |
| 120 | + </xsd:sequence> |
| 121 | + </xsd:complexType> |
| 122 | + </xsd:element> |
| 123 | + |
| 124 | +</xsd:schema> |
| 125 | + |
0 commit comments