<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by Jeff Robertson version 2.2.1-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:complexType name="D04">
        <xs:sequence>
            <xs:element name="D04_01" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>All of the potential levels of certification/licensure for EMS personnel recognized by the state</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:simpleContent>
                        <xs:extension base="DemographicStateCertificationLicensureLevels">
                            <xs:attributeGroup ref="currentStatus">
                                <xs:annotation>
                                    <xs:documentation>Attribute Group for the current Status and Status Date of the Level</xs:documentation>
                                </xs:annotation>
                            </xs:attributeGroup>
                        </xs:extension>
                    </xs:simpleContent>
                </xs:complexType>
            </xs:element>
            <xs:element name="D04_02" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>The EMS unit number used to dispatch and communicate with the unit. This may be the same as the EMS Unit/Vehicle Number in many agencies</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:simpleContent>
                        <xs:extension base="EMSUnitNumber">
                            <xs:attributeGroup ref="currentStatus">
                                <xs:annotation>
                                    <xs:documentation>Attribute Group for the current Status and Status Date of the Level</xs:documentation>
                                </xs:annotation>
                            </xs:attributeGroup>
                        </xs:extension>
                    </xs:simpleContent>
                </xs:complexType>
            </xs:element>
            <xs:element name="D04_03" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>The geographic zones used by an agency to divnamee the service area into smaller geographic components.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:simpleContent>
                        <xs:extension base="DemographicZoneNumber">
                            <xs:attributeGroup ref="currentStatus">
                                <xs:annotation>
                                    <xs:documentation>Attribute Group for the current Status and Status Date of the Level</xs:documentation>
                                </xs:annotation>
                            </xs:attributeGroup>
                        </xs:extension>
                    </xs:simpleContent>
                </xs:complexType>
            </xs:element>
            <xs:element name="D04_04_0" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Wrapper tag to hold information about Procedures used</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="D04_04" type="DemographicProcedure">
                            <xs:annotation>
                                <xs:documentation>All of the potential Procedures used by the service</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="D04_05" minOccurs="0" maxOccurs="unbounded">
                            <xs:annotation>
                                <xs:documentation>The Minimum Certification level required  to preform the procedure</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                                <xs:simpleContent>
                                    <xs:extension base="DemographicStateCertificationLicensureLevels">
                                        <xs:attributeGroup ref="currentStatus">
                                            <xs:annotation>
                                                <xs:documentation>Attribute Group for the current Status and Status Date of the Level</xs:documentation>
                                            </xs:annotation>
                                        </xs:attributeGroup>
                                    </xs:extension>
                                </xs:simpleContent>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                    <xs:attributeGroup ref="currentStatus">
                        <xs:annotation>
                            <xs:documentation>Attribute Group for the current Status and Status Date of the Level</xs:documentation>
                        </xs:annotation>
                    </xs:attributeGroup>
                </xs:complexType>
            </xs:element>
            <xs:element name="D04_06_0" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Wrapper tag to hold information about  Medications used by the service</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="D04_06" type="DemographicMedicationsGiven">
                            <xs:annotation>
                                <xs:documentation>All of the potential medications that can be given</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="D04_07" minOccurs="0" maxOccurs="unbounded">
                            <xs:annotation>
                                <xs:documentation>The Minimum Certification level required  to administer the medication</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                                <xs:simpleContent>
                                    <xs:extension base="DemographicStateCertificationLicensureLevels">
                                        <xs:attributeGroup ref="currentStatus">
                                            <xs:annotation>
                                                <xs:documentation>Attribute Group for the current Status and Status Date of the Level</xs:documentation>
                                            </xs:annotation>
                                        </xs:attributeGroup>
                                    </xs:extension>
                                </xs:simpleContent>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                    <xs:attributeGroup ref="currentStatus">
                        <xs:annotation>
                            <xs:documentation>Attribute Group for the current Status and Status Date of the Level</xs:documentation>
                        </xs:annotation>
                    </xs:attributeGroup>
                </xs:complexType>
            </xs:element>
            <xs:element name="D04_08_0" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Wrapper tag to hold information about Protocols used by the service</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="D04_08" type="DemographicProtocolsUsed">
                            <xs:annotation>
                                <xs:documentation>All of the potential Protocols that can be used</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="D04_09" minOccurs="0" maxOccurs="unbounded">
                            <xs:annotation>
                                <xs:documentation>The Minimum Certification level required  to preform the protocol</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                                <xs:simpleContent>
                                    <xs:extension base="DemographicStateCertificationLicensureLevels">
                                        <xs:attributeGroup ref="currentStatus">
                                            <xs:annotation>
                                                <xs:documentation>Attribute Group for the current Status and Status Date of the Level</xs:documentation>
                                            </xs:annotation>
                                        </xs:attributeGroup>
                                    </xs:extension>
                                </xs:simpleContent>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                    <xs:attributeGroup ref="currentStatus">
                        <xs:annotation>
                            <xs:documentation>Attribute Group for the current Status and Status Date of the Level</xs:documentation>
                        </xs:annotation>
                    </xs:attributeGroup>
                </xs:complexType>
            </xs:element>
            <xs:element name="D04_10" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Indication of whether the EMS agency routinely bills for any segment of the patient population.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:simpleContent>
                        <xs:extension base="BillingStatus">
                            <xs:attributeGroup ref="currentStatus">
                                <xs:annotation>
                                    <xs:documentation>Attribute Group for the current Status and Status Date of the Level</xs:documentation>
                                </xs:annotation>
                            </xs:attributeGroup>
                        </xs:extension>
                    </xs:simpleContent>
                </xs:complexType>
            </xs:element>
            <xs:element name="D04_11_0" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>A list of all the hospitals the agency transports to or from.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="D04_11" type="FacilityName">
                            <xs:annotation>
                                <xs:documentation>The Name of the facility</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="D04_12" type="FacilityNumber">
                            <xs:annotation>
                                <xs:documentation>The state assigned licensure number (code) for each Hospital Served (D04_6).</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                    </xs:sequence>
                    <xs:attributeGroup ref="currentStatus">
                        <xs:annotation>
                            <xs:documentation>Attribute Group for the current Status and Status Date of the Level</xs:documentation>
                        </xs:annotation>
                    </xs:attributeGroup>
                </xs:complexType>
            </xs:element>
            <xs:element name="D04_13_0" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>A list of all destinations other than hospitals which an agency transports to or from.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="D04_13" type="FacilityName">
                            <xs:annotation>
                                <xs:documentation>A list of all destinations other than hospitals which an agency transports to or from.</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="D04_14" type="FacilityNumber">
                            <xs:annotation>
                                <xs:documentation>The state assigned licensure number (code) for each Other Destination</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="D04_15" type="FacilityType">
                            <xs:annotation>
                                <xs:documentation>The type of facility associated with the Other Destination. </xs:documentation>
                            </xs:annotation>
                        </xs:element>
                    </xs:sequence>
                    <xs:attributeGroup ref="currentStatus">
                        <xs:annotation>
                            <xs:documentation>Attribute Group for the current Status and Status Date of the Level</xs:documentation>
                        </xs:annotation>
                    </xs:attributeGroup>
                </xs:complexType>
            </xs:element>
            <xs:element name="D04_16" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>A list of insurance companies which are prevalent in the Agencies service area.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:simpleContent>
                        <xs:extension base="InsuranceCompanyName">
                            <xs:attributeGroup ref="currentStatus">
                                <xs:annotation>
                                    <xs:documentation>Attribute Group for the current Status and Status Date of the Level</xs:documentation>
                                </xs:annotation>
                            </xs:attributeGroup>
                        </xs:extension>
                    </xs:simpleContent>
                </xs:complexType>
            </xs:element>
            <xs:element name="D04_17" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>The Vendor or Company associated with the EMD Card set and algorithms.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:simpleContent>
                        <xs:extension base="EMDVendor">
                            <xs:attributeGroup ref="currentStatus">
                                <xs:annotation>
                                    <xs:documentation>Attribute Group for the current Status and Status Date of the Level</xs:documentation>
                                </xs:annotation>
                            </xs:attributeGroup>
                        </xs:extension>
                    </xs:simpleContent>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
</xs:schema>
