View Schema

View PHR Schema

allergy.xsd

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://indivo.org/xml/phr/allergy"
    xmlns:all="http://indivo.org/xml/phr/allergy"
    xmlns:phd="http://indivo.org/xml/phr/personalHealthData"
    xmlns:type="http://indivo.org/xml/phr/types"
    xmlns="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="unqualified">
 
    <import namespace="http://indivo.org/xml/phr/personalHealthData" 
    schemaLocation="http://indivo.org/xml/phr/personalHealthData.xsd"/>
 
    <import namespace="http://indivo.org/xml/phr/types" 
    schemaLocation="http://indivo.org/xml/phr/types.xsd"/>            
    
    <element name="Allergy" type="all:AllergyType"/>
    <complexType name="AllergyType">
        <complexContent>
            <extension base="phd:PersonalHealthDataType">
                <sequence>
                    <element name="Negation" type="boolean" minOccurs="1"/>
                    <element name="AllergenType" type="type:CodedValueType" minOccurs="1"/>
                    <element name="Allergen" type="string" minOccurs="0"/>
                    <element name="AllergenCode" type="type:CodedValueType" minOccurs="0"/>
                    <element name="Reaction" type="string" minOccurs="0"/>
                </sequence>
            </extension>
        </complexContent>
    </complexType>
</schema>