Schema Name: OML_O21.xsd
Target Namespace: urn:hl7-org:v2xml
Documentation:
Collapse XSD Schema Code:

<!--
    v2.xml Message Definitions Version v2.4  - OML_O21
    Copyright (C) Sun Microsystems. All rights reserved.
-->
<xsd:schema
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="urn:hl7-org:v2xml"
    xmlns:hl7="urn:com.sun:encoder-hl7-1.0"
    targetNamespace="urn:hl7-org:v2xml" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.0">

    <!-- include segment definitions for version v2.4 -->
    <xsd:include schemaLocation="segments.xsd"/>

    <xsd:annotation>
	<xsd:appinfo source="urn:com.sun:encoder">
	    <encoding xmlns="urn:com.sun:encoder" name="HL7 v2 Encoding" namespace="urn:com.sun:encoder-hl7-1.0" style="hl7encoder-1.0"/>
	</xsd:appinfo>
    </xsd:annotation>

    <!--
	MESSAGE OML_O21
    -->
    <!-- .. groups used in message OML_O21 -->
    <xsd:complexType name="OML_O21.PATIENT_VISIT.CONTENT">
        <xsd:sequence>
            <xsd:element ref="PV1" minOccurs="1" maxOccurs="1"/>
            <xsd:element ref="PV2" minOccurs="0" maxOccurs="1"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="OML_O21.PATIENT_VISIT" type="OML_O21.PATIENT_VISIT.CONTENT"/>
    <xsd:complexType name="OML_O21.INSURANCE.CONTENT">
        <xsd:sequence>
            <xsd:element ref="IN1" minOccurs="1" maxOccurs="1"/>
            <xsd:element ref="IN2" minOccurs="0" maxOccurs="1"/>
            <xsd:element ref="IN3" minOccurs="0" maxOccurs="1"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="OML_O21.INSURANCE" type="OML_O21.INSURANCE.CONTENT"/>
    <xsd:complexType name="OML_O21.PATIENT.CONTENT">
        <xsd:sequence>
            <xsd:element ref="PID" minOccurs="1" maxOccurs="1"/>
            <xsd:element ref="PD1" minOccurs="0" maxOccurs="1"/>
            <xsd:element ref="NTE" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="OML_O21.PATIENT_VISIT" minOccurs="0" maxOccurs="1"/>
            <xsd:element ref="OML_O21.INSURANCE" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="GT1" minOccurs="0" maxOccurs="1"/>
            <xsd:element ref="AL1" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="OML_O21.PATIENT" type="OML_O21.PATIENT.CONTENT"/>
    <xsd:complexType name="OML_O21.CONTAINER_1.CONTENT">
        <xsd:sequence>
            <xsd:element ref="SAC" minOccurs="1" maxOccurs="1"/>
            <xsd:element ref="OBX" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="OML_O21.CONTAINER_1" type="OML_O21.CONTAINER_1.CONTENT"/>
    <xsd:complexType name="OML_O21.CONTAINER_2.CONTENT">
        <xsd:sequence>
            <xsd:element ref="SAC" minOccurs="1" maxOccurs="1"/>
            <xsd:element ref="OBX" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="OML_O21.CONTAINER_2" type="OML_O21.CONTAINER_2.CONTENT"/>
    <xsd:complexType name="OML_O21.OBSERVATION.CONTENT">
        <xsd:sequence>
            <xsd:element ref="OBX" minOccurs="1" maxOccurs="1"/>
            <xsd:element ref="TCD" minOccurs="0" maxOccurs="1"/>
            <xsd:element ref="NTE" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="OML_O21.OBSERVATION" type="OML_O21.OBSERVATION.CONTENT"/>
    <xsd:complexType name="OML_O21.PATIENT_PRIOR.CONTENT">
        <xsd:sequence>
            <xsd:element ref="PID" minOccurs="1" maxOccurs="1"/>
            <xsd:element ref="PD1" minOccurs="0" maxOccurs="1"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="OML_O21.PATIENT_PRIOR" type="OML_O21.PATIENT_PRIOR.CONTENT"/>
    <xsd:complexType name="OML_O21.PATIENT_VISIT_PRIOR.CONTENT">
        <xsd:sequence>
            <xsd:element ref="PV1" minOccurs="1" maxOccurs="1"/>
            <xsd:element ref="PV2" minOccurs="0" maxOccurs="1"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="OML_O21.PATIENT_VISIT_PRIOR" type="OML_O21.PATIENT_VISIT_PRIOR.CONTENT"/>
    <xsd:complexType name="OML_O21.OBSERVATION_PRIOR.CONTENT">
        <xsd:sequence>
            <xsd:element ref="OBX" minOccurs="1" maxOccurs="1"/>
            <xsd:element ref="NTE" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="OML_O21.OBSERVATION_PRIOR" type="OML_O21.OBSERVATION_PRIOR.CONTENT"/>
    <xsd:complexType name="OML_O21.ORDER_PRIOR.CONTENT">
        <xsd:sequence>
            <xsd:element ref="ORC" minOccurs="0" maxOccurs="1"/>
            <xsd:element ref="OBR" minOccurs="1" maxOccurs="1"/>
            <xsd:element ref="NTE" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="OML_O21.OBSERVATION_PRIOR" minOccurs="1" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="OML_O21.ORDER_PRIOR" type="OML_O21.ORDER_PRIOR.CONTENT"/>
    <xsd:complexType name="OML_O21.PRIOR_RESULT.CONTENT">
        <xsd:sequence>
            <xsd:element ref="OML_O21.PATIENT_PRIOR" minOccurs="0" maxOccurs="1"/>
            <xsd:element ref="OML_O21.PATIENT_VISIT_PRIOR" minOccurs="0" maxOccurs="1"/>
            <xsd:element ref="AL1" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="OML_O21.ORDER_PRIOR" minOccurs="1" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="OML_O21.PRIOR_RESULT" type="OML_O21.PRIOR_RESULT.CONTENT"/>
    <xsd:complexType name="OML_O21.OBSERVATION_REQUEST.CONTENT">
        <xsd:sequence>
            <xsd:element ref="OBR" minOccurs="1" maxOccurs="1"/>
            <xsd:element ref="OML_O21.CONTAINER_2" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="TCD" minOccurs="0" maxOccurs="1"/>
            <xsd:element ref="NTE" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="DG1" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="OML_O21.OBSERVATION" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="OML_O21.PRIOR_RESULT" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="OML_O21.OBSERVATION_REQUEST" type="OML_O21.OBSERVATION_REQUEST.CONTENT"/>
    <xsd:complexType name="OML_O21.ORDER.CONTENT">
        <xsd:sequence>
            <xsd:element ref="ORC" minOccurs="1" maxOccurs="1"/>
            <xsd:element ref="OML_O21.OBSERVATION_REQUEST" minOccurs="0" maxOccurs="1"/>
            <xsd:element ref="FT1" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="CTI" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="BLG" minOccurs="0" maxOccurs="1"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="OML_O21.ORDER" type="OML_O21.ORDER.CONTENT"/>
    <xsd:complexType name="OML_O21.ORDER_GENERAL.CONTENT">
        <xsd:sequence>
            <xsd:element ref="OML_O21.CONTAINER_1" minOccurs="0" maxOccurs="1"/>
            <xsd:element ref="OML_O21.ORDER" minOccurs="1" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="OML_O21.ORDER_GENERAL" type="OML_O21.ORDER_GENERAL.CONTENT"/>
    <!-- .. message definition OML_O21 -->
    <xsd:complexType name="OML_O21.CONTENT">
        <xsd:sequence>
            <xsd:element ref="MSH" minOccurs="1" maxOccurs="1"/>
            <xsd:element ref="NTE" minOccurs="0" maxOccurs="unbounded"/>
            <xsd:element ref="OML_O21.PATIENT" minOccurs="0" maxOccurs="1"/>
            <xsd:element ref="OML_O21.ORDER_GENERAL" minOccurs="1" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="OML_O21" type="OML_O21.CONTENT">
        <xsd:annotation>
            <xsd:appinfo source="urn:com.sun:encoder">
                <top xmlns="urn:com.sun:encoder">true</top>
            </xsd:appinfo>
        </xsd:annotation>
    </xsd:element>
</xsd:schema>
Collapse ComplexTypes:
Collapse Elements: