phr document standard

printer friendly version of this page

View PHR Schema

codingSystem.xsd

<?xml version="1.0" encoding="UTF-8"?>
 
<schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://indivo.org/xml/phr/codingSystem"
    xmlns:code="http://indivo.org/xml/phr/codingSystem"
    xmlns="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="unqualified">
    
    <element name="CodingSystem" type="code:CodingSystemType"/>
    <complexType name="CodingSystemType">
        <sequence>
            <element name="ServiceLocation" type="anyURI" minOccurs="1"/>
            <element name="ShortDescription" type="string" minOccurs="1"/>
            <element name="LongDescription" type="string" minOccurs="1"/>
            <element name="Author" type="string" minOccurs="1"/>
            <element name="Date" type="date" minOccurs="1"/>
            <element name="MajorVersion" type="string" minOccurs="1"/>
            <element name="MinorVersion" type="string" minOccurs="1"/>
            <element name="CodeDefinition" type="code:CodeDefinitionType" minOccurs="1" maxOccurs="unbounded"/>
        </sequence>
    </complexType>
 
    <complexType name="CodeDefinitionType">
        <sequence>
            <element name="Code" type="string" minOccurs="1"/>
            <element name="Display" type="code:DisplayType" minOccurs="1" maxOccurs="unbounded"/>
            <element name="Explanation" type="string" minOccurs="0"/>
            <element name="AdditionalInformation" type="xsd:anyType"/>
        </sequence>
    </complexType>
 
    <complexType name="DisplayType">
        <sequence>
            <element name="Value" type="string" minOccurs="1"/>
            <element name="Abbreviation" type="string" minOccurs="0"/>
            <!-- For specially-formated abbreviations, like k/mm&sup3; or &micro;g/ml -->
            <element name="HTMLAbbreviation" type="string" minOccurs="0"/>
        </sequence>
        <!-- ISO 639.2 3-character language code
         http://www.loc.gov/standards/iso639-2/ -->
        <attribute name="lang" type="string" use="required"/>
    </complexType>
    
</schema>