All Downloads are FREE. Search and download functionalities are using the official Maven repository.

X12.common.xml Maven / Gradle / Ivy

There is a newer version: 1.25.2
Show newest version
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<!--
  Copyright 2020 xlate.io LLC, http://www.xlate.io

  Licensed under the Apache License, Version 2.0 (the "License"); you may not
  use this file except in compliance with the License.  You may obtain a copy
  of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
  License for the specific language governing permissions and limitations under
  the License.
-->
<schema xmlns="http://xlate.io/EDISchema/v4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xlate.io/EDISchema/v4 https://www.xlate.io/EDISchema/EDISchema-v4.xsd">

  <elementType name="I01" base="identifier" minLength="2" maxLength="2" title="Authorization Information Qualifier">
    <description>Code identifying the type of information in the Authorization Information</description>
    <enumeration>
      <value>00</value>
      <value>01</value>
      <value>02</value>
      <value>03</value>
      <value>04</value>
      <value>05</value>
      <value>06</value>
    </enumeration>
  </elementType>

  <elementType name="I02" base="string" minLength="10" maxLength="10" title="Authorization Information">
    <description>Information used for additional identification or authorization of the interchange sender or the data in the interchange; the type of information is set by the Authorization Information Qualifier (I01)</description>
  </elementType>

  <elementType name="I03" base="identifier" minLength="2" maxLength="2" title="Security Information Qualifier">
    <description>Code identifying the type of information in the Security Information</description>
    <enumeration>
      <value>00</value>
      <value>01</value>
    </enumeration>
  </elementType>

  <elementType name="I04" base="string" minLength="10" maxLength="10" title="Security Information">
    <description>This is used for identifying the security information about the interchange sender or the data in the interchange; the type of information is set by the Security Information Qualifier (I03)</description>
  </elementType>

  <elementType name="I05" base="identifier" minLength="2" maxLength="2" title="Interchange ID Qualifier">
    <enumeration>
      <value>01</value>
      <value>02</value>
      <value>03</value>
      <value>04</value>
      <value>07</value>
      <value>08</value>
      <value>09</value>
      <value>10</value>
      <value>11</value>
      <value>12</value>
      <value>13</value>
      <value>14</value>
      <value>15</value>
      <value>16</value>
      <value>17</value>
      <value>18</value>
      <value>19</value>
      <value>20</value>
      <value>21</value>
      <value>22</value>
      <value>23</value>
      <value>24</value>
      <value>25</value>
      <value>26</value>
      <value>27</value>
      <value>28</value>
      <value>29</value>
      <value>30</value>
      <value>31</value>
      <value>32</value>
      <value>33</value>
      <value>34</value>
      <value>35</value>
      <value>36</value>
      <value>37</value>
      <value>38</value>
      <value>AM</value>
      <value>NR</value>
      <value>SA</value>
      <value>SN</value>
      <value>ZZ</value>
    </enumeration>
  </elementType>

  <elementType name="I06" base="string" minLength="15" maxLength="15" title="Interchange Sender ID"/>

  <elementType name="I07" base="string" minLength="15" maxLength="15" title="Interchange Receiver ID"/>

  <elementType name="I08" base="date" minLength="6" maxLength="6" title="Interchange Date"/>

  <elementType name="I09" base="time" minLength="4" maxLength="4" title="Interchange Time"/>

  <elementType name="I10" base="identifier" title="Interchange Control Standards Identifier">
    <enumeration>
      <value>U</value>
    </enumeration>
  </elementType>

  <elementType name="I11" base="identifier" minLength="5" maxLength="5" title="Interchange Control Version Number">
    <enumeration>
      <value>00200</value>
      <value>00201</value>
      <value>00204</value>
      <value>00300</value>
      <value>00301</value>
      <value>00302</value>
      <value>00303</value>
      <value>00304</value>
      <value>00305</value>
      <value>00306</value>
      <value>00307</value>
      <value>00400</value>
      <value>00401</value>
      <value>00402</value>
      <value>00403</value>
      <value>00404</value>
      <value>00405</value>
      <value>00406</value>
      <value>00500</value>
      <value>00501</value>
      <value>00502</value>
      <value>00503</value>
      <value>00504</value>
      <value>00505</value>
      <value>00600</value>
      <value>00601</value>
      <value>00602</value>
      <value>00603</value>
      <value>00604</value>
      <value>00605</value>
      <value>00700</value>
      <value>00701</value>
      <value>00702</value>
      <value>00703</value>
      <value>00704</value>
      <value>00800</value>
      <value>00801</value>
    </enumeration>
  </elementType>

  <elementType name="I12" base="numeric" minLength="9" maxLength="9" title="Interchange Control Number"/>

  <elementType name="I13" base="identifier" title="Acknowledgment Requested">
    <enumeration>
      <value>1</value>
      <value>0</value>
    </enumeration>
  </elementType>

  <elementType name="I14" base="identifier" title="Interchange Usage Indicator">
    <enumeration>
      <value>T</value>
      <value>P</value>
      <value>I</value>
    </enumeration>
  </elementType>

  <elementType name="I15" base="string" title="Component Element Separator"/>

  <elementType name="I16" base="numeric" maxLength="5" title="Number of Included Functional Groups"/>

  <elementType name="I17" base="identifier" title="Interchange Acknowledgment Code">
    <enumeration>
      <value>A</value>
      <value>E</value>
      <value>R</value>
    </enumeration>
  </elementType>

  <elementType name="I18" base="identifier" minLength="3" maxLength="3" title="Interchange Note Code">
    <enumeration>
      <value>000</value>
      <value>001</value>
      <value>002</value>
      <value>003</value>
      <value>004</value>
      <value>005</value>
      <value>006</value>
      <value>007</value>
      <value>008</value>
      <value>009</value>
      <value>010</value>
      <value>011</value>
      <value>012</value>
      <value>013</value>
      <value>014</value>
      <value>015</value>
      <value>016</value>
      <value>017</value>
      <value>018</value>
      <value>019</value>
      <value>020</value>
      <value>021</value>
      <value>022</value>
      <value>023</value>
      <value>024</value>
      <value>025</value>
      <value>026</value>
      <value>027</value>
      <value>028</value>
      <value>029</value>
      <value>030</value>
      <value>031</value>
      <value>032</value>
    </enumeration>
  </elementType>

  <elementType name="I34" base="identifier" title="Grade of Service Code">
    <enumeration>
      <value>0</value>
      <value>1</value>
      <value>2</value>
    </enumeration>
  </elementType>

  <elementType name="I35" base="date" minLength="6" maxLength="6" title="Delivery Date"/>

  <elementType name="I36" base="time" minLength="4" maxLength="4" title="Delivery Time"/>

  <elementType name="I37" minLength="2" maxLength="2" base="identifier" title="Delivery Time Code">
    <enumeration>
      <value>01</value>
      <value>02</value>
      <value>03</value>
      <value>04</value>
      <value>05</value>
      <value>06</value>
      <value>07</value>
      <value>08</value>
      <value>09</value>
      <value>10</value>
      <value>11</value>
      <value>12</value>
      <value>13</value>
      <value>14</value>
      <value>15</value>
      <value>16</value>
      <value>17</value>
      <value>18</value>
      <value>19</value>
      <value>20</value>
      <value>21</value>
      <value>22</value>
      <value>23</value>
      <value>24</value>
      <value>CD</value>
      <value>CS</value>
      <value>CT</value>
      <value>ED</value>
      <value>ES</value>
      <value>ET</value>
      <value>GM</value>
      <value>LT</value>
      <value>MD</value>
      <value>MS</value>
      <value>MT</value>
      <value>PD</value>
      <value>PS</value>
      <value>PT</value>
      <value>UT</value>
    </enumeration>
  </elementType>

  <elementType name="I65" base="string" title="Repetition Separator"/>

  <!-- Elements for ISX Segment (Interchange Syntax Extension) -->
  <elementType name="I69" base="string" minLength="1" maxLength="1" title="Release Character"/>
  <elementType name="I70" base="string" minLength="1" maxLength="15" title="Character Encoding"/>
  <elementType name="I71" base="string" minLength="6" maxLength="6" title="X12 Version / Release Code"/>
  <elementType name="I72" base="string" minLength="1" maxLength="6" title="Industry Identifier"/>

  <elementType name="E28" code="28" base="numeric" maxLength="9"/>
  <elementType name="E96" code="96" base="numeric" maxLength="10"/>
  <elementType name="E97" code="97" base="numeric" maxLength="6"/>
  <elementType name="E124" code="124" base="string" minLength="2" maxLength="15"/>
  <elementType name="E142" code="142" base="string" minLength="2" maxLength="15"/>
  <elementType name="E143" code="143" base="string" minLength="3" maxLength="3"/>
  <elementType name="E329" code="329" base="string" minLength="4" maxLength="9"/>
  <elementType name="E337" code="337" base="time" minLength="4" maxLength="8"/>

  <!-- If no match on version, allow either 6 or 8 character dates -->
  <elementType name="E373" code="373" base="date" minLength="6" maxLength="8">
    <!-- Prior to 004000, GS date is 6 characters -->
    <version minVersion="X.000000" maxVersion="X.003079" minLength="6" maxLength="6"/>
    <!-- After version 004000, GS date is 6 characters -->
    <version minVersion="X.004000" maxVersion="X.999999" minLength="8" maxLength="8"/>
  </elementType>

  <elementType name="E455" code="455" base="string" maxLength="2"/>

  <elementType name="E479" code="479" base="identifier" minLength="2" maxLength="2">
    <enumeration>
      <value>AA</value>
      <value>AB</value>
      <value>AC</value>
      <value>AD</value>
      <value>AE</value>
      <value>AF</value>
      <value>AG</value>
      <value>AH</value>
      <value>AI</value>
      <value>AK</value>
      <value>AL</value>
      <value>AM</value>
      <value>AN</value>
      <value>AO</value>
      <value>AP</value>
      <value>AQ</value>
      <value>AR</value>
      <value>AS</value>
      <value>AT</value>
      <value>AU</value>
      <value>AV</value>
      <value>AW</value>
      <value>AX</value>
      <value>AY</value>
      <value>AZ</value>
      <value>BA</value>
      <value>BB</value>
      <value>BC</value>
      <value>BD</value>
      <value>BE</value>
      <value>BF</value>
      <value>BL</value>
      <value>BS</value>
      <value>CA</value>
      <value>CB</value>
      <value>CC</value>
      <value>CD</value>
      <value>CE</value>
      <value>CF</value>
      <value>CH</value>
      <value>CI</value>
      <value>CJ</value>
      <value>CK</value>
      <value>CL</value>
      <value>CM</value>
      <value>CN</value>
      <value>CO</value>
      <value>CP</value>
      <value>CQ</value>
      <value>CR</value>
      <value>CS</value>
      <value>CT</value>
      <value>CU</value>
      <value>CV</value>
      <value>CW</value>
      <value>D3</value>
      <value>D4</value>
      <value>D5</value>
      <value>DA</value>
      <value>DD</value>
      <value>DF</value>
      <value>DI</value>
      <value>DM</value>
      <value>DS</value>
      <value>DX</value>
      <value>EC</value>
      <value>ED</value>
      <value>EI</value>
      <value>EN</value>
      <value>EP</value>
      <value>ER</value>
      <value>ES</value>
      <value>EV</value>
      <value>EX</value>
      <value>FA</value>
      <value>FB</value>
      <value>FC</value>
      <value>FG</value>
      <value>FR</value>
      <value>FT</value>
      <value>GC</value>
      <value>GE</value>
      <value>GF</value>
      <value>GL</value>
      <value>GP</value>
      <value>GR</value>
      <value>GT</value>
      <value>HB</value>
      <value>HC</value>
      <value>HI</value>
      <value>HN</value>
      <value>HP</value>
      <value>HR</value>
      <value>HS</value>
      <value>HU</value>
      <value>HV</value>
      <value>IA</value>
      <value>IB</value>
      <value>IC</value>
      <value>ID</value>
      <value>IE</value>
      <value>IF</value>
      <value>IG</value>
      <value>IH</value>
      <value>IJ</value>
      <value>IM</value>
      <value>IN</value>
      <value>IO</value>
      <value>IR</value>
      <value>IS</value>
      <value>JB</value>
      <value>KM</value>
      <value>LA</value>
      <value>LB</value>
      <value>LI</value>
      <value>LN</value>
      <value>LR</value>
      <value>LS</value>
      <value>LT</value>
      <value>MA</value>
      <value>MC</value>
      <value>MD</value>
      <value>ME</value>
      <value>MF</value>
      <value>MG</value>
      <value>MH</value>
      <value>MI</value>
      <value>MJ</value>
      <value>MK</value>
      <value>MM</value>
      <value>MN</value>
      <value>MO</value>
      <value>MP</value>
      <value>MQ</value>
      <value>MR</value>
      <value>MS</value>
      <value>MT</value>
      <value>MV</value>
      <value>MW</value>
      <value>MX</value>
      <value>MY</value>
      <value>MZ</value>
      <value>NC</value>
      <value>NL</value>
      <value>NP</value>
      <value>NR</value>
      <value>NT</value>
      <value>OC</value>
      <value>OG</value>
      <value>OR</value>
      <value>OW</value>
      <value>PA</value>
      <value>PB</value>
      <value>PC</value>
      <value>PD</value>
      <value>PE</value>
      <value>PF</value>
      <value>PG</value>
      <value>PH</value>
      <value>PI</value>
      <value>PJ</value>
      <value>PK</value>
      <value>PL</value>
      <value>PN</value>
      <value>PO</value>
      <value>PQ</value>
      <value>PR</value>
      <value>PS</value>
      <value>PT</value>
      <value>PU</value>
      <value>PV</value>
      <value>PW</value>
      <value>PY</value>
      <value>QG</value>
      <value>QM</value>
      <value>QO</value>
      <value>RA</value>
      <value>RB</value>
      <value>RC</value>
      <value>RD</value>
      <value>RE</value>
      <value>RF</value>
      <value>RG</value>
      <value>RH</value>
      <value>RI</value>
      <value>RJ</value>
      <value>RK</value>
      <value>RL</value>
      <value>RM</value>
      <value>RN</value>
      <value>RO</value>
      <value>RP</value>
      <value>RQ</value>
      <value>RR</value>
      <value>RS</value>
      <value>RT</value>
      <value>RU</value>
      <value>RV</value>
      <value>RW</value>
      <value>RX</value>
      <value>RY</value>
      <value>RZ</value>
      <value>SA</value>
      <value>SB</value>
      <value>SC</value>
      <value>SD</value>
      <value>SE</value>
      <value>SH</value>
      <value>SI</value>
      <value>SJ</value>
      <value>SL</value>
      <value>SM</value>
      <value>SN</value>
      <value>SO</value>
      <value>SP</value>
      <value>SQ</value>
      <value>SR</value>
      <value>SS</value>
      <value>ST</value>
      <value>SU</value>
      <value>SV</value>
      <value>SW</value>
      <value>TA</value>
      <value>TB</value>
      <value>TD</value>
      <value>TE</value>
      <value>TF</value>
      <value>TI</value>
      <value>TJ</value>
      <value>TM</value>
      <value>TN</value>
      <value>TO</value>
      <value>TP</value>
      <value>TR</value>
      <value>TS</value>
      <value>TT</value>
      <value>TU</value>
      <value>TX</value>
      <value>UA</value>
      <value>UB</value>
      <value>UC</value>
      <value>UD</value>
      <value>UI</value>
      <value>UP</value>
      <value>UW</value>
      <value>VA</value>
      <value>VB</value>
      <value>VC</value>
      <value>VD</value>
      <value>VE</value>
      <value>VH</value>
      <value>VI</value>
      <value>VS</value>
      <value>WA</value>
      <value>WB</value>
      <value>WG</value>
      <value>WI</value>
      <value>WL</value>
      <value>WR</value>
      <value>WT</value>
    </enumeration>
  </elementType>

  <elementType name="E480" code="480" base="string" maxLength="12"/>
  <elementType name="E1705" code="1705" base="string" maxLength="35"/>

  <segmentType name="ST" title="Transaction Set Header">
    <sequence>
      <element type="E143" minOccurs="1"/>
      <element type="E329" minOccurs="1"/>
      <element type="E1705" maxOccurs="0">
        <version minVersion="X.004020" maxVersion="X.999999" maxOccurs="1"/>
      </element>
    </sequence>
  </segmentType>

  <segmentType name="SE" title="Transaction Set Trailer">
    <sequence>
      <element type="E96" minOccurs="1"/>
      <element type="E329" minOccurs="1"/>
    </sequence>
  </segmentType>

  <segmentType name="GS" title="Functional Group Header">
    <sequence>
      <element type="E479" minOccurs="1"/>
      <element type="E142" minOccurs="1"/>
      <element type="E124" minOccurs="1"/>
      <element type="E373" minOccurs="1"/>
      <element type="E337" minOccurs="1"/>
      <element type="E28" minOccurs="1"/>
      <element type="E455" minOccurs="1"/>
      <element type="E480" minOccurs="1"/>
    </sequence>
  </segmentType>

  <segmentType name="GE" title="Functional Group Trailer">
    <sequence>
      <element type="E97" minOccurs="1"/>
      <element type="E28" minOccurs="1"/>
    </sequence>
  </segmentType>

  <segmentType name="ISB" title="Grade of Service Request">
    <sequence>
      <element type="I34" minOccurs="1"/>
    </sequence>
  </segmentType>

  <segmentType name="ISE" title="Deferred Delivery Request">
    <sequence>
      <element type="I35" minOccurs="1"/>
      <element type="I36" minOccurs="1"/>
      <element type="I37" minOccurs="1"/>
    </sequence>
  </segmentType>

  <segmentType name="ISX" title="Interchange Syntax Extension">
    <sequence>
      <element type="I69"/>
      <element type="I70"/>
      <element type="I71" maxOccurs="0">
        <version minVersion="00801" maxVersion="99999" maxOccurs="1"/>
      </element>
      <element type="I72" maxOccurs="0">
        <version minVersion="00801" maxVersion="99999" maxOccurs="1"/>
      </element>
    </sequence>
  </segmentType>

  <segmentType name="TA1" title="Interchange Acknowledgment">
    <description>To report the status of processing a received interchange header and trailer or the non-delivery by a network provider</description>
    <sequence>
      <element type="I12" minOccurs="1"/>
      <element type="I08" minOccurs="1"/>
      <element type="I09" minOccurs="1"/>
      <element type="I17" minOccurs="1"/>
      <element type="I18" minOccurs="1"/>
    </sequence>
  </segmentType>

  <segmentType name="IEA" title="Interchange Control Trailer">
    <description>To define the end of an interchange of zero or more functional groups and interchange-related control segments</description>
    <sequence>
      <element type="I16" minOccurs="1"/>
      <element type="I12" minOccurs="1"/>
    </sequence>
  </segmentType>
</schema>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy