XSD.exe给我一个错误说
错误:为架构生成类时出错' POCD_MT000001UK04'。 - 元素' NPFIT:HL7:本地化:messageType'缺少。
以下是XSD.exe给我的所有错误:
架构验证警告:引用未声明的模型组' xhtml:NPfIT:Pres entationText:htmlRoot&#39 ;.第270行,第10位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。 1020行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第976行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第951行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。 940行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第926行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第914行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第903行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。 869行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。 819行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第806行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第746行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第732行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第587行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第573行,第5位。 模式验证警告:' NPFIT:HL7:本地化:recipientRoleCode'的Elemen t未声明。第534行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第523行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第512行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第497行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第448行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第428行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第403行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第352行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第326行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第303行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第279行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第267行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第245行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第233行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第219行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第208行,第5位。 模式验证警告:' NPFIT:HL7:本地化:messageType'元素是n ot宣布。第176行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第149行,第5位。 模式验证警告:' NPFIT:HL7:本地化:contentId'元素不是 声明。第136行,第5位。
警告:无法验证架构。类生成可能会失败或可能产生 结果不正确。
错误:为架构生成类时出错' POCD_MT000001UK04'。 - 元素' NPFIT:HL7:本地化:messageType'不见了。
我正在调用XSD.exe blah.XSD / classes / language:C#
这对我在另一个XSD上起作用,但不是像这个XSD那样导入的。
请注意,它会提供其他警告,说明其他NPFIT数据类型未定义(如contentID)
我所说的XSD引用了其他看起来运行正常的XSD文件,它只是NPFIT的一个问题。我注意到主要区别在于它是由import语句与include。
引用的存在NPFIT xsd。如果它在某种程度上有问题进行路径导航(即使它是远程情况,因为包含文件可以到达另一个目录)我将文件移动到与POCD消息相同的文件夹并更改了XSD中的引用,它仍然同样的问题。
注意我将XSD加载到VS2013中以查看它是否会验证并且确实加载了它但是发出了一些警告。我使用XSD.exe获得的消息不同,但与NPFIT元素有关。它确实阅读了NPFIT文件,因为我可以看到这些元素出现在XML树中。
这是主要的XSD文件:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xs:schema xmlns="urn:hl7-org:v3" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:npfitlc="NPFIT:HL7:Localisation"
targetNamespace="urn:hl7-org:v3"
elementFormDefault="qualified">
<xs:include schemaLocation="../dt/infrastructureRoot.xsd"/>
<xs:include schemaLocation="../VocabularySchemas/CDAVocab.xsd"/>
<xs:include schemaLocation="../dt/datatypeflavours.xsd"/>
<xs:import namespace="NPFIT:HL7:Localisation" schemaLocation="../dt/NHSLocalisation.xsd"/>
<xs:include schemaLocation="../TemplateSchemas/NPFIT-000014_Role.xsd"/>
<xs:include schemaLocation="../TemplateSchemas/NPFIT-000008_Role.xsd"/>
<xs:include schemaLocation="../TemplateSchemas/NPFIT-000007_Role.xsd"/>
<xs:include schemaLocation="../TemplateSchemas/NPFIT-000019_Role.xsd"/>
<xs:include schemaLocation="../TemplateSchemas/NPFIT-000001_Section.xsd"/>
<xs:include schemaLocation="../TemplateSchemas/NPFIT-000041_Section.xsd"/>
<xs:include schemaLocation="../TemplateSchemas/NPFIT-000032_Section.xsd"/>
<xs:include schemaLocation="../TemplateSchemas/NPFIT-000024_Role.xsd"/>
<xs:include schemaLocation="../TemplateSchemas/NPFIT-000016_Role.xsd"/>
<xs:include schemaLocation="../TemplateSchemas/NPFIT-000001_Act.xsd"/>
<xs:element name="ClinicalDocument" type="POCD_MT030001UK01.ClinicalDocument"/>
<xs:complexType name="POCD_MT030001UK01.Authenticator">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:element ref="npfitlc:contentId" minOccurs="1" maxOccurs="1"/>
<xs:element name="signatureCode" type="CS" minOccurs="1" maxOccurs="1"/>
<xs:element name="time" type="TS" minOccurs="1" maxOccurs="1"/>
<xs:choice>
<xs:group ref="NPFIT-000024_Role"/>
</xs:choice>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="typeCode" type="cs" use="required" fixed="AUTHEN"/>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.Author">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:element ref="npfitlc:contentId" minOccurs="1" maxOccurs="1"/>
<xs:element name="functionCode" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:complexContent>
<xs:restriction base="CV">
<xs:attribute name="code" use="required" fixed="OA" type="cs"/>
<xs:attribute name="displayName" use="required" fixed="Originating Author" type="st"/>
<xs:attribute name="codeSystem" use="required" fixed="2.16.840.1.113883.2.1.3.2.4.17.178"
type="uid"/>
<xs:attribute name="codeSystemName" type="st" use="prohibited"/>
<xs:attribute name="codeSystemVersion" type="st" use="prohibited"/>
<xs:attribute name="updateMode" type="cs" use="prohibited"/>
<xs:attribute name="nullFlavor" type="cs_NullFlavor" use="prohibited"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="time" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:complexContent>
<xs:restriction base="TS">
<xs:attribute name="value" use="required" type="ts"/>
<xs:attribute name="updateMode" type="cs" use="prohibited"/>
<xs:attribute name="nullFlavor" type="cs_NullFlavor" use="prohibited"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:choice>
<xs:group ref="NPFIT-000007_Role"/>
</xs:choice>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="typeCode" type="cs" use="required" fixed="AUT"/>
<xs:attribute name="contextControlCode" type="ContextControl" use="required" fixed="OP"/>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.ClassificationSection">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:element name="id" type="II.NPfIT.uuid.mandatory" minOccurs="1" maxOccurs="1"/>
<xs:element name="component" type="POCD_MT030001UK01.Component3" minOccurs="1"
maxOccurs="unbounded"/>
<xs:element name="entry" type="POCD_MT030001UK01.Component_1" nillable="true" minOccurs="0"
maxOccurs="unbounded"/>
<xs:element name="entry1" type="POCD_MT030001UK01.Component2_1" nillable="true"
minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="classCode" type="cs" use="required" fixed="DOCSECT"/>
<xs:attribute name="moodCode" type="cs" use="required" fixed="EVN"/>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.ClinicalDocument.typeId">
<xs:complexContent>
<xs:restriction base="II">
<xs:attribute name="root" type="uid" fixed="2.16.840.1.113883.1.3" use="required"/>
<xs:attribute name="extension" use="required">
<xs:simpleType>
<xs:restriction base="st">
<xs:enumeration value="POCD_HD000040"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="nullFlavor" type="cs_NullFlavor" use="prohibited"/>
<xs:attribute name="updateMode" type="cs_UpdateMode" use="prohibited"/>
<xs:attribute name="assigningAuthorityName" type="st" use="prohibited"/>
<xs:attribute name="displayable" type="bl" use="prohibited"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.ClinicalDocument">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:element name="code" type="CV.NPfIT.CodedCodeSystem.required" minOccurs="1"
maxOccurs="1"/>
<xs:element name="confidentialityCode" type="CE" minOccurs="1" maxOccurs="1"/>
<xs:element name="effectiveTime" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:complexContent>
<xs:restriction base="TS">
<xs:attribute name="value" use="required" type="ts"/>
<xs:attribute name="updateMode" type="cs" use="prohibited"/>
<xs:attribute name="nullFlavor" type="cs_NullFlavor" use="prohibited"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="id" type="II.NPfIT.uuid.mandatory" minOccurs="1" maxOccurs="1"/>
<xs:element ref="npfitlc:messageType" minOccurs="1" maxOccurs="1"/>
<xs:element name="setId" type="II.NPfIT.uuid.mandatory" minOccurs="1" maxOccurs="1"/>
<xs:element name="title" type="ST" minOccurs="1" maxOccurs="1"/>
<xs:element name="typeId" type="POCD_MT030001UK01.ClinicalDocument.typeId" minOccurs="1"
maxOccurs="1"/>
<xs:element name="versionNumber" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:complexContent>
<xs:restriction base="INT">
<xs:attribute name="value" use="required" type="int"/>
<xs:attribute name="updateMode" type="cs" use="prohibited"/>
<xs:attribute name="nullFlavor" type="cs_NullFlavor" use="prohibited"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="authenticator" type="POCD_MT030001UK01.Authenticator" nillable="true"
minOccurs="0"
maxOccurs="1"/>
<xs:element name="author" type="POCD_MT030001UK01.Author" minOccurs="1" maxOccurs="1"/>
<xs:element name="component" type="POCD_MT030001UK01.Component2" minOccurs="1"
maxOccurs="1"/>
<xs:element name="componentOf" type="POCD_MT030001UK01.Component" minOccurs="1"
maxOccurs="1"/>
<xs:element name="custodian" type="POCD_MT030001UK01.Custodian" minOccurs="1" maxOccurs="1"/>
<xs:element name="dataEnterer" type="POCD_MT030001UK01.DataEnterer" nillable="true"
minOccurs="0"
maxOccurs="1"/>
<xs:element name="informationRecipient"
type="POCD_MT030001UK01.PrimaryInformationRecipient"
minOccurs="1"
maxOccurs="unbounded"/>
<xs:element name="recordTarget" type="POCD_MT030001UK01.RecordTarget" minOccurs="1"
maxOccurs="1"/>
<xs:element name="relatedDocument" type="POCD_MT030001UK01.ReplacementOf" nillable="true"
minOccurs="0"
maxOccurs="1"/>
<xs:element name="tracker" type="POCD_MT030001UK01.Tracker" nillable="true" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="classCode" type="cs" use="required" fixed="DOCCLIN"/>
<xs:attribute name="moodCode" type="cs" use="required" fixed="EVN"/>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.Component">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:element ref="npfitlc:contentId" minOccurs="1" maxOccurs="1"/>
<xs:choice>
<xs:group ref="NPFIT-000001_Act"/>
</xs:choice>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="typeCode" type="cs" use="required" fixed="COMP"/>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.Component_1">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:element ref="npfitlc:contentId" minOccurs="1" maxOccurs="1"/>
<xs:choice>
<xs:group ref="NPFIT-000041_Section"/>
</xs:choice>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="typeCode" type="cs" use="required" fixed="COMP"/>
<xs:attribute name="contextConductionInd" type="bl" use="required" fixed="true"/>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.Component2">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:choice>
<xs:element name="structuredBody" type="POCD_MT030001UK01.StructuredBody" minOccurs="1"
maxOccurs="1"/>
<xs:element name="nonXMLBody" type="POCD_MT030001UK01.NonXMLBody" minOccurs="1"
maxOccurs="1"/>
</xs:choice>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="typeCode" type="cs" use="required" fixed="COMP"/>
<xs:attribute name="contextConductionInd" type="bl" use="required" fixed="true"/>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.Component2_1">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:element ref="npfitlc:contentId" minOccurs="1" maxOccurs="1"/>
<xs:choice>
<xs:group ref="NPFIT-000032_Section"/>
</xs:choice>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="typeCode" type="cs" use="required" fixed="COMP"/>
<xs:attribute name="contextConductionInd" type="bl" use="required" fixed="true"/>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.Component3">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:element ref="npfitlc:contentId" minOccurs="1" maxOccurs="1"/>
<xs:choice>
<xs:group ref="NPFIT-000001_Section"/>
</xs:choice>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="typeCode" type="cs" use="required" fixed="COMP"/>
<xs:attribute name="contextConductionInd" type="bl" use="required" fixed="true"/>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.Component5">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:element name="classificationSection" type="POCD_MT030001UK01.ClassificationSection"
minOccurs="1"
maxOccurs="1"/>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="typeCode" type="cs" use="required" fixed="COMP"/>
<xs:attribute name="contextConductionInd" type="bl" use="required" fixed="true"/>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.Custodian">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:element ref="npfitlc:contentId" minOccurs="1" maxOccurs="1"/>
<xs:choice>
<xs:group ref="NPFIT-000014_Role"/>
</xs:choice>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="typeCode" type="cs" use="required" fixed="CST"/>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.DataEnterer">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:element ref="npfitlc:contentId" minOccurs="1" maxOccurs="1"/>
<xs:choice>
<xs:group ref="NPFIT-000016_Role"/>
</xs:choice>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="typeCode" type="cs" use="required" fixed="ENT"/>
<xs:attribute name="contextControlCode" type="ContextControl" use="required" fixed="OP"/>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.NonXMLBody">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:element name="text" type="ED.NHS.NonXMLBodyText" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="classCode" type="cs" use="required" fixed="DOCBODY"/>
<xs:attribute name="moodCode" type="cs" use="required" fixed="EVN"/>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.ParentDocument">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:element name="code" type="CV" minOccurs="1" maxOccurs="1"/>
<xs:element name="id" type="II.NPfIT.uuid.mandatory" minOccurs="1" maxOccurs="1"/>
<xs:element name="setId" type="II.NPfIT.uuid.mandatory" minOccurs="1" maxOccurs="1"/>
<xs:element name="versionNumber" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:complexContent>
<xs:restriction base="INT">
<xs:attribute name="value" use="required" type="int"/>
<xs:attribute name="updateMode" type="cs" use="prohibited"/>
<xs:attribute name="nullFlavor" type="cs_NullFlavor" use="prohibited"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="classCode" type="cs" use="required" fixed="DOCCLIN"/>
<xs:attribute name="moodCode" type="cs" use="required" fixed="EVN"/>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.PrimaryInformationRecipient">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:element ref="npfitlc:contentId" minOccurs="1" maxOccurs="1"/>
<xs:choice>
<xs:group ref="NPFIT-000008_Role"/>
</xs:choice>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="typeCode" type="cs" use="required" fixed="PRCP"/>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.RecordTarget">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:element ref="npfitlc:contentId" minOccurs="1" maxOccurs="1"/>
<xs:choice>
<xs:group ref="NPFIT-000019_Role"/>
</xs:choice>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="typeCode" type="cs" use="required" fixed="RCT"/>
<xs:attribute name="contextControlCode" type="ContextControl" use="required" fixed="OP"/>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.ReplacementOf">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:element name="priorParentDocument" type="POCD_MT030001UK01.ParentDocument"
nillable="true"
minOccurs="1"
maxOccurs="1"/>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="typeCode" type="cs" use="required" fixed="RPLC"/>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.StructuredBody">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:element name="component" type="POCD_MT030001UK01.Component5" minOccurs="1"
maxOccurs="1"/>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="classCode" type="cs" use="required" fixed="DOCBODY"/>
<xs:attribute name="moodCode" type="cs" use="required" fixed="EVN"/>
</xs:complexType>
<xs:complexType name="POCD_MT030001UK01.Tracker">
<xs:sequence>
<xs:group ref="InfrastructureRootElements"/>
<xs:element ref="npfitlc:contentId" minOccurs="1" maxOccurs="1"/>
<xs:choice>
<xs:group ref="NPFIT-000008_Role"/>
</xs:choice>
</xs:sequence>
<xs:attributeGroup ref="InfrastructureRootAttributes"/>
<xs:attribute name="typeCode" type="cs" use="required" fixed="TRC"/>
</xs:complexType>
</xs:schema>
以下是导入的NPFIT模式的XSD:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="NPFIT:HL7:Localisation" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:hl7="urn:hl7-org:v3" targetNamespace="NPFIT:HL7:Localisation" elementFormDefault="qualified" version="1.0">
<xs:import namespace="urn:hl7-org:v3" schemaLocation="datatypes.xsd"/>
<xs:simpleType name="content.root">
<xs:restriction base="hl7:uid">
<xs:pattern value="([0-9][0-9]*)(\.[0-9][0-9]*)*">
<xs:annotation>
<xs:documentation>
Pattern facet to carry only oid in root of an II data type
</xs:documentation>
</xs:annotation>
</xs:pattern>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="content.extension">
<xs:restriction base="hl7:st"/>
</xs:simpleType>
<xs:simpleType name="content.oid">
<xs:restriction base="content.root">
<xs:enumeration value="2.16.840.1.113883.2.1.3.2.4.18.16"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Template.Content">
<xs:complexContent>
<xs:restriction base="hl7:II">
<xs:attribute name="root" type="content.oid" use="required"/>
<xs:attribute name="extension" type="content.extension" use="required"/>
<xs:attribute name="nullFlavor" type="hl7:cs_NullFlavor" use="prohibited"/>
<xs:attribute name="updateMode" type="hl7:cs_UpdateMode" use="prohibited"/>
<xs:attribute name="assigningAuthorityName" type="hl7:st" use="prohibited"/>
<xs:attribute name="displayable" type="hl7:bl" use="prohibited"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="messagetype.root">
<xs:restriction base="hl7:uid">
<xs:pattern value="([0-9][0-9]*)(\.[0-9][0-9]*)*">
<xs:annotation>
<xs:documentation>
Pattern facet to carry only oid in root of an II data type
</xs:documentation>
</xs:annotation>
</xs:pattern>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="messagetype.extension">
<xs:restriction base="hl7:st"/>
</xs:simpleType>
<xs:simpleType name="message.type.oid">
<xs:restriction base="messagetype.root">
<xs:enumeration value="2.16.840.1.113883.2.1.3.2.4.18.17"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Message.Type">
<xs:complexContent>
<xs:restriction base="hl7:II">
<xs:attribute name="root" type="messagetype.root" use="required"/>
<xs:attribute name="extension" type="messagetype.extension" use="required"/>
<xs:attribute name="nullFlavor" type="hl7:cs_NullFlavor" use="prohibited"/>
<xs:attribute name="updateMode" type="hl7:cs_UpdateMode" use="prohibited"/>
<xs:attribute name="assigningAuthorityName" type="hl7:st" use="prohibited"/>
<xs:attribute name="displayable" type="hl7:bl" use="prohibited"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:element name="contentId" type="Template.Content"/>
<xs:element name="messageType" type="Message.Type"/>
<xs:element name="recipientRoleCode" type="hl7:CV"/>
</xs:schema>