C# XSD.EXE在XSD上抛出错误
XSD.exe给了我一个错误 错误:为架构“POCD_MT000001UK04”生成类时出错。 -缺少元素“NPFIT:HL7:Localization:messageType”。 以下是XSD.exe给我的所有错误: 架构验证警告:引用未声明的模型组“xhtml:NPfIT:Pres” entationText:htmlRoot'。第270行,位置10。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第1020行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第976行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第951行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第940行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第926行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第914行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第903行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第869行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第819行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第806行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第746行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第732行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第587行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第573行,位置5。 架构验证警告:“NPFIT:HL7:本地化:recipientRoleCode”元素 t未声明。第534行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第523行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第512行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第497行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第448行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第428行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第403行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第352行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第326行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第303行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第279行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第267行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第245行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第233行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第219行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第208行,位置5。 架构验证警告:“NPFIT:HL7:Localization:messageType”元素为n ot宣布。第176行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第149行,位置5。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第136行,位置5 警告:无法验证架构。类生成可能会失败或产生 结果不正确 错误:为架构“POCD\U MT000001UK04”生成类时出错。 -缺少元素“NPFIT:HL7:Localization:messageType” 我正在调用XSD.exe blah.XSD/classes/language:C# 这在另一个XSD上对我有效,但没有一个像这样导入XSD 注意,它给出了其他警告,表示未定义其他NPFIT数据类型(如contentID) 我使用的XSD引用了其他XSD文件,这些文件似乎工作得很好,但NPFIT文件才是一个问题。我注意到主要的区别是它是由import语句和include语句引用的 NPFIT xsd已存在。如果路径导航出现问题(即使是远程情况,因为包含文件可以在另一个目录中访问),我将文件移动到与POCD消息相同的文件夹中,并更改XSD中的引用,但仍然会出现相同的问题 注意:我将XSD加载到VS2013中,以查看它是否会验证,它确实加载了XSD,但给出了一些警告。与我在XSD.exe中收到的消息不同,但与NPFIT元素相关。它确实读取了NPFIT文件,因为我可以看到这些元素显示在XML树中 以下是主XSD文件:C# XSD.EXE在XSD上抛出错误,c#,xml,xsd,C#,Xml,Xsd,XSD.exe给了我一个错误 错误:为架构“POCD_MT000001UK04”生成类时出错。 -缺少元素“NPFIT:HL7:Localization:messageType”。 以下是XSD.exe给我的所有错误: 架构验证警告:引用未声明的模型组“xhtml:NPfIT:Pres” entationText:htmlRoot'。第270行,位置10。 架构验证警告:“NPFIT:HL7:Localization:contentId”元素不可用 宣布。第1020行,位置5。 架构验证警告:“
<?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>
<?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>