phr document standard

printer friendly version of this page

View PHR Schema

medication.xsd

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://indivo.org/xml/phr/medication"
    xmlns:med="http://indivo.org/xml/phr/medication"
    xmlns:phd="http://indivo.org/xml/phr/personalHealthData"
    xmlns:type="http://indivo.org/xml/phr/types"
    xmlns:con="http://indivo.org/xml/phr/contact"
    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"/>
    
    <import namespace="http://indivo.org/xml/phr/contact" 
    schemaLocation="http://indivo.org/xml/phr/contact.xsd"/>
            
    <element name="Medication" type="med:MedicationType"/>
    <complexType name="MedicationType">
        <complexContent>
            <extension base="phd:PersonalHealthDataType">
                <sequence>
                    <element name="Name" type="string" minOccurs="0"/>
                    <element name="Code" type="type:CodedValueType" minOccurs="0" maxOccurs="unbounded"/>
                    <element name="Prescription" type="boolean" minOccurs="1" />
                    <element name="Indication" type="string" minOccurs="0"/>
                    <element name="Dose" type="string" minOccurs="0"/>
                    <element name="DoseUnit" type="type:CodedValueType" minOccurs="0"/>
                    <element name="Strength" type="string" minOccurs="0"/>
                    <element name="StrengthUnit" type="type:CodedValueType" minOccurs="0"/>
                    <element name="Frequency" type="string" minOccurs="0"/>
                    <element name="Route" type="type:CodedValueType" minOccurs="0"/>
                    <element name="Duration" type="string" minOccurs="0"/>
                    <element name="DurationUnit" type="type:CodedValueType" minOccurs="0"/>
                    <element name="Refills" type="string" minOccurs="0"/>
                    <element name="RefillHistory" type="med:RefillType" minOccurs="0" maxOccurs="unbounded"/>
                    <element name="PrescriptionDuration" type="type:DurationType" minOccurs="0"/>
                    <element name="Instructions" type="string" minOccurs="0"/>
                    <element name="SubstitutionPermitted" type="boolean" minOccurs="0"/>
                </sequence>
            </extension>
        </complexContent>
    </complexType>
    
    <complexType name="RefillType">
        <sequence>
            <element name="FillDate" type="dateTime" minOccurs="0"/>
            <element name="Pharmacy" type="con:ConciseContactInformationType" minOccurs="0"/>
        </sequence>
    </complexType>
    
</schema>