Schema Name: eRxRequest.xsd
Collapse XSD Schema Code:

<xs:schema xmlns:tns="http://www.eclaimlink.ae/DHD/ValidationSchema" elementFormDefault="qualified" version="2.0" id="eRxRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:import schemaLocation="CommonTypes.xsd" namespace="http://www.eclaimlink.ae/DHD/ValidationSchema" />
    <xs:element  name="eRx.Request">
        <xs:complexType>
            <xs:sequence>
                <xs:element minOccurs="1" maxOccurs="1" name="Header">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="1" name="SenderID" type="tns:HeaderSenderID" />
                            <xs:element minOccurs="1" maxOccurs="1" name="ReceiverID" type="tns:HeaderReceiverID" />
                            <xs:element minOccurs="1" maxOccurs="1" name="TransactionDate" type="tns:HeaderTransactionDate" />
                            <xs:element minOccurs="1" maxOccurs="1" name="RecordCount" type="tns:HeaderRecordCount" />
                            <xs:element minOccurs="1" maxOccurs="1" name="DispositionFlag" type="tns:HeaderDispositionFlag" />
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element minOccurs="1" maxOccurs="1" name="Prescription">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="1" name="ID" type="tns:PrescriptionID" />
                            <xs:element minOccurs="1" maxOccurs="1" name="Type" type="tns:PrescriptionType" />
							<xs:element minOccurs="1" maxOccurs="1" name="PayerID" type="tns:PrescriptionPayerID" />
							<xs:element minOccurs="1" maxOccurs="1" name="Clinician" type="tns:PrescriptionClinician" />
							<xs:element minOccurs="0" maxOccurs="1" name="Patient">						
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element minOccurs="1" maxOccurs="1" name="MemberID" type="tns:PrescriptionMemberID" />
										<xs:element minOccurs="1" maxOccurs="1" name="EmiratesIDNumber" type="tns:PrescriptionEmiratesIDNumber" />
										<xs:element minOccurs="1" maxOccurs="1" name="DateOfBirth" type="tns:PatientBirthDate" />
										<xs:element minOccurs="1" maxOccurs="1" name="Weight" type="tns:PatientWeight" />
										<xs:element minOccurs="0" maxOccurs="1"  name="Email" type="tns:PatientEmail" />
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
							<xs:element minOccurs="0" maxOccurs="1"  name="Encounter">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element minOccurs="1" maxOccurs="1"  name="FacilityID" type="tns:EncounterFacilityID" />
                                        <xs:element minOccurs="0" maxOccurs="1"  name="Type" type="tns:EncounterType" />
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
							<xs:element minOccurs="0" maxOccurs="unbounded" name="Diagnosis">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element minOccurs="1" maxOccurs="1" name="Type" type="tns:DiagnosisType" />
                                        <xs:element minOccurs="1" maxOccurs="1" name="Code" type="tns:DiagnosisCode" />
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="unbounded" name="Activity">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element minOccurs="1" maxOccurs="1" name="ID" type="tns:ActivityID" />
                                        <xs:element minOccurs="1" maxOccurs="1" name="Start" type="tns:ActivityStart" />
                                        <xs:element minOccurs="1" maxOccurs="1" name="Type" type="tns:ActivityType" />
                                        <xs:element minOccurs="1" maxOccurs="1" name="Code" type="tns:ActivityCode" />
                                        <xs:element minOccurs="1" maxOccurs="1" name="Quantity" type="tns:ActivityQuantity" />
										<xs:element minOccurs="1" maxOccurs="1" name="Duration" type="tns:ActivityDuration" />
										<xs:element minOccurs="1" maxOccurs="1" name="Refills" type="tns:ActivityRefills" />
										<xs:element minOccurs="1" maxOccurs="1" name="RoutOfAdmin" type="tns:ActivityRoutOfAdmin" />
										<xs:element minOccurs="1" maxOccurs="1" name="Instructions" type="tns:ActivityInstructions" />
										<xs:element minOccurs="0" maxOccurs="1" name="Frequency">
                                            <xs:complexType>
                                                <xs:sequence>
                                                    <xs:element minOccurs="1" maxOccurs="1" name="UnitPerFrequency" type="tns:UnitPerFrequency" />
													<xs:element minOccurs="1" maxOccurs="1" name="FrequencyValue" type="tns:FrequencyValue" />
													<xs:element minOccurs="1" maxOccurs="1" name="FrequencyType" type="tns:FrequencyType" />
                                                </xs:sequence>
                                            </xs:complexType>
                                        </xs:element>
                                        <xs:element minOccurs="0" maxOccurs="unbounded" name="Observation">
                                            <xs:complexType>
                                                <xs:sequence>
                                                    <xs:element minOccurs="1" maxOccurs="1" name="Type" type="tns:ObservationType" />
                                                    <xs:element minOccurs="1" maxOccurs="1" name="Code" type="tns:ObservationCode" />
                                                    <xs:element minOccurs="0" maxOccurs="1" name="Value" type="tns:ObservationValue" />
                                                    <xs:element minOccurs="0" maxOccurs="1" name="ValueType" type="tns:ObservationValueType" />
                                                </xs:sequence>
                                            </xs:complexType>
                                        </xs:element>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>
Collapse Elements: