<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright (c) 2011+, HL7, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of HL7 nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Generated on Wed, Apr 26, 2017 18:33-0400 for FHIR v3.0.0 Note: the schemas & schematrons do not contain all of the rules about what makes resources valid. Implementers will still need to be familiar with the content of the specification and with any profiles that apply to the resources in order to make a conformant implementation. --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0"> <xs:include schemaLocation="fhir-base.xsd"/> <xs:element name="Condition" type="Condition"> </xs:element> <xs:complexType name="Condition"> <xs:complexContent> <xs:extension base="DomainResource"> <xs:sequence> <xs:element name="identifier" minOccurs="0" maxOccurs="unbounded" type="Identifier"> </xs:element> <xs:element name="clinicalStatus" minOccurs="0" maxOccurs="1" type="ConditionClinicalStatusCodes"> </xs:element> <xs:element name="verificationStatus" minOccurs="0" maxOccurs="1" type="ConditionVerificationStatus"> </xs:element> <xs:element name="category" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept"> </xs:element> <xs:element name="severity" minOccurs="0" maxOccurs="1" type="CodeableConcept"> </xs:element> <xs:element name="code" minOccurs="0" maxOccurs="1" type="CodeableConcept"> </xs:element> <xs:element name="bodySite" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept"> </xs:element> <xs:element name="subject" minOccurs="1" maxOccurs="1" type="Reference"> </xs:element> <xs:element name="context" minOccurs="0" maxOccurs="1" type="Reference"> </xs:element> <xs:choice minOccurs="0" maxOccurs="1"> <xs:element name="onsetDateTime" type="dateTime"/> <xs:element name="onsetAge" type="Age"/> <xs:element name="onsetPeriod" type="Period"/> <xs:element name="onsetRange" type="Range"/> <xs:element name="onsetString" type="string"/> </xs:choice> <xs:choice minOccurs="0" maxOccurs="1"> <xs:element name="abatementDateTime" type="dateTime"/> <xs:element name="abatementAge" type="Age"/> <xs:element name="abatementBoolean" type="boolean"/> <xs:element name="abatementPeriod" type="Period"/> <xs:element name="abatementRange" type="Range"/> <xs:element name="abatementString" type="string"/> </xs:choice> <xs:element name="assertedDate" minOccurs="0" maxOccurs="1" type="dateTime"> </xs:element> <xs:element name="asserter" minOccurs="0" maxOccurs="1" type="Reference"> </xs:element> <xs:element name="stage" type="Condition.Stage" minOccurs="0" maxOccurs="1"> </xs:element> <xs:element name="evidence" type="Condition.Evidence" minOccurs="0" maxOccurs="unbounded"> </xs:element> <xs:element name="note" minOccurs="0" maxOccurs="unbounded" type="Annotation"> </xs:element> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> <xs:complexType name="Condition.Stage"> <xs:complexContent> <xs:extension base="BackboneElement"> <xs:sequence> <xs:element name="summary" minOccurs="0" maxOccurs="1" type="CodeableConcept"> </xs:element> <xs:element name="assessment" minOccurs="0" maxOccurs="unbounded" type="Reference"> </xs:element> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> <xs:complexType name="Condition.Evidence"> <xs:complexContent> <xs:extension base="BackboneElement"> <xs:sequence> <xs:element name="code" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept"> </xs:element> <xs:element name="detail" minOccurs="0" maxOccurs="unbounded" type="Reference"> </xs:element> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> <xs:simpleType name="ConditionVerificationStatus-list"> <xs:restriction base="code-primitive"> <xs:enumeration value="provisional"> </xs:enumeration> <xs:enumeration value="differential"> </xs:enumeration> <xs:enumeration value="confirmed"> </xs:enumeration> <xs:enumeration value="refuted"> </xs:enumeration> <xs:enumeration value="entered-in-error"> </xs:enumeration> <xs:enumeration value="unknown"> </xs:enumeration> </xs:restriction> </xs:simpleType> <xs:complexType name="ConditionVerificationStatus"> <xs:complexContent> <xs:extension base="Element"> <xs:attribute name="value" type="ConditionVerificationStatus-list" use="optional"/> </xs:extension> </xs:complexContent> </xs:complexType> <xs:simpleType name="ConditionClinicalStatusCodes-list"> <xs:restriction base="code-primitive"> <xs:enumeration value="active"> </xs:enumeration> <xs:enumeration value="recurrence"> </xs:enumeration> <xs:enumeration value="inactive"> </xs:enumeration> <xs:enumeration value="remission"> </xs:enumeration> <xs:enumeration value="resolved"> </xs:enumeration> </xs:restriction> </xs:simpleType> <xs:complexType name="ConditionClinicalStatusCodes"> <xs:complexContent> <xs:extension base="Element"> <xs:attribute name="value" type="ConditionClinicalStatusCodes-list" use="optional"/> </xs:extension> </xs:complexContent> </xs:complexType> </xs:schema>