<?xml version="1.0" encoding="utf-8" ?> 
<xs:schema targetNamespace="urn:esr-vha-gov:internal:hl7-messages" xmlns="urn:esr-vha-gov:internal:hl7-messages" 
    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
    elementFormDefault="qualified">
<!--	
  <xs:include schemaLocation="edb/messaging/hl7/xsd/HL7Types.xsd" />
  <xs:include schemaLocation="edb/messaging/hl7/xsd/VATables.xsd" />
  <xs:include schemaLocation="edb/messaging/hl7/xsd/zSegments/Common.xsd" />
-->
  <xs:complexType name="zfe.content">
    <xs:annotation>
      <xs:documentation>
        VA Specific Fee Basis Segment
      </xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="anyZSegment.content">
        <xs:sequence>
          <xs:element name="zfe.1" type="si" minOccurs="1" maxOccurs="1" />
          <xs:element name="zfe.2" minOccurs="0" maxOccurs="1">
            <xs:complexType>
              <xs:complexContent>
                <xs:restriction base="ce">
                  <xs:sequence>
                    <xs:element name="ce.1" type="va033" minOccurs="0" maxOccurs="1" />
                    <xs:element name="ce.2" type="st" minOccurs="0" maxOccurs="1" />
                    <xs:element name="ce.3" type="st" minOccurs="0" maxOccurs="1" />
                    <xs:element name="ce.4" type="id" minOccurs="0" maxOccurs="1" />
                    <xs:element name="ce.5" type="st" minOccurs="0" maxOccurs="1" />
                    <xs:element name="ce.6" type="st" minOccurs="0" maxOccurs="1" />
                  </xs:sequence>
                </xs:restriction>
              </xs:complexContent>
            </xs:complexType>
          </xs:element>
          <xs:element name="zfe.3" minOccurs="1" maxOccurs="1">
            <xs:complexType>
              <xs:complexContent>
                <xs:restriction base="ce">
                  <xs:sequence>
                    <xs:element name="ce.1" type="va034" minOccurs="0" maxOccurs="1" />
                    <xs:element name="ce.2" type="st" minOccurs="0" maxOccurs="1" />
                    <xs:element name="ce.3" type="st" minOccurs="0" maxOccurs="1" />
                    <xs:element name="ce.4" type="id" minOccurs="0" maxOccurs="1" />
                    <xs:element name="ce.5" type="st" minOccurs="0" maxOccurs="1" />
                    <xs:element name="ce.6" type="st" minOccurs="0" maxOccurs="1" />
                  </xs:sequence>
                </xs:restriction>
              </xs:complexContent>
            </xs:complexType>
          </xs:element>
          <xs:element name="zfe.4" type="dt" minOccurs="0" maxOccurs="1" />
          <xs:element name="zfe.5" type="dt" minOccurs="0" maxOccurs="1" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>

  <xs:element name="zfe" type="zfe.content" substitutionGroup="anyZSegment" />
</xs:schema>
