phr document standard

printer friendly version of this page

View PHR Schema

message.xsd

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://indivo.org/xml/phr/message"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:msg="http://indivo.org/xml/phr/message"
    xmlns:type="http://indivo.org/xml/phr/types"
    xmlns:ann="http://indivo.org/xml/phr/annotation"
    xmlns:pid="http://indivo.org/xml/pid"
    xmlns:attr="http://indivo.org/xml/attributes"
    xmlns:phd="http://indivo.org/xml/phr/personalHealthData"
    xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
    xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
    jaxb:extensionBindingPrefixes="xjc"
    jaxb:version="1.0"
    elementFormDefault="unqualified">
 
    <import namespace="http://indivo.org/xml/pid" schemaLocation="http://indivo.org/xml/pid.xsd"/>
    <import namespace="http://indivo.org/xml/attributes" schemaLocation="http://indivo.org/xml/attributes.xsd"/>
    <import namespace="http://indivo.org/xml/phr/types" schemaLocation="http://indivo.org/xml/phr/types.xsd"/>
    <import namespace="http://indivo.org/xml/phr/annotation" schemaLocation="http://indivo.org/xml/phr/annotation.xsd"/>
    <import namespace="http://indivo.org/xml/phr/personalHealthData" schemaLocation="http://indivo.org/xml/phr/personalHealthData.xsd"/>
 
    <element name="Message" type="msg:MessageType"/>
    <complexType name="MessageType">
        <complexContent>
            <extension base="phd:PersonalHealthDataType">
                <sequence>
                    <element name="Id" type="string" minOccurs="0"/>
                    <element name="Sender" type="pid:AnyIdType"/>
                    <element name="Recipient" type="pid:AnyIdType" minOccurs="1"/>
                    <element name="PriorThreadMessageId" type="string" minOccurs="0" maxOccurs="1"/>
                    <element name="Subject" type="string"/>
                    <element name="ContentType" type="QName"/>
                    <element name="SentDateTime" type="dateTime"/>
                    <element name="Read" type="boolean"/>
                    <element name="Replied" type="boolean"/>
                    <element name="ReferencedIndivoDocuments" type="ann:DocumentReferenceType" minOccurs='0' maxOccurs="unbounded"/>
                    <element name="MessageContent" type="msg:MessageContentType">
                    </element>
                </sequence>
            </extension>
        </complexContent>
    </complexType>
 
    <complexType name="MessageContentType">
        <sequence>
            <any minOccurs="0" processContents="skip">
                <annotation><appinfo>
                    <xjc:dom />
                </appinfo></annotation>
            </any>
        </sequence>
    </complexType>
    
    <!-- one of possibly many possible Content types -->
    <element name="TextMessage" type="xsd:string" />
</schema>