phr document standard

printer friendly version of this page

View PHR Schema

problem.xsd

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://indivo.org/xml/phr/problem"
    xmlns:prob="http://indivo.org/xml/phr/problem"
    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="Problem" type="prob:ProblemType"/>
    <complexType name="ProblemType">
        <complexContent>
            <extension base="phd:PersonalHealthDataType">
                <sequence>
                    <element name="Diagnosis" type="boolean" minOccurs="1"/>
                    <element name="Episode" type="type:DurationType" minOccurs="0" maxOccurs="unbounded"/>
                    <element name="Name" type="string" minOccurs="1"/>
                    <element name="Code" type="type:CodedValueType" minOccurs="0" maxOccurs="unbounded"/>
                    <element name="Importance" minOccurs="1">
                        <simpleType>
                            <restriction base="positiveInteger">
                                <maxInclusive value="5" />
                            </restriction>
                        </simpleType>
                    </element>
                </sequence>
            </extension>
        </complexContent>
    </complexType>
    
</schema>