XML and DTD Sample Definitions

Below are two sample files. The first is the DTD file. Its name is transactionSetRules.dtd.. This is a generic definition for all transaction sets. It contains iterative tables, segments and data definitions. The second file is a definition for an 840 (Request for Quotation) document. It contains a reference to transactionSetRules.dtd which defines all the XML elements. Notice that there is no value set for any element. That is because the XML file is used to define the structure not the contents of a particular EDI document.

<?xml encoding="ISO-8859-1"?>
<!-- OBOE release 1.5.0 -->
<!ELEMENT transactionSet (table+)>
<!ATTLIST transactionSet name CDATA #REQUIRED>
<!ATTLIST transactionSet id CDATA #REQUIRED>
<!ATTLIST transactionSet revision CDATA #IMPLIED>
<!ATTLIST transactionSet functionalGroup CDATA #IMPLIED>
<!ATTLIST transactionSet description CDATA #IMPLIED>
<!ATTLIST transactionSet xmlTag CDATA #IMPLIED >
<!ELEMENT table (segment*)>
<!ATTLIST table section (header | detail | summary) "header">
<!ELEMENT segment (segment*, (compositeDE?, dataElement?)*)*>
<!ATTLIST segment name CDATA #REQUIRED>
<!ATTLIST segment id CDATA #REQUIRED>
<!ATTLIST segment sequence CDATA #REQUIRED>
<!ATTLIST segment description CDATA #IMPLIED>
<!ATTLIST segment occurs CDATA  #IMPLIED>
<!ATTLIST segment required (M | O | C) "M">
<!ATTLIST segment xmlTag CDATA  #IMPLIED>
<!ELEMENT compositeDE (dataElement)+>
<!ATTLIST compositeDE name CDATA #REQUIRED>
<!ATTLIST compositeDE id CDATA #REQUIRED>
<!ATTLIST compositeDE description CDATA #IMPLIED>
<!ATTLIST compositeDE sequence CDATA #IMPLIED>
<!ATTLIST compositeDE required CDATA #IMPLIED>
<!ATTLIST compositeDE xmlTag CDATA #IMPLIED>
<!ELEMENT dataElement EMPTY>
<!ATTLIST dataElement name CDATA #REQUIRED>
<!ATTLIST dataElement id CDATA #REQUIRED>
<!ATTLIST dataElement type CDATA #REQUIRED>
<!ATTLIST dataElement sequence CDATA #IMPLIED>
<!ATTLIST dataElement required CDATA #IMPLIED>
<!ATTLIST dataElement description CDATA #IMPLIED>
<!ATTLIST dataElement minLength CDATA #REQUIRED>
<!ATTLIST dataElement maxLength CDATA #REQUIRED>
<!ATTLIST dataElement xmlTag CDATA  #IMPLIED>


<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE transactionSet SYSTEM "transactionsetrules.dtd">
<!-- Revision 1.5.0 data/OBOE, docs, August 29, 2000, -->
<transactionSet name="Request for Quotation" id="840"
  revision="004010"
  functionalGroup="RQ"
  description="This Draft Standard for Trial Use contains the format and establishes the data contents of the Request for Quotation Transaction Set (840) for use within the context of an Electronic Data Interchange (EDI) environment. The transaction set can be used to provide potential buyers with the ability to solicit price, delivery schedule, and other items from potential sellers of goods and services."
  xmlTag="RequestForQuotation">
    <table section="header">
        <segment name="Transaction Set Header" id="ST"
          description="To indicate the start of a transaction set and to assign a control number"
          sequence="10"
          occurs="1"
          required='M'
          xmlTag="TransactionSetHeader">
            <dataElement name="Transaction Set Identifier Code" id="143"
              sequence="1"
              description="Code uniquely identifying a Transaction Set"
              type="ID" required="M"
              minLength="3" maxLength="3"
              xmlTag="transactionSetIdentifierCode"/>
            <dataElement name="Transaction Set Control Number" id="329"
              sequence="2"
              description="Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set"
              type="AN" required="M"
              minLength="4" maxLength="9"
              xmlTag="transactionSetControlNumber"/>
        </segment>
        <segment name="Beginning Segment for Request for Quotation" id="BQT"
          description="To indicate the beginning of a Request for Quotation Transaction Set and transmit identifying numbers and dates"
          sequence="20"
          occurs="1"
          required='M'
          xmlTag="BeginningSegmentForRequestForQuotation">
            <dataElement name="Transaction Set Purpose Code" id="353"
              sequence="1"
              description="Code identifying purpose of transaction set"
              type="ID" required="M"
              minLength="2" maxLength="2"
              xmlTag="transactionSetPurposeCode"/>
            <dataElement name="Request for Quote Reference Number" id="586"
              sequence="2"
              description="Number assigned by the purchaser to identify his request for quote"
              type="AN" required="M"
              minLength="1" maxLength="45"
              xmlTag="requestForQuoteReferenceNumber"/>
            <dataElement name="Date" id="373"
              sequence="3"
              description="Date expressed as CCYYMMDD"
              type="DT" required="M"
              minLength="8" maxLength="8"
              xmlTag="date"/>
            <dataElement name="Date/Time Qualifier" id="374"
              sequence="4"
              description="Code specifying type of date or time, or both date and time"
              type="ID" required="X"
              minLength="3" maxLength="3"
              xmlTag="dateTimeQualifier"/>
            <dataElement name="Date" id="373"
              sequence="5"
              description="Date expressed as CCYYMMDD"
              type="DT" required="X"
              minLength="8" maxLength="8"
              xmlTag="date"/>
            <dataElement name="Purchase Order Type Code" id="92"
              sequence="6"
              description="Code specifying the type of Purchase Order"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="purchaseOrderTypeCode"/>
            <dataElement name="Request for Quote Type Code" id="960"
              sequence="7"
              description="Code specifying the type of request for quote"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="requestForQuoteTypeCode"/>
            <dataElement name="Contract Type Code" id="1166"
              sequence="8"
              description="Code identifying a contract type"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="contractTypeCode"/>
            <dataElement name="Security Level Code" id="786"
              sequence="9"
              description="Code indicating the level of confidentiality assigned by the sender to the information following"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="securityLevelCode"/>
            <dataElement name="Purchase Category" id="1232"
              sequence="10"
              description="Code identifying the broad category of products or services being acquired"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="purchaseCategory"/>
            <dataElement name="Change Order Sequence Number" id="327"
              sequence="11"
              description="Number assigned by the order identifying a specific change or revision to a previously transmitted transaction set"
              type="AN" required="O"
              minLength="1" maxLength="8"
              xmlTag="changeOrderSequenceNumber"/>
        </segment>
        <segment name="Currency" id="CUR"
          description="To specify the currency (dollars, pounds, francs, etc.) used in a transaction"
          sequence="40"
          occurs="1"
          required='O'
          xmlTag="Currency">
            <dataElement name="Entity Identifier Code" id="98"
              sequence="1"
              description="Code identifying an organizational entity, a physical location, property or an individual"
              type="ID" required="M"
              minLength="2" maxLength="3"
              xmlTag="entityIdentifierCode"/>
            <dataElement name="Currency Code" id="100"
              sequence="2"
              description="Code (Standard ISO) for country in whose currency the charges are specified"
              type="ID" required="M"
              minLength="3" maxLength="3"
              xmlTag="currencyCode"/>
            <dataElement name="Exchange Rate" id="280"
              sequence="3"
              description="Value to be used as a multiplier conversion factor to convert monetary value from one currency to another"
              type="R" required="O"
              minLength="4" maxLength="10"
              xmlTag="exchangeRate"/>
            <dataElement name="Entity Identifier Code" id="98"
              sequence="4"
              description="Code identifying an organizational entity, a physical location, property or an individual"
              type="ID" required="O"
              minLength="2" maxLength="3"
              xmlTag="entityIdentifierCode"/>
            <dataElement name="Currency Code" id="100"
              sequence="5"
              description="Code (Standard ISO) for country in whose currency the charges are specified"
              type="ID" required="O"
              minLength="3" maxLength="3"
              xmlTag="currencyCode"/>
            <dataElement name="Currency Market/Exchange Code" id="669"
              sequence="6"
              description="Code identifying the market upon which the currency exchange rate is based"
              type="ID" required="O"
              minLength="3" maxLength="3"
              xmlTag="currencyMarketExchangeCode"/>
            <dataElement name="Date/Time Qualifier" id="374"
              sequence="7"
              description="Code specifying type of date or time, or both date and time"
              type="ID" required="X"
              minLength="3" maxLength="3"
              xmlTag="dateTimeQualifier"/>
            <dataElement name="Date" id="373"
              sequence="8"
              description="Date expressed as CCYYMMDD"
              type="DT" required="O"
              minLength="8" maxLength="8"
              xmlTag="date"/>
            <dataElement name="Time" id="337"
              sequence="9"
              description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
              type="TM" required="O"
              minLength="4" maxLength="8"
              xmlTag="time"/>
            <dataElement name="Date/Time Qualifier" id="374"
              sequence="10"
              description="Code specifying type of date or time, or both date and time"
              type="ID" required="X"
              minLength="3" maxLength="3"
              xmlTag="dateTimeQualifier"/>
            <dataElement name="Date" id="373"
              sequence="11"
              description="Date expressed as CCYYMMDD"
              type="DT" required="X"
              minLength="8" maxLength="8"
              xmlTag="date"/>
            <dataElement name="Time" id="337"
              sequence="12"
              description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
              type="TM" required="X"
              minLength="4" maxLength="8"
              xmlTag="time"/>
            <dataElement name="Date/Time Qualifier" id="374"
              sequence="13"
              description="Code specifying type of date or time, or both date and time"
              type="ID" required="X"
              minLength="3" maxLength="3"
              xmlTag="dateTimeQualifier"/>
            <dataElement name="Date" id="373"
              sequence="14"
              description="Date expressed as CCYYMMDD"
              type="DT" required="X"
              minLength="8" maxLength="8"
              xmlTag="date"/>
            <dataElement name="Time" id="337"
              sequence="15"
              description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
              type="TM" required="X"
              minLength="4" maxLength="8"
              xmlTag="time"/>
            <dataElement name="Date/Time Qualifier" id="374"
              sequence="16"
              description="Code specifying type of date or time, or both date and time"
              type="ID" required="X"
              minLength="3" maxLength="3"
              xmlTag="dateTimeQualifier"/>
            <dataElement name="Date" id="373"
              sequence="17"
              description="Date expressed as CCYYMMDD"
              type="DT" required="X"
              minLength="8" maxLength="8"
              xmlTag="date"/>
            <dataElement name="Time" id="337"
              sequence="18"
              description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
              type="TM" required="X"
              minLength="4" maxLength="8"
              xmlTag="time"/>
            <dataElement name="Date/Time Qualifier" id="374"
              sequence="19"
              description="Code specifying type of date or time, or both date and time"
              type="ID" required="X"
              minLength="3" maxLength="3"
              xmlTag="dateTimeQualifier"/>
            <dataElement name="Date" id="373"
              sequence="20"
              description="Date expressed as CCYYMMDD"
              type="DT" required="X"
              minLength="8" maxLength="8"
              xmlTag="date"/>
            <dataElement name="Time" id="337"
              sequence="21"
              description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
              type="TM" required="X"
              minLength="4" maxLength="8"
              xmlTag="time"/>
        </segment>
        <segment name="Reference Identification" id="REF"
          description="To specify identifying information"
          sequence="50"
          occurs="-1"
          required='O'
          xmlTag="ReferenceIdentification">
            <dataElement name="Reference Identification Qualifier" id="128"
              sequence="1"
              description="Code qualifying the Reference Identification"
              type="ID" required="M"
              minLength="2" maxLength="3"
              xmlTag="referenceIdentificationQualifier"/>
            <dataElement name="Reference Identification" id="127"
              sequence="2"
              description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
              type="AN" required="X"
              minLength="1" maxLength="30"
              xmlTag="referenceIdentification"/>
            <dataElement name="Description" id="352"
              sequence="3"
              description="A free-form description to clarify the related data elements and their content"
              type="AN" required="X"
              minLength="1" maxLength="80"
              xmlTag="description"/>
            <compositeDE name="Reference Identifier" id="C040"
              sequence="4"
              xmlTag="referenceIdentifier">
                <dataElement name="Reference Identification Qualifier" id="128"
                  sequence="1"
                  description="Code qualifying the Reference Identification"
                  type="ID" required="M"
                  minLength="2" maxLength="3"
                  xmlTag="referenceIdentificationQualifier"/>
                <dataElement name="Reference Identification" id="127"
                  sequence="2"
                  description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                  type="AN" required="M"
                  minLength="1" maxLength="30"
                  xmlTag="referenceIdentification"/>
                <dataElement name="Reference Identification Qualifier" id="128"
                  sequence="3"
                  description="Code qualifying the Reference Identification"
                  type="ID" required="X"
                  minLength="2" maxLength="3"
                  xmlTag="referenceIdentificationQualifier"/>
                <dataElement name="Reference Identification" id="127"
                  sequence="4"
                  description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="referenceIdentification"/>
                <dataElement name="Reference Identification Qualifier" id="128"
                  sequence="5"
                  description="Code qualifying the Reference Identification"
                  type="ID" required="X"
                  minLength="2" maxLength="3"
                  xmlTag="referenceIdentificationQualifier"/>
                <dataElement name="Reference Identification" id="127"
                  sequence="6"
                  description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="referenceIdentification"/>
            </compositeDE>
        </segment>
        <segment name="Administrative Communications Contact" id="PER"
          description="To identify a person or office to whom administrative communications should be directed"
          sequence="60"
          occurs="3"
          required='O'
          xmlTag="AdministrativeCommunicationsContact">
            <dataElement name="Contact Function Code" id="366"
              sequence="1"
              description="Code identifying the major duty or responsibility of the person or group named"
              type="ID" required="M"
              minLength="2" maxLength="2"
              xmlTag="contactFunctionCode"/>
            <dataElement name="Name" id="93"
              sequence="2"
              description="Free-form name"
              type="AN" required="O"
              minLength="1" maxLength="60"
              xmlTag="name"/>
            <dataElement name="Communication Number Qualifier" id="365"
              sequence="3"
              description="Code identifying the type of communication number"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="communicationNumberQualifier"/>
            <dataElement name="Communication Number" id="364"
              sequence="4"
              description="Complete communications number including country or area code when applicable"
              type="AN" required="X"
              minLength="1" maxLength="80"
              xmlTag="communicationNumber"/>
            <dataElement name="Communication Number Qualifier" id="365"
              sequence="5"
              description="Code identifying the type of communication number"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="communicationNumberQualifier"/>
            <dataElement name="Communication Number" id="364"
              sequence="6"
              description="Complete communications number including country or area code when applicable"
              type="AN" required="X"
              minLength="1" maxLength="80"
              xmlTag="communicationNumber"/>
            <dataElement name="Communication Number Qualifier" id="365"
              sequence="7"
              description="Code identifying the type of communication number"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="communicationNumberQualifier"/>
            <dataElement name="Communication Number" id="364"
              sequence="8"
              description="Complete communications number including country or area code when applicable"
              type="AN" required="X"
              minLength="1" maxLength="80"
              xmlTag="communicationNumber"/>
            <dataElement name="Contact Inquiry Reference" id="443"
              sequence="9"
              description="Additional reference number or description to clarify a contact number"
              type="AN" required="O"
              minLength="1" maxLength="20"
              xmlTag="contactInquiryReference"/>
        </segment>
        <segment name="Tax Reference" id="TAX"
          description="To provide data required for proper notification/determination of applicable taxes applying to the transaction or business described in the transaction"
          sequence="70"
          occurs="3"
          required='O'
          xmlTag="TaxReference">
            <dataElement name="Tax Identification Number" id="325"
              sequence="1"
              description="Number assigned to a purchaser (buyer, orderer) by a taxing jurisdiction (state, county, etc.); often called a tax exemption number or certificate number"
              type="AN" required="X"
              minLength="1" maxLength="20"
              xmlTag="taxIdentificationNumber"/>
            <dataElement name="Location Qualifier" id="309"
              sequence="2"
              description="Code identifying type of location"
              type="ID" required="X"
              minLength="1" maxLength="2"
              xmlTag="locationQualifier"/>
            <dataElement name="Location Identifier" id="310"
              sequence="3"
              description="Code which identifies a specific location"
              type="AN" required="X"
              minLength="1" maxLength="30"
              xmlTag="locationIdentifier"/>
            <dataElement name="Location Qualifier" id="309"
              sequence="4"
              description="Code identifying type of location"
              type="ID" required="X"
              minLength="1" maxLength="2"
              xmlTag="locationQualifier"/>
            <dataElement name="Location Identifier" id="310"
              sequence="5"
              description="Code which identifies a specific location"
              type="AN" required="X"
              minLength="1" maxLength="30"
              xmlTag="locationIdentifier"/>
            <dataElement name="Location Qualifier" id="309"
              sequence="6"
              description="Code identifying type of location"
              type="ID" required="X"
              minLength="1" maxLength="2"
              xmlTag="locationQualifier"/>
            <dataElement name="Location Identifier" id="310"
              sequence="7"
              description="Code which identifies a specific location"
              type="AN" required="X"
              minLength="1" maxLength="30"
              xmlTag="locationIdentifier"/>
            <dataElement name="Location Qualifier" id="309"
              sequence="8"
              description="Code identifying type of location"
              type="ID" required="X"
              minLength="1" maxLength="2"
              xmlTag="locationQualifier"/>
            <dataElement name="Location Identifier" id="310"
              sequence="9"
              description="Code which identifies a specific location"
              type="AN" required="X"
              minLength="1" maxLength="30"
              xmlTag="locationIdentifier"/>
            <dataElement name="Location Qualifier" id="309"
              sequence="10"
              description="Code identifying type of location"
              type="ID" required="X"
              minLength="1" maxLength="2"
              xmlTag="locationQualifier"/>
            <dataElement name="Location Identifier" id="310"
              sequence="11"
              description="Code which identifies a specific location"
              type="AN" required="X"
              minLength="1" maxLength="30"
              xmlTag="locationIdentifier"/>
            <dataElement name="Tax Exempt Code" id="441"
              sequence="12"
              description="Code identifying exemption status from sales and use tax"
              type="ID" required="O"
              minLength="1" maxLength="1"
              xmlTag="taxExemptCode"/>
            <dataElement name="Customs Entry Type Group Code" id="1179"
              sequence="13"
              description="Code identifying a group of entry types as filed with U.S. Customs when goods enter the country"
              type="ID" required="O"
              minLength="1" maxLength="1"
              xmlTag="customsEntryTypeGroupCode"/>
        </segment>
        <segment name="F.O.B. Related Instructions" id="FOB"
          description="To specify transportation instructions relating to shipment"
          sequence="80"
          occurs="-1"
          required='O'
          xmlTag="FOBRelatedInstructions">
            <dataElement name="Shipment Method of Payment" id="146"
              sequence="1"
              description="Code identifying payment terms for transportation charges"
              type="ID" required="M"
              minLength="2" maxLength="2"
              xmlTag="shipmentMethodOfPayment"/>
            <dataElement name="Location Qualifier" id="309"
              sequence="2"
              description="Code identifying type of location"
              type="ID" required="X"
              minLength="1" maxLength="2"
              xmlTag="locationQualifier"/>
            <dataElement name="Description" id="352"
              sequence="3"
              description="A free-form description to clarify the related data elements and their content"
              type="AN" required="O"
              minLength="1" maxLength="80"
              xmlTag="description"/>
            <dataElement name="Transportation Terms Qualifier Code" id="334"
              sequence="4"
              description="Code identifying the source of the transportation terms"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="transportationTermsQualifierCode"/>
            <dataElement name="Transportation Terms Code" id="335"
              sequence="5"
              description="Code identifying the trade terms which apply to the shipment transportation responsibility"
              type="ID" required="X"
              minLength="3" maxLength="3"
              xmlTag="transportationTermsCode"/>
            <dataElement name="Location Qualifier" id="309"
              sequence="6"
              description="Code identifying type of location"
              type="ID" required="X"
              minLength="1" maxLength="2"
              xmlTag="locationQualifier"/>
            <dataElement name="Description" id="352"
              sequence="7"
              description="A free-form description to clarify the related data elements and their content"
              type="AN" required="O"
              minLength="1" maxLength="80"
              xmlTag="description"/>
            <dataElement name="Risk of Loss Code" id="54"
              sequence="8"
              description="Code specifying where responsibility for risk of loss passes"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="riskOfLossCode"/>
            <dataElement name="Description" id="352"
              sequence="9"
              description="A free-form description to clarify the related data elements and their content"
              type="AN" required="X"
              minLength="1" maxLength="80"
              xmlTag="description"/>
        </segment>
        <segment name="Pricing Information" id="CTP"
          description="To specify pricing information"
          sequence="90"
          occurs="-1"
          required='O'
          xmlTag="PricingInformation">
            <dataElement name="Class of Trade Code" id="687"
              sequence="1"
              description="Code indicating class of trade"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="classOfTradeCode"/>
            <dataElement name="Price Identifier Code" id="236"
              sequence="2"
              description="Code identifying pricing specification"
              type="ID" required="X"
              minLength="3" maxLength="3"
              xmlTag="priceIdentifierCode"/>
            <dataElement name="Unit Price" id="212"
              sequence="3"
              description="Price per unit of product, service, commodity, etc."
              type="R" required="X"
              minLength="1" maxLength="17"
              xmlTag="unitPrice"/>
            <dataElement name="Quantity" id="380"
              sequence="4"
              description="Numeric value of quantity"
              type="R" required="X"
              minLength="1" maxLength="15"
              xmlTag="quantity"/>
            <compositeDE name="Composite Unit of Measure" id="C001"
              sequence="5"
              xmlTag="compositeUnitOfMeasure">
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="1"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Exponent" id="1018"
                  sequence="2"
                  description="Power to which a unit is raised"
                  type="R" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="exponent"/>
                <dataElement name="Multiplier" id="649"
                  sequence="3"
                  description="Value to be used as a multiplier to obtain a new value"
                  type="R" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="multiplier"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="4"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Exponent" id="1018"
                  sequence="5"
                  description="Power to which a unit is raised"
                  type="R" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="exponent"/>
                <dataElement name="Multiplier" id="649"
                  sequence="6"
                  description="Value to be used as a multiplier to obtain a new value"
                  type="R" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="multiplier"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="7"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Exponent" id="1018"
                  sequence="8"
                  description="Power to which a unit is raised"
                  type="R" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="exponent"/>
                <dataElement name="Multiplier" id="649"
                  sequence="9"
                  description="Value to be used as a multiplier to obtain a new value"
                  type="R" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="multiplier"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="10"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Exponent" id="1018"
                  sequence="11"
                  description="Power to which a unit is raised"
                  type="R" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="exponent"/>
                <dataElement name="Multiplier" id="649"
                  sequence="12"
                  description="Value to be used as a multiplier to obtain a new value"
                  type="R" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="multiplier"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="13"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Exponent" id="1018"
                  sequence="14"
                  description="Power to which a unit is raised"
                  type="R" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="exponent"/>
                <dataElement name="Multiplier" id="649"
                  sequence="15"
                  description="Value to be used as a multiplier to obtain a new value"
                  type="R" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="multiplier"/>
            </compositeDE>
            <dataElement name="Price Multiplier Qualifier" id="648"
              sequence="6"
              description="Code indicating the type of price multiplier"
              type="ID" required="O"
              minLength="3" maxLength="3"
              xmlTag="priceMultiplierQualifier"/>
            <dataElement name="Multiplier" id="649"
              sequence="7"
              description="Value to be used as a multiplier to obtain a new value"
              type="R" required="X"
              minLength="1" maxLength="10"
              xmlTag="multiplier"/>
            <dataElement name="Monetary Amount" id="782"
              sequence="8"
              description="Monetary amount"
              type="R" required="O"
              minLength="1" maxLength="18"
              xmlTag="monetaryAmount"/>
            <dataElement name="Basis of Unit Price Code" id="639"
              sequence="9"
              description="Code identifying the type of unit price for an item"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="basisOfUnitPriceCode"/>
            <dataElement name="Condition Value" id="499"
              sequence="10"
              description="Identifies rate restrictions or provisions"
              type="AN" required="O"
              minLength="1" maxLength="10"
              xmlTag="conditionValue"/>
            <dataElement name="Multiple Price Quantity" id="289"
              sequence="11"
              description="Quantity of units for a given price, e.g., 3 for $10.00"
              type="N0" required="O"
              minLength="1" maxLength="2"
              xmlTag="multiplePriceQuantity"/>
        </segment>
        <segment name="Period Amount" id="PAM"
          description="To indicate a quantity, and/or amount for an identified period"
          sequence="95"
          occurs="10"
          required='O'
          xmlTag="PeriodAmount">
            <dataElement name="Quantity Qualifier" id="673"
              sequence="1"
              description="Code specifying the type of quantity"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="quantityQualifier"/>
            <dataElement name="Quantity" id="380"
              sequence="2"
              description="Numeric value of quantity"
              type="R" required="X"
              minLength="1" maxLength="15"
              xmlTag="quantity"/>
            <compositeDE name="Composite Unit of Measure" id="C001"
              sequence="3"
              xmlTag="compositeUnitOfMeasure">
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="1"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Exponent" id="1018"
                  sequence="2"
                  description="Power to which a unit is raised"
                  type="R" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="exponent"/>
                <dataElement name="Multiplier" id="649"
                  sequence="3"
                  description="Value to be used as a multiplier to obtain a new value"
                  type="R" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="multiplier"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="4"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Exponent" id="1018"
                  sequence="5"
                  description="Power to which a unit is raised"
                  type="R" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="exponent"/>
                <dataElement name="Multiplier" id="649"
                  sequence="6"
                  description="Value to be used as a multiplier to obtain a new value"
                  type="R" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="multiplier"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="7"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Exponent" id="1018"
                  sequence="8"
                  description="Power to which a unit is raised"
                  type="R" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="exponent"/>
                <dataElement name="Multiplier" id="649"
                  sequence="9"
                  description="Value to be used as a multiplier to obtain a new value"
                  type="R" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="multiplier"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="10"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Exponent" id="1018"
                  sequence="11"
                  description="Power to which a unit is raised"
                  type="R" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="exponent"/>
                <dataElement name="Multiplier" id="649"
                  sequence="12"
                  description="Value to be used as a multiplier to obtain a new value"
                  type="R" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="multiplier"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="13"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Exponent" id="1018"
                  sequence="14"
                  description="Power to which a unit is raised"
                  type="R" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="exponent"/>
                <dataElement name="Multiplier" id="649"
                  sequence="15"
                  description="Value to be used as a multiplier to obtain a new value"
                  type="R" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="multiplier"/>
            </compositeDE>
            <dataElement name="Amount Qualifier Code" id="522"
              sequence="4"
              description="Code to qualify amount"
              type="ID" required="X"
              minLength="1" maxLength="3"
              xmlTag="amountQualifierCode"/>
            <dataElement name="Monetary Amount" id="782"
              sequence="5"
              description="Monetary amount"
              type="R" required="X"
              minLength="1" maxLength="18"
              xmlTag="monetaryAmount"/>
            <dataElement name="Unit of Time Period or Interval" id="344"
              sequence="6"
              description="Code indicating the time period or interval"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="unitOfTimePeriodOrInterval"/>
            <dataElement name="Date/Time Qualifier" id="374"
              sequence="7"
              description="Code specifying type of date or time, or both date and time"
              type="ID" required="X"
              minLength="3" maxLength="3"
              xmlTag="dateTimeQualifier"/>
            <dataElement name="Date" id="373"
              sequence="8"
              description="Date expressed as CCYYMMDD"
              type="DT" required="X"
              minLength="8" maxLength="8"
              xmlTag="date"/>
            <dataElement name="Time" id="337"
              sequence="9"
              description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
              type="TM" required="X"
              minLength="4" maxLength="8"
              xmlTag="time"/>
            <dataElement name="Date/Time Qualifier" id="374"
              sequence="10"
              description="Code specifying type of date or time, or both date and time"
              type="ID" required="X"
              minLength="3" maxLength="3"
              xmlTag="dateTimeQualifier"/>
            <dataElement name="Date" id="373"
              sequence="11"
              description="Date expressed as CCYYMMDD"
              type="DT" required="X"
              minLength="8" maxLength="8"
              xmlTag="date"/>
            <dataElement name="Time" id="337"
              sequence="12"
              description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
              type="TM" required="X"
              minLength="4" maxLength="8"
              xmlTag="time"/>
            <dataElement name="Percent Qualifier" id="1004"
              sequence="13"
              description="Code to qualify percent"
              type="ID" required="X"
              minLength="1" maxLength="2"
              xmlTag="percentQualifier"/>
            <dataElement name="Percent" id="954"
              sequence="14"
              description="Percentage expressed as a decimal"
              type="R" required="X"
              minLength="1" maxLength="10"
              xmlTag="percent"/>
            <dataElement name="Yes/No Condition or Response Code" id="1073"
              sequence="15"
              description="Code indicating a Yes or No condition or response"
              type="ID" required="O"
              minLength="1" maxLength="1"
              xmlTag="yesNoConditionOrResponseCode"/>
        </segment>
        <segment name="Sales Requirements" id="CSH"
          description="To specify general conditions or requirements of the sale"
          sequence="110"
          occurs="25"
          required='O'
          xmlTag="SalesRequirements">
            <dataElement name="Sales Requirement Code" id="563"
              sequence="1"
              description="Code to identify a specific requirement or agreement of sale"
              type="ID" required="O"
              minLength="1" maxLength="2"
              xmlTag="salesRequirementCode"/>
            <dataElement name="Action Code" id="306"
              sequence="2"
              description="Code indicating type of action"
              type="ID" required="O"
              minLength="1" maxLength="2"
              xmlTag="actionCode"/>
            <dataElement name="Amount" id="610"
              sequence="3"
              description="Monetary amount"
              type="N2" required="X"
              minLength="1" maxLength="15"
              xmlTag="amount"/>
            <dataElement name="Account Number" id="508"
              sequence="4"
              description="Account number assigned"
              type="AN" required="O"
              minLength="1" maxLength="35"
              xmlTag="accountNumber"/>
            <dataElement name="Date" id="373"
              sequence="5"
              description="Date expressed as CCYYMMDD"
              type="DT" required="O"
              minLength="8" maxLength="8"
              xmlTag="date"/>
            <dataElement name="Agency Qualifier Code" id="559"
              sequence="6"
              description="Code identifying the agency assigning the code values"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="agencyQualifierCode"/>
            <dataElement name="Special Services Code" id="560"
              sequence="7"
              description="Code identifying the special service"
              type="ID" required="X"
              minLength="2" maxLength="10"
              xmlTag="specialServicesCode"/>
            <dataElement name="Product/Service Substitution Code" id="566"
              sequence="8"
              description="Code indicating product or service substitution conditions"
              type="ID" required="O"
              minLength="1" maxLength="2"
              xmlTag="productServiceSubstitutionCode"/>
            <dataElement name="Percent" id="954"
              sequence="9"
              description="Percentage expressed as a decimal"
              type="R" required="X"
              minLength="1" maxLength="10"
              xmlTag="percent"/>
            <dataElement name="Percent Qualifier" id="1004"
              sequence="10"
              description="Code to qualify percent"
              type="ID" required="X"
              minLength="1" maxLength="2"
              xmlTag="percentQualifier"/>
        </segment>
        <segment name="Service, Promotion, Allowance, or Charge Information" id="SAC"
          description="To request or identify a service, promotion, allowance, or charge; to specify the amount or percentage for the service, promotion, allowance, or charge"
          sequence="120"
          occurs="25"
          required='O'
          xmlTag="ServicePromotionAllowanceOrChargeInformation">
            <dataElement name="Allowance or Charge Indicator" id="248"
              sequence="1"
              description="Code which indicates an allowance or charge for the service specified"
              type="ID" required="M"
              minLength="1" maxLength="1"
              xmlTag="allowanceOrChargeIndicator"/>
            <dataElement name="Service, Promotion, Allowance, or Charge Code" id="1300"
              sequence="2"
              description="Code identifying the service, promotion, allowance, or charge"
              type="ID" required="X"
              minLength="4" maxLength="4"
              xmlTag="servicePromotionAllowanceOrChargeCode"/>
            <dataElement name="Agency Qualifier Code" id="559"
              sequence="3"
              description="Code identifying the agency assigning the code values"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="agencyQualifierCode"/>
            <dataElement name="Agency Service, Promotion, Allowance, or Charge Code" id="1301"
              sequence="4"
              description="Agency maintained code identifying the service, promotion, allowance, or charge"
              type="AN" required="X"
              minLength="1" maxLength="10"
              xmlTag="agencyServicePromotionAllowanceOrChargeCode"/>
            <dataElement name="Amount" id="610"
              sequence="5"
              description="Monetary amount"
              type="N2" required="O"
              minLength="1" maxLength="15"
              xmlTag="amount"/>
            <dataElement name="Allowance/Charge Percent Qualifier" id="378"
              sequence="6"
              description="Code indicating on what basis allowance or charge percent is calculated"
              type="ID" required="X"
              minLength="1" maxLength="1"
              xmlTag="allowanceChargePercentQualifier"/>
            <dataElement name="Percent" id="332"
              sequence="7"
              description="Percent expressed as a percent"
              type="R" required="X"
              minLength="1" maxLength="6"
              xmlTag="percent"/>
            <dataElement name="Rate" id="118"
              sequence="8"
              description="Rate expressed in the standard monetary denomination for the currency specified"
              type="R" required="O"
              minLength="1" maxLength="9"
              xmlTag="rate"/>
            <dataElement name="Unit or Basis for Measurement Code" id="355"
              sequence="9"
              description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="unitOrBasisForMeasurementCode"/>
            <dataElement name="Quantity" id="380"
              sequence="10"
              description="Numeric value of quantity"
              type="R" required="X"
              minLength="1" maxLength="15"
              xmlTag="quantity"/>
            <dataElement name="Quantity" id="380"
              sequence="11"
              description="Numeric value of quantity"
              type="R" required="O"
              minLength="1" maxLength="15"
              xmlTag="quantity"/>
            <dataElement name="Allowance or Charge Method of Handling Code" id="331"
              sequence="12"
              description="Code indicating method of handling for an allowance or charge"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="allowanceOrChargeMethodOfHandlingCode"/>
            <dataElement name="Reference Identification" id="127"
              sequence="13"
              description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
              type="AN" required="X"
              minLength="1" maxLength="30"
              xmlTag="referenceIdentification"/>
            <dataElement name="Option Number" id="770"
              sequence="14"
              description="A unique number identifying available promotion or allowance options when more than one is offered"
              type="AN" required="O"
              minLength="1" maxLength="20"
              xmlTag="optionNumber"/>
            <dataElement name="Description" id="352"
              sequence="15"
              description="A free-form description to clarify the related data elements and their content"
              type="AN" required="X"
              minLength="1" maxLength="80"
              xmlTag="description"/>
            <dataElement name="Language Code" id="819"
              sequence="16"
              description="Code designating the language used in text, from a standard code list maintained by the International Standards Organization (ISO 639)"
              type="ID" required="O"
              minLength="2" maxLength="3"
              xmlTag="languageCode"/>
        </segment>
        <segment name="Terms of Sale/Deferred Terms of Sale" id="ITD"
          description="To specify terms of sale"
          sequence="130"
          occurs="5"
          required='O'
          xmlTag="TermsOfSaleDeferredTermsOfSale">
            <dataElement name="Terms Type Code" id="336"
              sequence="1"
              description="Code identifying type of payment terms"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="termsTypeCode"/>
            <dataElement name="Terms Basis Date Code" id="333"
              sequence="2"
              description="Code identifying the beginning of the terms period"
              type="ID" required="O"
              minLength="1" maxLength="2"
              xmlTag="termsBasisDateCode"/>
            <dataElement name="Terms Discount Percent" id="338"
              sequence="3"
              description="Terms discount percentage, expressed as a percent, available to the purchaser if an invoice is paid on or before the Terms Discount Due Date"
              type="R" required="O"
              minLength="1" maxLength="6"
              xmlTag="termsDiscountPercent"/>
            <dataElement name="Terms Discount Due Date" id="370"
              sequence="4"
              description="Date payment is due if discount is to be earned expressed in format CCYYMMDD"
              type="DT" required="X"
              minLength="8" maxLength="8"
              xmlTag="termsDiscountDueDate"/>
            <dataElement name="Terms Discount Days Due" id="351"
              sequence="5"
              description="Number of days in the terms discount period by which payment is due if terms discount is earned"
              type="N0" required="X"
              minLength="1" maxLength="3"
              xmlTag="termsDiscountDaysDue"/>
            <dataElement name="Terms Net Due Date" id="446"
              sequence="6"
              description="Date when total invoice amount becomes due expressed in format CCYYMMDD"
              type="DT" required="O"
              minLength="8" maxLength="8"
              xmlTag="termsNetDueDate"/>
            <dataElement name="Terms Net Days" id="386"
              sequence="7"
              description="Number of days until total invoice amount is due (discount not applicable)"
              type="N0" required="O"
              minLength="1" maxLength="3"
              xmlTag="termsNetDays"/>
            <dataElement name="Terms Discount Amount" id="362"
              sequence="8"
              description="Total amount of terms discount"
              type="N2" required="O"
              minLength="1" maxLength="10"
              xmlTag="termsDiscountAmount"/>
            <dataElement name="Terms Deferred Due Date" id="388"
              sequence="9"
              description="Date deferred payment or percent of invoice payable is due expressed in format CCYYMMDD"
              type="DT" required="O"
              minLength="8" maxLength="8"
              xmlTag="termsDeferredDueDate"/>
            <dataElement name="Deferred Amount Due" id="389"
              sequence="10"
              description="Deferred amount due for payment"
              type="N2" required="X"
              minLength="1" maxLength="10"
              xmlTag="deferredAmountDue"/>
            <dataElement name="Percent of Invoice Payable" id="342"
              sequence="11"
              description="Amount of invoice payable expressed in percent"
              type="R" required="X"
              minLength="1" maxLength="5"
              xmlTag="percentOfInvoicePayable"/>
            <dataElement name="Description" id="352"
              sequence="12"
              description="A free-form description to clarify the related data elements and their content"
              type="AN" required="O"
              minLength="1" maxLength="80"
              xmlTag="description"/>
            <dataElement name="Day of Month" id="765"
              sequence="13"
              description="The numeric value of the day of the month between 1 and the maximum day of the month being referenced"
              type="N0" required="X"
              minLength="1" maxLength="2"
              xmlTag="dayOfMonth"/>
            <dataElement name="Payment Method Code" id="107"
              sequence="14"
              description="Code identifying type of payment procedures"
              type="ID" required="O"
              minLength="1" maxLength="2"
              xmlTag="paymentMethodCode"/>
            <dataElement name="Percent" id="954"
              sequence="15"
              description="Percentage expressed as a decimal"
              type="R" required="O"
              minLength="1" maxLength="10"
              xmlTag="percent"/>
        </segment>
        <segment name="Discount Detail" id="DIS"
          description="To specify the exact type and terms of various discount information"
          sequence="140"
          occurs="20"
          required='O'
          xmlTag="DiscountDetail">
            <dataElement name="Discount Terms Type Code" id="653"
              sequence="1"
              description="Code to define the units in which the discount will be determined, i.e., dollars, case, truckload, etc."
              type="ID" required="M"
              minLength="3" maxLength="3"
              xmlTag="discountTermsTypeCode"/>
            <dataElement name="Discount Base Qualifier" id="654"
              sequence="2"
              description="Code to define unit of discount, i.e., dollars, cases, alternate products, etc."
              type="ID" required="M"
              minLength="2" maxLength="2"
              xmlTag="discountBaseQualifier"/>
            <dataElement name="Discount Base Value" id="655"
              sequence="3"
              description="A multiplier amount used in conjunction with discount base qualifier to determine the value of the discount"
              type="R" required="M"
              minLength="1" maxLength="10"
              xmlTag="discountBaseValue"/>
            <dataElement name="Discount Control Limit Qualifier" id="656"
              sequence="4"
              description="Code to define the units of the limits for determining discount"
              type="ID" required="M"
              minLength="2" maxLength="3"
              xmlTag="discountControlLimitQualifier"/>
            <dataElement name="Discount Control Limit" id="657"
              sequence="5"
              description="Amount or time associated with application of the discount"
              type="N0" required="M"
              minLength="1" maxLength="10"
              xmlTag="discountControlLimit"/>
            <dataElement name="Discount Control Limit" id="657"
              sequence="6"
              description="Amount or time associated with application of the discount"
              type="N0" required="O"
              minLength="1" maxLength="10"
              xmlTag="discountControlLimit"/>
        </segment>
        <segment name="Date/Time Reference" id="DTM"
          description="To specify pertinent dates and times"
          sequence="150"
          occurs="10"
          required='O'
          xmlTag="DateTimeReference">
            <dataElement name="Date/Time Qualifier" id="374"
              sequence="1"
              description="Code specifying type of date or time, or both date and time"
              type="ID" required="M"
              minLength="3" maxLength="3"
              xmlTag="dateTimeQualifier"/>
            <dataElement name="Date" id="373"
              sequence="2"
              description="Date expressed as CCYYMMDD"
              type="DT" required="X"
              minLength="8" maxLength="8"
              xmlTag="date"/>
            <dataElement name="Time" id="337"
              sequence="3"
              description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
              type="TM" required="X"
              minLength="4" maxLength="8"
              xmlTag="time"/>
            <dataElement name="Time Code" id="623"
              sequence="4"
              description="Code identifying the time. In accordance with International Standards Organization standard 8601, time can be specified by a + or - and an indication in hours in relation to Universal Time Coordinate (UTC) time; since + is a restricted character, + and - are substituted by P and M in the codes that follow"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="timeCode"/>
            <dataElement name="Date Time Period Format Qualifier" id="1250"
              sequence="5"
              description="Code indicating the date format, time format, or date and time format"
              type="ID" required="X"
              minLength="2" maxLength="3"
              xmlTag="dateTimePeriodFormatQualifier"/>
            <dataElement name="Date Time Period" id="1251"
              sequence="6"
              description="Expression of a date, a time, or range of dates, times or dates and times"
              type="AN" required="X"
              minLength="1" maxLength="35"
              xmlTag="dateTimePeriod"/>
        </segment>
        <segment name="Lead Time" id="LDT"
          description="To specify lead time for availability of products and services"
          sequence="160"
          occurs="12"
          required='O'
          xmlTag="LeadTime">
            <dataElement name="Lead Time Code" id="345"
              sequence="1"
              description="Code indicating the time range"
              type="ID" required="M"
              minLength="2" maxLength="2"
              xmlTag="leadTimeCode"/>
            <dataElement name="Quantity" id="380"
              sequence="2"
              description="Numeric value of quantity"
              type="R" required="M"
              minLength="1" maxLength="15"
              xmlTag="quantity"/>
            <dataElement name="Unit of Time Period or Interval" id="344"
              sequence="3"
              description="Code indicating the time period or interval"
              type="ID" required="M"
              minLength="2" maxLength="2"
              xmlTag="unitOfTimePeriodOrInterval"/>
            <dataElement name="Date" id="373"
              sequence="4"
              description="Date expressed as CCYYMMDD"
              type="DT" required="O"
              minLength="8" maxLength="8"
              xmlTag="date"/>
        </segment>
        <segment name="Item Identification" id="LIN"
          description="To specify basic item identification data"
          sequence="180"
          occurs="5"
          required='O'
          xmlTag="ItemIdentification">
            <dataElement name="Assigned Identification" id="350"
              sequence="1"
              description="Alphanumeric characters assigned for differentiation within a transaction set"
              type="AN" required="O"
              minLength="1" maxLength="20"
              xmlTag="assignedIdentification"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="2"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="M"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="3"
              description="Identifying number for a product or service"
              type="AN" required="M"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="4"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="5"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="6"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="7"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="8"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="9"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="10"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="11"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="12"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="13"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="14"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="15"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="16"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="17"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="18"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="19"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="20"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="21"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="22"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="23"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="24"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="25"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="26"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="27"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="28"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="29"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="30"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="31"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
        </segment>
        <segment name="Product/Item Description" id="PID"
          description="To describe a product or process in coded or free-form format"
          sequence="190"
          occurs="200"
          required='O'
          xmlTag="ProductItemDescription">
            <dataElement name="Item Description Type" id="349"
              sequence="1"
              description="Code indicating the format of a description"
              type="ID" required="M"
              minLength="1" maxLength="1"
              xmlTag="itemDescriptionType"/>
            <dataElement name="Product/Process Characteristic Code" id="750"
              sequence="2"
              description="Code identifying the general class of a product or process characteristic"
              type="ID" required="O"
              minLength="2" maxLength="3"
              xmlTag="productProcessCharacteristicCode"/>
            <dataElement name="Agency Qualifier Code" id="559"
              sequence="3"
              description="Code identifying the agency assigning the code values"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="agencyQualifierCode"/>
            <dataElement name="Product Description Code" id="751"
              sequence="4"
              description="A code from an industry code list which provides specific data about a product characteristic"
              type="AN" required="X"
              minLength="1" maxLength="12"
              xmlTag="productDescriptionCode"/>
            <dataElement name="Description" id="352"
              sequence="5"
              description="A free-form description to clarify the related data elements and their content"
              type="AN" required="X"
              minLength="1" maxLength="80"
              xmlTag="description"/>
            <dataElement name="Surface/Layer/Position Code" id="752"
              sequence="6"
              description="Code indicating the product surface, layer or position that is being described"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="surfaceLayerPositionCode"/>
            <dataElement name="Source Subqualifier" id="822"
              sequence="7"
              description="A reference that indicates the table or text maintained by the Source Qualifier"
              type="AN" required="O"
              minLength="1" maxLength="15"
              xmlTag="sourceSubqualifier"/>
            <dataElement name="Yes/No Condition or Response Code" id="1073"
              sequence="8"
              description="Code indicating a Yes or No condition or response"
              type="ID" required="O"
              minLength="1" maxLength="1"
              xmlTag="yesNoConditionOrResponseCode"/>
            <dataElement name="Language Code" id="819"
              sequence="9"
              description="Code designating the language used in text, from a standard code list maintained by the International Standards Organization (ISO 639)"
              type="ID" required="O"
              minLength="2" maxLength="3"
              xmlTag="languageCode"/>
        </segment>
        <segment name="Measurements" id="MEA"
          description="To specify physical measurements or counts, including dimensions, tolerances, variances, and weights  (See Figures Appendix for example of use of C001)"
          sequence="200"
          occurs="40"
          required='O'
          xmlTag="Measurements">
            <dataElement name="Measurement Reference ID Code" id="737"
              sequence="1"
              description="Code identifying the broad category to which a measurement applies"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="measurementReferenceIdCode"/>
            <dataElement name="Measurement Qualifier" id="738"
              sequence="2"
              description="Code identifying a specific product or process characteristic to which a measurement applies"
              type="ID" required="O"
              minLength="1" maxLength="3"
              xmlTag="measurementQualifier"/>
            <dataElement name="Measurement Value" id="739"
              sequence="3"
              description="The value of the measurement"
              type="R" required="X"
              minLength="1" maxLength="20"
              xmlTag="measurementValue"/>
            <compositeDE name="Composite Unit of Measure" id="C001"
              sequence="4"
              xmlTag="compositeUnitOfMeasure">
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="1"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Exponent" id="1018"
                  sequence="2"
                  description="Power to which a unit is raised"
                  type="R" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="exponent"/>
                <dataElement name="Multiplier" id="649"
                  sequence="3"
                  description="Value to be used as a multiplier to obtain a new value"
                  type="R" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="multiplier"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="4"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Exponent" id="1018"
                  sequence="5"
                  description="Power to which a unit is raised"
                  type="R" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="exponent"/>
                <dataElement name="Multiplier" id="649"
                  sequence="6"
                  description="Value to be used as a multiplier to obtain a new value"
                  type="R" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="multiplier"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="7"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Exponent" id="1018"
                  sequence="8"
                  description="Power to which a unit is raised"
                  type="R" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="exponent"/>
                <dataElement name="Multiplier" id="649"
                  sequence="9"
                  description="Value to be used as a multiplier to obtain a new value"
                  type="R" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="multiplier"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="10"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Exponent" id="1018"
                  sequence="11"
                  description="Power to which a unit is raised"
                  type="R" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="exponent"/>
                <dataElement name="Multiplier" id="649"
                  sequence="12"
                  description="Value to be used as a multiplier to obtain a new value"
                  type="R" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="multiplier"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="13"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Exponent" id="1018"
                  sequence="14"
                  description="Power to which a unit is raised"
                  type="R" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="exponent"/>
                <dataElement name="Multiplier" id="649"
                  sequence="15"
                  description="Value to be used as a multiplier to obtain a new value"
                  type="R" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="multiplier"/>
            </compositeDE>
            <dataElement name="Range Minimum" id="740"
              sequence="5"
              description="The value specifying the minimum of the measurement range"
              type="R" required="X"
              minLength="1" maxLength="20"
              xmlTag="rangeMinimum"/>
            <dataElement name="Range Maximum" id="741"
              sequence="6"
              description="The value specifying the maximum of the measurement range"
              type="R" required="X"
              minLength="1" maxLength="20"
              xmlTag="rangeMaximum"/>
            <dataElement name="Measurement Significance Code" id="935"
              sequence="7"
              description="Code used to benchmark, qualify or further define a measurement value"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="measurementSignificanceCode"/>
            <dataElement name="Measurement Attribute Code" id="936"
              sequence="8"
              description="Code used to express an attribute response when a numeric measurement value cannot be determined"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="measurementAttributeCode"/>
            <dataElement name="Surface/Layer/Position Code" id="752"
              sequence="9"
              description="Code indicating the product surface, layer or position that is being described"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="surfaceLayerPositionCode"/>
            <dataElement name="Measurement Method or Device" id="1373"
              sequence="10"
              description="The method or device used to record the measurement"
              type="ID" required="O"
              minLength="2" maxLength="4"
              xmlTag="measurementMethodOrDevice"/>
        </segment>
        <segment name="Paperwork" id="PWK"
          description="To identify the type or transmission or both of paperwork or supporting information"
          sequence="210"
          occurs="25"
          required='O'
          xmlTag="Paperwork">
            <dataElement name="Report Type Code" id="755"
              sequence="1"
              description="Code indicating the title or contents of a document, report or supporting item"
              type="ID" required="M"
              minLength="2" maxLength="2"
              xmlTag="reportTypeCode"/>
            <dataElement name="Report Transmission Code" id="756"
              sequence="2"
              description="Code defining timing, transmission method or format by which reports are to be sent"
              type="ID" required="O"
              minLength="1" maxLength="2"
              xmlTag="reportTransmissionCode"/>
            <dataElement name="Report Copies Needed" id="757"
              sequence="3"
              description="The number of copies of a report that should be sent to the addressee"
              type="N0" required="O"
              minLength="1" maxLength="2"
              xmlTag="reportCopiesNeeded"/>
            <dataElement name="Entity Identifier Code" id="98"
              sequence="4"
              description="Code identifying an organizational entity, a physical location, property or an individual"
              type="ID" required="O"
              minLength="2" maxLength="3"
              xmlTag="entityIdentifierCode"/>
            <dataElement name="Identification Code Qualifier" id="66"
              sequence="5"
              description="Code designating the system/method of code structure used for Identification Code (67)"
              type="ID" required="X"
              minLength="1" maxLength="2"
              xmlTag="identificationCodeQualifier"/>
            <dataElement name="Identification Code" id="67"
              sequence="6"
              description="Code identifying a party or other code"
              type="AN" required="X"
              minLength="2" maxLength="80"
              xmlTag="identificationCode"/>
            <dataElement name="Description" id="352"
              sequence="7"
              description="A free-form description to clarify the related data elements and their content"
              type="AN" required="O"
              minLength="1" maxLength="80"
              xmlTag="description"/>
            <compositeDE name="Actions Indicated" id="C002"
              sequence="8"
              xmlTag="actionsIndicated">
                <dataElement name="Paperwork/Report Action Code" id="704"
                  sequence="1"
                  description="Code specifying how the paperwork or report that is identified in the PWK segment relates to the transaction set or to identify the action that is required"
                  type="ID" required="M"
                  minLength="1" maxLength="2"
                  xmlTag="paperworkReportActionCode"/>
                <dataElement name="Paperwork/Report Action Code" id="704"
                  sequence="2"
                  description="Code specifying how the paperwork or report that is identified in the PWK segment relates to the transaction set or to identify the action that is required"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="paperworkReportActionCode"/>
                <dataElement name="Paperwork/Report Action Code" id="704"
                  sequence="3"
                  description="Code specifying how the paperwork or report that is identified in the PWK segment relates to the transaction set or to identify the action that is required"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="paperworkReportActionCode"/>
                <dataElement name="Paperwork/Report Action Code" id="704"
                  sequence="4"
                  description="Code specifying how the paperwork or report that is identified in the PWK segment relates to the transaction set or to identify the action that is required"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="paperworkReportActionCode"/>
                <dataElement name="Paperwork/Report Action Code" id="704"
                  sequence="5"
                  description="Code specifying how the paperwork or report that is identified in the PWK segment relates to the transaction set or to identify the action that is required"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="paperworkReportActionCode"/>
            </compositeDE>
            <dataElement name="Request Category Code" id="1525"
              sequence="9"
              description="Code indicating a type of request"
              type="ID" required="O"
              minLength="1" maxLength="2"
              xmlTag="requestCategoryCode"/>
        </segment>
        <segment name="Marking, Packaging, Loading" id="PKG"
          description="To describe marking, packaging, loading, and unloading requirements"
          sequence="220"
          occurs="200"
          required='O'
          xmlTag="MarkingPackagingLoading">
            <dataElement name="Item Description Type" id="349"
              sequence="1"
              description="Code indicating the format of a description"
              type="ID" required="X"
              minLength="1" maxLength="1"
              xmlTag="itemDescriptionType"/>
            <dataElement name="Packaging Characteristic Code" id="753"
              sequence="2"
              description="Code specifying the marking, packaging, loading and related characteristics being described"
              type="ID" required="O"
              minLength="1" maxLength="5"
              xmlTag="packagingCharacteristicCode"/>
            <dataElement name="Agency Qualifier Code" id="559"
              sequence="3"
              description="Code identifying the agency assigning the code values"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="agencyQualifierCode"/>
            <dataElement name="Packaging Description Code" id="754"
              sequence="4"
              description="A code from an industry code list which provides specific data about the marking, packaging or loading and unloading of a product"
              type="AN" required="X"
              minLength="1" maxLength="7"
              xmlTag="packagingDescriptionCode"/>
            <dataElement name="Description" id="352"
              sequence="5"
              description="A free-form description to clarify the related data elements and their content"
              type="AN" required="X"
              minLength="1" maxLength="80"
              xmlTag="description"/>
            <dataElement name="Unit Load Option Code" id="400"
              sequence="6"
              description="Code identifying loading or unloading a shipment"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="unitLoadOptionCode"/>
        </segment>
        <segment name="Carrier Details (Quantity and Weight)" id="TD1"
          description="To specify the transportation details relative to commodity, weight, and quantity"
          sequence="230"
          occurs="2"
          required='O'
          xmlTag="CarrierDetailsQuantityAndWeight">
            <dataElement name="Packaging Code" id="103"
              sequence="1"
              description="Code identifying the type of packaging; Part 1: Packaging Form, Part 2: Packaging Material; if the Data Element is used, then Part 1 is always required"
              type="AN" required="O"
              minLength="3" maxLength="5"
              xmlTag="packagingCode"/>
            <dataElement name="Lading Quantity" id="80"
              sequence="2"
              description="Number of units (pieces) of the lading commodity"
              type="N0" required="X"
              minLength="1" maxLength="7"
              xmlTag="ladingQuantity"/>
            <dataElement name="Commodity Code Qualifier" id="23"
              sequence="3"
              description="Code identifying the commodity coding system used for Commodity Code"
              type="ID" required="O"
              minLength="1" maxLength="1"
              xmlTag="commodityCodeQualifier"/>
            <dataElement name="Commodity Code" id="22"
              sequence="4"
              description="Code describing a commodity or group of commodities"
              type="AN" required="X"
              minLength="1" maxLength="30"
              xmlTag="commodityCode"/>
            <dataElement name="Lading Description" id="79"
              sequence="5"
              description="Description of an item as required for rating and billing purposes"
              type="AN" required="O"
              minLength="1" maxLength="50"
              xmlTag="ladingDescription"/>
            <dataElement name="Weight Qualifier" id="187"
              sequence="6"
              description="Code defining the type of weight"
              type="ID" required="O"
              minLength="1" maxLength="2"
              xmlTag="weightQualifier"/>
            <dataElement name="Weight" id="81"
              sequence="7"
              description="Numeric value of weight"
              type="R" required="X"
              minLength="1" maxLength="10"
              xmlTag="weight"/>
            <dataElement name="Unit or Basis for Measurement Code" id="355"
              sequence="8"
              description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="unitOrBasisForMeasurementCode"/>
            <dataElement name="Volume" id="183"
              sequence="9"
              description="Value of volumetric measure"
              type="R" required="X"
              minLength="1" maxLength="8"
              xmlTag="volume"/>
            <dataElement name="Unit or Basis for Measurement Code" id="355"
              sequence="10"
              description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="unitOrBasisForMeasurementCode"/>
        </segment>
        <segment name="Carrier Details (Routing Sequence/Transit Time)" id="TD5"
          description="To specify the carrier and sequence of routing and provide transit time information"
          sequence="240"
          occurs="12"
          required='O'
          xmlTag="CarrierDetailsRoutingSequenceTransitTime">
            <dataElement name="Routing Sequence Code" id="133"
              sequence="1"
              description="Code describing the relationship of a carrier to a specific shipment movement"
              type="ID" required="O"
              minLength="1" maxLength="2"
              xmlTag="routingSequenceCode"/>
            <dataElement name="Identification Code Qualifier" id="66"
              sequence="2"
              description="Code designating the system/method of code structure used for Identification Code (67)"
              type="ID" required="X"
              minLength="1" maxLength="2"
              xmlTag="identificationCodeQualifier"/>
            <dataElement name="Identification Code" id="67"
              sequence="3"
              description="Code identifying a party or other code"
              type="AN" required="X"
              minLength="2" maxLength="80"
              xmlTag="identificationCode"/>
            <dataElement name="Transportation Method/Type Code" id="91"
              sequence="4"
              description="Code specifying the method or type of transportation for the shipment"
              type="ID" required="X"
              minLength="1" maxLength="2"
              xmlTag="transportationMethodTypeCode"/>
            <dataElement name="Routing" id="387"
              sequence="5"
              description="Free-form description of the routing or requested routing for shipment, or the originating carrier's identity"
              type="AN" required="X"
              minLength="1" maxLength="35"
              xmlTag="routing"/>
            <dataElement name="Shipment/Order Status Code" id="368"
              sequence="6"
              description="Code indicating the status of an order or shipment or the disposition of any difference between the quantity ordered and the quantity shipped for a line item or transaction"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="shipmentOrderStatusCode"/>
            <dataElement name="Location Qualifier" id="309"
              sequence="7"
              description="Code identifying type of location"
              type="ID" required="O"
              minLength="1" maxLength="2"
              xmlTag="locationQualifier"/>
            <dataElement name="Location Identifier" id="310"
              sequence="8"
              description="Code which identifies a specific location"
              type="AN" required="X"
              minLength="1" maxLength="30"
              xmlTag="locationIdentifier"/>
            <dataElement name="Transit Direction Code" id="731"
              sequence="9"
              description="The point of origin and point of direction"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="transitDirectionCode"/>
            <dataElement name="Transit Time Direction Qualifier" id="732"
              sequence="10"
              description="Code specifying the value of time used to measure the transit time"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="transitTimeDirectionQualifier"/>
            <dataElement name="Transit Time" id="733"
              sequence="11"
              description="The numeric amount of transit time"
              type="R" required="X"
              minLength="1" maxLength="4"
              xmlTag="transitTime"/>
            <dataElement name="Service Level Code" id="284"
              sequence="12"
              description="Code indicating the level of transportation service or the billing service offered by the transportation carrier"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="serviceLevelCode"/>
            <dataElement name="Service Level Code" id="284"
              sequence="13"
              description="Code indicating the level of transportation service or the billing service offered by the transportation carrier"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="serviceLevelCode"/>
            <dataElement name="Service Level Code" id="284"
              sequence="14"
              description="Code indicating the level of transportation service or the billing service offered by the transportation carrier"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="serviceLevelCode"/>
            <dataElement name="Country Code" id="26"
              sequence="15"
              description="Code identifying the country"
              type="ID" required="O"
              minLength="2" maxLength="3"
              xmlTag="countryCode"/>
        </segment>
        <segment name="Carrier Details (Equipment)" id="TD3"
          description="To specify transportation details relating to the equipment used by the carrier"
          sequence="250"
          occurs="12"
          required='O'
          xmlTag="CarrierDetailsEquipment">
            <dataElement name="Equipment Description Code" id="40"
              sequence="1"
              description="Code identifying type of equipment used for shipment"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="equipmentDescriptionCode"/>
            <dataElement name="Equipment Initial" id="206"
              sequence="2"
              description="Prefix or alphabetic part of an equipment unit's identifying number"
              type="AN" required="O"
              minLength="1" maxLength="4"
              xmlTag="equipmentInitial"/>
            <dataElement name="Equipment Number" id="207"
              sequence="3"
              description="Sequencing or serial part of an equipment unit's identifying number (pure numeric form for equipment number is preferred)"
              type="AN" required="X"
              minLength="1" maxLength="10"
              xmlTag="equipmentNumber"/>
            <dataElement name="Weight Qualifier" id="187"
              sequence="4"
              description="Code defining the type of weight"
              type="ID" required="O"
              minLength="1" maxLength="2"
              xmlTag="weightQualifier"/>
            <dataElement name="Weight" id="81"
              sequence="5"
              description="Numeric value of weight"
              type="R" required="X"
              minLength="1" maxLength="10"
              xmlTag="weight"/>
            <dataElement name="Unit or Basis for Measurement Code" id="355"
              sequence="6"
              description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="unitOrBasisForMeasurementCode"/>
            <dataElement name="Ownership Code" id="102"
              sequence="7"
              description="Code indicating the relationship of equipment to carrier or ownership of equipment"
              type="ID" required="O"
              minLength="1" maxLength="1"
              xmlTag="ownershipCode"/>
            <dataElement name="Seal Status Code" id="407"
              sequence="8"
              description="Code indicating condition of door seal upon arrival"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="sealStatusCode"/>
            <dataElement name="Seal Number" id="225"
              sequence="9"
              description="Unique number on seal used to close a shipment"
              type="AN" required="O"
              minLength="2" maxLength="15"
              xmlTag="sealNumber"/>
            <dataElement name="Equipment Type" id="24"
              sequence="10"
              description="Code identifying equipment type"
              type="ID" required="X"
              minLength="4" maxLength="4"
              xmlTag="equipmentType"/>
        </segment>
        <segment name="Carrier Details (Special Handling, or Hazardous Materials, or Both)" id="TD4"
          description="To specify transportation special handling requirements, or hazardous materials information, or both"
          sequence="260"
          occurs="5"
          required='O'
          xmlTag="CarrierDetailsSpecialHandlingOrHazardousMaterialsOrBoth">
            <dataElement name="Special Handling Code" id="152"
              sequence="1"
              description="Code specifying special transportation handling instructions"
              type="ID" required="X"
              minLength="2" maxLength="3"
              xmlTag="specialHandlingCode"/>
            <dataElement name="Hazardous Material Code Qualifier" id="208"
              sequence="2"
              description="Code which qualifies the Hazardous Material Class Code (209)"
              type="ID" required="X"
              minLength="1" maxLength="1"
              xmlTag="hazardousMaterialCodeQualifier"/>
            <dataElement name="Hazardous Material Class Code" id="209"
              sequence="3"
              description="Code specifying the kind of hazard for a material"
              type="AN" required="X"
              minLength="1" maxLength="4"
              xmlTag="hazardousMaterialClassCode"/>
            <dataElement name="Description" id="352"
              sequence="4"
              description="A free-form description to clarify the related data elements and their content"
              type="AN" required="X"
              minLength="1" maxLength="80"
              xmlTag="description"/>
            <dataElement name="Yes/No Condition or Response Code" id="1073"
              sequence="5"
              description="Code indicating a Yes or No condition or response"
              type="ID" required="O"
              minLength="1" maxLength="1"
              xmlTag="yesNoConditionOrResponseCode"/>
        </segment>
        <segment name="Marks and Numbers" id="MAN"
          description="To indicate identifying marks and numbers for shipping containers"
          sequence="270"
          occurs="10"
          required='O'
          xmlTag="MarksAndNumbers">
            <dataElement name="Marks and Numbers Qualifier" id="88"
              sequence="1"
              description="Code specifying the application or source of Marks and Numbers (87)"
              type="ID" required="M"
              minLength="1" maxLength="2"
              xmlTag="marksAndNumbersQualifier"/>
            <dataElement name="Marks and Numbers" id="87"
              sequence="2"
              description="Marks and numbers used to identify a shipment or parts of a shipment"
              type="AN" required="M"
              minLength="1" maxLength="48"
              xmlTag="marksAndNumbers"/>
            <dataElement name="Marks and Numbers" id="87"
              sequence="3"
              description="Marks and numbers used to identify a shipment or parts of a shipment"
              type="AN" required="O"
              minLength="1" maxLength="48"
              xmlTag="marksAndNumbers"/>
            <dataElement name="Marks and Numbers Qualifier" id="88"
              sequence="4"
              description="Code specifying the application or source of Marks and Numbers (87)"
              type="ID" required="X"
              minLength="1" maxLength="2"
              xmlTag="marksAndNumbersQualifier"/>
            <dataElement name="Marks and Numbers" id="87"
              sequence="5"
              description="Marks and numbers used to identify a shipment or parts of a shipment"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="marksAndNumbers"/>
            <dataElement name="Marks and Numbers" id="87"
              sequence="6"
              description="Marks and numbers used to identify a shipment or parts of a shipment"
              type="AN" required="O"
              minLength="1" maxLength="48"
              xmlTag="marksAndNumbers"/>
        </segment>
        <segment name="Required Response" id="RRA"
          description="To indicate information that is required to be included in the response"
          sequence="280"
          occurs="100"
          required='O'
          xmlTag="RequiredResponse">
            <dataElement name="Information Type" id="701"
              sequence="1"
              description="Code specifying the information required in the response"
              type="ID" required="M"
              minLength="2" maxLength="2"
              xmlTag="informationType"/>
            <dataElement name="Reference Identification" id="127"
              sequence="2"
              description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
              type="AN" required="O"
              minLength="1" maxLength="30"
              xmlTag="referenceIdentification"/>
        </segment>
        <segment name="Restrictions/Conditions" id="CTB"
          description="To specify restrictions/conditions (such as shipping, ordering)"
          sequence="285"
          occurs="-1"
          required='O'
          xmlTag="RestrictionsConditions">
            <dataElement name="Restrictions/Conditions Qualifier" id="688"
              sequence="1"
              description="Code identifying the type of restriction/condition"
              type="ID" required="M"
              minLength="2" maxLength="2"
              xmlTag="restrictionsConditionsQualifier"/>
            <dataElement name="Description" id="352"
              sequence="2"
              description="A free-form description to clarify the related data elements and their content"
              type="AN" required="X"
              minLength="1" maxLength="80"
              xmlTag="description"/>
            <dataElement name="Quantity Qualifier" id="673"
              sequence="3"
              description="Code specifying the type of quantity"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="quantityQualifier"/>
            <dataElement name="Quantity" id="380"
              sequence="4"
              description="Numeric value of quantity"
              type="R" required="X"
              minLength="1" maxLength="15"
              xmlTag="quantity"/>
            <dataElement name="Amount Qualifier Code" id="522"
              sequence="5"
              description="Code to qualify amount"
              type="ID" required="X"
              minLength="1" maxLength="3"
              xmlTag="amountQualifierCode"/>
            <dataElement name="Amount" id="610"
              sequence="6"
              description="Monetary amount"
              type="N2" required="X"
              minLength="1" maxLength="15"
              xmlTag="amount"/>
        </segment>
        <segment name="Identification Reference" id="N9"
          occurs="1000"
          sequence="290"
          required='O'
          description="To transmit identifying information as specified by the Reference Identification Qualifier"
          xmlTag="IdentificationReference">
            <dataElement name="Reference Identification Qualifier" id="128"
              sequence="1"
              description="Code qualifying the Reference Identification"
              type="ID" required="M"
              minLength="2" maxLength="3"
              xmlTag="referenceIdentificationQualifier"/>
            <dataElement name="Reference Identification" id="127"
              sequence="2"
              description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
              type="AN" required="X"
              minLength="1" maxLength="30"
              xmlTag="referenceIdentification"/>
            <dataElement name="Free-form Description" id="369"
              sequence="3"
              description="Free-form descriptive text"
              type="AN" required="X"
              minLength="1" maxLength="45"
              xmlTag="freeFormDescription"/>
            <dataElement name="Date" id="373"
              sequence="4"
              description="Date expressed as CCYYMMDD"
              type="DT" required="O"
              minLength="8" maxLength="8"
              xmlTag="date"/>
            <dataElement name="Time" id="337"
              sequence="5"
              description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
              type="TM" required="X"
              minLength="4" maxLength="8"
              xmlTag="time"/>
            <dataElement name="Time Code" id="623"
              sequence="6"
              description="Code identifying the time. In accordance with International Standards Organization standard 8601, time can be specified by a + or - and an indication in hours in relation to Universal Time Coordinate (UTC) time; since + is a restricted character, + and - are substituted by P and M in the codes that follow"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="timeCode"/>
            <compositeDE name="Reference Identifier" id="C040"
              sequence="7"
              xmlTag="referenceIdentifier">
                <dataElement name="Reference Identification Qualifier" id="128"
                  sequence="1"
                  description="Code qualifying the Reference Identification"
                  type="ID" required="M"
                  minLength="2" maxLength="3"
                  xmlTag="referenceIdentificationQualifier"/>
                <dataElement name="Reference Identification" id="127"
                  sequence="2"
                  description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                  type="AN" required="M"
                  minLength="1" maxLength="30"
                  xmlTag="referenceIdentification"/>
                <dataElement name="Reference Identification Qualifier" id="128"
                  sequence="3"
                  description="Code qualifying the Reference Identification"
                  type="ID" required="X"
                  minLength="2" maxLength="3"
                  xmlTag="referenceIdentificationQualifier"/>
                <dataElement name="Reference Identification" id="127"
                  sequence="4"
                  description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="referenceIdentification"/>
                <dataElement name="Reference Identification Qualifier" id="128"
                  sequence="5"
                  description="Code qualifying the Reference Identification"
                  type="ID" required="X"
                  minLength="2" maxLength="3"
                  xmlTag="referenceIdentificationQualifier"/>
                <dataElement name="Reference Identification" id="127"
                  sequence="6"
                  description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="referenceIdentification"/>
            </compositeDE>
            <segment name="Date/Time Reference" id="DTM"
              description="To specify pertinent dates and times"
              sequence="295"
              occurs="-1"
              required='O'
              xmlTag="DateTimeReference">
                <dataElement name="Date/Time Qualifier" id="374"
                  sequence="1"
                  description="Code specifying type of date or time, or both date and time"
                  type="ID" required="M"
                  minLength="3" maxLength="3"
                  xmlTag="dateTimeQualifier"/>
                <dataElement name="Date" id="373"
                  sequence="2"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="X"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Time" id="337"
                  sequence="3"
                  description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                  type="TM" required="X"
                  minLength="4" maxLength="8"
                  xmlTag="time"/>
                <dataElement name="Time Code" id="623"
                  sequence="4"
                  description="Code identifying the time. In accordance with International Standards Organization standard 8601, time can be specified by a + or - and an indication in hours in relation to Universal Time Coordinate (UTC) time; since + is a restricted character, + and - are substituted by P and M in the codes that follow"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="timeCode"/>
                <dataElement name="Date Time Period Format Qualifier" id="1250"
                  sequence="5"
                  description="Code indicating the date format, time format, or date and time format"
                  type="ID" required="X"
                  minLength="2" maxLength="3"
                  xmlTag="dateTimePeriodFormatQualifier"/>
                <dataElement name="Date Time Period" id="1251"
                  sequence="6"
                  description="Expression of a date, a time, or range of dates, times or dates and times"
                  type="AN" required="X"
                  minLength="1" maxLength="35"
                  xmlTag="dateTimePeriod"/>
            </segment>
            <segment name="Message Text" id="MSG"
              description="To provide a free-form format that allows the transmission of text information"
              sequence="300"
              occurs="1000"
              required='O'
              xmlTag="MessageText">
                <dataElement name="Free-Form Message Text" id="933"
                  sequence="1"
                  description="Free-form message text"
                  type="AN" required="M"
                  minLength="1" maxLength="264"
                  xmlTag="freeFormMessageText"/>
                <dataElement name="Printer Carriage Control Code" id="934"
                  sequence="2"
                  description="A field to be used for the control of the line feed of the receiving printer"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="printerCarriageControlCode"/>
                <dataElement name="Number" id="1470"
                  sequence="3"
                  description="A generic number"
                  type="N0" required="O"
                  minLength="1" maxLength="9"
                  xmlTag="number"/>
            </segment>
        </segment>
        <segment name="Name" id="N1"
          occurs="10000"
          sequence="310"
          required='O'
          description="To identify a party by type of organization, name, and code"
          xmlTag="Name">
            <dataElement name="Entity Identifier Code" id="98"
              sequence="1"
              description="Code identifying an organizational entity, a physical location, property or an individual"
              type="ID" required="M"
              minLength="2" maxLength="3"
              xmlTag="entityIdentifierCode"/>
            <dataElement name="Name" id="93"
              sequence="2"
              description="Free-form name"
              type="AN" required="X"
              minLength="1" maxLength="60"
              xmlTag="name"/>
            <dataElement name="Identification Code Qualifier" id="66"
              sequence="3"
              description="Code designating the system/method of code structure used for Identification Code (67)"
              type="ID" required="X"
              minLength="1" maxLength="2"
              xmlTag="identificationCodeQualifier"/>
            <dataElement name="Identification Code" id="67"
              sequence="4"
              description="Code identifying a party or other code"
              type="AN" required="X"
              minLength="2" maxLength="80"
              xmlTag="identificationCode"/>
            <dataElement name="Entity Relationship Code" id="706"
              sequence="5"
              description="Code describing entity relationship"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="entityRelationshipCode"/>
            <dataElement name="Entity Identifier Code" id="98"
              sequence="6"
              description="Code identifying an organizational entity, a physical location, property or an individual"
              type="ID" required="O"
              minLength="2" maxLength="3"
              xmlTag="entityIdentifierCode"/>
            <segment name="Additional Name Information" id="N2"
              description="To specify additional names or those longer than 35 characters in length"
              sequence="320"
              occurs="2"
              required='O'
              xmlTag="AdditionalNameInformation">
                <dataElement name="Name" id="93"
                  sequence="1"
                  description="Free-form name"
                  type="AN" required="M"
                  minLength="1" maxLength="60"
                  xmlTag="name"/>
                <dataElement name="Name" id="93"
                  sequence="2"
                  description="Free-form name"
                  type="AN" required="O"
                  minLength="1" maxLength="60"
                  xmlTag="name"/>
            </segment>
            <segment name="Address Information" id="N3"
              description="To specify the location of the named party"
              sequence="330"
              occurs="2"
              required='O'
              xmlTag="AddressInformation">
                <dataElement name="Address Information" id="166"
                  sequence="1"
                  description="Address information"
                  type="AN" required="M"
                  minLength="1" maxLength="55"
                  xmlTag="addressInformation"/>
                <dataElement name="Address Information" id="166"
                  sequence="2"
                  description="Address information"
                  type="AN" required="O"
                  minLength="1" maxLength="55"
                  xmlTag="addressInformation"/>
            </segment>
            <segment name="Geographic Location" id="N4"
              description="To specify the geographic place of the named party"
              sequence="340"
              occurs="-1"
              required='O'
              xmlTag="GeographicLocation">
                <dataElement name="City Name" id="19"
                  sequence="1"
                  description="Free-form text for city name"
                  type="AN" required="O"
                  minLength="2" maxLength="30"
                  xmlTag="cityName"/>
                <dataElement name="State or Province Code" id="156"
                  sequence="2"
                  description="Code (Standard State/Province) as defined by appropriate government agency"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="stateOrProvinceCode"/>
                <dataElement name="Postal Code" id="116"
                  sequence="3"
                  description="Code defining international postal zone code excluding punctuation and blanks (zip code for United States)"
                  type="ID" required="O"
                  minLength="3" maxLength="15"
                  xmlTag="postalCode"/>
                <dataElement name="Country Code" id="26"
                  sequence="4"
                  description="Code identifying the country"
                  type="ID" required="O"
                  minLength="2" maxLength="3"
                  xmlTag="countryCode"/>
                <dataElement name="Location Qualifier" id="309"
                  sequence="5"
                  description="Code identifying type of location"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="locationQualifier"/>
                <dataElement name="Location Identifier" id="310"
                  sequence="6"
                  description="Code which identifies a specific location"
                  type="AN" required="O"
                  minLength="1" maxLength="30"
                  xmlTag="locationIdentifier"/>
            </segment>
            <segment name="Reference Identification" id="REF"
              description="To specify identifying information"
              sequence="350"
              occurs="12"
              required='O'
              xmlTag="ReferenceIdentification">
                <dataElement name="Reference Identification Qualifier" id="128"
                  sequence="1"
                  description="Code qualifying the Reference Identification"
                  type="ID" required="M"
                  minLength="2" maxLength="3"
                  xmlTag="referenceIdentificationQualifier"/>
                <dataElement name="Reference Identification" id="127"
                  sequence="2"
                  description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="referenceIdentification"/>
                <dataElement name="Description" id="352"
                  sequence="3"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="X"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
                <compositeDE name="Reference Identifier" id="C040"
                  sequence="4"
                  xmlTag="referenceIdentifier">
                    <dataElement name="Reference Identification Qualifier" id="128"
                      sequence="1"
                      description="Code qualifying the Reference Identification"
                      type="ID" required="M"
                      minLength="2" maxLength="3"
                      xmlTag="referenceIdentificationQualifier"/>
                    <dataElement name="Reference Identification" id="127"
                      sequence="2"
                      description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                      type="AN" required="M"
                      minLength="1" maxLength="30"
                      xmlTag="referenceIdentification"/>
                    <dataElement name="Reference Identification Qualifier" id="128"
                      sequence="3"
                      description="Code qualifying the Reference Identification"
                      type="ID" required="X"
                      minLength="2" maxLength="3"
                      xmlTag="referenceIdentificationQualifier"/>
                    <dataElement name="Reference Identification" id="127"
                      sequence="4"
                      description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="referenceIdentification"/>
                    <dataElement name="Reference Identification Qualifier" id="128"
                      sequence="5"
                      description="Code qualifying the Reference Identification"
                      type="ID" required="X"
                      minLength="2" maxLength="3"
                      xmlTag="referenceIdentificationQualifier"/>
                    <dataElement name="Reference Identification" id="127"
                      sequence="6"
                      description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="referenceIdentification"/>
                </compositeDE>
            </segment>
            <segment name="Administrative Communications Contact" id="PER"
              description="To identify a person or office to whom administrative communications should be directed"
              sequence="360"
              occurs="-1"
              required='O'
              xmlTag="AdministrativeCommunicationsContact">
                <dataElement name="Contact Function Code" id="366"
                  sequence="1"
                  description="Code identifying the major duty or responsibility of the person or group named"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="contactFunctionCode"/>
                <dataElement name="Name" id="93"
                  sequence="2"
                  description="Free-form name"
                  type="AN" required="O"
                  minLength="1" maxLength="60"
                  xmlTag="name"/>
                <dataElement name="Communication Number Qualifier" id="365"
                  sequence="3"
                  description="Code identifying the type of communication number"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="communicationNumberQualifier"/>
                <dataElement name="Communication Number" id="364"
                  sequence="4"
                  description="Complete communications number including country or area code when applicable"
                  type="AN" required="X"
                  minLength="1" maxLength="80"
                  xmlTag="communicationNumber"/>
                <dataElement name="Communication Number Qualifier" id="365"
                  sequence="5"
                  description="Code identifying the type of communication number"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="communicationNumberQualifier"/>
                <dataElement name="Communication Number" id="364"
                  sequence="6"
                  description="Complete communications number including country or area code when applicable"
                  type="AN" required="X"
                  minLength="1" maxLength="80"
                  xmlTag="communicationNumber"/>
                <dataElement name="Communication Number Qualifier" id="365"
                  sequence="7"
                  description="Code identifying the type of communication number"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="communicationNumberQualifier"/>
                <dataElement name="Communication Number" id="364"
                  sequence="8"
                  description="Complete communications number including country or area code when applicable"
                  type="AN" required="X"
                  minLength="1" maxLength="80"
                  xmlTag="communicationNumber"/>
                <dataElement name="Contact Inquiry Reference" id="443"
                  sequence="9"
                  description="Additional reference number or description to clarify a contact number"
                  type="AN" required="O"
                  minLength="1" maxLength="20"
                  xmlTag="contactInquiryReference"/>
            </segment>
            <segment name="Service Characteristic Identification" id="SI"
              description="To specify service characteristic data"
              sequence="365"
              occurs="-1"
              required='O'
              xmlTag="ServiceCharacteristicIdentification">
                <dataElement name="Agency Qualifier Code" id="559"
                  sequence="1"
                  description="Code identifying the agency assigning the code values"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="agencyQualifierCode"/>
                <dataElement name="Service Characteristics Qualifier" id="1000"
                  sequence="2"
                  description="Code from an industry code list qualifying the type of service characteristics"
                  type="AN" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="serviceCharacteristicsQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="3"
                  description="Identifying number for a product or service"
                  type="AN" required="M"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Service Characteristics Qualifier" id="1000"
                  sequence="4"
                  description="Code from an industry code list qualifying the type of service characteristics"
                  type="AN" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="serviceCharacteristicsQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="5"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Service Characteristics Qualifier" id="1000"
                  sequence="6"
                  description="Code from an industry code list qualifying the type of service characteristics"
                  type="AN" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="serviceCharacteristicsQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="7"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Service Characteristics Qualifier" id="1000"
                  sequence="8"
                  description="Code from an industry code list qualifying the type of service characteristics"
                  type="AN" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="serviceCharacteristicsQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="9"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Service Characteristics Qualifier" id="1000"
                  sequence="10"
                  description="Code from an industry code list qualifying the type of service characteristics"
                  type="AN" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="serviceCharacteristicsQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="11"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Service Characteristics Qualifier" id="1000"
                  sequence="12"
                  description="Code from an industry code list qualifying the type of service characteristics"
                  type="AN" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="serviceCharacteristicsQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="13"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Service Characteristics Qualifier" id="1000"
                  sequence="14"
                  description="Code from an industry code list qualifying the type of service characteristics"
                  type="AN" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="serviceCharacteristicsQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="15"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Service Characteristics Qualifier" id="1000"
                  sequence="16"
                  description="Code from an industry code list qualifying the type of service characteristics"
                  type="AN" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="serviceCharacteristicsQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="17"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Service Characteristics Qualifier" id="1000"
                  sequence="18"
                  description="Code from an industry code list qualifying the type of service characteristics"
                  type="AN" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="serviceCharacteristicsQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="19"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Service Characteristics Qualifier" id="1000"
                  sequence="20"
                  description="Code from an industry code list qualifying the type of service characteristics"
                  type="AN" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="serviceCharacteristicsQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="21"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
            </segment>
            <segment name="F.O.B. Related Instructions" id="FOB"
              description="To specify transportation instructions relating to shipment"
              sequence="370"
              occurs="1"
              required='O'
              xmlTag="FOBRelatedInstructions">
                <dataElement name="Shipment Method of Payment" id="146"
                  sequence="1"
                  description="Code identifying payment terms for transportation charges"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="shipmentMethodOfPayment"/>
                <dataElement name="Location Qualifier" id="309"
                  sequence="2"
                  description="Code identifying type of location"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="locationQualifier"/>
                <dataElement name="Description" id="352"
                  sequence="3"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="O"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
                <dataElement name="Transportation Terms Qualifier Code" id="334"
                  sequence="4"
                  description="Code identifying the source of the transportation terms"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="transportationTermsQualifierCode"/>
                <dataElement name="Transportation Terms Code" id="335"
                  sequence="5"
                  description="Code identifying the trade terms which apply to the shipment transportation responsibility"
                  type="ID" required="X"
                  minLength="3" maxLength="3"
                  xmlTag="transportationTermsCode"/>
                <dataElement name="Location Qualifier" id="309"
                  sequence="6"
                  description="Code identifying type of location"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="locationQualifier"/>
                <dataElement name="Description" id="352"
                  sequence="7"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="O"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
                <dataElement name="Risk of Loss Code" id="54"
                  sequence="8"
                  description="Code specifying where responsibility for risk of loss passes"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="riskOfLossCode"/>
                <dataElement name="Description" id="352"
                  sequence="9"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="X"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
            </segment>
            <segment name="Carrier Details (Quantity and Weight)" id="TD1"
              description="To specify the transportation details relative to commodity, weight, and quantity"
              sequence="380"
              occurs="2"
              required='O'
              xmlTag="CarrierDetailsQuantityAndWeight">
                <dataElement name="Packaging Code" id="103"
                  sequence="1"
                  description="Code identifying the type of packaging; Part 1: Packaging Form, Part 2: Packaging Material; if the Data Element is used, then Part 1 is always required"
                  type="AN" required="O"
                  minLength="3" maxLength="5"
                  xmlTag="packagingCode"/>
                <dataElement name="Lading Quantity" id="80"
                  sequence="2"
                  description="Number of units (pieces) of the lading commodity"
                  type="N0" required="X"
                  minLength="1" maxLength="7"
                  xmlTag="ladingQuantity"/>
                <dataElement name="Commodity Code Qualifier" id="23"
                  sequence="3"
                  description="Code identifying the commodity coding system used for Commodity Code"
                  type="ID" required="O"
                  minLength="1" maxLength="1"
                  xmlTag="commodityCodeQualifier"/>
                <dataElement name="Commodity Code" id="22"
                  sequence="4"
                  description="Code describing a commodity or group of commodities"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="commodityCode"/>
                <dataElement name="Lading Description" id="79"
                  sequence="5"
                  description="Description of an item as required for rating and billing purposes"
                  type="AN" required="O"
                  minLength="1" maxLength="50"
                  xmlTag="ladingDescription"/>
                <dataElement name="Weight Qualifier" id="187"
                  sequence="6"
                  description="Code defining the type of weight"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="weightQualifier"/>
                <dataElement name="Weight" id="81"
                  sequence="7"
                  description="Numeric value of weight"
                  type="R" required="X"
                  minLength="1" maxLength="10"
                  xmlTag="weight"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="8"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Volume" id="183"
                  sequence="9"
                  description="Value of volumetric measure"
                  type="R" required="X"
                  minLength="1" maxLength="8"
                  xmlTag="volume"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="10"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
            </segment>
            <segment name="Carrier Details (Routing Sequence/Transit Time)" id="TD5"
              description="To specify the carrier and sequence of routing and provide transit time information"
              sequence="390"
              occurs="12"
              required='O'
              xmlTag="CarrierDetailsRoutingSequenceTransitTime">
                <dataElement name="Routing Sequence Code" id="133"
                  sequence="1"
                  description="Code describing the relationship of a carrier to a specific shipment movement"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="routingSequenceCode"/>
                <dataElement name="Identification Code Qualifier" id="66"
                  sequence="2"
                  description="Code designating the system/method of code structure used for Identification Code (67)"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="identificationCodeQualifier"/>
                <dataElement name="Identification Code" id="67"
                  sequence="3"
                  description="Code identifying a party or other code"
                  type="AN" required="X"
                  minLength="2" maxLength="80"
                  xmlTag="identificationCode"/>
                <dataElement name="Transportation Method/Type Code" id="91"
                  sequence="4"
                  description="Code specifying the method or type of transportation for the shipment"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="transportationMethodTypeCode"/>
                <dataElement name="Routing" id="387"
                  sequence="5"
                  description="Free-form description of the routing or requested routing for shipment, or the originating carrier's identity"
                  type="AN" required="X"
                  minLength="1" maxLength="35"
                  xmlTag="routing"/>
                <dataElement name="Shipment/Order Status Code" id="368"
                  sequence="6"
                  description="Code indicating the status of an order or shipment or the disposition of any difference between the quantity ordered and the quantity shipped for a line item or transaction"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="shipmentOrderStatusCode"/>
                <dataElement name="Location Qualifier" id="309"
                  sequence="7"
                  description="Code identifying type of location"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="locationQualifier"/>
                <dataElement name="Location Identifier" id="310"
                  sequence="8"
                  description="Code which identifies a specific location"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="locationIdentifier"/>
                <dataElement name="Transit Direction Code" id="731"
                  sequence="9"
                  description="The point of origin and point of direction"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="transitDirectionCode"/>
                <dataElement name="Transit Time Direction Qualifier" id="732"
                  sequence="10"
                  description="Code specifying the value of time used to measure the transit time"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="transitTimeDirectionQualifier"/>
                <dataElement name="Transit Time" id="733"
                  sequence="11"
                  description="The numeric amount of transit time"
                  type="R" required="X"
                  minLength="1" maxLength="4"
                  xmlTag="transitTime"/>
                <dataElement name="Service Level Code" id="284"
                  sequence="12"
                  description="Code indicating the level of transportation service or the billing service offered by the transportation carrier"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="serviceLevelCode"/>
                <dataElement name="Service Level Code" id="284"
                  sequence="13"
                  description="Code indicating the level of transportation service or the billing service offered by the transportation carrier"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="serviceLevelCode"/>
                <dataElement name="Service Level Code" id="284"
                  sequence="14"
                  description="Code indicating the level of transportation service or the billing service offered by the transportation carrier"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="serviceLevelCode"/>
                <dataElement name="Country Code" id="26"
                  sequence="15"
                  description="Code identifying the country"
                  type="ID" required="O"
                  minLength="2" maxLength="3"
                  xmlTag="countryCode"/>
            </segment>
            <segment name="Carrier Details (Equipment)" id="TD3"
              description="To specify transportation details relating to the equipment used by the carrier"
              sequence="400"
              occurs="12"
              required='O'
              xmlTag="CarrierDetailsEquipment">
                <dataElement name="Equipment Description Code" id="40"
                  sequence="1"
                  description="Code identifying type of equipment used for shipment"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="equipmentDescriptionCode"/>
                <dataElement name="Equipment Initial" id="206"
                  sequence="2"
                  description="Prefix or alphabetic part of an equipment unit's identifying number"
                  type="AN" required="O"
                  minLength="1" maxLength="4"
                  xmlTag="equipmentInitial"/>
                <dataElement name="Equipment Number" id="207"
                  sequence="3"
                  description="Sequencing or serial part of an equipment unit's identifying number (pure numeric form for equipment number is preferred)"
                  type="AN" required="X"
                  minLength="1" maxLength="10"
                  xmlTag="equipmentNumber"/>
                <dataElement name="Weight Qualifier" id="187"
                  sequence="4"
                  description="Code defining the type of weight"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="weightQualifier"/>
                <dataElement name="Weight" id="81"
                  sequence="5"
                  description="Numeric value of weight"
                  type="R" required="X"
                  minLength="1" maxLength="10"
                  xmlTag="weight"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="6"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Ownership Code" id="102"
                  sequence="7"
                  description="Code indicating the relationship of equipment to carrier or ownership of equipment"
                  type="ID" required="O"
                  minLength="1" maxLength="1"
                  xmlTag="ownershipCode"/>
                <dataElement name="Seal Status Code" id="407"
                  sequence="8"
                  description="Code indicating condition of door seal upon arrival"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="sealStatusCode"/>
                <dataElement name="Seal Number" id="225"
                  sequence="9"
                  description="Unique number on seal used to close a shipment"
                  type="AN" required="O"
                  minLength="2" maxLength="15"
                  xmlTag="sealNumber"/>
                <dataElement name="Equipment Type" id="24"
                  sequence="10"
                  description="Code identifying equipment type"
                  type="ID" required="X"
                  minLength="4" maxLength="4"
                  xmlTag="equipmentType"/>
            </segment>
            <segment name="Carrier Details (Special Handling, or Hazardous Materials, or Both)" id="TD4"
              description="To specify transportation special handling requirements, or hazardous materials information, or both"
              sequence="410"
              occurs="5"
              required='O'
              xmlTag="CarrierDetailsSpecialHandlingOrHazardousMaterialsOrBoth">
                <dataElement name="Special Handling Code" id="152"
                  sequence="1"
                  description="Code specifying special transportation handling instructions"
                  type="ID" required="X"
                  minLength="2" maxLength="3"
                  xmlTag="specialHandlingCode"/>
                <dataElement name="Hazardous Material Code Qualifier" id="208"
                  sequence="2"
                  description="Code which qualifies the Hazardous Material Class Code (209)"
                  type="ID" required="X"
                  minLength="1" maxLength="1"
                  xmlTag="hazardousMaterialCodeQualifier"/>
                <dataElement name="Hazardous Material Class Code" id="209"
                  sequence="3"
                  description="Code specifying the kind of hazard for a material"
                  type="AN" required="X"
                  minLength="1" maxLength="4"
                  xmlTag="hazardousMaterialClassCode"/>
                <dataElement name="Description" id="352"
                  sequence="4"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="X"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
                <dataElement name="Yes/No Condition or Response Code" id="1073"
                  sequence="5"
                  description="Code indicating a Yes or No condition or response"
                  type="ID" required="O"
                  minLength="1" maxLength="1"
                  xmlTag="yesNoConditionOrResponseCode"/>
            </segment>
            <segment name="Marking, Packaging, Loading" id="PKG"
              description="To describe marking, packaging, loading, and unloading requirements"
              sequence="420"
              occurs="200"
              required='O'
              xmlTag="MarkingPackagingLoading">
                <dataElement name="Item Description Type" id="349"
                  sequence="1"
                  description="Code indicating the format of a description"
                  type="ID" required="X"
                  minLength="1" maxLength="1"
                  xmlTag="itemDescriptionType"/>
                <dataElement name="Packaging Characteristic Code" id="753"
                  sequence="2"
                  description="Code specifying the marking, packaging, loading and related characteristics being described"
                  type="ID" required="O"
                  minLength="1" maxLength="5"
                  xmlTag="packagingCharacteristicCode"/>
                <dataElement name="Agency Qualifier Code" id="559"
                  sequence="3"
                  description="Code identifying the agency assigning the code values"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="agencyQualifierCode"/>
                <dataElement name="Packaging Description Code" id="754"
                  sequence="4"
                  description="A code from an industry code list which provides specific data about the marking, packaging or loading and unloading of a product"
                  type="AN" required="X"
                  minLength="1" maxLength="7"
                  xmlTag="packagingDescriptionCode"/>
                <dataElement name="Description" id="352"
                  sequence="5"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="X"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
                <dataElement name="Unit Load Option Code" id="400"
                  sequence="6"
                  description="Code identifying loading or unloading a shipment"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="unitLoadOptionCode"/>
            </segment>
            <segment name="Required Response" id="RRA"
              description="To indicate information that is required to be included in the response"
              sequence="430"
              occurs="25"
              required='O'
              xmlTag="RequiredResponse">
                <dataElement name="Information Type" id="701"
                  sequence="1"
                  description="Code specifying the information required in the response"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="informationType"/>
                <dataElement name="Reference Identification" id="127"
                  sequence="2"
                  description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                  type="AN" required="O"
                  minLength="1" maxLength="30"
                  xmlTag="referenceIdentification"/>
            </segment>
        </segment>
        <segment name="Specification Identifier" id="SPI"
          occurs="1"
          sequence="440"
          required='O'
          description="To provide a description of the included specification or technical data items"
          xmlTag="SpecificationIdentifier">
            <dataElement name="Security Level Code" id="786"
              sequence="1"
              description="Code indicating the level of confidentiality assigned by the sender to the information following"
              type="ID" required="M"
              minLength="2" maxLength="2"
              xmlTag="securityLevelCode"/>
            <dataElement name="Reference Identification Qualifier" id="128"
              sequence="2"
              description="Code qualifying the Reference Identification"
              type="ID" required="X"
              minLength="2" maxLength="3"
              xmlTag="referenceIdentificationQualifier"/>
            <dataElement name="Reference Identification" id="127"
              sequence="3"
              description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
              type="AN" required="X"
              minLength="1" maxLength="30"
              xmlTag="referenceIdentification"/>
            <dataElement name="Entity Title" id="790"
              sequence="4"
              description="Title of the data entity"
              type="AN" required="O"
              minLength="1" maxLength="132"
              xmlTag="entityTitle"/>
            <dataElement name="Entity Purpose" id="791"
              sequence="5"
              description="The reason for the existence of the data item specified by the electronic data item independent of its presence in an EDI transaction"
              type="AN" required="O"
              minLength="1" maxLength="80"
              xmlTag="entityPurpose"/>
            <dataElement name="Entity Status Code" id="792"
              sequence="6"
              description="Code indicating the current status of the data item specified by the electronic data item"
              type="ID" required="O"
              minLength="1" maxLength="1"
              xmlTag="entityStatusCode"/>
            <dataElement name="Transaction Set Purpose Code" id="353"
              sequence="7"
              description="Code identifying purpose of transaction set"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="transactionSetPurposeCode"/>
            <dataElement name="Report Type Code" id="755"
              sequence="8"
              description="Code indicating the title or contents of a document, report or supporting item"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="reportTypeCode"/>
            <dataElement name="Security Level Code" id="786"
              sequence="9"
              description="Code indicating the level of confidentiality assigned by the sender to the information following"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="securityLevelCode"/>
            <dataElement name="Agency Qualifier Code" id="559"
              sequence="10"
              description="Code identifying the agency assigning the code values"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="agencyQualifierCode"/>
            <dataElement name="Source Subqualifier" id="822"
              sequence="11"
              description="A reference that indicates the table or text maintained by the Source Qualifier"
              type="AN" required="O"
              minLength="1" maxLength="15"
              xmlTag="sourceSubqualifier"/>
            <dataElement name="Assigned Number" id="554"
              sequence="12"
              description="Number assigned for differentiation within a transaction set"
              type="N0" required="O"
              minLength="1" maxLength="6"
              xmlTag="assignedNumber"/>
            <dataElement name="Certification Type Code" id="1322"
              sequence="13"
              description="Code indicating the type of certification"
              type="ID" required="O"
              minLength="1" maxLength="1"
              xmlTag="certificationTypeCode"/>
            <dataElement name="Proposal Data Detail Identifier Code" id="1401"
              sequence="14"
              description="Code identifying the basis of a cited value in a proposal"
              type="ID" required="O"
              minLength="1" maxLength="3"
              xmlTag="proposalDataDetailIdentifierCode"/>
            <dataElement name="Hierarchical Structure Code" id="1005"
              sequence="15"
              description="Code indicating the hierarchical application structure of a transaction set that utilizes the HL segment to define the structure of the transaction set"
              type="ID" required="O"
              minLength="4" maxLength="4"
              xmlTag="hierarchicalStructureCode"/>
            <segment name="Reference Identification" id="REF"
              description="To specify identifying information"
              sequence="450"
              occurs="5"
              required='O'
              xmlTag="ReferenceIdentification">
                <dataElement name="Reference Identification Qualifier" id="128"
                  sequence="1"
                  description="Code qualifying the Reference Identification"
                  type="ID" required="M"
                  minLength="2" maxLength="3"
                  xmlTag="referenceIdentificationQualifier"/>
                <dataElement name="Reference Identification" id="127"
                  sequence="2"
                  description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="referenceIdentification"/>
                <dataElement name="Description" id="352"
                  sequence="3"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="X"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
                <compositeDE name="Reference Identifier" id="C040"
                  sequence="4"
                  xmlTag="referenceIdentifier">
                    <dataElement name="Reference Identification Qualifier" id="128"
                      sequence="1"
                      description="Code qualifying the Reference Identification"
                      type="ID" required="M"
                      minLength="2" maxLength="3"
                      xmlTag="referenceIdentificationQualifier"/>
                    <dataElement name="Reference Identification" id="127"
                      sequence="2"
                      description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                      type="AN" required="M"
                      minLength="1" maxLength="30"
                      xmlTag="referenceIdentification"/>
                    <dataElement name="Reference Identification Qualifier" id="128"
                      sequence="3"
                      description="Code qualifying the Reference Identification"
                      type="ID" required="X"
                      minLength="2" maxLength="3"
                      xmlTag="referenceIdentificationQualifier"/>
                    <dataElement name="Reference Identification" id="127"
                      sequence="4"
                      description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="referenceIdentification"/>
                    <dataElement name="Reference Identification Qualifier" id="128"
                      sequence="5"
                      description="Code qualifying the Reference Identification"
                      type="ID" required="X"
                      minLength="2" maxLength="3"
                      xmlTag="referenceIdentificationQualifier"/>
                    <dataElement name="Reference Identification" id="127"
                      sequence="6"
                      description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="referenceIdentification"/>
                </compositeDE>
            </segment>
            <segment name="Date/Time Reference" id="DTM"
              description="To specify pertinent dates and times"
              sequence="460"
              occurs="5"
              required='O'
              xmlTag="DateTimeReference">
                <dataElement name="Date/Time Qualifier" id="374"
                  sequence="1"
                  description="Code specifying type of date or time, or both date and time"
                  type="ID" required="M"
                  minLength="3" maxLength="3"
                  xmlTag="dateTimeQualifier"/>
                <dataElement name="Date" id="373"
                  sequence="2"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="X"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Time" id="337"
                  sequence="3"
                  description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                  type="TM" required="X"
                  minLength="4" maxLength="8"
                  xmlTag="time"/>
                <dataElement name="Time Code" id="623"
                  sequence="4"
                  description="Code identifying the time. In accordance with International Standards Organization standard 8601, time can be specified by a + or - and an indication in hours in relation to Universal Time Coordinate (UTC) time; since + is a restricted character, + and - are substituted by P and M in the codes that follow"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="timeCode"/>
                <dataElement name="Date Time Period Format Qualifier" id="1250"
                  sequence="5"
                  description="Code indicating the date format, time format, or date and time format"
                  type="ID" required="X"
                  minLength="2" maxLength="3"
                  xmlTag="dateTimePeriodFormatQualifier"/>
                <dataElement name="Date Time Period" id="1251"
                  sequence="6"
                  description="Expression of a date, a time, or range of dates, times or dates and times"
                  type="AN" required="X"
                  minLength="1" maxLength="35"
                  xmlTag="dateTimePeriod"/>
            </segment>
            <segment name="Message Text" id="MSG"
              description="To provide a free-form format that allows the transmission of text information"
              sequence="470"
              occurs="50"
              required='O'
              xmlTag="MessageText">
                <dataElement name="Free-Form Message Text" id="933"
                  sequence="1"
                  description="Free-form message text"
                  type="AN" required="M"
                  minLength="1" maxLength="264"
                  xmlTag="freeFormMessageText"/>
                <dataElement name="Printer Carriage Control Code" id="934"
                  sequence="2"
                  description="A field to be used for the control of the line feed of the receiving printer"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="printerCarriageControlCode"/>
                <dataElement name="Number" id="1470"
                  sequence="3"
                  description="A generic number"
                  type="N0" required="O"
                  minLength="1" maxLength="9"
                  xmlTag="number"/>
            </segment>
            <segment name="Name" id="N1"
              occurs="20"
              sequence="490"
              required='O'
              description="To identify a party by type of organization, name, and code"
              xmlTag="Name">
                <dataElement name="Entity Identifier Code" id="98"
                  sequence="1"
                  description="Code identifying an organizational entity, a physical location, property or an individual"
                  type="ID" required="M"
                  minLength="2" maxLength="3"
                  xmlTag="entityIdentifierCode"/>
                <dataElement name="Name" id="93"
                  sequence="2"
                  description="Free-form name"
                  type="AN" required="X"
                  minLength="1" maxLength="60"
                  xmlTag="name"/>
                <dataElement name="Identification Code Qualifier" id="66"
                  sequence="3"
                  description="Code designating the system/method of code structure used for Identification Code (67)"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="identificationCodeQualifier"/>
                <dataElement name="Identification Code" id="67"
                  sequence="4"
                  description="Code identifying a party or other code"
                  type="AN" required="X"
                  minLength="2" maxLength="80"
                  xmlTag="identificationCode"/>
                <dataElement name="Entity Relationship Code" id="706"
                  sequence="5"
                  description="Code describing entity relationship"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="entityRelationshipCode"/>
                <dataElement name="Entity Identifier Code" id="98"
                  sequence="6"
                  description="Code identifying an organizational entity, a physical location, property or an individual"
                  type="ID" required="O"
                  minLength="2" maxLength="3"
                  xmlTag="entityIdentifierCode"/>
                <segment name="Additional Name Information" id="N2"
                  description="To specify additional names or those longer than 35 characters in length"
                  sequence="500"
                  occurs="2"
                  required='O'
                  xmlTag="AdditionalNameInformation">
                    <dataElement name="Name" id="93"
                      sequence="1"
                      description="Free-form name"
                      type="AN" required="M"
                      minLength="1" maxLength="60"
                      xmlTag="name"/>
                    <dataElement name="Name" id="93"
                      sequence="2"
                      description="Free-form name"
                      type="AN" required="O"
                      minLength="1" maxLength="60"
                      xmlTag="name"/>
                </segment>
                <segment name="Address Information" id="N3"
                  description="To specify the location of the named party"
                  sequence="510"
                  occurs="2"
                  required='O'
                  xmlTag="AddressInformation">
                    <dataElement name="Address Information" id="166"
                      sequence="1"
                      description="Address information"
                      type="AN" required="M"
                      minLength="1" maxLength="55"
                      xmlTag="addressInformation"/>
                    <dataElement name="Address Information" id="166"
                      sequence="2"
                      description="Address information"
                      type="AN" required="O"
                      minLength="1" maxLength="55"
                      xmlTag="addressInformation"/>
                </segment>
                <segment name="Geographic Location" id="N4"
                  description="To specify the geographic place of the named party"
                  sequence="520"
                  occurs="1"
                  required='O'
                  xmlTag="GeographicLocation">
                    <dataElement name="City Name" id="19"
                      sequence="1"
                      description="Free-form text for city name"
                      type="AN" required="O"
                      minLength="2" maxLength="30"
                      xmlTag="cityName"/>
                    <dataElement name="State or Province Code" id="156"
                      sequence="2"
                      description="Code (Standard State/Province) as defined by appropriate government agency"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="stateOrProvinceCode"/>
                    <dataElement name="Postal Code" id="116"
                      sequence="3"
                      description="Code defining international postal zone code excluding punctuation and blanks (zip code for United States)"
                      type="ID" required="O"
                      minLength="3" maxLength="15"
                      xmlTag="postalCode"/>
                    <dataElement name="Country Code" id="26"
                      sequence="4"
                      description="Code identifying the country"
                      type="ID" required="O"
                      minLength="2" maxLength="3"
                      xmlTag="countryCode"/>
                    <dataElement name="Location Qualifier" id="309"
                      sequence="5"
                      description="Code identifying type of location"
                      type="ID" required="X"
                      minLength="1" maxLength="2"
                      xmlTag="locationQualifier"/>
                    <dataElement name="Location Identifier" id="310"
                      sequence="6"
                      description="Code which identifies a specific location"
                      type="AN" required="O"
                      minLength="1" maxLength="30"
                      xmlTag="locationIdentifier"/>
                </segment>
                <segment name="Reference Identification" id="REF"
                  description="To specify identifying information"
                  sequence="530"
                  occurs="20"
                  required='O'
                  xmlTag="ReferenceIdentification">
                    <dataElement name="Reference Identification Qualifier" id="128"
                      sequence="1"
                      description="Code qualifying the Reference Identification"
                      type="ID" required="M"
                      minLength="2" maxLength="3"
                      xmlTag="referenceIdentificationQualifier"/>
                    <dataElement name="Reference Identification" id="127"
                      sequence="2"
                      description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="referenceIdentification"/>
                    <dataElement name="Description" id="352"
                      sequence="3"
                      description="A free-form description to clarify the related data elements and their content"
                      type="AN" required="X"
                      minLength="1" maxLength="80"
                      xmlTag="description"/>
                    <compositeDE name="Reference Identifier" id="C040"
                      sequence="4"
                      xmlTag="referenceIdentifier">
                        <dataElement name="Reference Identification Qualifier" id="128"
                          sequence="1"
                          description="Code qualifying the Reference Identification"
                          type="ID" required="M"
                          minLength="2" maxLength="3"
                          xmlTag="referenceIdentificationQualifier"/>
                        <dataElement name="Reference Identification" id="127"
                          sequence="2"
                          description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                          type="AN" required="M"
                          minLength="1" maxLength="30"
                          xmlTag="referenceIdentification"/>
                        <dataElement name="Reference Identification Qualifier" id="128"
                          sequence="3"
                          description="Code qualifying the Reference Identification"
                          type="ID" required="X"
                          minLength="2" maxLength="3"
                          xmlTag="referenceIdentificationQualifier"/>
                        <dataElement name="Reference Identification" id="127"
                          sequence="4"
                          description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                          type="AN" required="X"
                          minLength="1" maxLength="30"
                          xmlTag="referenceIdentification"/>
                        <dataElement name="Reference Identification Qualifier" id="128"
                          sequence="5"
                          description="Code qualifying the Reference Identification"
                          type="ID" required="X"
                          minLength="2" maxLength="3"
                          xmlTag="referenceIdentificationQualifier"/>
                        <dataElement name="Reference Identification" id="127"
                          sequence="6"
                          description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                          type="AN" required="X"
                          minLength="1" maxLength="30"
                          xmlTag="referenceIdentification"/>
                    </compositeDE>
                </segment>
                <segment name="Contact" id="G61"
                  description="To identify a person or office to whom communications should be directed"
                  sequence="540"
                  occurs="1"
                  required='O'
                  xmlTag="Contact">
                    <dataElement name="Contact Function Code" id="366"
                      sequence="1"
                      description="Code identifying the major duty or responsibility of the person or group named"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="contactFunctionCode"/>
                    <dataElement name="Name" id="93"
                      sequence="2"
                      description="Free-form name"
                      type="AN" required="M"
                      minLength="1" maxLength="60"
                      xmlTag="name"/>
                    <dataElement name="Communication Number Qualifier" id="365"
                      sequence="3"
                      description="Code identifying the type of communication number"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="communicationNumberQualifier"/>
                    <dataElement name="Communication Number" id="364"
                      sequence="4"
                      description="Complete communications number including country or area code when applicable"
                      type="AN" required="X"
                      minLength="1" maxLength="80"
                      xmlTag="communicationNumber"/>
                    <dataElement name="Contact Inquiry Reference" id="443"
                      sequence="5"
                      description="Additional reference number or description to clarify a contact number"
                      type="AN" required="O"
                      minLength="1" maxLength="20"
                      xmlTag="contactInquiryReference"/>
                </segment>
                <segment name="Message Text" id="MSG"
                  description="To provide a free-form format that allows the transmission of text information"
                  sequence="550"
                  occurs="50"
                  required='O'
                  xmlTag="MessageText">
                    <dataElement name="Free-Form Message Text" id="933"
                      sequence="1"
                      description="Free-form message text"
                      type="AN" required="M"
                      minLength="1" maxLength="264"
                      xmlTag="freeFormMessageText"/>
                    <dataElement name="Printer Carriage Control Code" id="934"
                      sequence="2"
                      description="A field to be used for the control of the line feed of the receiving printer"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="printerCarriageControlCode"/>
                    <dataElement name="Number" id="1470"
                      sequence="3"
                      description="A generic number"
                      type="N0" required="O"
                      minLength="1" maxLength="9"
                      xmlTag="number"/>
                </segment>
            </segment>
            <segment name="Contract and Cost Accounting Standards Data" id="CB1"
              occurs="-1"
              sequence="560"
              required='O'
              description="To specify contract and cost accounting standards data"
              xmlTag="ContractAndCostAccountingStandardsData">
                <dataElement name="Acquisition Data Code" id="1309"
                  sequence="1"
                  description="Code identifying acquisition data"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="acquisitionDataCode"/>
                <dataElement name="Financing Type Code" id="1310"
                  sequence="2"
                  description="Code identifying the type of contract financing required by the submitter of a pricing proposal"
                  type="ID" required="O"
                  minLength="1" maxLength="1"
                  xmlTag="financingTypeCode"/>
                <segment name="Reference Identification" id="REF"
                  description="To specify identifying information"
                  sequence="570"
                  occurs="20"
                  required='O'
                  xmlTag="ReferenceIdentification">
                    <dataElement name="Reference Identification Qualifier" id="128"
                      sequence="1"
                      description="Code qualifying the Reference Identification"
                      type="ID" required="M"
                      minLength="2" maxLength="3"
                      xmlTag="referenceIdentificationQualifier"/>
                    <dataElement name="Reference Identification" id="127"
                      sequence="2"
                      description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="referenceIdentification"/>
                    <dataElement name="Description" id="352"
                      sequence="3"
                      description="A free-form description to clarify the related data elements and their content"
                      type="AN" required="X"
                      minLength="1" maxLength="80"
                      xmlTag="description"/>
                    <compositeDE name="Reference Identifier" id="C040"
                      sequence="4"
                      xmlTag="referenceIdentifier">
                        <dataElement name="Reference Identification Qualifier" id="128"
                          sequence="1"
                          description="Code qualifying the Reference Identification"
                          type="ID" required="M"
                          minLength="2" maxLength="3"
                          xmlTag="referenceIdentificationQualifier"/>
                        <dataElement name="Reference Identification" id="127"
                          sequence="2"
                          description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                          type="AN" required="M"
                          minLength="1" maxLength="30"
                          xmlTag="referenceIdentification"/>
                        <dataElement name="Reference Identification Qualifier" id="128"
                          sequence="3"
                          description="Code qualifying the Reference Identification"
                          type="ID" required="X"
                          minLength="2" maxLength="3"
                          xmlTag="referenceIdentificationQualifier"/>
                        <dataElement name="Reference Identification" id="127"
                          sequence="4"
                          description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                          type="AN" required="X"
                          minLength="1" maxLength="30"
                          xmlTag="referenceIdentification"/>
                        <dataElement name="Reference Identification Qualifier" id="128"
                          sequence="5"
                          description="Code qualifying the Reference Identification"
                          type="ID" required="X"
                          minLength="2" maxLength="3"
                          xmlTag="referenceIdentificationQualifier"/>
                        <dataElement name="Reference Identification" id="127"
                          sequence="6"
                          description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                          type="AN" required="X"
                          minLength="1" maxLength="30"
                          xmlTag="referenceIdentification"/>
                    </compositeDE>
                </segment>
                <segment name="Date/Time Reference" id="DTM"
                  description="To specify pertinent dates and times"
                  sequence="580"
                  occurs="5"
                  required='O'
                  xmlTag="DateTimeReference">
                    <dataElement name="Date/Time Qualifier" id="374"
                      sequence="1"
                      description="Code specifying type of date or time, or both date and time"
                      type="ID" required="M"
                      minLength="3" maxLength="3"
                      xmlTag="dateTimeQualifier"/>
                    <dataElement name="Date" id="373"
                      sequence="2"
                      description="Date expressed as CCYYMMDD"
                      type="DT" required="X"
                      minLength="8" maxLength="8"
                      xmlTag="date"/>
                    <dataElement name="Time" id="337"
                      sequence="3"
                      description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                      type="TM" required="X"
                      minLength="4" maxLength="8"
                      xmlTag="time"/>
                    <dataElement name="Time Code" id="623"
                      sequence="4"
                      description="Code identifying the time. In accordance with International Standards Organization standard 8601, time can be specified by a + or - and an indication in hours in relation to Universal Time Coordinate (UTC) time; since + is a restricted character, + and - are substituted by P and M in the codes that follow"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="timeCode"/>
                    <dataElement name="Date Time Period Format Qualifier" id="1250"
                      sequence="5"
                      description="Code indicating the date format, time format, or date and time format"
                      type="ID" required="X"
                      minLength="2" maxLength="3"
                      xmlTag="dateTimePeriodFormatQualifier"/>
                    <dataElement name="Date Time Period" id="1251"
                      sequence="6"
                      description="Expression of a date, a time, or range of dates, times or dates and times"
                      type="AN" required="X"
                      minLength="1" maxLength="35"
                      xmlTag="dateTimePeriod"/>
                </segment>
                <segment name="Lead Time" id="LDT"
                  description="To specify lead time for availability of products and services"
                  sequence="590"
                  occurs="1"
                  required='O'
                  xmlTag="LeadTime">
                    <dataElement name="Lead Time Code" id="345"
                      sequence="1"
                      description="Code indicating the time range"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="leadTimeCode"/>
                    <dataElement name="Quantity" id="380"
                      sequence="2"
                      description="Numeric value of quantity"
                      type="R" required="M"
                      minLength="1" maxLength="15"
                      xmlTag="quantity"/>
                    <dataElement name="Unit of Time Period or Interval" id="344"
                      sequence="3"
                      description="Code indicating the time period or interval"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="unitOfTimePeriodOrInterval"/>
                    <dataElement name="Date" id="373"
                      sequence="4"
                      description="Date expressed as CCYYMMDD"
                      type="DT" required="O"
                      minLength="8" maxLength="8"
                      xmlTag="date"/>
                </segment>
                <segment name="Message Text" id="MSG"
                  description="To provide a free-form format that allows the transmission of text information"
                  sequence="600"
                  occurs="50"
                  required='O'
                  xmlTag="MessageText">
                    <dataElement name="Free-Form Message Text" id="933"
                      sequence="1"
                      description="Free-form message text"
                      type="AN" required="M"
                      minLength="1" maxLength="264"
                      xmlTag="freeFormMessageText"/>
                    <dataElement name="Printer Carriage Control Code" id="934"
                      sequence="2"
                      description="A field to be used for the control of the line feed of the receiving printer"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="printerCarriageControlCode"/>
                    <dataElement name="Number" id="1470"
                      sequence="3"
                      description="A generic number"
                      type="N0" required="O"
                      minLength="1" maxLength="9"
                      xmlTag="number"/>
                </segment>
            </segment>
        </segment>
        <segment name="Percent Amounts" id="PCT"
          occurs="-1"
          sequence="610"
          required='O'
          description="To qualify percent amounts and supply percent amounts"
          xmlTag="PercentAmounts">
            <dataElement name="Percent Qualifier" id="1004"
              sequence="1"
              description="Code to qualify percent"
              type="ID" required="M"
              minLength="1" maxLength="2"
              xmlTag="percentQualifier"/>
            <dataElement name="Percent" id="954"
              sequence="2"
              description="Percentage expressed as a decimal"
              type="R" required="M"
              minLength="1" maxLength="10"
              xmlTag="percent"/>
            <segment name="Monetary Amount" id="AMT"
              description="To indicate the total monetary amount"
              sequence="620"
              occurs="-1"
              required='O'
              xmlTag="MonetaryAmount">
                <dataElement name="Amount Qualifier Code" id="522"
                  sequence="1"
                  description="Code to qualify amount"
                  type="ID" required="M"
                  minLength="1" maxLength="3"
                  xmlTag="amountQualifierCode"/>
                <dataElement name="Monetary Amount" id="782"
                  sequence="2"
                  description="Monetary amount"
                  type="R" required="M"
                  minLength="1" maxLength="18"
                  xmlTag="monetaryAmount"/>
                <dataElement name="Credit/Debit Flag Code" id="478"
                  sequence="3"
                  description="Code indicating whether amount is a credit or debit"
                  type="ID" required="O"
                  minLength="1" maxLength="1"
                  xmlTag="creditDebitFlagCode"/>
            </segment>
        </segment>
        <segment name="Advertising Demographic Information" id="ADV"
          occurs="-1"
          sequence="630"
          required='O'
          description="To convey advertising demographic information"
          xmlTag="AdvertisingDemographicInformation">
            <dataElement name="Agency Qualifier Code" id="559"
              sequence="1"
              description="Code identifying the agency assigning the code values"
              type="ID" required="M"
              minLength="2" maxLength="2"
              xmlTag="agencyQualifierCode"/>
            <dataElement name="Service Characteristics Qualifier" id="1000"
              sequence="2"
              description="Code from an industry code list qualifying the type of service characteristics"
              type="AN" required="M"
              minLength="2" maxLength="2"
              xmlTag="serviceCharacteristicsQualifier"/>
            <dataElement name="Range Minimum" id="740"
              sequence="3"
              description="The value specifying the minimum of the measurement range"
              type="R" required="O"
              minLength="1" maxLength="20"
              xmlTag="rangeMinimum"/>
            <dataElement name="Range Maximum" id="741"
              sequence="4"
              description="The value specifying the maximum of the measurement range"
              type="R" required="O"
              minLength="1" maxLength="20"
              xmlTag="rangeMaximum"/>
            <dataElement name="Category" id="729"
              sequence="5"
              description="An alphanumeric identifier to represent the category to which the item belongs"
              type="AN" required="O"
              minLength="1" maxLength="6"
              xmlTag="category"/>
            <dataElement name="Service Characteristics Qualifier" id="1000"
              sequence="6"
              description="Code from an industry code list qualifying the type of service characteristics"
              type="AN" required="X"
              minLength="2" maxLength="2"
              xmlTag="serviceCharacteristicsQualifier"/>
            <dataElement name="Measurement Value" id="739"
              sequence="7"
              description="The value of the measurement"
              type="R" required="X"
              minLength="1" maxLength="20"
              xmlTag="measurementValue"/>
            <segment name="Date/Time Reference" id="DTM"
              description="To specify pertinent dates and times"
              sequence="640"
              occurs="-1"
              required='O'
              xmlTag="DateTimeReference">
                <dataElement name="Date/Time Qualifier" id="374"
                  sequence="1"
                  description="Code specifying type of date or time, or both date and time"
                  type="ID" required="M"
                  minLength="3" maxLength="3"
                  xmlTag="dateTimeQualifier"/>
                <dataElement name="Date" id="373"
                  sequence="2"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="X"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Time" id="337"
                  sequence="3"
                  description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                  type="TM" required="X"
                  minLength="4" maxLength="8"
                  xmlTag="time"/>
                <dataElement name="Time Code" id="623"
                  sequence="4"
                  description="Code identifying the time. In accordance with International Standards Organization standard 8601, time can be specified by a + or - and an indication in hours in relation to Universal Time Coordinate (UTC) time; since + is a restricted character, + and - are substituted by P and M in the codes that follow"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="timeCode"/>
                <dataElement name="Date Time Period Format Qualifier" id="1250"
                  sequence="5"
                  description="Code indicating the date format, time format, or date and time format"
                  type="ID" required="X"
                  minLength="2" maxLength="3"
                  xmlTag="dateTimePeriodFormatQualifier"/>
                <dataElement name="Date Time Period" id="1251"
                  sequence="6"
                  description="Expression of a date, a time, or range of dates, times or dates and times"
                  type="AN" required="X"
                  minLength="1" maxLength="35"
                  xmlTag="dateTimePeriod"/>
            </segment>
            <segment name="Text" id="MTX"
              description="To specify textual data"
              sequence="650"
              occurs="-1"
              required='O'
              xmlTag="Text">
                <dataElement name="Note Reference Code" id="363"
                  sequence="1"
                  description="Code identifying the functional area or purpose for which the note applies"
                  type="ID" required="O"
                  minLength="3" maxLength="3"
                  xmlTag="noteReferenceCode"/>
                <dataElement name="Message Text" id="1551"
                  sequence="2"
                  description="To transmit large volumes of message text"
                  type="AN" required="X"
                  minLength="1" maxLength="4096"
                  xmlTag="messageText"/>
                <dataElement name="Message Text" id="1551"
                  sequence="3"
                  description="To transmit large volumes of message text"
                  type="AN" required="O"
                  minLength="1" maxLength="4096"
                  xmlTag="messageText"/>
                <dataElement name="Printer Carriage Control Code" id="934"
                  sequence="4"
                  description="A field to be used for the control of the line feed of the receiving printer"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="printerCarriageControlCode"/>
            </segment>
        </segment>
    </table>
    <table section="detail">
        <segment name="Baseline Item Data" id="PO1"
          occurs="100000"
          sequence="10"
          required='M'
          description="To specify basic and most frequently used line item data"
          xmlTag="BaselineItemData">
            <dataElement name="Assigned Identification" id="350"
              sequence="1"
              description="Alphanumeric characters assigned for differentiation within a transaction set"
              type="AN" required="O"
              minLength="1" maxLength="20"
              xmlTag="assignedIdentification"/>
            <dataElement name="Quantity Ordered" id="330"
              sequence="2"
              description="Quantity ordered"
              type="R" required="X"
              minLength="1" maxLength="15"
              xmlTag="quantityOrdered"/>
            <dataElement name="Unit or Basis for Measurement Code" id="355"
              sequence="3"
              description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="unitOrBasisForMeasurementCode"/>
            <dataElement name="Unit Price" id="212"
              sequence="4"
              description="Price per unit of product, service, commodity, etc."
              type="R" required="X"
              minLength="1" maxLength="17"
              xmlTag="unitPrice"/>
            <dataElement name="Basis of Unit Price Code" id="639"
              sequence="5"
              description="Code identifying the type of unit price for an item"
              type="ID" required="O"
              minLength="2" maxLength="2"
              xmlTag="basisOfUnitPriceCode"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="6"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="7"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="8"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="9"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="10"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="11"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="12"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="13"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="14"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="15"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="16"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="17"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="18"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="19"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="20"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="21"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="22"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="23"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <dataElement name="Product/Service ID Qualifier" id="235"
              sequence="24"
              description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="productServiceIdQualifier"/>
            <dataElement name="Product/Service ID" id="234"
              sequence="25"
              description="Identifying number for a product or service"
              type="AN" required="X"
              minLength="1" maxLength="48"
              xmlTag="productServiceId"/>
            <segment name="Item Identification" id="LIN"
              description="To specify basic item identification data"
              sequence="15"
              occurs="-1"
              required='O'
              xmlTag="ItemIdentification">
                <dataElement name="Assigned Identification" id="350"
                  sequence="1"
                  description="Alphanumeric characters assigned for differentiation within a transaction set"
                  type="AN" required="O"
                  minLength="1" maxLength="20"
                  xmlTag="assignedIdentification"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="2"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="3"
                  description="Identifying number for a product or service"
                  type="AN" required="M"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="4"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="5"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="6"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="7"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="8"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="9"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="10"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="11"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="12"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="13"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="14"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="15"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="16"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="17"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="18"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="19"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="20"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="21"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="22"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="23"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="24"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="25"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="26"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="27"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="28"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="29"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="30"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="31"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
            </segment>
            <segment name="Maintenance Type" id="G53"
              description="To identify the specific type of item maintenance"
              sequence="17"
              occurs="1"
              required='O'
              xmlTag="MaintenanceType">
                <dataElement name="Maintenance Type Code" id="875"
                  sequence="1"
                  description="Code identifying the specific type of item maintenance"
                  type="ID" required="M"
                  minLength="3" maxLength="3"
                  xmlTag="maintenanceTypeCode"/>
            </segment>
            <segment name="Currency" id="CUR"
              description="To specify the currency (dollars, pounds, francs, etc.) used in a transaction"
              sequence="20"
              occurs="1"
              required='O'
              xmlTag="Currency">
                <dataElement name="Entity Identifier Code" id="98"
                  sequence="1"
                  description="Code identifying an organizational entity, a physical location, property or an individual"
                  type="ID" required="M"
                  minLength="2" maxLength="3"
                  xmlTag="entityIdentifierCode"/>
                <dataElement name="Currency Code" id="100"
                  sequence="2"
                  description="Code (Standard ISO) for country in whose currency the charges are specified"
                  type="ID" required="M"
                  minLength="3" maxLength="3"
                  xmlTag="currencyCode"/>
                <dataElement name="Exchange Rate" id="280"
                  sequence="3"
                  description="Value to be used as a multiplier conversion factor to convert monetary value from one currency to another"
                  type="R" required="O"
                  minLength="4" maxLength="10"
                  xmlTag="exchangeRate"/>
                <dataElement name="Entity Identifier Code" id="98"
                  sequence="4"
                  description="Code identifying an organizational entity, a physical location, property or an individual"
                  type="ID" required="O"
                  minLength="2" maxLength="3"
                  xmlTag="entityIdentifierCode"/>
                <dataElement name="Currency Code" id="100"
                  sequence="5"
                  description="Code (Standard ISO) for country in whose currency the charges are specified"
                  type="ID" required="O"
                  minLength="3" maxLength="3"
                  xmlTag="currencyCode"/>
                <dataElement name="Currency Market/Exchange Code" id="669"
                  sequence="6"
                  description="Code identifying the market upon which the currency exchange rate is based"
                  type="ID" required="O"
                  minLength="3" maxLength="3"
                  xmlTag="currencyMarketExchangeCode"/>
                <dataElement name="Date/Time Qualifier" id="374"
                  sequence="7"
                  description="Code specifying type of date or time, or both date and time"
                  type="ID" required="X"
                  minLength="3" maxLength="3"
                  xmlTag="dateTimeQualifier"/>
                <dataElement name="Date" id="373"
                  sequence="8"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="O"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Time" id="337"
                  sequence="9"
                  description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                  type="TM" required="O"
                  minLength="4" maxLength="8"
                  xmlTag="time"/>
                <dataElement name="Date/Time Qualifier" id="374"
                  sequence="10"
                  description="Code specifying type of date or time, or both date and time"
                  type="ID" required="X"
                  minLength="3" maxLength="3"
                  xmlTag="dateTimeQualifier"/>
                <dataElement name="Date" id="373"
                  sequence="11"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="X"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Time" id="337"
                  sequence="12"
                  description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                  type="TM" required="X"
                  minLength="4" maxLength="8"
                  xmlTag="time"/>
                <dataElement name="Date/Time Qualifier" id="374"
                  sequence="13"
                  description="Code specifying type of date or time, or both date and time"
                  type="ID" required="X"
                  minLength="3" maxLength="3"
                  xmlTag="dateTimeQualifier"/>
                <dataElement name="Date" id="373"
                  sequence="14"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="X"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Time" id="337"
                  sequence="15"
                  description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                  type="TM" required="X"
                  minLength="4" maxLength="8"
                  xmlTag="time"/>
                <dataElement name="Date/Time Qualifier" id="374"
                  sequence="16"
                  description="Code specifying type of date or time, or both date and time"
                  type="ID" required="X"
                  minLength="3" maxLength="3"
                  xmlTag="dateTimeQualifier"/>
                <dataElement name="Date" id="373"
                  sequence="17"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="X"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Time" id="337"
                  sequence="18"
                  description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                  type="TM" required="X"
                  minLength="4" maxLength="8"
                  xmlTag="time"/>
                <dataElement name="Date/Time Qualifier" id="374"
                  sequence="19"
                  description="Code specifying type of date or time, or both date and time"
                  type="ID" required="X"
                  minLength="3" maxLength="3"
                  xmlTag="dateTimeQualifier"/>
                <dataElement name="Date" id="373"
                  sequence="20"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="X"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Time" id="337"
                  sequence="21"
                  description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                  type="TM" required="X"
                  minLength="4" maxLength="8"
                  xmlTag="time"/>
            </segment>
            <segment name="Contract Information" id="CN1"
              description="To specify basic data about the contract or contract line item"
              sequence="25"
              occurs="1"
              required='O'
              xmlTag="ContractInformation">
                <dataElement name="Contract Type Code" id="1166"
                  sequence="1"
                  description="Code identifying a contract type"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="contractTypeCode"/>
                <dataElement name="Monetary Amount" id="782"
                  sequence="2"
                  description="Monetary amount"
                  type="R" required="O"
                  minLength="1" maxLength="18"
                  xmlTag="monetaryAmount"/>
                <dataElement name="Percent" id="332"
                  sequence="3"
                  description="Percent expressed as a percent"
                  type="R" required="O"
                  minLength="1" maxLength="6"
                  xmlTag="percent"/>
                <dataElement name="Reference Identification" id="127"
                  sequence="4"
                  description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                  type="AN" required="O"
                  minLength="1" maxLength="30"
                  xmlTag="referenceIdentification"/>
                <dataElement name="Terms Discount Percent" id="338"
                  sequence="5"
                  description="Terms discount percentage, expressed as a percent, available to the purchaser if an invoice is paid on or before the Terms Discount Due Date"
                  type="R" required="O"
                  minLength="1" maxLength="6"
                  xmlTag="termsDiscountPercent"/>
                <dataElement name="Version Identifier" id="799"
                  sequence="6"
                  description="Revision level of a particular format, program, technique or algorithm"
                  type="AN" required="O"
                  minLength="1" maxLength="30"
                  xmlTag="versionIdentifier"/>
            </segment>
            <segment name="Additional Item Detail" id="PO3"
              description="To specify additional item-related data involving variations in normal price/quantity structure"
              sequence="30"
              occurs="25"
              required='O'
              xmlTag="AdditionalItemDetail">
                <dataElement name="Change Reason Code" id="371"
                  sequence="1"
                  description="Code specifying the reason for price or quantity change"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="changeReasonCode"/>
                <dataElement name="Date" id="373"
                  sequence="2"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="O"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Price Identifier Code" id="236"
                  sequence="3"
                  description="Code identifying pricing specification"
                  type="ID" required="X"
                  minLength="3" maxLength="3"
                  xmlTag="priceIdentifierCode"/>
                <dataElement name="Unit Price" id="212"
                  sequence="4"
                  description="Price per unit of product, service, commodity, etc."
                  type="R" required="O"
                  minLength="1" maxLength="17"
                  xmlTag="unitPrice"/>
                <dataElement name="Basis of Unit Price Code" id="639"
                  sequence="5"
                  description="Code identifying the type of unit price for an item"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="basisOfUnitPriceCode"/>
                <dataElement name="Quantity" id="380"
                  sequence="6"
                  description="Numeric value of quantity"
                  type="R" required="M"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="7"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Description" id="352"
                  sequence="8"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="O"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
            </segment>
            <segment name="Pricing Information" id="CTP"
              description="To specify pricing information"
              sequence="40"
              occurs="-1"
              required='O'
              xmlTag="PricingInformation">
                <dataElement name="Class of Trade Code" id="687"
                  sequence="1"
                  description="Code indicating class of trade"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="classOfTradeCode"/>
                <dataElement name="Price Identifier Code" id="236"
                  sequence="2"
                  description="Code identifying pricing specification"
                  type="ID" required="X"
                  minLength="3" maxLength="3"
                  xmlTag="priceIdentifierCode"/>
                <dataElement name="Unit Price" id="212"
                  sequence="3"
                  description="Price per unit of product, service, commodity, etc."
                  type="R" required="X"
                  minLength="1" maxLength="17"
                  xmlTag="unitPrice"/>
                <dataElement name="Quantity" id="380"
                  sequence="4"
                  description="Numeric value of quantity"
                  type="R" required="X"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <compositeDE name="Composite Unit of Measure" id="C001"
                  sequence="5"
                  xmlTag="compositeUnitOfMeasure">
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="1"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="2"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="3"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="4"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="5"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="6"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="7"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="8"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="9"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="10"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="11"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="12"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="13"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="14"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="15"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                </compositeDE>
                <dataElement name="Price Multiplier Qualifier" id="648"
                  sequence="6"
                  description="Code indicating the type of price multiplier"
                  type="ID" required="O"
                  minLength="3" maxLength="3"
                  xmlTag="priceMultiplierQualifier"/>
                <dataElement name="Multiplier" id="649"
                  sequence="7"
                  description="Value to be used as a multiplier to obtain a new value"
                  type="R" required="X"
                  minLength="1" maxLength="10"
                  xmlTag="multiplier"/>
                <dataElement name="Monetary Amount" id="782"
                  sequence="8"
                  description="Monetary amount"
                  type="R" required="O"
                  minLength="1" maxLength="18"
                  xmlTag="monetaryAmount"/>
                <dataElement name="Basis of Unit Price Code" id="639"
                  sequence="9"
                  description="Code identifying the type of unit price for an item"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="basisOfUnitPriceCode"/>
                <dataElement name="Condition Value" id="499"
                  sequence="10"
                  description="Identifies rate restrictions or provisions"
                  type="AN" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="conditionValue"/>
                <dataElement name="Multiple Price Quantity" id="289"
                  sequence="11"
                  description="Quantity of units for a given price, e.g., 3 for $10.00"
                  type="N0" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="multiplePriceQuantity"/>
            </segment>
            <segment name="Period Amount" id="PAM"
              description="To indicate a quantity, and/or amount for an identified period"
              sequence="45"
              occurs="10"
              required='O'
              xmlTag="PeriodAmount">
                <dataElement name="Quantity Qualifier" id="673"
                  sequence="1"
                  description="Code specifying the type of quantity"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="quantityQualifier"/>
                <dataElement name="Quantity" id="380"
                  sequence="2"
                  description="Numeric value of quantity"
                  type="R" required="X"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <compositeDE name="Composite Unit of Measure" id="C001"
                  sequence="3"
                  xmlTag="compositeUnitOfMeasure">
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="1"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="2"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="3"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="4"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="5"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="6"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="7"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="8"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="9"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="10"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="11"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="12"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="13"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="14"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="15"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                </compositeDE>
                <dataElement name="Amount Qualifier Code" id="522"
                  sequence="4"
                  description="Code to qualify amount"
                  type="ID" required="X"
                  minLength="1" maxLength="3"
                  xmlTag="amountQualifierCode"/>
                <dataElement name="Monetary Amount" id="782"
                  sequence="5"
                  description="Monetary amount"
                  type="R" required="X"
                  minLength="1" maxLength="18"
                  xmlTag="monetaryAmount"/>
                <dataElement name="Unit of Time Period or Interval" id="344"
                  sequence="6"
                  description="Code indicating the time period or interval"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="unitOfTimePeriodOrInterval"/>
                <dataElement name="Date/Time Qualifier" id="374"
                  sequence="7"
                  description="Code specifying type of date or time, or both date and time"
                  type="ID" required="X"
                  minLength="3" maxLength="3"
                  xmlTag="dateTimeQualifier"/>
                <dataElement name="Date" id="373"
                  sequence="8"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="X"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Time" id="337"
                  sequence="9"
                  description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                  type="TM" required="X"
                  minLength="4" maxLength="8"
                  xmlTag="time"/>
                <dataElement name="Date/Time Qualifier" id="374"
                  sequence="10"
                  description="Code specifying type of date or time, or both date and time"
                  type="ID" required="X"
                  minLength="3" maxLength="3"
                  xmlTag="dateTimeQualifier"/>
                <dataElement name="Date" id="373"
                  sequence="11"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="X"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Time" id="337"
                  sequence="12"
                  description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                  type="TM" required="X"
                  minLength="4" maxLength="8"
                  xmlTag="time"/>
                <dataElement name="Percent Qualifier" id="1004"
                  sequence="13"
                  description="Code to qualify percent"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="percentQualifier"/>
                <dataElement name="Percent" id="954"
                  sequence="14"
                  description="Percentage expressed as a decimal"
                  type="R" required="X"
                  minLength="1" maxLength="10"
                  xmlTag="percent"/>
                <dataElement name="Yes/No Condition or Response Code" id="1073"
                  sequence="15"
                  description="Code indicating a Yes or No condition or response"
                  type="ID" required="O"
                  minLength="1" maxLength="1"
                  xmlTag="yesNoConditionOrResponseCode"/>
            </segment>
            <segment name="Restrictions/Conditions" id="CTB"
              description="To specify restrictions/conditions (such as shipping, ordering)"
              sequence="47"
              occurs="-1"
              required='O'
              xmlTag="RestrictionsConditions">
                <dataElement name="Restrictions/Conditions Qualifier" id="688"
                  sequence="1"
                  description="Code identifying the type of restriction/condition"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="restrictionsConditionsQualifier"/>
                <dataElement name="Description" id="352"
                  sequence="2"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="X"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
                <dataElement name="Quantity Qualifier" id="673"
                  sequence="3"
                  description="Code specifying the type of quantity"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="quantityQualifier"/>
                <dataElement name="Quantity" id="380"
                  sequence="4"
                  description="Numeric value of quantity"
                  type="R" required="X"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <dataElement name="Amount Qualifier Code" id="522"
                  sequence="5"
                  description="Code to qualify amount"
                  type="ID" required="X"
                  minLength="1" maxLength="3"
                  xmlTag="amountQualifierCode"/>
                <dataElement name="Amount" id="610"
                  sequence="6"
                  description="Monetary amount"
                  type="N2" required="X"
                  minLength="1" maxLength="15"
                  xmlTag="amount"/>
            </segment>
            <segment name="Measurements" id="MEA"
              description="To specify physical measurements or counts, including dimensions, tolerances, variances, and weights  (See Figures Appendix for example of use of C001)"
              sequence="49"
              occurs="40"
              required='O'
              xmlTag="Measurements">
                <dataElement name="Measurement Reference ID Code" id="737"
                  sequence="1"
                  description="Code identifying the broad category to which a measurement applies"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="measurementReferenceIdCode"/>
                <dataElement name="Measurement Qualifier" id="738"
                  sequence="2"
                  description="Code identifying a specific product or process characteristic to which a measurement applies"
                  type="ID" required="O"
                  minLength="1" maxLength="3"
                  xmlTag="measurementQualifier"/>
                <dataElement name="Measurement Value" id="739"
                  sequence="3"
                  description="The value of the measurement"
                  type="R" required="X"
                  minLength="1" maxLength="20"
                  xmlTag="measurementValue"/>
                <compositeDE name="Composite Unit of Measure" id="C001"
                  sequence="4"
                  xmlTag="compositeUnitOfMeasure">
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="1"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="2"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="3"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="4"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="5"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="6"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="7"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="8"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="9"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="10"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="11"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="12"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="13"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="14"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="15"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                </compositeDE>
                <dataElement name="Range Minimum" id="740"
                  sequence="5"
                  description="The value specifying the minimum of the measurement range"
                  type="R" required="X"
                  minLength="1" maxLength="20"
                  xmlTag="rangeMinimum"/>
                <dataElement name="Range Maximum" id="741"
                  sequence="6"
                  description="The value specifying the maximum of the measurement range"
                  type="R" required="X"
                  minLength="1" maxLength="20"
                  xmlTag="rangeMaximum"/>
                <dataElement name="Measurement Significance Code" id="935"
                  sequence="7"
                  description="Code used to benchmark, qualify or further define a measurement value"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="measurementSignificanceCode"/>
                <dataElement name="Measurement Attribute Code" id="936"
                  sequence="8"
                  description="Code used to express an attribute response when a numeric measurement value cannot be determined"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="measurementAttributeCode"/>
                <dataElement name="Surface/Layer/Position Code" id="752"
                  sequence="9"
                  description="Code indicating the product surface, layer or position that is being described"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="surfaceLayerPositionCode"/>
                <dataElement name="Measurement Method or Device" id="1373"
                  sequence="10"
                  description="The method or device used to record the measurement"
                  type="ID" required="O"
                  minLength="2" maxLength="4"
                  xmlTag="measurementMethodOrDevice"/>
            </segment>
            <segment name="Product/Item Description" id="PID"
              occurs="1000"
              sequence="50"
              required='O'
              description="To describe a product or process in coded or free-form format"
              xmlTag="ProductItemDescription">
                <dataElement name="Item Description Type" id="349"
                  sequence="1"
                  description="Code indicating the format of a description"
                  type="ID" required="M"
                  minLength="1" maxLength="1"
                  xmlTag="itemDescriptionType"/>
                <dataElement name="Product/Process Characteristic Code" id="750"
                  sequence="2"
                  description="Code identifying the general class of a product or process characteristic"
                  type="ID" required="O"
                  minLength="2" maxLength="3"
                  xmlTag="productProcessCharacteristicCode"/>
                <dataElement name="Agency Qualifier Code" id="559"
                  sequence="3"
                  description="Code identifying the agency assigning the code values"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="agencyQualifierCode"/>
                <dataElement name="Product Description Code" id="751"
                  sequence="4"
                  description="A code from an industry code list which provides specific data about a product characteristic"
                  type="AN" required="X"
                  minLength="1" maxLength="12"
                  xmlTag="productDescriptionCode"/>
                <dataElement name="Description" id="352"
                  sequence="5"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="X"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
                <dataElement name="Surface/Layer/Position Code" id="752"
                  sequence="6"
                  description="Code indicating the product surface, layer or position that is being described"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="surfaceLayerPositionCode"/>
                <dataElement name="Source Subqualifier" id="822"
                  sequence="7"
                  description="A reference that indicates the table or text maintained by the Source Qualifier"
                  type="AN" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="sourceSubqualifier"/>
                <dataElement name="Yes/No Condition or Response Code" id="1073"
                  sequence="8"
                  description="Code indicating a Yes or No condition or response"
                  type="ID" required="O"
                  minLength="1" maxLength="1"
                  xmlTag="yesNoConditionOrResponseCode"/>
                <dataElement name="Language Code" id="819"
                  sequence="9"
                  description="Code designating the language used in text, from a standard code list maintained by the International Standards Organization (ISO 639)"
                  type="ID" required="O"
                  minLength="2" maxLength="3"
                  xmlTag="languageCode"/>
                <segment name="Measurements" id="MEA"
                  description="To specify physical measurements or counts, including dimensions, tolerances, variances, and weights  (See Figures Appendix for example of use of C001)"
                  sequence="60"
                  occurs="10"
                  required='O'
                  xmlTag="Measurements">
                    <dataElement name="Measurement Reference ID Code" id="737"
                      sequence="1"
                      description="Code identifying the broad category to which a measurement applies"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="measurementReferenceIdCode"/>
                    <dataElement name="Measurement Qualifier" id="738"
                      sequence="2"
                      description="Code identifying a specific product or process characteristic to which a measurement applies"
                      type="ID" required="O"
                      minLength="1" maxLength="3"
                      xmlTag="measurementQualifier"/>
                    <dataElement name="Measurement Value" id="739"
                      sequence="3"
                      description="The value of the measurement"
                      type="R" required="X"
                      minLength="1" maxLength="20"
                      xmlTag="measurementValue"/>
                    <compositeDE name="Composite Unit of Measure" id="C001"
                      sequence="4"
                      xmlTag="compositeUnitOfMeasure">
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="1"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="M"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="2"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="3"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="4"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="5"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="6"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="7"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="8"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="9"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="10"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="11"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="12"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="13"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="14"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="15"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                    </compositeDE>
                    <dataElement name="Range Minimum" id="740"
                      sequence="5"
                      description="The value specifying the minimum of the measurement range"
                      type="R" required="X"
                      minLength="1" maxLength="20"
                      xmlTag="rangeMinimum"/>
                    <dataElement name="Range Maximum" id="741"
                      sequence="6"
                      description="The value specifying the maximum of the measurement range"
                      type="R" required="X"
                      minLength="1" maxLength="20"
                      xmlTag="rangeMaximum"/>
                    <dataElement name="Measurement Significance Code" id="935"
                      sequence="7"
                      description="Code used to benchmark, qualify or further define a measurement value"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="measurementSignificanceCode"/>
                    <dataElement name="Measurement Attribute Code" id="936"
                      sequence="8"
                      description="Code used to express an attribute response when a numeric measurement value cannot be determined"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="measurementAttributeCode"/>
                    <dataElement name="Surface/Layer/Position Code" id="752"
                      sequence="9"
                      description="Code indicating the product surface, layer or position that is being described"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="surfaceLayerPositionCode"/>
                    <dataElement name="Measurement Method or Device" id="1373"
                      sequence="10"
                      description="The method or device used to record the measurement"
                      type="ID" required="O"
                      minLength="2" maxLength="4"
                      xmlTag="measurementMethodOrDevice"/>
                </segment>
            </segment>
            <segment name="Paperwork" id="PWK"
              description="To identify the type or transmission or both of paperwork or supporting information"
              sequence="70"
              occurs="25"
              required='O'
              xmlTag="Paperwork">
                <dataElement name="Report Type Code" id="755"
                  sequence="1"
                  description="Code indicating the title or contents of a document, report or supporting item"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="reportTypeCode"/>
                <dataElement name="Report Transmission Code" id="756"
                  sequence="2"
                  description="Code defining timing, transmission method or format by which reports are to be sent"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="reportTransmissionCode"/>
                <dataElement name="Report Copies Needed" id="757"
                  sequence="3"
                  description="The number of copies of a report that should be sent to the addressee"
                  type="N0" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="reportCopiesNeeded"/>
                <dataElement name="Entity Identifier Code" id="98"
                  sequence="4"
                  description="Code identifying an organizational entity, a physical location, property or an individual"
                  type="ID" required="O"
                  minLength="2" maxLength="3"
                  xmlTag="entityIdentifierCode"/>
                <dataElement name="Identification Code Qualifier" id="66"
                  sequence="5"
                  description="Code designating the system/method of code structure used for Identification Code (67)"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="identificationCodeQualifier"/>
                <dataElement name="Identification Code" id="67"
                  sequence="6"
                  description="Code identifying a party or other code"
                  type="AN" required="X"
                  minLength="2" maxLength="80"
                  xmlTag="identificationCode"/>
                <dataElement name="Description" id="352"
                  sequence="7"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="O"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
                <compositeDE name="Actions Indicated" id="C002"
                  sequence="8"
                  xmlTag="actionsIndicated">
                    <dataElement name="Paperwork/Report Action Code" id="704"
                      sequence="1"
                      description="Code specifying how the paperwork or report that is identified in the PWK segment relates to the transaction set or to identify the action that is required"
                      type="ID" required="M"
                      minLength="1" maxLength="2"
                      xmlTag="paperworkReportActionCode"/>
                    <dataElement name="Paperwork/Report Action Code" id="704"
                      sequence="2"
                      description="Code specifying how the paperwork or report that is identified in the PWK segment relates to the transaction set or to identify the action that is required"
                      type="ID" required="O"
                      minLength="1" maxLength="2"
                      xmlTag="paperworkReportActionCode"/>
                    <dataElement name="Paperwork/Report Action Code" id="704"
                      sequence="3"
                      description="Code specifying how the paperwork or report that is identified in the PWK segment relates to the transaction set or to identify the action that is required"
                      type="ID" required="O"
                      minLength="1" maxLength="2"
                      xmlTag="paperworkReportActionCode"/>
                    <dataElement name="Paperwork/Report Action Code" id="704"
                      sequence="4"
                      description="Code specifying how the paperwork or report that is identified in the PWK segment relates to the transaction set or to identify the action that is required"
                      type="ID" required="O"
                      minLength="1" maxLength="2"
                      xmlTag="paperworkReportActionCode"/>
                    <dataElement name="Paperwork/Report Action Code" id="704"
                      sequence="5"
                      description="Code specifying how the paperwork or report that is identified in the PWK segment relates to the transaction set or to identify the action that is required"
                      type="ID" required="O"
                      minLength="1" maxLength="2"
                      xmlTag="paperworkReportActionCode"/>
                </compositeDE>
                <dataElement name="Request Category Code" id="1525"
                  sequence="9"
                  description="Code indicating a type of request"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="requestCategoryCode"/>
            </segment>
            <segment name="Marking, Packaging, Loading" id="PKG"
              description="To describe marking, packaging, loading, and unloading requirements"
              sequence="80"
              occurs="200"
              required='O'
              xmlTag="MarkingPackagingLoading">
                <dataElement name="Item Description Type" id="349"
                  sequence="1"
                  description="Code indicating the format of a description"
                  type="ID" required="X"
                  minLength="1" maxLength="1"
                  xmlTag="itemDescriptionType"/>
                <dataElement name="Packaging Characteristic Code" id="753"
                  sequence="2"
                  description="Code specifying the marking, packaging, loading and related characteristics being described"
                  type="ID" required="O"
                  minLength="1" maxLength="5"
                  xmlTag="packagingCharacteristicCode"/>
                <dataElement name="Agency Qualifier Code" id="559"
                  sequence="3"
                  description="Code identifying the agency assigning the code values"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="agencyQualifierCode"/>
                <dataElement name="Packaging Description Code" id="754"
                  sequence="4"
                  description="A code from an industry code list which provides specific data about the marking, packaging or loading and unloading of a product"
                  type="AN" required="X"
                  minLength="1" maxLength="7"
                  xmlTag="packagingDescriptionCode"/>
                <dataElement name="Description" id="352"
                  sequence="5"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="X"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
                <dataElement name="Unit Load Option Code" id="400"
                  sequence="6"
                  description="Code identifying loading or unloading a shipment"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="unitLoadOptionCode"/>
            </segment>
            <segment name="Item Physical Details" id="PO4"
              description="To specify the physical qualities, packaging, weights, and dimensions relating to the item"
              sequence="90"
              occurs="-1"
              required='O'
              xmlTag="ItemPhysicalDetails">
                <dataElement name="Pack" id="356"
                  sequence="1"
                  description="The number of inner containers, or number of eaches if there are no inner containers, per outer container"
                  type="N0" required="O"
                  minLength="1" maxLength="6"
                  xmlTag="pack"/>
                <dataElement name="Size" id="357"
                  sequence="2"
                  description="Size of supplier units in pack"
                  type="R" required="X"
                  minLength="1" maxLength="8"
                  xmlTag="size"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="3"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Packaging Code" id="103"
                  sequence="4"
                  description="Code identifying the type of packaging; Part 1: Packaging Form, Part 2: Packaging Material; if the Data Element is used, then Part 1 is always required"
                  type="AN" required="X"
                  minLength="3" maxLength="5"
                  xmlTag="packagingCode"/>
                <dataElement name="Weight Qualifier" id="187"
                  sequence="5"
                  description="Code defining the type of weight"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="weightQualifier"/>
                <dataElement name="Gross Weight per Pack" id="384"
                  sequence="6"
                  description="Numeric value of gross weight per pack"
                  type="R" required="X"
                  minLength="1" maxLength="9"
                  xmlTag="grossWeightPerPack"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="7"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Gross Volume per Pack" id="385"
                  sequence="8"
                  description="Numeric value of gross volume per pack"
                  type="R" required="X"
                  minLength="1" maxLength="9"
                  xmlTag="grossVolumePerPack"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="9"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Length" id="82"
                  sequence="10"
                  description="Largest horizontal dimension of an object measured when the object is in the upright position"
                  type="R" required="X"
                  minLength="1" maxLength="8"
                  xmlTag="length"/>
                <dataElement name="Width" id="189"
                  sequence="11"
                  description="Shorter measurement of the two horizontal dimensions measured with the object in the upright position"
                  type="R" required="X"
                  minLength="1" maxLength="8"
                  xmlTag="width"/>
                <dataElement name="Height" id="65"
                  sequence="12"
                  description="Vertical dimension of an object measured when the object is in the upright position"
                  type="R" required="X"
                  minLength="1" maxLength="8"
                  xmlTag="height"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="13"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Inner Pack" id="810"
                  sequence="14"
                  description="The number of eaches per inner container"
                  type="N0" required="O"
                  minLength="1" maxLength="6"
                  xmlTag="innerPack"/>
                <dataElement name="Surface/Layer/Position Code" id="752"
                  sequence="15"
                  description="Code indicating the product surface, layer or position that is being described"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="surfaceLayerPositionCode"/>
                <dataElement name="Assigned Identification" id="350"
                  sequence="16"
                  description="Alphanumeric characters assigned for differentiation within a transaction set"
                  type="AN" required="X"
                  minLength="1" maxLength="20"
                  xmlTag="assignedIdentification"/>
                <dataElement name="Assigned Identification" id="350"
                  sequence="17"
                  description="Alphanumeric characters assigned for differentiation within a transaction set"
                  type="AN" required="O"
                  minLength="1" maxLength="20"
                  xmlTag="assignedIdentification"/>
                <dataElement name="Number" id="1470"
                  sequence="18"
                  description="A generic number"
                  type="N0" required="O"
                  minLength="1" maxLength="9"
                  xmlTag="number"/>
            </segment>
            <segment name="Reference Identification" id="REF"
              description="To specify identifying information"
              sequence="100"
              occurs="-1"
              required='O'
              xmlTag="ReferenceIdentification">
                <dataElement name="Reference Identification Qualifier" id="128"
                  sequence="1"
                  description="Code qualifying the Reference Identification"
                  type="ID" required="M"
                  minLength="2" maxLength="3"
                  xmlTag="referenceIdentificationQualifier"/>
                <dataElement name="Reference Identification" id="127"
                  sequence="2"
                  description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="referenceIdentification"/>
                <dataElement name="Description" id="352"
                  sequence="3"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="X"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
                <compositeDE name="Reference Identifier" id="C040"
                  sequence="4"
                  xmlTag="referenceIdentifier">
                    <dataElement name="Reference Identification Qualifier" id="128"
                      sequence="1"
                      description="Code qualifying the Reference Identification"
                      type="ID" required="M"
                      minLength="2" maxLength="3"
                      xmlTag="referenceIdentificationQualifier"/>
                    <dataElement name="Reference Identification" id="127"
                      sequence="2"
                      description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                      type="AN" required="M"
                      minLength="1" maxLength="30"
                      xmlTag="referenceIdentification"/>
                    <dataElement name="Reference Identification Qualifier" id="128"
                      sequence="3"
                      description="Code qualifying the Reference Identification"
                      type="ID" required="X"
                      minLength="2" maxLength="3"
                      xmlTag="referenceIdentificationQualifier"/>
                    <dataElement name="Reference Identification" id="127"
                      sequence="4"
                      description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="referenceIdentification"/>
                    <dataElement name="Reference Identification Qualifier" id="128"
                      sequence="5"
                      description="Code qualifying the Reference Identification"
                      type="ID" required="X"
                      minLength="2" maxLength="3"
                      xmlTag="referenceIdentificationQualifier"/>
                    <dataElement name="Reference Identification" id="127"
                      sequence="6"
                      description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="referenceIdentification"/>
                </compositeDE>
            </segment>
            <segment name="Administrative Communications Contact" id="PER"
              description="To identify a person or office to whom administrative communications should be directed"
              sequence="110"
              occurs="3"
              required='O'
              xmlTag="AdministrativeCommunicationsContact">
                <dataElement name="Contact Function Code" id="366"
                  sequence="1"
                  description="Code identifying the major duty or responsibility of the person or group named"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="contactFunctionCode"/>
                <dataElement name="Name" id="93"
                  sequence="2"
                  description="Free-form name"
                  type="AN" required="O"
                  minLength="1" maxLength="60"
                  xmlTag="name"/>
                <dataElement name="Communication Number Qualifier" id="365"
                  sequence="3"
                  description="Code identifying the type of communication number"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="communicationNumberQualifier"/>
                <dataElement name="Communication Number" id="364"
                  sequence="4"
                  description="Complete communications number including country or area code when applicable"
                  type="AN" required="X"
                  minLength="1" maxLength="80"
                  xmlTag="communicationNumber"/>
                <dataElement name="Communication Number Qualifier" id="365"
                  sequence="5"
                  description="Code identifying the type of communication number"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="communicationNumberQualifier"/>
                <dataElement name="Communication Number" id="364"
                  sequence="6"
                  description="Complete communications number including country or area code when applicable"
                  type="AN" required="X"
                  minLength="1" maxLength="80"
                  xmlTag="communicationNumber"/>
                <dataElement name="Communication Number Qualifier" id="365"
                  sequence="7"
                  description="Code identifying the type of communication number"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="communicationNumberQualifier"/>
                <dataElement name="Communication Number" id="364"
                  sequence="8"
                  description="Complete communications number including country or area code when applicable"
                  type="AN" required="X"
                  minLength="1" maxLength="80"
                  xmlTag="communicationNumber"/>
                <dataElement name="Contact Inquiry Reference" id="443"
                  sequence="9"
                  description="Additional reference number or description to clarify a contact number"
                  type="AN" required="O"
                  minLength="1" maxLength="20"
                  xmlTag="contactInquiryReference"/>
            </segment>
            <segment name="Service, Promotion, Allowance, or Charge Information" id="SAC"
              description="To request or identify a service, promotion, allowance, or charge; to specify the amount or percentage for the service, promotion, allowance, or charge"
              sequence="130"
              occurs="25"
              required='O'
              xmlTag="ServicePromotionAllowanceOrChargeInformation">
                <dataElement name="Allowance or Charge Indicator" id="248"
                  sequence="1"
                  description="Code which indicates an allowance or charge for the service specified"
                  type="ID" required="M"
                  minLength="1" maxLength="1"
                  xmlTag="allowanceOrChargeIndicator"/>
                <dataElement name="Service, Promotion, Allowance, or Charge Code" id="1300"
                  sequence="2"
                  description="Code identifying the service, promotion, allowance, or charge"
                  type="ID" required="X"
                  minLength="4" maxLength="4"
                  xmlTag="servicePromotionAllowanceOrChargeCode"/>
                <dataElement name="Agency Qualifier Code" id="559"
                  sequence="3"
                  description="Code identifying the agency assigning the code values"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="agencyQualifierCode"/>
                <dataElement name="Agency Service, Promotion, Allowance, or Charge Code" id="1301"
                  sequence="4"
                  description="Agency maintained code identifying the service, promotion, allowance, or charge"
                  type="AN" required="X"
                  minLength="1" maxLength="10"
                  xmlTag="agencyServicePromotionAllowanceOrChargeCode"/>
                <dataElement name="Amount" id="610"
                  sequence="5"
                  description="Monetary amount"
                  type="N2" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="amount"/>
                <dataElement name="Allowance/Charge Percent Qualifier" id="378"
                  sequence="6"
                  description="Code indicating on what basis allowance or charge percent is calculated"
                  type="ID" required="X"
                  minLength="1" maxLength="1"
                  xmlTag="allowanceChargePercentQualifier"/>
                <dataElement name="Percent" id="332"
                  sequence="7"
                  description="Percent expressed as a percent"
                  type="R" required="X"
                  minLength="1" maxLength="6"
                  xmlTag="percent"/>
                <dataElement name="Rate" id="118"
                  sequence="8"
                  description="Rate expressed in the standard monetary denomination for the currency specified"
                  type="R" required="O"
                  minLength="1" maxLength="9"
                  xmlTag="rate"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="9"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Quantity" id="380"
                  sequence="10"
                  description="Numeric value of quantity"
                  type="R" required="X"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <dataElement name="Quantity" id="380"
                  sequence="11"
                  description="Numeric value of quantity"
                  type="R" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <dataElement name="Allowance or Charge Method of Handling Code" id="331"
                  sequence="12"
                  description="Code indicating method of handling for an allowance or charge"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="allowanceOrChargeMethodOfHandlingCode"/>
                <dataElement name="Reference Identification" id="127"
                  sequence="13"
                  description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="referenceIdentification"/>
                <dataElement name="Option Number" id="770"
                  sequence="14"
                  description="A unique number identifying available promotion or allowance options when more than one is offered"
                  type="AN" required="O"
                  minLength="1" maxLength="20"
                  xmlTag="optionNumber"/>
                <dataElement name="Description" id="352"
                  sequence="15"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="X"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
                <dataElement name="Language Code" id="819"
                  sequence="16"
                  description="Code designating the language used in text, from a standard code list maintained by the International Standards Organization (ISO 639)"
                  type="ID" required="O"
                  minLength="2" maxLength="3"
                  xmlTag="languageCode"/>
            </segment>
            <segment name="Conditions of Sale" id="IT8"
              description="To specify general conditions or requirements and to detail conditions for substitution of alternate products"
              sequence="140"
              occurs="25"
              required='O'
              xmlTag="ConditionsOfSale">
                <dataElement name="Sales Requirement Code" id="563"
                  sequence="1"
                  description="Code to identify a specific requirement or agreement of sale"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="salesRequirementCode"/>
                <dataElement name="Action Code" id="306"
                  sequence="2"
                  description="Code indicating type of action"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="actionCode"/>
                <dataElement name="Amount" id="610"
                  sequence="3"
                  description="Monetary amount"
                  type="N2" required="X"
                  minLength="1" maxLength="15"
                  xmlTag="amount"/>
                <dataElement name="Account Number" id="508"
                  sequence="4"
                  description="Account number assigned"
                  type="AN" required="O"
                  minLength="1" maxLength="35"
                  xmlTag="accountNumber"/>
                <dataElement name="Date" id="373"
                  sequence="5"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="X"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Agency Qualifier Code" id="559"
                  sequence="6"
                  description="Code identifying the agency assigning the code values"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="agencyQualifierCode"/>
                <dataElement name="Product/Service Substitution Code" id="566"
                  sequence="7"
                  description="Code indicating product or service substitution conditions"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="productServiceSubstitutionCode"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="8"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="9"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="10"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="11"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="12"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="13"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="14"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="15"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="16"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="17"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="18"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="19"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="20"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="21"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="22"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="23"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="24"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="25"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="26"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="27"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
            </segment>
            <segment name="Sales Requirements" id="CSH"
              description="To specify general conditions or requirements of the sale"
              sequence="142"
              occurs="-1"
              required='O'
              xmlTag="SalesRequirements">
                <dataElement name="Sales Requirement Code" id="563"
                  sequence="1"
                  description="Code to identify a specific requirement or agreement of sale"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="salesRequirementCode"/>
                <dataElement name="Action Code" id="306"
                  sequence="2"
                  description="Code indicating type of action"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="actionCode"/>
                <dataElement name="Amount" id="610"
                  sequence="3"
                  description="Monetary amount"
                  type="N2" required="X"
                  minLength="1" maxLength="15"
                  xmlTag="amount"/>
                <dataElement name="Account Number" id="508"
                  sequence="4"
                  description="Account number assigned"
                  type="AN" required="O"
                  minLength="1" maxLength="35"
                  xmlTag="accountNumber"/>
                <dataElement name="Date" id="373"
                  sequence="5"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="O"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Agency Qualifier Code" id="559"
                  sequence="6"
                  description="Code identifying the agency assigning the code values"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="agencyQualifierCode"/>
                <dataElement name="Special Services Code" id="560"
                  sequence="7"
                  description="Code identifying the special service"
                  type="ID" required="X"
                  minLength="2" maxLength="10"
                  xmlTag="specialServicesCode"/>
                <dataElement name="Product/Service Substitution Code" id="566"
                  sequence="8"
                  description="Code indicating product or service substitution conditions"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="productServiceSubstitutionCode"/>
                <dataElement name="Percent" id="954"
                  sequence="9"
                  description="Percentage expressed as a decimal"
                  type="R" required="X"
                  minLength="1" maxLength="10"
                  xmlTag="percent"/>
                <dataElement name="Percent Qualifier" id="1004"
                  sequence="10"
                  description="Code to qualify percent"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="percentQualifier"/>
            </segment>
            <segment name="Terms of Sale/Deferred Terms of Sale" id="ITD"
              description="To specify terms of sale"
              sequence="150"
              occurs="2"
              required='O'
              xmlTag="TermsOfSaleDeferredTermsOfSale">
                <dataElement name="Terms Type Code" id="336"
                  sequence="1"
                  description="Code identifying type of payment terms"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="termsTypeCode"/>
                <dataElement name="Terms Basis Date Code" id="333"
                  sequence="2"
                  description="Code identifying the beginning of the terms period"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="termsBasisDateCode"/>
                <dataElement name="Terms Discount Percent" id="338"
                  sequence="3"
                  description="Terms discount percentage, expressed as a percent, available to the purchaser if an invoice is paid on or before the Terms Discount Due Date"
                  type="R" required="O"
                  minLength="1" maxLength="6"
                  xmlTag="termsDiscountPercent"/>
                <dataElement name="Terms Discount Due Date" id="370"
                  sequence="4"
                  description="Date payment is due if discount is to be earned expressed in format CCYYMMDD"
                  type="DT" required="X"
                  minLength="8" maxLength="8"
                  xmlTag="termsDiscountDueDate"/>
                <dataElement name="Terms Discount Days Due" id="351"
                  sequence="5"
                  description="Number of days in the terms discount period by which payment is due if terms discount is earned"
                  type="N0" required="X"
                  minLength="1" maxLength="3"
                  xmlTag="termsDiscountDaysDue"/>
                <dataElement name="Terms Net Due Date" id="446"
                  sequence="6"
                  description="Date when total invoice amount becomes due expressed in format CCYYMMDD"
                  type="DT" required="O"
                  minLength="8" maxLength="8"
                  xmlTag="termsNetDueDate"/>
                <dataElement name="Terms Net Days" id="386"
                  sequence="7"
                  description="Number of days until total invoice amount is due (discount not applicable)"
                  type="N0" required="O"
                  minLength="1" maxLength="3"
                  xmlTag="termsNetDays"/>
                <dataElement name="Terms Discount Amount" id="362"
                  sequence="8"
                  description="Total amount of terms discount"
                  type="N2" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="termsDiscountAmount"/>
                <dataElement name="Terms Deferred Due Date" id="388"
                  sequence="9"
                  description="Date deferred payment or percent of invoice payable is due expressed in format CCYYMMDD"
                  type="DT" required="O"
                  minLength="8" maxLength="8"
                  xmlTag="termsDeferredDueDate"/>
                <dataElement name="Deferred Amount Due" id="389"
                  sequence="10"
                  description="Deferred amount due for payment"
                  type="N2" required="X"
                  minLength="1" maxLength="10"
                  xmlTag="deferredAmountDue"/>
                <dataElement name="Percent of Invoice Payable" id="342"
                  sequence="11"
                  description="Amount of invoice payable expressed in percent"
                  type="R" required="X"
                  minLength="1" maxLength="5"
                  xmlTag="percentOfInvoicePayable"/>
                <dataElement name="Description" id="352"
                  sequence="12"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="O"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
                <dataElement name="Day of Month" id="765"
                  sequence="13"
                  description="The numeric value of the day of the month between 1 and the maximum day of the month being referenced"
                  type="N0" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="dayOfMonth"/>
                <dataElement name="Payment Method Code" id="107"
                  sequence="14"
                  description="Code identifying type of payment procedures"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="paymentMethodCode"/>
                <dataElement name="Percent" id="954"
                  sequence="15"
                  description="Percentage expressed as a decimal"
                  type="R" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="percent"/>
            </segment>
            <segment name="Discount Detail" id="DIS"
              description="To specify the exact type and terms of various discount information"
              sequence="160"
              occurs="20"
              required='O'
              xmlTag="DiscountDetail">
                <dataElement name="Discount Terms Type Code" id="653"
                  sequence="1"
                  description="Code to define the units in which the discount will be determined, i.e., dollars, case, truckload, etc."
                  type="ID" required="M"
                  minLength="3" maxLength="3"
                  xmlTag="discountTermsTypeCode"/>
                <dataElement name="Discount Base Qualifier" id="654"
                  sequence="2"
                  description="Code to define unit of discount, i.e., dollars, cases, alternate products, etc."
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="discountBaseQualifier"/>
                <dataElement name="Discount Base Value" id="655"
                  sequence="3"
                  description="A multiplier amount used in conjunction with discount base qualifier to determine the value of the discount"
                  type="R" required="M"
                  minLength="1" maxLength="10"
                  xmlTag="discountBaseValue"/>
                <dataElement name="Discount Control Limit Qualifier" id="656"
                  sequence="4"
                  description="Code to define the units of the limits for determining discount"
                  type="ID" required="M"
                  minLength="2" maxLength="3"
                  xmlTag="discountControlLimitQualifier"/>
                <dataElement name="Discount Control Limit" id="657"
                  sequence="5"
                  description="Amount or time associated with application of the discount"
                  type="N0" required="M"
                  minLength="1" maxLength="10"
                  xmlTag="discountControlLimit"/>
                <dataElement name="Discount Control Limit" id="657"
                  sequence="6"
                  description="Amount or time associated with application of the discount"
                  type="N0" required="O"
                  minLength="1" maxLength="10"
                  xmlTag="discountControlLimit"/>
            </segment>
            <segment name="Tax Reference" id="TAX"
              description="To provide data required for proper notification/determination of applicable taxes applying to the transaction or business described in the transaction"
              sequence="170"
              occurs="3"
              required='O'
              xmlTag="TaxReference">
                <dataElement name="Tax Identification Number" id="325"
                  sequence="1"
                  description="Number assigned to a purchaser (buyer, orderer) by a taxing jurisdiction (state, county, etc.); often called a tax exemption number or certificate number"
                  type="AN" required="X"
                  minLength="1" maxLength="20"
                  xmlTag="taxIdentificationNumber"/>
                <dataElement name="Location Qualifier" id="309"
                  sequence="2"
                  description="Code identifying type of location"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="locationQualifier"/>
                <dataElement name="Location Identifier" id="310"
                  sequence="3"
                  description="Code which identifies a specific location"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="locationIdentifier"/>
                <dataElement name="Location Qualifier" id="309"
                  sequence="4"
                  description="Code identifying type of location"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="locationQualifier"/>
                <dataElement name="Location Identifier" id="310"
                  sequence="5"
                  description="Code which identifies a specific location"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="locationIdentifier"/>
                <dataElement name="Location Qualifier" id="309"
                  sequence="6"
                  description="Code identifying type of location"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="locationQualifier"/>
                <dataElement name="Location Identifier" id="310"
                  sequence="7"
                  description="Code which identifies a specific location"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="locationIdentifier"/>
                <dataElement name="Location Qualifier" id="309"
                  sequence="8"
                  description="Code identifying type of location"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="locationQualifier"/>
                <dataElement name="Location Identifier" id="310"
                  sequence="9"
                  description="Code which identifies a specific location"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="locationIdentifier"/>
                <dataElement name="Location Qualifier" id="309"
                  sequence="10"
                  description="Code identifying type of location"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="locationQualifier"/>
                <dataElement name="Location Identifier" id="310"
                  sequence="11"
                  description="Code which identifies a specific location"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="locationIdentifier"/>
                <dataElement name="Tax Exempt Code" id="441"
                  sequence="12"
                  description="Code identifying exemption status from sales and use tax"
                  type="ID" required="O"
                  minLength="1" maxLength="1"
                  xmlTag="taxExemptCode"/>
                <dataElement name="Customs Entry Type Group Code" id="1179"
                  sequence="13"
                  description="Code identifying a group of entry types as filed with U.S. Customs when goods enter the country"
                  type="ID" required="O"
                  minLength="1" maxLength="1"
                  xmlTag="customsEntryTypeGroupCode"/>
            </segment>
            <segment name="F.O.B. Related Instructions" id="FOB"
              description="To specify transportation instructions relating to shipment"
              sequence="180"
              occurs="-1"
              required='O'
              xmlTag="FOBRelatedInstructions">
                <dataElement name="Shipment Method of Payment" id="146"
                  sequence="1"
                  description="Code identifying payment terms for transportation charges"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="shipmentMethodOfPayment"/>
                <dataElement name="Location Qualifier" id="309"
                  sequence="2"
                  description="Code identifying type of location"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="locationQualifier"/>
                <dataElement name="Description" id="352"
                  sequence="3"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="O"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
                <dataElement name="Transportation Terms Qualifier Code" id="334"
                  sequence="4"
                  description="Code identifying the source of the transportation terms"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="transportationTermsQualifierCode"/>
                <dataElement name="Transportation Terms Code" id="335"
                  sequence="5"
                  description="Code identifying the trade terms which apply to the shipment transportation responsibility"
                  type="ID" required="X"
                  minLength="3" maxLength="3"
                  xmlTag="transportationTermsCode"/>
                <dataElement name="Location Qualifier" id="309"
                  sequence="6"
                  description="Code identifying type of location"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="locationQualifier"/>
                <dataElement name="Description" id="352"
                  sequence="7"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="O"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
                <dataElement name="Risk of Loss Code" id="54"
                  sequence="8"
                  description="Code specifying where responsibility for risk of loss passes"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="riskOfLossCode"/>
                <dataElement name="Description" id="352"
                  sequence="9"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="X"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
            </segment>
            <segment name="Destination Quantity" id="SDQ"
              description="To specify destination and quantity detail"
              sequence="190"
              occurs="50"
              required='O'
              xmlTag="DestinationQuantity">
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="1"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Identification Code Qualifier" id="66"
                  sequence="2"
                  description="Code designating the system/method of code structure used for Identification Code (67)"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="identificationCodeQualifier"/>
                <dataElement name="Identification Code" id="67"
                  sequence="3"
                  description="Code identifying a party or other code"
                  type="AN" required="M"
                  minLength="2" maxLength="80"
                  xmlTag="identificationCode"/>
                <dataElement name="Quantity" id="380"
                  sequence="4"
                  description="Numeric value of quantity"
                  type="R" required="M"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <dataElement name="Identification Code" id="67"
                  sequence="5"
                  description="Code identifying a party or other code"
                  type="AN" required="X"
                  minLength="2" maxLength="80"
                  xmlTag="identificationCode"/>
                <dataElement name="Quantity" id="380"
                  sequence="6"
                  description="Numeric value of quantity"
                  type="R" required="X"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <dataElement name="Identification Code" id="67"
                  sequence="7"
                  description="Code identifying a party or other code"
                  type="AN" required="X"
                  minLength="2" maxLength="80"
                  xmlTag="identificationCode"/>
                <dataElement name="Quantity" id="380"
                  sequence="8"
                  description="Numeric value of quantity"
                  type="R" required="X"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <dataElement name="Identification Code" id="67"
                  sequence="9"
                  description="Code identifying a party or other code"
                  type="AN" required="X"
                  minLength="2" maxLength="80"
                  xmlTag="identificationCode"/>
                <dataElement name="Quantity" id="380"
                  sequence="10"
                  description="Numeric value of quantity"
                  type="R" required="X"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <dataElement name="Identification Code" id="67"
                  sequence="11"
                  description="Code identifying a party or other code"
                  type="AN" required="X"
                  minLength="2" maxLength="80"
                  xmlTag="identificationCode"/>
                <dataElement name="Quantity" id="380"
                  sequence="12"
                  description="Numeric value of quantity"
                  type="R" required="X"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <dataElement name="Identification Code" id="67"
                  sequence="13"
                  description="Code identifying a party or other code"
                  type="AN" required="X"
                  minLength="2" maxLength="80"
                  xmlTag="identificationCode"/>
                <dataElement name="Quantity" id="380"
                  sequence="14"
                  description="Numeric value of quantity"
                  type="R" required="X"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <dataElement name="Identification Code" id="67"
                  sequence="15"
                  description="Code identifying a party or other code"
                  type="AN" required="X"
                  minLength="2" maxLength="80"
                  xmlTag="identificationCode"/>
                <dataElement name="Quantity" id="380"
                  sequence="16"
                  description="Numeric value of quantity"
                  type="R" required="X"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <dataElement name="Identification Code" id="67"
                  sequence="17"
                  description="Code identifying a party or other code"
                  type="AN" required="X"
                  minLength="2" maxLength="80"
                  xmlTag="identificationCode"/>
                <dataElement name="Quantity" id="380"
                  sequence="18"
                  description="Numeric value of quantity"
                  type="R" required="X"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <dataElement name="Identification Code" id="67"
                  sequence="19"
                  description="Code identifying a party or other code"
                  type="AN" required="X"
                  minLength="2" maxLength="80"
                  xmlTag="identificationCode"/>
                <dataElement name="Quantity" id="380"
                  sequence="20"
                  description="Numeric value of quantity"
                  type="R" required="X"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <dataElement name="Identification Code" id="67"
                  sequence="21"
                  description="Code identifying a party or other code"
                  type="AN" required="X"
                  minLength="2" maxLength="80"
                  xmlTag="identificationCode"/>
                <dataElement name="Quantity" id="380"
                  sequence="22"
                  description="Numeric value of quantity"
                  type="R" required="X"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <dataElement name="Location Identifier" id="310"
                  sequence="23"
                  description="Code which identifies a specific location"
                  type="AN" required="O"
                  minLength="1" maxLength="30"
                  xmlTag="locationIdentifier"/>
            </segment>
            <segment name="Date/Time Reference" id="DTM"
              description="To specify pertinent dates and times"
              sequence="200"
              occurs="10"
              required='O'
              xmlTag="DateTimeReference">
                <dataElement name="Date/Time Qualifier" id="374"
                  sequence="1"
                  description="Code specifying type of date or time, or both date and time"
                  type="ID" required="M"
                  minLength="3" maxLength="3"
                  xmlTag="dateTimeQualifier"/>
                <dataElement name="Date" id="373"
                  sequence="2"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="X"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Time" id="337"
                  sequence="3"
                  description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                  type="TM" required="X"
                  minLength="4" maxLength="8"
                  xmlTag="time"/>
                <dataElement name="Time Code" id="623"
                  sequence="4"
                  description="Code identifying the time. In accordance with International Standards Organization standard 8601, time can be specified by a + or - and an indication in hours in relation to Universal Time Coordinate (UTC) time; since + is a restricted character, + and - are substituted by P and M in the codes that follow"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="timeCode"/>
                <dataElement name="Date Time Period Format Qualifier" id="1250"
                  sequence="5"
                  description="Code indicating the date format, time format, or date and time format"
                  type="ID" required="X"
                  minLength="2" maxLength="3"
                  xmlTag="dateTimePeriodFormatQualifier"/>
                <dataElement name="Date Time Period" id="1251"
                  sequence="6"
                  description="Expression of a date, a time, or range of dates, times or dates and times"
                  type="AN" required="X"
                  minLength="1" maxLength="35"
                  xmlTag="dateTimePeriod"/>
            </segment>
            <segment name="Forecast Schedule" id="FST"
              description="To specify the forecasted dates and quantities"
              sequence="230"
              occurs="-1"
              required='O'
              xmlTag="ForecastSchedule">
                <dataElement name="Quantity" id="380"
                  sequence="1"
                  description="Numeric value of quantity"
                  type="R" required="M"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <dataElement name="Forecast Qualifier" id="680"
                  sequence="2"
                  description="Code specifying the sender's confidence level of the forecast data or an action associated with a forecast"
                  type="ID" required="M"
                  minLength="1" maxLength="1"
                  xmlTag="forecastQualifier"/>
                <dataElement name="Forecast Timing Qualifier" id="681"
                  sequence="3"
                  description="Code specifying interval grouping of the forecast"
                  type="ID" required="M"
                  minLength="1" maxLength="1"
                  xmlTag="forecastTimingQualifier"/>
                <dataElement name="Date" id="373"
                  sequence="4"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="M"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Date" id="373"
                  sequence="5"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="O"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Date/Time Qualifier" id="374"
                  sequence="6"
                  description="Code specifying type of date or time, or both date and time"
                  type="ID" required="X"
                  minLength="3" maxLength="3"
                  xmlTag="dateTimeQualifier"/>
                <dataElement name="Time" id="337"
                  sequence="7"
                  description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                  type="TM" required="X"
                  minLength="4" maxLength="8"
                  xmlTag="time"/>
                <dataElement name="Reference Identification Qualifier" id="128"
                  sequence="8"
                  description="Code qualifying the Reference Identification"
                  type="ID" required="X"
                  minLength="2" maxLength="3"
                  xmlTag="referenceIdentificationQualifier"/>
                <dataElement name="Reference Identification" id="127"
                  sequence="9"
                  description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="referenceIdentification"/>
                <dataElement name="Planning Schedule Type Code" id="783"
                  sequence="10"
                  description="Code identifying type of planning schedule used"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="planningScheduleTypeCode"/>
            </segment>
            <segment name="Carrier Details (Quantity and Weight)" id="TD1"
              description="To specify the transportation details relative to commodity, weight, and quantity"
              sequence="240"
              occurs="1"
              required='O'
              xmlTag="CarrierDetailsQuantityAndWeight">
                <dataElement name="Packaging Code" id="103"
                  sequence="1"
                  description="Code identifying the type of packaging; Part 1: Packaging Form, Part 2: Packaging Material; if the Data Element is used, then Part 1 is always required"
                  type="AN" required="O"
                  minLength="3" maxLength="5"
                  xmlTag="packagingCode"/>
                <dataElement name="Lading Quantity" id="80"
                  sequence="2"
                  description="Number of units (pieces) of the lading commodity"
                  type="N0" required="X"
                  minLength="1" maxLength="7"
                  xmlTag="ladingQuantity"/>
                <dataElement name="Commodity Code Qualifier" id="23"
                  sequence="3"
                  description="Code identifying the commodity coding system used for Commodity Code"
                  type="ID" required="O"
                  minLength="1" maxLength="1"
                  xmlTag="commodityCodeQualifier"/>
                <dataElement name="Commodity Code" id="22"
                  sequence="4"
                  description="Code describing a commodity or group of commodities"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="commodityCode"/>
                <dataElement name="Lading Description" id="79"
                  sequence="5"
                  description="Description of an item as required for rating and billing purposes"
                  type="AN" required="O"
                  minLength="1" maxLength="50"
                  xmlTag="ladingDescription"/>
                <dataElement name="Weight Qualifier" id="187"
                  sequence="6"
                  description="Code defining the type of weight"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="weightQualifier"/>
                <dataElement name="Weight" id="81"
                  sequence="7"
                  description="Numeric value of weight"
                  type="R" required="X"
                  minLength="1" maxLength="10"
                  xmlTag="weight"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="8"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Volume" id="183"
                  sequence="9"
                  description="Value of volumetric measure"
                  type="R" required="X"
                  minLength="1" maxLength="8"
                  xmlTag="volume"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="10"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
            </segment>
            <segment name="Carrier Details (Routing Sequence/Transit Time)" id="TD5"
              description="To specify the carrier and sequence of routing and provide transit time information"
              sequence="250"
              occurs="12"
              required='O'
              xmlTag="CarrierDetailsRoutingSequenceTransitTime">
                <dataElement name="Routing Sequence Code" id="133"
                  sequence="1"
                  description="Code describing the relationship of a carrier to a specific shipment movement"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="routingSequenceCode"/>
                <dataElement name="Identification Code Qualifier" id="66"
                  sequence="2"
                  description="Code designating the system/method of code structure used for Identification Code (67)"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="identificationCodeQualifier"/>
                <dataElement name="Identification Code" id="67"
                  sequence="3"
                  description="Code identifying a party or other code"
                  type="AN" required="X"
                  minLength="2" maxLength="80"
                  xmlTag="identificationCode"/>
                <dataElement name="Transportation Method/Type Code" id="91"
                  sequence="4"
                  description="Code specifying the method or type of transportation for the shipment"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="transportationMethodTypeCode"/>
                <dataElement name="Routing" id="387"
                  sequence="5"
                  description="Free-form description of the routing or requested routing for shipment, or the originating carrier's identity"
                  type="AN" required="X"
                  minLength="1" maxLength="35"
                  xmlTag="routing"/>
                <dataElement name="Shipment/Order Status Code" id="368"
                  sequence="6"
                  description="Code indicating the status of an order or shipment or the disposition of any difference between the quantity ordered and the quantity shipped for a line item or transaction"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="shipmentOrderStatusCode"/>
                <dataElement name="Location Qualifier" id="309"
                  sequence="7"
                  description="Code identifying type of location"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="locationQualifier"/>
                <dataElement name="Location Identifier" id="310"
                  sequence="8"
                  description="Code which identifies a specific location"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="locationIdentifier"/>
                <dataElement name="Transit Direction Code" id="731"
                  sequence="9"
                  description="The point of origin and point of direction"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="transitDirectionCode"/>
                <dataElement name="Transit Time Direction Qualifier" id="732"
                  sequence="10"
                  description="Code specifying the value of time used to measure the transit time"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="transitTimeDirectionQualifier"/>
                <dataElement name="Transit Time" id="733"
                  sequence="11"
                  description="The numeric amount of transit time"
                  type="R" required="X"
                  minLength="1" maxLength="4"
                  xmlTag="transitTime"/>
                <dataElement name="Service Level Code" id="284"
                  sequence="12"
                  description="Code indicating the level of transportation service or the billing service offered by the transportation carrier"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="serviceLevelCode"/>
                <dataElement name="Service Level Code" id="284"
                  sequence="13"
                  description="Code indicating the level of transportation service or the billing service offered by the transportation carrier"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="serviceLevelCode"/>
                <dataElement name="Service Level Code" id="284"
                  sequence="14"
                  description="Code indicating the level of transportation service or the billing service offered by the transportation carrier"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="serviceLevelCode"/>
                <dataElement name="Country Code" id="26"
                  sequence="15"
                  description="Code identifying the country"
                  type="ID" required="O"
                  minLength="2" maxLength="3"
                  xmlTag="countryCode"/>
            </segment>
            <segment name="Carrier Details (Equipment)" id="TD3"
              description="To specify transportation details relating to the equipment used by the carrier"
              sequence="260"
              occurs="12"
              required='O'
              xmlTag="CarrierDetailsEquipment">
                <dataElement name="Equipment Description Code" id="40"
                  sequence="1"
                  description="Code identifying type of equipment used for shipment"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="equipmentDescriptionCode"/>
                <dataElement name="Equipment Initial" id="206"
                  sequence="2"
                  description="Prefix or alphabetic part of an equipment unit's identifying number"
                  type="AN" required="O"
                  minLength="1" maxLength="4"
                  xmlTag="equipmentInitial"/>
                <dataElement name="Equipment Number" id="207"
                  sequence="3"
                  description="Sequencing or serial part of an equipment unit's identifying number (pure numeric form for equipment number is preferred)"
                  type="AN" required="X"
                  minLength="1" maxLength="10"
                  xmlTag="equipmentNumber"/>
                <dataElement name="Weight Qualifier" id="187"
                  sequence="4"
                  description="Code defining the type of weight"
                  type="ID" required="O"
                  minLength="1" maxLength="2"
                  xmlTag="weightQualifier"/>
                <dataElement name="Weight" id="81"
                  sequence="5"
                  description="Numeric value of weight"
                  type="R" required="X"
                  minLength="1" maxLength="10"
                  xmlTag="weight"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="6"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Ownership Code" id="102"
                  sequence="7"
                  description="Code indicating the relationship of equipment to carrier or ownership of equipment"
                  type="ID" required="O"
                  minLength="1" maxLength="1"
                  xmlTag="ownershipCode"/>
                <dataElement name="Seal Status Code" id="407"
                  sequence="8"
                  description="Code indicating condition of door seal upon arrival"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="sealStatusCode"/>
                <dataElement name="Seal Number" id="225"
                  sequence="9"
                  description="Unique number on seal used to close a shipment"
                  type="AN" required="O"
                  minLength="2" maxLength="15"
                  xmlTag="sealNumber"/>
                <dataElement name="Equipment Type" id="24"
                  sequence="10"
                  description="Code identifying equipment type"
                  type="ID" required="X"
                  minLength="4" maxLength="4"
                  xmlTag="equipmentType"/>
            </segment>
            <segment name="Carrier Details (Special Handling, or Hazardous Materials, or Both)" id="TD4"
              description="To specify transportation special handling requirements, or hazardous materials information, or both"
              sequence="270"
              occurs="5"
              required='O'
              xmlTag="CarrierDetailsSpecialHandlingOrHazardousMaterialsOrBoth">
                <dataElement name="Special Handling Code" id="152"
                  sequence="1"
                  description="Code specifying special transportation handling instructions"
                  type="ID" required="X"
                  minLength="2" maxLength="3"
                  xmlTag="specialHandlingCode"/>
                <dataElement name="Hazardous Material Code Qualifier" id="208"
                  sequence="2"
                  description="Code which qualifies the Hazardous Material Class Code (209)"
                  type="ID" required="X"
                  minLength="1" maxLength="1"
                  xmlTag="hazardousMaterialCodeQualifier"/>
                <dataElement name="Hazardous Material Class Code" id="209"
                  sequence="3"
                  description="Code specifying the kind of hazard for a material"
                  type="AN" required="X"
                  minLength="1" maxLength="4"
                  xmlTag="hazardousMaterialClassCode"/>
                <dataElement name="Description" id="352"
                  sequence="4"
                  description="A free-form description to clarify the related data elements and their content"
                  type="AN" required="X"
                  minLength="1" maxLength="80"
                  xmlTag="description"/>
                <dataElement name="Yes/No Condition or Response Code" id="1073"
                  sequence="5"
                  description="Code indicating a Yes or No condition or response"
                  type="ID" required="O"
                  minLength="1" maxLength="1"
                  xmlTag="yesNoConditionOrResponseCode"/>
            </segment>
            <segment name="Marks and Numbers" id="MAN"
              description="To indicate identifying marks and numbers for shipping containers"
              sequence="280"
              occurs="10"
              required='O'
              xmlTag="MarksAndNumbers">
                <dataElement name="Marks and Numbers Qualifier" id="88"
                  sequence="1"
                  description="Code specifying the application or source of Marks and Numbers (87)"
                  type="ID" required="M"
                  minLength="1" maxLength="2"
                  xmlTag="marksAndNumbersQualifier"/>
                <dataElement name="Marks and Numbers" id="87"
                  sequence="2"
                  description="Marks and numbers used to identify a shipment or parts of a shipment"
                  type="AN" required="M"
                  minLength="1" maxLength="48"
                  xmlTag="marksAndNumbers"/>
                <dataElement name="Marks and Numbers" id="87"
                  sequence="3"
                  description="Marks and numbers used to identify a shipment or parts of a shipment"
                  type="AN" required="O"
                  minLength="1" maxLength="48"
                  xmlTag="marksAndNumbers"/>
                <dataElement name="Marks and Numbers Qualifier" id="88"
                  sequence="4"
                  description="Code specifying the application or source of Marks and Numbers (87)"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="marksAndNumbersQualifier"/>
                <dataElement name="Marks and Numbers" id="87"
                  sequence="5"
                  description="Marks and numbers used to identify a shipment or parts of a shipment"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="marksAndNumbers"/>
                <dataElement name="Marks and Numbers" id="87"
                  sequence="6"
                  description="Marks and numbers used to identify a shipment or parts of a shipment"
                  type="AN" required="O"
                  minLength="1" maxLength="48"
                  xmlTag="marksAndNumbers"/>
            </segment>
            <segment name="Required Response" id="RRA"
              description="To indicate information that is required to be included in the response"
              sequence="290"
              occurs="25"
              required='O'
              xmlTag="RequiredResponse">
                <dataElement name="Information Type" id="701"
                  sequence="1"
                  description="Code specifying the information required in the response"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="informationType"/>
                <dataElement name="Reference Identification" id="127"
                  sequence="2"
                  description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                  type="AN" required="O"
                  minLength="1" maxLength="30"
                  xmlTag="referenceIdentification"/>
            </segment>
            <segment name="Message Text" id="MSG"
              description="To provide a free-form format that allows the transmission of text information"
              sequence="292"
              occurs="1000"
              required='O'
              xmlTag="MessageText">
                <dataElement name="Free-Form Message Text" id="933"
                  sequence="1"
                  description="Free-form message text"
                  type="AN" required="M"
                  minLength="1" maxLength="264"
                  xmlTag="freeFormMessageText"/>
                <dataElement name="Printer Carriage Control Code" id="934"
                  sequence="2"
                  description="A field to be used for the control of the line feed of the receiving printer"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="printerCarriageControlCode"/>
                <dataElement name="Number" id="1470"
                  sequence="3"
                  description="A generic number"
                  type="N0" required="O"
                  minLength="1" maxLength="9"
                  xmlTag="number"/>
            </segment>
            <segment name="Specification Identifier" id="SPI"
              description="To provide a description of the included specification or technical data items"
              sequence="293"
              occurs="-1"
              required='O'
              xmlTag="SpecificationIdentifier">
                <dataElement name="Security Level Code" id="786"
                  sequence="1"
                  description="Code indicating the level of confidentiality assigned by the sender to the information following"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="securityLevelCode"/>
                <dataElement name="Reference Identification Qualifier" id="128"
                  sequence="2"
                  description="Code qualifying the Reference Identification"
                  type="ID" required="X"
                  minLength="2" maxLength="3"
                  xmlTag="referenceIdentificationQualifier"/>
                <dataElement name="Reference Identification" id="127"
                  sequence="3"
                  description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="referenceIdentification"/>
                <dataElement name="Entity Title" id="790"
                  sequence="4"
                  description="Title of the data entity"
                  type="AN" required="O"
                  minLength="1" maxLength="132"
                  xmlTag="entityTitle"/>
                <dataElement name="Entity Purpose" id="791"
                  sequence="5"
                  description="The reason for the existence of the data item specified by the electronic data item independent of its presence in an EDI transaction"
                  type="AN" required="O"
                  minLength="1" maxLength="80"
                  xmlTag="entityPurpose"/>
                <dataElement name="Entity Status Code" id="792"
                  sequence="6"
                  description="Code indicating the current status of the data item specified by the electronic data item"
                  type="ID" required="O"
                  minLength="1" maxLength="1"
                  xmlTag="entityStatusCode"/>
                <dataElement name="Transaction Set Purpose Code" id="353"
                  sequence="7"
                  description="Code identifying purpose of transaction set"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="transactionSetPurposeCode"/>
                <dataElement name="Report Type Code" id="755"
                  sequence="8"
                  description="Code indicating the title or contents of a document, report or supporting item"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="reportTypeCode"/>
                <dataElement name="Security Level Code" id="786"
                  sequence="9"
                  description="Code indicating the level of confidentiality assigned by the sender to the information following"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="securityLevelCode"/>
                <dataElement name="Agency Qualifier Code" id="559"
                  sequence="10"
                  description="Code identifying the agency assigning the code values"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="agencyQualifierCode"/>
                <dataElement name="Source Subqualifier" id="822"
                  sequence="11"
                  description="A reference that indicates the table or text maintained by the Source Qualifier"
                  type="AN" required="O"
                  minLength="1" maxLength="15"
                  xmlTag="sourceSubqualifier"/>
                <dataElement name="Assigned Number" id="554"
                  sequence="12"
                  description="Number assigned for differentiation within a transaction set"
                  type="N0" required="O"
                  minLength="1" maxLength="6"
                  xmlTag="assignedNumber"/>
                <dataElement name="Certification Type Code" id="1322"
                  sequence="13"
                  description="Code indicating the type of certification"
                  type="ID" required="O"
                  minLength="1" maxLength="1"
                  xmlTag="certificationTypeCode"/>
                <dataElement name="Proposal Data Detail Identifier Code" id="1401"
                  sequence="14"
                  description="Code identifying the basis of a cited value in a proposal"
                  type="ID" required="O"
                  minLength="1" maxLength="3"
                  xmlTag="proposalDataDetailIdentifierCode"/>
                <dataElement name="Hierarchical Structure Code" id="1005"
                  sequence="15"
                  description="Code indicating the hierarchical application structure of a transaction set that utilizes the HL segment to define the structure of the transaction set"
                  type="ID" required="O"
                  minLength="4" maxLength="4"
                  xmlTag="hierarchicalStructureCode"/>
            </segment>
            <segment name="Quantity" id="QTY"
              occurs="-1"
              sequence="294"
              required='O'
              description="To specify quantity information"
              xmlTag="Quantity">
                <dataElement name="Quantity Qualifier" id="673"
                  sequence="1"
                  description="Code specifying the type of quantity"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="quantityQualifier"/>
                <dataElement name="Quantity" id="380"
                  sequence="2"
                  description="Numeric value of quantity"
                  type="R" required="X"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <compositeDE name="Composite Unit of Measure" id="C001"
                  sequence="3"
                  xmlTag="compositeUnitOfMeasure">
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="1"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="2"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="3"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="4"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="5"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="6"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="7"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="8"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="9"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="10"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="11"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="12"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="13"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="14"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="15"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                </compositeDE>
                <dataElement name="Free-Form Message" id="61"
                  sequence="4"
                  description="Free-form information"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="freeFormMessage"/>
                <segment name="Service Characteristic Identification" id="SI"
                  description="To specify service characteristic data"
                  sequence="295"
                  occurs="-1"
                  required='O'
                  xmlTag="ServiceCharacteristicIdentification">
                    <dataElement name="Agency Qualifier Code" id="559"
                      sequence="1"
                      description="Code identifying the agency assigning the code values"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="agencyQualifierCode"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="2"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="3"
                      description="Identifying number for a product or service"
                      type="AN" required="M"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="4"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="5"
                      description="Identifying number for a product or service"
                      type="AN" required="X"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="6"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="7"
                      description="Identifying number for a product or service"
                      type="AN" required="X"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="8"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="9"
                      description="Identifying number for a product or service"
                      type="AN" required="X"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="10"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="11"
                      description="Identifying number for a product or service"
                      type="AN" required="X"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="12"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="13"
                      description="Identifying number for a product or service"
                      type="AN" required="X"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="14"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="15"
                      description="Identifying number for a product or service"
                      type="AN" required="X"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="16"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="17"
                      description="Identifying number for a product or service"
                      type="AN" required="X"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="18"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="19"
                      description="Identifying number for a product or service"
                      type="AN" required="X"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="20"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="21"
                      description="Identifying number for a product or service"
                      type="AN" required="X"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                </segment>
            </segment>
            <segment name="Line Item Schedule" id="SCH"
              occurs="104"
              sequence="296"
              required='O'
              description="To specify the data for scheduling a specific line-item"
              xmlTag="LineItemSchedule">
                <dataElement name="Quantity" id="380"
                  sequence="1"
                  description="Numeric value of quantity"
                  type="R" required="M"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <dataElement name="Unit or Basis for Measurement Code" id="355"
                  sequence="2"
                  description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="unitOrBasisForMeasurementCode"/>
                <dataElement name="Entity Identifier Code" id="98"
                  sequence="3"
                  description="Code identifying an organizational entity, a physical location, property or an individual"
                  type="ID" required="O"
                  minLength="2" maxLength="3"
                  xmlTag="entityIdentifierCode"/>
                <dataElement name="Name" id="93"
                  sequence="4"
                  description="Free-form name"
                  type="AN" required="X"
                  minLength="1" maxLength="60"
                  xmlTag="name"/>
                <dataElement name="Date/Time Qualifier" id="374"
                  sequence="5"
                  description="Code specifying type of date or time, or both date and time"
                  type="ID" required="M"
                  minLength="3" maxLength="3"
                  xmlTag="dateTimeQualifier"/>
                <dataElement name="Date" id="373"
                  sequence="6"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="M"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Time" id="337"
                  sequence="7"
                  description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                  type="TM" required="O"
                  minLength="4" maxLength="8"
                  xmlTag="time"/>
                <dataElement name="Date/Time Qualifier" id="374"
                  sequence="8"
                  description="Code specifying type of date or time, or both date and time"
                  type="ID" required="X"
                  minLength="3" maxLength="3"
                  xmlTag="dateTimeQualifier"/>
                <dataElement name="Date" id="373"
                  sequence="9"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="X"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Time" id="337"
                  sequence="10"
                  description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                  type="TM" required="X"
                  minLength="4" maxLength="8"
                  xmlTag="time"/>
                <dataElement name="Request Reference Number" id="326"
                  sequence="11"
                  description="Reference number or RFQ number to use to identify a particular transaction set and query (additional reference number or description which can be used with contract number)"
                  type="AN" required="O"
                  minLength="1" maxLength="45"
                  xmlTag="requestReferenceNumber"/>
                <dataElement name="Assigned Identification" id="350"
                  sequence="12"
                  description="Alphanumeric characters assigned for differentiation within a transaction set"
                  type="AN" required="O"
                  minLength="1" maxLength="20"
                  xmlTag="assignedIdentification"/>
                <segment name="Carrier Details (Quantity and Weight)" id="TD1"
                  description="To specify the transportation details relative to commodity, weight, and quantity"
                  sequence="297"
                  occurs="2"
                  required='O'
                  xmlTag="CarrierDetailsQuantityAndWeight">
                    <dataElement name="Packaging Code" id="103"
                      sequence="1"
                      description="Code identifying the type of packaging; Part 1: Packaging Form, Part 2: Packaging Material; if the Data Element is used, then Part 1 is always required"
                      type="AN" required="O"
                      minLength="3" maxLength="5"
                      xmlTag="packagingCode"/>
                    <dataElement name="Lading Quantity" id="80"
                      sequence="2"
                      description="Number of units (pieces) of the lading commodity"
                      type="N0" required="X"
                      minLength="1" maxLength="7"
                      xmlTag="ladingQuantity"/>
                    <dataElement name="Commodity Code Qualifier" id="23"
                      sequence="3"
                      description="Code identifying the commodity coding system used for Commodity Code"
                      type="ID" required="O"
                      minLength="1" maxLength="1"
                      xmlTag="commodityCodeQualifier"/>
                    <dataElement name="Commodity Code" id="22"
                      sequence="4"
                      description="Code describing a commodity or group of commodities"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="commodityCode"/>
                    <dataElement name="Lading Description" id="79"
                      sequence="5"
                      description="Description of an item as required for rating and billing purposes"
                      type="AN" required="O"
                      minLength="1" maxLength="50"
                      xmlTag="ladingDescription"/>
                    <dataElement name="Weight Qualifier" id="187"
                      sequence="6"
                      description="Code defining the type of weight"
                      type="ID" required="O"
                      minLength="1" maxLength="2"
                      xmlTag="weightQualifier"/>
                    <dataElement name="Weight" id="81"
                      sequence="7"
                      description="Numeric value of weight"
                      type="R" required="X"
                      minLength="1" maxLength="10"
                      xmlTag="weight"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="8"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Volume" id="183"
                      sequence="9"
                      description="Value of volumetric measure"
                      type="R" required="X"
                      minLength="1" maxLength="8"
                      xmlTag="volume"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="10"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                </segment>
                <segment name="Carrier Details (Routing Sequence/Transit Time)" id="TD5"
                  description="To specify the carrier and sequence of routing and provide transit time information"
                  sequence="298"
                  occurs="12"
                  required='O'
                  xmlTag="CarrierDetailsRoutingSequenceTransitTime">
                    <dataElement name="Routing Sequence Code" id="133"
                      sequence="1"
                      description="Code describing the relationship of a carrier to a specific shipment movement"
                      type="ID" required="O"
                      minLength="1" maxLength="2"
                      xmlTag="routingSequenceCode"/>
                    <dataElement name="Identification Code Qualifier" id="66"
                      sequence="2"
                      description="Code designating the system/method of code structure used for Identification Code (67)"
                      type="ID" required="X"
                      minLength="1" maxLength="2"
                      xmlTag="identificationCodeQualifier"/>
                    <dataElement name="Identification Code" id="67"
                      sequence="3"
                      description="Code identifying a party or other code"
                      type="AN" required="X"
                      minLength="2" maxLength="80"
                      xmlTag="identificationCode"/>
                    <dataElement name="Transportation Method/Type Code" id="91"
                      sequence="4"
                      description="Code specifying the method or type of transportation for the shipment"
                      type="ID" required="X"
                      minLength="1" maxLength="2"
                      xmlTag="transportationMethodTypeCode"/>
                    <dataElement name="Routing" id="387"
                      sequence="5"
                      description="Free-form description of the routing or requested routing for shipment, or the originating carrier's identity"
                      type="AN" required="X"
                      minLength="1" maxLength="35"
                      xmlTag="routing"/>
                    <dataElement name="Shipment/Order Status Code" id="368"
                      sequence="6"
                      description="Code indicating the status of an order or shipment or the disposition of any difference between the quantity ordered and the quantity shipped for a line item or transaction"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="shipmentOrderStatusCode"/>
                    <dataElement name="Location Qualifier" id="309"
                      sequence="7"
                      description="Code identifying type of location"
                      type="ID" required="O"
                      minLength="1" maxLength="2"
                      xmlTag="locationQualifier"/>
                    <dataElement name="Location Identifier" id="310"
                      sequence="8"
                      description="Code which identifies a specific location"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="locationIdentifier"/>
                    <dataElement name="Transit Direction Code" id="731"
                      sequence="9"
                      description="The point of origin and point of direction"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="transitDirectionCode"/>
                    <dataElement name="Transit Time Direction Qualifier" id="732"
                      sequence="10"
                      description="Code specifying the value of time used to measure the transit time"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="transitTimeDirectionQualifier"/>
                    <dataElement name="Transit Time" id="733"
                      sequence="11"
                      description="The numeric amount of transit time"
                      type="R" required="X"
                      minLength="1" maxLength="4"
                      xmlTag="transitTime"/>
                    <dataElement name="Service Level Code" id="284"
                      sequence="12"
                      description="Code indicating the level of transportation service or the billing service offered by the transportation carrier"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceLevelCode"/>
                    <dataElement name="Service Level Code" id="284"
                      sequence="13"
                      description="Code indicating the level of transportation service or the billing service offered by the transportation carrier"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceLevelCode"/>
                    <dataElement name="Service Level Code" id="284"
                      sequence="14"
                      description="Code indicating the level of transportation service or the billing service offered by the transportation carrier"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="serviceLevelCode"/>
                    <dataElement name="Country Code" id="26"
                      sequence="15"
                      description="Code identifying the country"
                      type="ID" required="O"
                      minLength="2" maxLength="3"
                      xmlTag="countryCode"/>
                </segment>
                <segment name="Carrier Details (Equipment)" id="TD3"
                  description="To specify transportation details relating to the equipment used by the carrier"
                  sequence="299"
                  occurs="12"
                  required='O'
                  xmlTag="CarrierDetailsEquipment">
                    <dataElement name="Equipment Description Code" id="40"
                      sequence="1"
                      description="Code identifying type of equipment used for shipment"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="equipmentDescriptionCode"/>
                    <dataElement name="Equipment Initial" id="206"
                      sequence="2"
                      description="Prefix or alphabetic part of an equipment unit's identifying number"
                      type="AN" required="O"
                      minLength="1" maxLength="4"
                      xmlTag="equipmentInitial"/>
                    <dataElement name="Equipment Number" id="207"
                      sequence="3"
                      description="Sequencing or serial part of an equipment unit's identifying number (pure numeric form for equipment number is preferred)"
                      type="AN" required="X"
                      minLength="1" maxLength="10"
                      xmlTag="equipmentNumber"/>
                    <dataElement name="Weight Qualifier" id="187"
                      sequence="4"
                      description="Code defining the type of weight"
                      type="ID" required="O"
                      minLength="1" maxLength="2"
                      xmlTag="weightQualifier"/>
                    <dataElement name="Weight" id="81"
                      sequence="5"
                      description="Numeric value of weight"
                      type="R" required="X"
                      minLength="1" maxLength="10"
                      xmlTag="weight"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="6"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Ownership Code" id="102"
                      sequence="7"
                      description="Code indicating the relationship of equipment to carrier or ownership of equipment"
                      type="ID" required="O"
                      minLength="1" maxLength="1"
                      xmlTag="ownershipCode"/>
                    <dataElement name="Seal Status Code" id="407"
                      sequence="8"
                      description="Code indicating condition of door seal upon arrival"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="sealStatusCode"/>
                    <dataElement name="Seal Number" id="225"
                      sequence="9"
                      description="Unique number on seal used to close a shipment"
                      type="AN" required="O"
                      minLength="2" maxLength="15"
                      xmlTag="sealNumber"/>
                    <dataElement name="Equipment Type" id="24"
                      sequence="10"
                      description="Code identifying equipment type"
                      type="ID" required="X"
                      minLength="4" maxLength="4"
                      xmlTag="equipmentType"/>
                </segment>
                <segment name="Carrier Details (Special Handling, or Hazardous Materials, or Both)" id="TD4"
                  description="To specify transportation special handling requirements, or hazardous materials information, or both"
                  sequence="300"
                  occurs="5"
                  required='O'
                  xmlTag="CarrierDetailsSpecialHandlingOrHazardousMaterialsOrBoth">
                    <dataElement name="Special Handling Code" id="152"
                      sequence="1"
                      description="Code specifying special transportation handling instructions"
                      type="ID" required="X"
                      minLength="2" maxLength="3"
                      xmlTag="specialHandlingCode"/>
                    <dataElement name="Hazardous Material Code Qualifier" id="208"
                      sequence="2"
                      description="Code which qualifies the Hazardous Material Class Code (209)"
                      type="ID" required="X"
                      minLength="1" maxLength="1"
                      xmlTag="hazardousMaterialCodeQualifier"/>
                    <dataElement name="Hazardous Material Class Code" id="209"
                      sequence="3"
                      description="Code specifying the kind of hazard for a material"
                      type="AN" required="X"
                      minLength="1" maxLength="4"
                      xmlTag="hazardousMaterialClassCode"/>
                    <dataElement name="Description" id="352"
                      sequence="4"
                      description="A free-form description to clarify the related data elements and their content"
                      type="AN" required="X"
                      minLength="1" maxLength="80"
                      xmlTag="description"/>
                    <dataElement name="Yes/No Condition or Response Code" id="1073"
                      sequence="5"
                      description="Code indicating a Yes or No condition or response"
                      type="ID" required="O"
                      minLength="1" maxLength="1"
                      xmlTag="yesNoConditionOrResponseCode"/>
                </segment>
                <segment name="Reference Identification" id="REF"
                  description="To specify identifying information"
                  sequence="301"
                  occurs="-1"
                  required='O'
                  xmlTag="ReferenceIdentification">
                    <dataElement name="Reference Identification Qualifier" id="128"
                      sequence="1"
                      description="Code qualifying the Reference Identification"
                      type="ID" required="M"
                      minLength="2" maxLength="3"
                      xmlTag="referenceIdentificationQualifier"/>
                    <dataElement name="Reference Identification" id="127"
                      sequence="2"
                      description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="referenceIdentification"/>
                    <dataElement name="Description" id="352"
                      sequence="3"
                      description="A free-form description to clarify the related data elements and their content"
                      type="AN" required="X"
                      minLength="1" maxLength="80"
                      xmlTag="description"/>
                    <compositeDE name="Reference Identifier" id="C040"
                      sequence="4"
                      xmlTag="referenceIdentifier">
                        <dataElement name="Reference Identification Qualifier" id="128"
                          sequence="1"
                          description="Code qualifying the Reference Identification"
                          type="ID" required="M"
                          minLength="2" maxLength="3"
                          xmlTag="referenceIdentificationQualifier"/>
                        <dataElement name="Reference Identification" id="127"
                          sequence="2"
                          description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                          type="AN" required="M"
                          minLength="1" maxLength="30"
                          xmlTag="referenceIdentification"/>
                        <dataElement name="Reference Identification Qualifier" id="128"
                          sequence="3"
                          description="Code qualifying the Reference Identification"
                          type="ID" required="X"
                          minLength="2" maxLength="3"
                          xmlTag="referenceIdentificationQualifier"/>
                        <dataElement name="Reference Identification" id="127"
                          sequence="4"
                          description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                          type="AN" required="X"
                          minLength="1" maxLength="30"
                          xmlTag="referenceIdentification"/>
                        <dataElement name="Reference Identification Qualifier" id="128"
                          sequence="5"
                          description="Code qualifying the Reference Identification"
                          type="ID" required="X"
                          minLength="2" maxLength="3"
                          xmlTag="referenceIdentificationQualifier"/>
                        <dataElement name="Reference Identification" id="127"
                          sequence="6"
                          description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                          type="AN" required="X"
                          minLength="1" maxLength="30"
                          xmlTag="referenceIdentification"/>
                    </compositeDE>
                </segment>
            </segment>
            <segment name="Lead Time" id="LDT"
              occurs="-1"
              sequence="302"
              required='O'
              description="To specify lead time for availability of products and services"
              xmlTag="LeadTime">
                <dataElement name="Lead Time Code" id="345"
                  sequence="1"
                  description="Code indicating the time range"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="leadTimeCode"/>
                <dataElement name="Quantity" id="380"
                  sequence="2"
                  description="Numeric value of quantity"
                  type="R" required="M"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <dataElement name="Unit of Time Period or Interval" id="344"
                  sequence="3"
                  description="Code indicating the time period or interval"
                  type="ID" required="M"
                  minLength="2" maxLength="2"
                  xmlTag="unitOfTimePeriodOrInterval"/>
                <dataElement name="Date" id="373"
                  sequence="4"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="O"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <segment name="Quantity" id="QTY"
                  description="To specify quantity information"
                  sequence="303"
                  occurs="-1"
                  required='O'
                  xmlTag="Quantity">
                    <dataElement name="Quantity Qualifier" id="673"
                      sequence="1"
                      description="Code specifying the type of quantity"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="quantityQualifier"/>
                    <dataElement name="Quantity" id="380"
                      sequence="2"
                      description="Numeric value of quantity"
                      type="R" required="X"
                      minLength="1" maxLength="15"
                      xmlTag="quantity"/>
                    <compositeDE name="Composite Unit of Measure" id="C001"
                      sequence="3"
                      xmlTag="compositeUnitOfMeasure">
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="1"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="M"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="2"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="3"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="4"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="5"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="6"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="7"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="8"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="9"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="10"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="11"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="12"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="13"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="14"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="15"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                    </compositeDE>
                    <dataElement name="Free-Form Message" id="61"
                      sequence="4"
                      description="Free-form information"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="freeFormMessage"/>
                </segment>
                <segment name="Message Text" id="MSG"
                  description="To provide a free-form format that allows the transmission of text information"
                  sequence="304"
                  occurs="1"
                  required='O'
                  xmlTag="MessageText">
                    <dataElement name="Free-Form Message Text" id="933"
                      sequence="1"
                      description="Free-form message text"
                      type="AN" required="M"
                      minLength="1" maxLength="264"
                      xmlTag="freeFormMessageText"/>
                    <dataElement name="Printer Carriage Control Code" id="934"
                      sequence="2"
                      description="A field to be used for the control of the line feed of the receiving printer"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="printerCarriageControlCode"/>
                    <dataElement name="Number" id="1470"
                      sequence="3"
                      description="A generic number"
                      type="N0" required="O"
                      minLength="1" maxLength="9"
                      xmlTag="number"/>
                </segment>
                <segment name="Code Source Information" id="LM"
                  occurs="1"
                  sequence="305"
                  required='O'
                  description="To transmit standard code list identification information"
                  xmlTag="CodeSourceInformation">
                    <dataElement name="Agency Qualifier Code" id="559"
                      sequence="1"
                      description="Code identifying the agency assigning the code values"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="agencyQualifierCode"/>
                    <dataElement name="Source Subqualifier" id="822"
                      sequence="2"
                      description="A reference that indicates the table or text maintained by the Source Qualifier"
                      type="AN" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="sourceSubqualifier"/>
                    <segment name="Industry Code" id="LQ"
                      description="Code to transmit standard industry codes"
                      sequence="306"
                      occurs="1"
                      required='M'
                      xmlTag="IndustryCode">
                        <dataElement name="Code List Qualifier Code" id="1270"
                          sequence="1"
                          description="Code identifying a specific industry code list"
                          type="ID" required="O"
                          minLength="1" maxLength="3"
                          xmlTag="codeListQualifierCode"/>
                        <dataElement name="Industry Code" id="1271"
                          sequence="2"
                          description="Code indicating a code from a specific industry code list"
                          type="AN" required="X"
                          minLength="1" maxLength="30"
                          xmlTag="industryCode"/>
                    </segment>
                </segment>
            </segment>
            <segment name="Subline Item Detail" id="SLN"
              occurs="1000"
              sequence="308"
              required='O'
              description="To specify product subline detail item data"
              xmlTag="SublineItemDetail">
                <dataElement name="Assigned Identification" id="350"
                  sequence="1"
                  description="Alphanumeric characters assigned for differentiation within a transaction set"
                  type="AN" required="M"
                  minLength="1" maxLength="20"
                  xmlTag="assignedIdentification"/>
                <dataElement name="Assigned Identification" id="350"
                  sequence="2"
                  description="Alphanumeric characters assigned for differentiation within a transaction set"
                  type="AN" required="O"
                  minLength="1" maxLength="20"
                  xmlTag="assignedIdentification"/>
                <dataElement name="Relationship Code" id="662"
                  sequence="3"
                  description="Code indicating the relationship between entities"
                  type="ID" required="M"
                  minLength="1" maxLength="1"
                  xmlTag="relationshipCode"/>
                <dataElement name="Quantity" id="380"
                  sequence="4"
                  description="Numeric value of quantity"
                  type="R" required="X"
                  minLength="1" maxLength="15"
                  xmlTag="quantity"/>
                <compositeDE name="Composite Unit of Measure" id="C001"
                  sequence="5"
                  xmlTag="compositeUnitOfMeasure">
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="1"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="2"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="3"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="4"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="5"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="6"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="7"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="8"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="9"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="10"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="11"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="12"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="13"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Exponent" id="1018"
                      sequence="14"
                      description="Power to which a unit is raised"
                      type="R" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="exponent"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="15"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                </compositeDE>
                <dataElement name="Unit Price" id="212"
                  sequence="6"
                  description="Price per unit of product, service, commodity, etc."
                  type="R" required="X"
                  minLength="1" maxLength="17"
                  xmlTag="unitPrice"/>
                <dataElement name="Basis of Unit Price Code" id="639"
                  sequence="7"
                  description="Code identifying the type of unit price for an item"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="basisOfUnitPriceCode"/>
                <dataElement name="Relationship Code" id="662"
                  sequence="8"
                  description="Code indicating the relationship between entities"
                  type="ID" required="O"
                  minLength="1" maxLength="1"
                  xmlTag="relationshipCode"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="9"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="10"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="11"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="12"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="13"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="14"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="15"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="16"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="17"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="18"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="19"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="20"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="21"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="22"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="23"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="24"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="25"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="26"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <dataElement name="Product/Service ID Qualifier" id="235"
                  sequence="27"
                  description="Code identifying the type/source of the descriptive number used in Product/Service ID (234)"
                  type="ID" required="X"
                  minLength="2" maxLength="2"
                  xmlTag="productServiceIdQualifier"/>
                <dataElement name="Product/Service ID" id="234"
                  sequence="28"
                  description="Identifying number for a product or service"
                  type="AN" required="X"
                  minLength="1" maxLength="48"
                  xmlTag="productServiceId"/>
                <segment name="Message Text" id="MSG"
                  description="To provide a free-form format that allows the transmission of text information"
                  sequence="309"
                  occurs="-1"
                  required='O'
                  xmlTag="MessageText">
                    <dataElement name="Free-Form Message Text" id="933"
                      sequence="1"
                      description="Free-form message text"
                      type="AN" required="M"
                      minLength="1" maxLength="264"
                      xmlTag="freeFormMessageText"/>
                    <dataElement name="Printer Carriage Control Code" id="934"
                      sequence="2"
                      description="A field to be used for the control of the line feed of the receiving printer"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="printerCarriageControlCode"/>
                    <dataElement name="Number" id="1470"
                      sequence="3"
                      description="A generic number"
                      type="N0" required="O"
                      minLength="1" maxLength="9"
                      xmlTag="number"/>
                </segment>
                <segment name="Product/Item Description" id="PID"
                  description="To describe a product or process in coded or free-form format"
                  sequence="310"
                  occurs="1000"
                  required='O'
                  xmlTag="ProductItemDescription">
                    <dataElement name="Item Description Type" id="349"
                      sequence="1"
                      description="Code indicating the format of a description"
                      type="ID" required="M"
                      minLength="1" maxLength="1"
                      xmlTag="itemDescriptionType"/>
                    <dataElement name="Product/Process Characteristic Code" id="750"
                      sequence="2"
                      description="Code identifying the general class of a product or process characteristic"
                      type="ID" required="O"
                      minLength="2" maxLength="3"
                      xmlTag="productProcessCharacteristicCode"/>
                    <dataElement name="Agency Qualifier Code" id="559"
                      sequence="3"
                      description="Code identifying the agency assigning the code values"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="agencyQualifierCode"/>
                    <dataElement name="Product Description Code" id="751"
                      sequence="4"
                      description="A code from an industry code list which provides specific data about a product characteristic"
                      type="AN" required="X"
                      minLength="1" maxLength="12"
                      xmlTag="productDescriptionCode"/>
                    <dataElement name="Description" id="352"
                      sequence="5"
                      description="A free-form description to clarify the related data elements and their content"
                      type="AN" required="X"
                      minLength="1" maxLength="80"
                      xmlTag="description"/>
                    <dataElement name="Surface/Layer/Position Code" id="752"
                      sequence="6"
                      description="Code indicating the product surface, layer or position that is being described"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="surfaceLayerPositionCode"/>
                    <dataElement name="Source Subqualifier" id="822"
                      sequence="7"
                      description="A reference that indicates the table or text maintained by the Source Qualifier"
                      type="AN" required="O"
                      minLength="1" maxLength="15"
                      xmlTag="sourceSubqualifier"/>
                    <dataElement name="Yes/No Condition or Response Code" id="1073"
                      sequence="8"
                      description="Code indicating a Yes or No condition or response"
                      type="ID" required="O"
                      minLength="1" maxLength="1"
                      xmlTag="yesNoConditionOrResponseCode"/>
                    <dataElement name="Language Code" id="819"
                      sequence="9"
                      description="Code designating the language used in text, from a standard code list maintained by the International Standards Organization (ISO 639)"
                      type="ID" required="O"
                      minLength="2" maxLength="3"
                      xmlTag="languageCode"/>
                </segment>
                <segment name="Advertising Demographic Information" id="ADV"
                  description="To convey advertising demographic information"
                  sequence="315"
                  occurs="-1"
                  required='O'
                  xmlTag="AdvertisingDemographicInformation">
                    <dataElement name="Agency Qualifier Code" id="559"
                      sequence="1"
                      description="Code identifying the agency assigning the code values"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="agencyQualifierCode"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="2"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Range Minimum" id="740"
                      sequence="3"
                      description="The value specifying the minimum of the measurement range"
                      type="R" required="O"
                      minLength="1" maxLength="20"
                      xmlTag="rangeMinimum"/>
                    <dataElement name="Range Maximum" id="741"
                      sequence="4"
                      description="The value specifying the maximum of the measurement range"
                      type="R" required="O"
                      minLength="1" maxLength="20"
                      xmlTag="rangeMaximum"/>
                    <dataElement name="Category" id="729"
                      sequence="5"
                      description="An alphanumeric identifier to represent the category to which the item belongs"
                      type="AN" required="O"
                      minLength="1" maxLength="6"
                      xmlTag="category"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="6"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Measurement Value" id="739"
                      sequence="7"
                      description="The value of the measurement"
                      type="R" required="X"
                      minLength="1" maxLength="20"
                      xmlTag="measurementValue"/>
                </segment>
                <segment name="Quantity" id="QTY"
                  occurs="-1"
                  sequence="316"
                  required='O'
                  description="To specify quantity information"
                  xmlTag="Quantity">
                    <dataElement name="Quantity Qualifier" id="673"
                      sequence="1"
                      description="Code specifying the type of quantity"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="quantityQualifier"/>
                    <dataElement name="Quantity" id="380"
                      sequence="2"
                      description="Numeric value of quantity"
                      type="R" required="X"
                      minLength="1" maxLength="15"
                      xmlTag="quantity"/>
                    <compositeDE name="Composite Unit of Measure" id="C001"
                      sequence="3"
                      xmlTag="compositeUnitOfMeasure">
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="1"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="M"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="2"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="3"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="4"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="5"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="6"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="7"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="8"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="9"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="10"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="11"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="12"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="13"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="14"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="15"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                    </compositeDE>
                    <dataElement name="Free-Form Message" id="61"
                      sequence="4"
                      description="Free-form information"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="freeFormMessage"/>
                    <segment name="Service Characteristic Identification" id="SI"
                      description="To specify service characteristic data"
                      sequence="317"
                      occurs="-1"
                      required='O'
                      xmlTag="ServiceCharacteristicIdentification">
                        <dataElement name="Agency Qualifier Code" id="559"
                          sequence="1"
                          description="Code identifying the agency assigning the code values"
                          type="ID" required="M"
                          minLength="2" maxLength="2"
                          xmlTag="agencyQualifierCode"/>
                        <dataElement name="Service Characteristics Qualifier" id="1000"
                          sequence="2"
                          description="Code from an industry code list qualifying the type of service characteristics"
                          type="AN" required="M"
                          minLength="2" maxLength="2"
                          xmlTag="serviceCharacteristicsQualifier"/>
                        <dataElement name="Product/Service ID" id="234"
                          sequence="3"
                          description="Identifying number for a product or service"
                          type="AN" required="M"
                          minLength="1" maxLength="48"
                          xmlTag="productServiceId"/>
                        <dataElement name="Service Characteristics Qualifier" id="1000"
                          sequence="4"
                          description="Code from an industry code list qualifying the type of service characteristics"
                          type="AN" required="X"
                          minLength="2" maxLength="2"
                          xmlTag="serviceCharacteristicsQualifier"/>
                        <dataElement name="Product/Service ID" id="234"
                          sequence="5"
                          description="Identifying number for a product or service"
                          type="AN" required="X"
                          minLength="1" maxLength="48"
                          xmlTag="productServiceId"/>
                        <dataElement name="Service Characteristics Qualifier" id="1000"
                          sequence="6"
                          description="Code from an industry code list qualifying the type of service characteristics"
                          type="AN" required="X"
                          minLength="2" maxLength="2"
                          xmlTag="serviceCharacteristicsQualifier"/>
                        <dataElement name="Product/Service ID" id="234"
                          sequence="7"
                          description="Identifying number for a product or service"
                          type="AN" required="X"
                          minLength="1" maxLength="48"
                          xmlTag="productServiceId"/>
                        <dataElement name="Service Characteristics Qualifier" id="1000"
                          sequence="8"
                          description="Code from an industry code list qualifying the type of service characteristics"
                          type="AN" required="X"
                          minLength="2" maxLength="2"
                          xmlTag="serviceCharacteristicsQualifier"/>
                        <dataElement name="Product/Service ID" id="234"
                          sequence="9"
                          description="Identifying number for a product or service"
                          type="AN" required="X"
                          minLength="1" maxLength="48"
                          xmlTag="productServiceId"/>
                        <dataElement name="Service Characteristics Qualifier" id="1000"
                          sequence="10"
                          description="Code from an industry code list qualifying the type of service characteristics"
                          type="AN" required="X"
                          minLength="2" maxLength="2"
                          xmlTag="serviceCharacteristicsQualifier"/>
                        <dataElement name="Product/Service ID" id="234"
                          sequence="11"
                          description="Identifying number for a product or service"
                          type="AN" required="X"
                          minLength="1" maxLength="48"
                          xmlTag="productServiceId"/>
                        <dataElement name="Service Characteristics Qualifier" id="1000"
                          sequence="12"
                          description="Code from an industry code list qualifying the type of service characteristics"
                          type="AN" required="X"
                          minLength="2" maxLength="2"
                          xmlTag="serviceCharacteristicsQualifier"/>
                        <dataElement name="Product/Service ID" id="234"
                          sequence="13"
                          description="Identifying number for a product or service"
                          type="AN" required="X"
                          minLength="1" maxLength="48"
                          xmlTag="productServiceId"/>
                        <dataElement name="Service Characteristics Qualifier" id="1000"
                          sequence="14"
                          description="Code from an industry code list qualifying the type of service characteristics"
                          type="AN" required="X"
                          minLength="2" maxLength="2"
                          xmlTag="serviceCharacteristicsQualifier"/>
                        <dataElement name="Product/Service ID" id="234"
                          sequence="15"
                          description="Identifying number for a product or service"
                          type="AN" required="X"
                          minLength="1" maxLength="48"
                          xmlTag="productServiceId"/>
                        <dataElement name="Service Characteristics Qualifier" id="1000"
                          sequence="16"
                          description="Code from an industry code list qualifying the type of service characteristics"
                          type="AN" required="X"
                          minLength="2" maxLength="2"
                          xmlTag="serviceCharacteristicsQualifier"/>
                        <dataElement name="Product/Service ID" id="234"
                          sequence="17"
                          description="Identifying number for a product or service"
                          type="AN" required="X"
                          minLength="1" maxLength="48"
                          xmlTag="productServiceId"/>
                        <dataElement name="Service Characteristics Qualifier" id="1000"
                          sequence="18"
                          description="Code from an industry code list qualifying the type of service characteristics"
                          type="AN" required="X"
                          minLength="2" maxLength="2"
                          xmlTag="serviceCharacteristicsQualifier"/>
                        <dataElement name="Product/Service ID" id="234"
                          sequence="19"
                          description="Identifying number for a product or service"
                          type="AN" required="X"
                          minLength="1" maxLength="48"
                          xmlTag="productServiceId"/>
                        <dataElement name="Service Characteristics Qualifier" id="1000"
                          sequence="20"
                          description="Code from an industry code list qualifying the type of service characteristics"
                          type="AN" required="X"
                          minLength="2" maxLength="2"
                          xmlTag="serviceCharacteristicsQualifier"/>
                        <dataElement name="Product/Service ID" id="234"
                          sequence="21"
                          description="Identifying number for a product or service"
                          type="AN" required="X"
                          minLength="1" maxLength="48"
                          xmlTag="productServiceId"/>
                    </segment>
                </segment>
            </segment>
            <segment name="Identification Reference" id="N9"
              occurs="1000"
              sequence="320"
              required='O'
              description="To transmit identifying information as specified by the Reference Identification Qualifier"
              xmlTag="IdentificationReference">
                <dataElement name="Reference Identification Qualifier" id="128"
                  sequence="1"
                  description="Code qualifying the Reference Identification"
                  type="ID" required="M"
                  minLength="2" maxLength="3"
                  xmlTag="referenceIdentificationQualifier"/>
                <dataElement name="Reference Identification" id="127"
                  sequence="2"
                  description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                  type="AN" required="X"
                  minLength="1" maxLength="30"
                  xmlTag="referenceIdentification"/>
                <dataElement name="Free-form Description" id="369"
                  sequence="3"
                  description="Free-form descriptive text"
                  type="AN" required="X"
                  minLength="1" maxLength="45"
                  xmlTag="freeFormDescription"/>
                <dataElement name="Date" id="373"
                  sequence="4"
                  description="Date expressed as CCYYMMDD"
                  type="DT" required="O"
                  minLength="8" maxLength="8"
                  xmlTag="date"/>
                <dataElement name="Time" id="337"
                  sequence="5"
                  description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                  type="TM" required="X"
                  minLength="4" maxLength="8"
                  xmlTag="time"/>
                <dataElement name="Time Code" id="623"
                  sequence="6"
                  description="Code identifying the time. In accordance with International Standards Organization standard 8601, time can be specified by a + or - and an indication in hours in relation to Universal Time Coordinate (UTC) time; since + is a restricted character, + and - are substituted by P and M in the codes that follow"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="timeCode"/>
                <compositeDE name="Reference Identifier" id="C040"
                  sequence="7"
                  xmlTag="referenceIdentifier">
                    <dataElement name="Reference Identification Qualifier" id="128"
                      sequence="1"
                      description="Code qualifying the Reference Identification"
                      type="ID" required="M"
                      minLength="2" maxLength="3"
                      xmlTag="referenceIdentificationQualifier"/>
                    <dataElement name="Reference Identification" id="127"
                      sequence="2"
                      description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                      type="AN" required="M"
                      minLength="1" maxLength="30"
                      xmlTag="referenceIdentification"/>
                    <dataElement name="Reference Identification Qualifier" id="128"
                      sequence="3"
                      description="Code qualifying the Reference Identification"
                      type="ID" required="X"
                      minLength="2" maxLength="3"
                      xmlTag="referenceIdentificationQualifier"/>
                    <dataElement name="Reference Identification" id="127"
                      sequence="4"
                      description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="referenceIdentification"/>
                    <dataElement name="Reference Identification Qualifier" id="128"
                      sequence="5"
                      description="Code qualifying the Reference Identification"
                      type="ID" required="X"
                      minLength="2" maxLength="3"
                      xmlTag="referenceIdentificationQualifier"/>
                    <dataElement name="Reference Identification" id="127"
                      sequence="6"
                      description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="referenceIdentification"/>
                </compositeDE>
                <segment name="Date/Time Reference" id="DTM"
                  description="To specify pertinent dates and times"
                  sequence="325"
                  occurs="-1"
                  required='O'
                  xmlTag="DateTimeReference">
                    <dataElement name="Date/Time Qualifier" id="374"
                      sequence="1"
                      description="Code specifying type of date or time, or both date and time"
                      type="ID" required="M"
                      minLength="3" maxLength="3"
                      xmlTag="dateTimeQualifier"/>
                    <dataElement name="Date" id="373"
                      sequence="2"
                      description="Date expressed as CCYYMMDD"
                      type="DT" required="X"
                      minLength="8" maxLength="8"
                      xmlTag="date"/>
                    <dataElement name="Time" id="337"
                      sequence="3"
                      description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                      type="TM" required="X"
                      minLength="4" maxLength="8"
                      xmlTag="time"/>
                    <dataElement name="Time Code" id="623"
                      sequence="4"
                      description="Code identifying the time. In accordance with International Standards Organization standard 8601, time can be specified by a + or - and an indication in hours in relation to Universal Time Coordinate (UTC) time; since + is a restricted character, + and - are substituted by P and M in the codes that follow"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="timeCode"/>
                    <dataElement name="Date Time Period Format Qualifier" id="1250"
                      sequence="5"
                      description="Code indicating the date format, time format, or date and time format"
                      type="ID" required="X"
                      minLength="2" maxLength="3"
                      xmlTag="dateTimePeriodFormatQualifier"/>
                    <dataElement name="Date Time Period" id="1251"
                      sequence="6"
                      description="Expression of a date, a time, or range of dates, times or dates and times"
                      type="AN" required="X"
                      minLength="1" maxLength="35"
                      xmlTag="dateTimePeriod"/>
                </segment>
                <segment name="Message Text" id="MSG"
                  description="To provide a free-form format that allows the transmission of text information"
                  sequence="330"
                  occurs="1000"
                  required='O'
                  xmlTag="MessageText">
                    <dataElement name="Free-Form Message Text" id="933"
                      sequence="1"
                      description="Free-form message text"
                      type="AN" required="M"
                      minLength="1" maxLength="264"
                      xmlTag="freeFormMessageText"/>
                    <dataElement name="Printer Carriage Control Code" id="934"
                      sequence="2"
                      description="A field to be used for the control of the line feed of the receiving printer"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="printerCarriageControlCode"/>
                    <dataElement name="Number" id="1470"
                      sequence="3"
                      description="A generic number"
                      type="N0" required="O"
                      minLength="1" maxLength="9"
                      xmlTag="number"/>
                </segment>
            </segment>
            <segment name="Name" id="N1"
              occurs="-1"
              sequence="340"
              required='O'
              description="To identify a party by type of organization, name, and code"
              xmlTag="Name">
                <dataElement name="Entity Identifier Code" id="98"
                  sequence="1"
                  description="Code identifying an organizational entity, a physical location, property or an individual"
                  type="ID" required="M"
                  minLength="2" maxLength="3"
                  xmlTag="entityIdentifierCode"/>
                <dataElement name="Name" id="93"
                  sequence="2"
                  description="Free-form name"
                  type="AN" required="X"
                  minLength="1" maxLength="60"
                  xmlTag="name"/>
                <dataElement name="Identification Code Qualifier" id="66"
                  sequence="3"
                  description="Code designating the system/method of code structure used for Identification Code (67)"
                  type="ID" required="X"
                  minLength="1" maxLength="2"
                  xmlTag="identificationCodeQualifier"/>
                <dataElement name="Identification Code" id="67"
                  sequence="4"
                  description="Code identifying a party or other code"
                  type="AN" required="X"
                  minLength="2" maxLength="80"
                  xmlTag="identificationCode"/>
                <dataElement name="Entity Relationship Code" id="706"
                  sequence="5"
                  description="Code describing entity relationship"
                  type="ID" required="O"
                  minLength="2" maxLength="2"
                  xmlTag="entityRelationshipCode"/>
                <dataElement name="Entity Identifier Code" id="98"
                  sequence="6"
                  description="Code identifying an organizational entity, a physical location, property or an individual"
                  type="ID" required="O"
                  minLength="2" maxLength="3"
                  xmlTag="entityIdentifierCode"/>
                <segment name="Additional Name Information" id="N2"
                  description="To specify additional names or those longer than 35 characters in length"
                  sequence="350"
                  occurs="2"
                  required='O'
                  xmlTag="AdditionalNameInformation">
                    <dataElement name="Name" id="93"
                      sequence="1"
                      description="Free-form name"
                      type="AN" required="M"
                      minLength="1" maxLength="60"
                      xmlTag="name"/>
                    <dataElement name="Name" id="93"
                      sequence="2"
                      description="Free-form name"
                      type="AN" required="O"
                      minLength="1" maxLength="60"
                      xmlTag="name"/>
                </segment>
                <segment name="Address Information" id="N3"
                  description="To specify the location of the named party"
                  sequence="360"
                  occurs="2"
                  required='O'
                  xmlTag="AddressInformation">
                    <dataElement name="Address Information" id="166"
                      sequence="1"
                      description="Address information"
                      type="AN" required="M"
                      minLength="1" maxLength="55"
                      xmlTag="addressInformation"/>
                    <dataElement name="Address Information" id="166"
                      sequence="2"
                      description="Address information"
                      type="AN" required="O"
                      minLength="1" maxLength="55"
                      xmlTag="addressInformation"/>
                </segment>
                <segment name="Geographic Location" id="N4"
                  description="To specify the geographic place of the named party"
                  sequence="370"
                  occurs="1"
                  required='O'
                  xmlTag="GeographicLocation">
                    <dataElement name="City Name" id="19"
                      sequence="1"
                      description="Free-form text for city name"
                      type="AN" required="O"
                      minLength="2" maxLength="30"
                      xmlTag="cityName"/>
                    <dataElement name="State or Province Code" id="156"
                      sequence="2"
                      description="Code (Standard State/Province) as defined by appropriate government agency"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="stateOrProvinceCode"/>
                    <dataElement name="Postal Code" id="116"
                      sequence="3"
                      description="Code defining international postal zone code excluding punctuation and blanks (zip code for United States)"
                      type="ID" required="O"
                      minLength="3" maxLength="15"
                      xmlTag="postalCode"/>
                    <dataElement name="Country Code" id="26"
                      sequence="4"
                      description="Code identifying the country"
                      type="ID" required="O"
                      minLength="2" maxLength="3"
                      xmlTag="countryCode"/>
                    <dataElement name="Location Qualifier" id="309"
                      sequence="5"
                      description="Code identifying type of location"
                      type="ID" required="X"
                      minLength="1" maxLength="2"
                      xmlTag="locationQualifier"/>
                    <dataElement name="Location Identifier" id="310"
                      sequence="6"
                      description="Code which identifies a specific location"
                      type="AN" required="O"
                      minLength="1" maxLength="30"
                      xmlTag="locationIdentifier"/>
                </segment>
                <segment name="Quantity" id="QTY"
                  description="To specify quantity information"
                  sequence="375"
                  occurs="-1"
                  required='O'
                  xmlTag="Quantity">
                    <dataElement name="Quantity Qualifier" id="673"
                      sequence="1"
                      description="Code specifying the type of quantity"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="quantityQualifier"/>
                    <dataElement name="Quantity" id="380"
                      sequence="2"
                      description="Numeric value of quantity"
                      type="R" required="X"
                      minLength="1" maxLength="15"
                      xmlTag="quantity"/>
                    <compositeDE name="Composite Unit of Measure" id="C001"
                      sequence="3"
                      xmlTag="compositeUnitOfMeasure">
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="1"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="M"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="2"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="3"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="4"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="5"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="6"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="7"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="8"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="9"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="10"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="11"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="12"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="13"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="14"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="15"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                    </compositeDE>
                    <dataElement name="Free-Form Message" id="61"
                      sequence="4"
                      description="Free-form information"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="freeFormMessage"/>
                </segment>
                <segment name="Reference Identification" id="REF"
                  description="To specify identifying information"
                  sequence="380"
                  occurs="12"
                  required='O'
                  xmlTag="ReferenceIdentification">
                    <dataElement name="Reference Identification Qualifier" id="128"
                      sequence="1"
                      description="Code qualifying the Reference Identification"
                      type="ID" required="M"
                      minLength="2" maxLength="3"
                      xmlTag="referenceIdentificationQualifier"/>
                    <dataElement name="Reference Identification" id="127"
                      sequence="2"
                      description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="referenceIdentification"/>
                    <dataElement name="Description" id="352"
                      sequence="3"
                      description="A free-form description to clarify the related data elements and their content"
                      type="AN" required="X"
                      minLength="1" maxLength="80"
                      xmlTag="description"/>
                    <compositeDE name="Reference Identifier" id="C040"
                      sequence="4"
                      xmlTag="referenceIdentifier">
                        <dataElement name="Reference Identification Qualifier" id="128"
                          sequence="1"
                          description="Code qualifying the Reference Identification"
                          type="ID" required="M"
                          minLength="2" maxLength="3"
                          xmlTag="referenceIdentificationQualifier"/>
                        <dataElement name="Reference Identification" id="127"
                          sequence="2"
                          description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                          type="AN" required="M"
                          minLength="1" maxLength="30"
                          xmlTag="referenceIdentification"/>
                        <dataElement name="Reference Identification Qualifier" id="128"
                          sequence="3"
                          description="Code qualifying the Reference Identification"
                          type="ID" required="X"
                          minLength="2" maxLength="3"
                          xmlTag="referenceIdentificationQualifier"/>
                        <dataElement name="Reference Identification" id="127"
                          sequence="4"
                          description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                          type="AN" required="X"
                          minLength="1" maxLength="30"
                          xmlTag="referenceIdentification"/>
                        <dataElement name="Reference Identification Qualifier" id="128"
                          sequence="5"
                          description="Code qualifying the Reference Identification"
                          type="ID" required="X"
                          minLength="2" maxLength="3"
                          xmlTag="referenceIdentificationQualifier"/>
                        <dataElement name="Reference Identification" id="127"
                          sequence="6"
                          description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                          type="AN" required="X"
                          minLength="1" maxLength="30"
                          xmlTag="referenceIdentification"/>
                    </compositeDE>
                </segment>
                <segment name="Administrative Communications Contact" id="PER"
                  description="To identify a person or office to whom administrative communications should be directed"
                  sequence="390"
                  occurs="3"
                  required='O'
                  xmlTag="AdministrativeCommunicationsContact">
                    <dataElement name="Contact Function Code" id="366"
                      sequence="1"
                      description="Code identifying the major duty or responsibility of the person or group named"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="contactFunctionCode"/>
                    <dataElement name="Name" id="93"
                      sequence="2"
                      description="Free-form name"
                      type="AN" required="O"
                      minLength="1" maxLength="60"
                      xmlTag="name"/>
                    <dataElement name="Communication Number Qualifier" id="365"
                      sequence="3"
                      description="Code identifying the type of communication number"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="communicationNumberQualifier"/>
                    <dataElement name="Communication Number" id="364"
                      sequence="4"
                      description="Complete communications number including country or area code when applicable"
                      type="AN" required="X"
                      minLength="1" maxLength="80"
                      xmlTag="communicationNumber"/>
                    <dataElement name="Communication Number Qualifier" id="365"
                      sequence="5"
                      description="Code identifying the type of communication number"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="communicationNumberQualifier"/>
                    <dataElement name="Communication Number" id="364"
                      sequence="6"
                      description="Complete communications number including country or area code when applicable"
                      type="AN" required="X"
                      minLength="1" maxLength="80"
                      xmlTag="communicationNumber"/>
                    <dataElement name="Communication Number Qualifier" id="365"
                      sequence="7"
                      description="Code identifying the type of communication number"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="communicationNumberQualifier"/>
                    <dataElement name="Communication Number" id="364"
                      sequence="8"
                      description="Complete communications number including country or area code when applicable"
                      type="AN" required="X"
                      minLength="1" maxLength="80"
                      xmlTag="communicationNumber"/>
                    <dataElement name="Contact Inquiry Reference" id="443"
                      sequence="9"
                      description="Additional reference number or description to clarify a contact number"
                      type="AN" required="O"
                      minLength="1" maxLength="20"
                      xmlTag="contactInquiryReference"/>
                </segment>
                <segment name="Service Characteristic Identification" id="SI"
                  description="To specify service characteristic data"
                  sequence="395"
                  occurs="-1"
                  required='O'
                  xmlTag="ServiceCharacteristicIdentification">
                    <dataElement name="Agency Qualifier Code" id="559"
                      sequence="1"
                      description="Code identifying the agency assigning the code values"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="agencyQualifierCode"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="2"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="3"
                      description="Identifying number for a product or service"
                      type="AN" required="M"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="4"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="5"
                      description="Identifying number for a product or service"
                      type="AN" required="X"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="6"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="7"
                      description="Identifying number for a product or service"
                      type="AN" required="X"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="8"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="9"
                      description="Identifying number for a product or service"
                      type="AN" required="X"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="10"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="11"
                      description="Identifying number for a product or service"
                      type="AN" required="X"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="12"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="13"
                      description="Identifying number for a product or service"
                      type="AN" required="X"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="14"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="15"
                      description="Identifying number for a product or service"
                      type="AN" required="X"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="16"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="17"
                      description="Identifying number for a product or service"
                      type="AN" required="X"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="18"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="19"
                      description="Identifying number for a product or service"
                      type="AN" required="X"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                    <dataElement name="Service Characteristics Qualifier" id="1000"
                      sequence="20"
                      description="Code from an industry code list qualifying the type of service characteristics"
                      type="AN" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceCharacteristicsQualifier"/>
                    <dataElement name="Product/Service ID" id="234"
                      sequence="21"
                      description="Identifying number for a product or service"
                      type="AN" required="X"
                      minLength="1" maxLength="48"
                      xmlTag="productServiceId"/>
                </segment>
                <segment name="Date/Time Reference" id="DTM"
                  description="To specify pertinent dates and times"
                  sequence="396"
                  occurs="1"
                  required='O'
                  xmlTag="DateTimeReference">
                    <dataElement name="Date/Time Qualifier" id="374"
                      sequence="1"
                      description="Code specifying type of date or time, or both date and time"
                      type="ID" required="M"
                      minLength="3" maxLength="3"
                      xmlTag="dateTimeQualifier"/>
                    <dataElement name="Date" id="373"
                      sequence="2"
                      description="Date expressed as CCYYMMDD"
                      type="DT" required="X"
                      minLength="8" maxLength="8"
                      xmlTag="date"/>
                    <dataElement name="Time" id="337"
                      sequence="3"
                      description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                      type="TM" required="X"
                      minLength="4" maxLength="8"
                      xmlTag="time"/>
                    <dataElement name="Time Code" id="623"
                      sequence="4"
                      description="Code identifying the time. In accordance with International Standards Organization standard 8601, time can be specified by a + or - and an indication in hours in relation to Universal Time Coordinate (UTC) time; since + is a restricted character, + and - are substituted by P and M in the codes that follow"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="timeCode"/>
                    <dataElement name="Date Time Period Format Qualifier" id="1250"
                      sequence="5"
                      description="Code indicating the date format, time format, or date and time format"
                      type="ID" required="X"
                      minLength="2" maxLength="3"
                      xmlTag="dateTimePeriodFormatQualifier"/>
                    <dataElement name="Date Time Period" id="1251"
                      sequence="6"
                      description="Expression of a date, a time, or range of dates, times or dates and times"
                      type="AN" required="X"
                      minLength="1" maxLength="35"
                      xmlTag="dateTimePeriod"/>
                </segment>
                <segment name="F.O.B. Related Instructions" id="FOB"
                  description="To specify transportation instructions relating to shipment"
                  sequence="400"
                  occurs="1"
                  required='O'
                  xmlTag="FOBRelatedInstructions">
                    <dataElement name="Shipment Method of Payment" id="146"
                      sequence="1"
                      description="Code identifying payment terms for transportation charges"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="shipmentMethodOfPayment"/>
                    <dataElement name="Location Qualifier" id="309"
                      sequence="2"
                      description="Code identifying type of location"
                      type="ID" required="X"
                      minLength="1" maxLength="2"
                      xmlTag="locationQualifier"/>
                    <dataElement name="Description" id="352"
                      sequence="3"
                      description="A free-form description to clarify the related data elements and their content"
                      type="AN" required="O"
                      minLength="1" maxLength="80"
                      xmlTag="description"/>
                    <dataElement name="Transportation Terms Qualifier Code" id="334"
                      sequence="4"
                      description="Code identifying the source of the transportation terms"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="transportationTermsQualifierCode"/>
                    <dataElement name="Transportation Terms Code" id="335"
                      sequence="5"
                      description="Code identifying the trade terms which apply to the shipment transportation responsibility"
                      type="ID" required="X"
                      minLength="3" maxLength="3"
                      xmlTag="transportationTermsCode"/>
                    <dataElement name="Location Qualifier" id="309"
                      sequence="6"
                      description="Code identifying type of location"
                      type="ID" required="X"
                      minLength="1" maxLength="2"
                      xmlTag="locationQualifier"/>
                    <dataElement name="Description" id="352"
                      sequence="7"
                      description="A free-form description to clarify the related data elements and their content"
                      type="AN" required="O"
                      minLength="1" maxLength="80"
                      xmlTag="description"/>
                    <dataElement name="Risk of Loss Code" id="54"
                      sequence="8"
                      description="Code specifying where responsibility for risk of loss passes"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="riskOfLossCode"/>
                    <dataElement name="Description" id="352"
                      sequence="9"
                      description="A free-form description to clarify the related data elements and their content"
                      type="AN" required="X"
                      minLength="1" maxLength="80"
                      xmlTag="description"/>
                </segment>
                <segment name="Line Item Schedule" id="SCH"
                  description="To specify the data for scheduling a specific line-item"
                  sequence="405"
                  occurs="200"
                  required='O'
                  xmlTag="LineItemSchedule">
                    <dataElement name="Quantity" id="380"
                      sequence="1"
                      description="Numeric value of quantity"
                      type="R" required="M"
                      minLength="1" maxLength="15"
                      xmlTag="quantity"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="2"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Entity Identifier Code" id="98"
                      sequence="3"
                      description="Code identifying an organizational entity, a physical location, property or an individual"
                      type="ID" required="O"
                      minLength="2" maxLength="3"
                      xmlTag="entityIdentifierCode"/>
                    <dataElement name="Name" id="93"
                      sequence="4"
                      description="Free-form name"
                      type="AN" required="X"
                      minLength="1" maxLength="60"
                      xmlTag="name"/>
                    <dataElement name="Date/Time Qualifier" id="374"
                      sequence="5"
                      description="Code specifying type of date or time, or both date and time"
                      type="ID" required="M"
                      minLength="3" maxLength="3"
                      xmlTag="dateTimeQualifier"/>
                    <dataElement name="Date" id="373"
                      sequence="6"
                      description="Date expressed as CCYYMMDD"
                      type="DT" required="M"
                      minLength="8" maxLength="8"
                      xmlTag="date"/>
                    <dataElement name="Time" id="337"
                      sequence="7"
                      description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                      type="TM" required="O"
                      minLength="4" maxLength="8"
                      xmlTag="time"/>
                    <dataElement name="Date/Time Qualifier" id="374"
                      sequence="8"
                      description="Code specifying type of date or time, or both date and time"
                      type="ID" required="X"
                      minLength="3" maxLength="3"
                      xmlTag="dateTimeQualifier"/>
                    <dataElement name="Date" id="373"
                      sequence="9"
                      description="Date expressed as CCYYMMDD"
                      type="DT" required="X"
                      minLength="8" maxLength="8"
                      xmlTag="date"/>
                    <dataElement name="Time" id="337"
                      sequence="10"
                      description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                      type="TM" required="X"
                      minLength="4" maxLength="8"
                      xmlTag="time"/>
                    <dataElement name="Request Reference Number" id="326"
                      sequence="11"
                      description="Reference number or RFQ number to use to identify a particular transaction set and query (additional reference number or description which can be used with contract number)"
                      type="AN" required="O"
                      minLength="1" maxLength="45"
                      xmlTag="requestReferenceNumber"/>
                    <dataElement name="Assigned Identification" id="350"
                      sequence="12"
                      description="Alphanumeric characters assigned for differentiation within a transaction set"
                      type="AN" required="O"
                      minLength="1" maxLength="20"
                      xmlTag="assignedIdentification"/>
                </segment>
                <segment name="Carrier Details (Quantity and Weight)" id="TD1"
                  description="To specify the transportation details relative to commodity, weight, and quantity"
                  sequence="410"
                  occurs="2"
                  required='O'
                  xmlTag="CarrierDetailsQuantityAndWeight">
                    <dataElement name="Packaging Code" id="103"
                      sequence="1"
                      description="Code identifying the type of packaging; Part 1: Packaging Form, Part 2: Packaging Material; if the Data Element is used, then Part 1 is always required"
                      type="AN" required="O"
                      minLength="3" maxLength="5"
                      xmlTag="packagingCode"/>
                    <dataElement name="Lading Quantity" id="80"
                      sequence="2"
                      description="Number of units (pieces) of the lading commodity"
                      type="N0" required="X"
                      minLength="1" maxLength="7"
                      xmlTag="ladingQuantity"/>
                    <dataElement name="Commodity Code Qualifier" id="23"
                      sequence="3"
                      description="Code identifying the commodity coding system used for Commodity Code"
                      type="ID" required="O"
                      minLength="1" maxLength="1"
                      xmlTag="commodityCodeQualifier"/>
                    <dataElement name="Commodity Code" id="22"
                      sequence="4"
                      description="Code describing a commodity or group of commodities"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="commodityCode"/>
                    <dataElement name="Lading Description" id="79"
                      sequence="5"
                      description="Description of an item as required for rating and billing purposes"
                      type="AN" required="O"
                      minLength="1" maxLength="50"
                      xmlTag="ladingDescription"/>
                    <dataElement name="Weight Qualifier" id="187"
                      sequence="6"
                      description="Code defining the type of weight"
                      type="ID" required="O"
                      minLength="1" maxLength="2"
                      xmlTag="weightQualifier"/>
                    <dataElement name="Weight" id="81"
                      sequence="7"
                      description="Numeric value of weight"
                      type="R" required="X"
                      minLength="1" maxLength="10"
                      xmlTag="weight"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="8"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Volume" id="183"
                      sequence="9"
                      description="Value of volumetric measure"
                      type="R" required="X"
                      minLength="1" maxLength="8"
                      xmlTag="volume"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="10"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                </segment>
                <segment name="Carrier Details (Routing Sequence/Transit Time)" id="TD5"
                  description="To specify the carrier and sequence of routing and provide transit time information"
                  sequence="420"
                  occurs="12"
                  required='O'
                  xmlTag="CarrierDetailsRoutingSequenceTransitTime">
                    <dataElement name="Routing Sequence Code" id="133"
                      sequence="1"
                      description="Code describing the relationship of a carrier to a specific shipment movement"
                      type="ID" required="O"
                      minLength="1" maxLength="2"
                      xmlTag="routingSequenceCode"/>
                    <dataElement name="Identification Code Qualifier" id="66"
                      sequence="2"
                      description="Code designating the system/method of code structure used for Identification Code (67)"
                      type="ID" required="X"
                      minLength="1" maxLength="2"
                      xmlTag="identificationCodeQualifier"/>
                    <dataElement name="Identification Code" id="67"
                      sequence="3"
                      description="Code identifying a party or other code"
                      type="AN" required="X"
                      minLength="2" maxLength="80"
                      xmlTag="identificationCode"/>
                    <dataElement name="Transportation Method/Type Code" id="91"
                      sequence="4"
                      description="Code specifying the method or type of transportation for the shipment"
                      type="ID" required="X"
                      minLength="1" maxLength="2"
                      xmlTag="transportationMethodTypeCode"/>
                    <dataElement name="Routing" id="387"
                      sequence="5"
                      description="Free-form description of the routing or requested routing for shipment, or the originating carrier's identity"
                      type="AN" required="X"
                      minLength="1" maxLength="35"
                      xmlTag="routing"/>
                    <dataElement name="Shipment/Order Status Code" id="368"
                      sequence="6"
                      description="Code indicating the status of an order or shipment or the disposition of any difference between the quantity ordered and the quantity shipped for a line item or transaction"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="shipmentOrderStatusCode"/>
                    <dataElement name="Location Qualifier" id="309"
                      sequence="7"
                      description="Code identifying type of location"
                      type="ID" required="O"
                      minLength="1" maxLength="2"
                      xmlTag="locationQualifier"/>
                    <dataElement name="Location Identifier" id="310"
                      sequence="8"
                      description="Code which identifies a specific location"
                      type="AN" required="X"
                      minLength="1" maxLength="30"
                      xmlTag="locationIdentifier"/>
                    <dataElement name="Transit Direction Code" id="731"
                      sequence="9"
                      description="The point of origin and point of direction"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="transitDirectionCode"/>
                    <dataElement name="Transit Time Direction Qualifier" id="732"
                      sequence="10"
                      description="Code specifying the value of time used to measure the transit time"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="transitTimeDirectionQualifier"/>
                    <dataElement name="Transit Time" id="733"
                      sequence="11"
                      description="The numeric amount of transit time"
                      type="R" required="X"
                      minLength="1" maxLength="4"
                      xmlTag="transitTime"/>
                    <dataElement name="Service Level Code" id="284"
                      sequence="12"
                      description="Code indicating the level of transportation service or the billing service offered by the transportation carrier"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceLevelCode"/>
                    <dataElement name="Service Level Code" id="284"
                      sequence="13"
                      description="Code indicating the level of transportation service or the billing service offered by the transportation carrier"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="serviceLevelCode"/>
                    <dataElement name="Service Level Code" id="284"
                      sequence="14"
                      description="Code indicating the level of transportation service or the billing service offered by the transportation carrier"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="serviceLevelCode"/>
                    <dataElement name="Country Code" id="26"
                      sequence="15"
                      description="Code identifying the country"
                      type="ID" required="O"
                      minLength="2" maxLength="3"
                      xmlTag="countryCode"/>
                </segment>
                <segment name="Carrier Details (Equipment)" id="TD3"
                  description="To specify transportation details relating to the equipment used by the carrier"
                  sequence="430"
                  occurs="12"
                  required='O'
                  xmlTag="CarrierDetailsEquipment">
                    <dataElement name="Equipment Description Code" id="40"
                      sequence="1"
                      description="Code identifying type of equipment used for shipment"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="equipmentDescriptionCode"/>
                    <dataElement name="Equipment Initial" id="206"
                      sequence="2"
                      description="Prefix or alphabetic part of an equipment unit's identifying number"
                      type="AN" required="O"
                      minLength="1" maxLength="4"
                      xmlTag="equipmentInitial"/>
                    <dataElement name="Equipment Number" id="207"
                      sequence="3"
                      description="Sequencing or serial part of an equipment unit's identifying number (pure numeric form for equipment number is preferred)"
                      type="AN" required="X"
                      minLength="1" maxLength="10"
                      xmlTag="equipmentNumber"/>
                    <dataElement name="Weight Qualifier" id="187"
                      sequence="4"
                      description="Code defining the type of weight"
                      type="ID" required="O"
                      minLength="1" maxLength="2"
                      xmlTag="weightQualifier"/>
                    <dataElement name="Weight" id="81"
                      sequence="5"
                      description="Numeric value of weight"
                      type="R" required="X"
                      minLength="1" maxLength="10"
                      xmlTag="weight"/>
                    <dataElement name="Unit or Basis for Measurement Code" id="355"
                      sequence="6"
                      description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="unitOrBasisForMeasurementCode"/>
                    <dataElement name="Ownership Code" id="102"
                      sequence="7"
                      description="Code indicating the relationship of equipment to carrier or ownership of equipment"
                      type="ID" required="O"
                      minLength="1" maxLength="1"
                      xmlTag="ownershipCode"/>
                    <dataElement name="Seal Status Code" id="407"
                      sequence="8"
                      description="Code indicating condition of door seal upon arrival"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="sealStatusCode"/>
                    <dataElement name="Seal Number" id="225"
                      sequence="9"
                      description="Unique number on seal used to close a shipment"
                      type="AN" required="O"
                      minLength="2" maxLength="15"
                      xmlTag="sealNumber"/>
                    <dataElement name="Equipment Type" id="24"
                      sequence="10"
                      description="Code identifying equipment type"
                      type="ID" required="X"
                      minLength="4" maxLength="4"
                      xmlTag="equipmentType"/>
                </segment>
                <segment name="Carrier Details (Special Handling, or Hazardous Materials, or Both)" id="TD4"
                  description="To specify transportation special handling requirements, or hazardous materials information, or both"
                  sequence="440"
                  occurs="5"
                  required='O'
                  xmlTag="CarrierDetailsSpecialHandlingOrHazardousMaterialsOrBoth">
                    <dataElement name="Special Handling Code" id="152"
                      sequence="1"
                      description="Code specifying special transportation handling instructions"
                      type="ID" required="X"
                      minLength="2" maxLength="3"
                      xmlTag="specialHandlingCode"/>
                    <dataElement name="Hazardous Material Code Qualifier" id="208"
                      sequence="2"
                      description="Code which qualifies the Hazardous Material Class Code (209)"
                      type="ID" required="X"
                      minLength="1" maxLength="1"
                      xmlTag="hazardousMaterialCodeQualifier"/>
                    <dataElement name="Hazardous Material Class Code" id="209"
                      sequence="3"
                      description="Code specifying the kind of hazard for a material"
                      type="AN" required="X"
                      minLength="1" maxLength="4"
                      xmlTag="hazardousMaterialClassCode"/>
                    <dataElement name="Description" id="352"
                      sequence="4"
                      description="A free-form description to clarify the related data elements and their content"
                      type="AN" required="X"
                      minLength="1" maxLength="80"
                      xmlTag="description"/>
                    <dataElement name="Yes/No Condition or Response Code" id="1073"
                      sequence="5"
                      description="Code indicating a Yes or No condition or response"
                      type="ID" required="O"
                      minLength="1" maxLength="1"
                      xmlTag="yesNoConditionOrResponseCode"/>
                </segment>
                <segment name="Marking, Packaging, Loading" id="PKG"
                  description="To describe marking, packaging, loading, and unloading requirements"
                  sequence="450"
                  occurs="200"
                  required='O'
                  xmlTag="MarkingPackagingLoading">
                    <dataElement name="Item Description Type" id="349"
                      sequence="1"
                      description="Code indicating the format of a description"
                      type="ID" required="X"
                      minLength="1" maxLength="1"
                      xmlTag="itemDescriptionType"/>
                    <dataElement name="Packaging Characteristic Code" id="753"
                      sequence="2"
                      description="Code specifying the marking, packaging, loading and related characteristics being described"
                      type="ID" required="O"
                      minLength="1" maxLength="5"
                      xmlTag="packagingCharacteristicCode"/>
                    <dataElement name="Agency Qualifier Code" id="559"
                      sequence="3"
                      description="Code identifying the agency assigning the code values"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="agencyQualifierCode"/>
                    <dataElement name="Packaging Description Code" id="754"
                      sequence="4"
                      description="A code from an industry code list which provides specific data about the marking, packaging or loading and unloading of a product"
                      type="AN" required="X"
                      minLength="1" maxLength="7"
                      xmlTag="packagingDescriptionCode"/>
                    <dataElement name="Description" id="352"
                      sequence="5"
                      description="A free-form description to clarify the related data elements and their content"
                      type="AN" required="X"
                      minLength="1" maxLength="80"
                      xmlTag="description"/>
                    <dataElement name="Unit Load Option Code" id="400"
                      sequence="6"
                      description="Code identifying loading or unloading a shipment"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="unitLoadOptionCode"/>
                </segment>
                <segment name="Required Response" id="RRA"
                  description="To indicate information that is required to be included in the response"
                  sequence="460"
                  occurs="25"
                  required='O'
                  xmlTag="RequiredResponse">
                    <dataElement name="Information Type" id="701"
                      sequence="1"
                      description="Code specifying the information required in the response"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="informationType"/>
                    <dataElement name="Reference Identification" id="127"
                      sequence="2"
                      description="Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier"
                      type="AN" required="O"
                      minLength="1" maxLength="30"
                      xmlTag="referenceIdentification"/>
                </segment>
                <segment name="Pricing Information" id="CTP"
                  description="To specify pricing information"
                  sequence="465"
                  occurs="1"
                  required='O'
                  xmlTag="PricingInformation">
                    <dataElement name="Class of Trade Code" id="687"
                      sequence="1"
                      description="Code indicating class of trade"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="classOfTradeCode"/>
                    <dataElement name="Price Identifier Code" id="236"
                      sequence="2"
                      description="Code identifying pricing specification"
                      type="ID" required="X"
                      minLength="3" maxLength="3"
                      xmlTag="priceIdentifierCode"/>
                    <dataElement name="Unit Price" id="212"
                      sequence="3"
                      description="Price per unit of product, service, commodity, etc."
                      type="R" required="X"
                      minLength="1" maxLength="17"
                      xmlTag="unitPrice"/>
                    <dataElement name="Quantity" id="380"
                      sequence="4"
                      description="Numeric value of quantity"
                      type="R" required="X"
                      minLength="1" maxLength="15"
                      xmlTag="quantity"/>
                    <compositeDE name="Composite Unit of Measure" id="C001"
                      sequence="5"
                      xmlTag="compositeUnitOfMeasure">
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="1"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="M"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="2"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="3"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="4"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="5"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="6"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="7"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="8"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="9"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="10"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="11"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="12"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="13"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="14"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="15"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                    </compositeDE>
                    <dataElement name="Price Multiplier Qualifier" id="648"
                      sequence="6"
                      description="Code indicating the type of price multiplier"
                      type="ID" required="O"
                      minLength="3" maxLength="3"
                      xmlTag="priceMultiplierQualifier"/>
                    <dataElement name="Multiplier" id="649"
                      sequence="7"
                      description="Value to be used as a multiplier to obtain a new value"
                      type="R" required="X"
                      minLength="1" maxLength="10"
                      xmlTag="multiplier"/>
                    <dataElement name="Monetary Amount" id="782"
                      sequence="8"
                      description="Monetary amount"
                      type="R" required="O"
                      minLength="1" maxLength="18"
                      xmlTag="monetaryAmount"/>
                    <dataElement name="Basis of Unit Price Code" id="639"
                      sequence="9"
                      description="Code identifying the type of unit price for an item"
                      type="ID" required="O"
                      minLength="2" maxLength="2"
                      xmlTag="basisOfUnitPriceCode"/>
                    <dataElement name="Condition Value" id="499"
                      sequence="10"
                      description="Identifies rate restrictions or provisions"
                      type="AN" required="O"
                      minLength="1" maxLength="10"
                      xmlTag="conditionValue"/>
                    <dataElement name="Multiple Price Quantity" id="289"
                      sequence="11"
                      description="Quantity of units for a given price, e.g., 3 for $10.00"
                      type="N0" required="O"
                      minLength="1" maxLength="2"
                      xmlTag="multiplePriceQuantity"/>
                </segment>
                <segment name="Period Amount" id="PAM"
                  description="To indicate a quantity, and/or amount for an identified period"
                  sequence="469"
                  occurs="10"
                  required='O'
                  xmlTag="PeriodAmount">
                    <dataElement name="Quantity Qualifier" id="673"
                      sequence="1"
                      description="Code specifying the type of quantity"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="quantityQualifier"/>
                    <dataElement name="Quantity" id="380"
                      sequence="2"
                      description="Numeric value of quantity"
                      type="R" required="X"
                      minLength="1" maxLength="15"
                      xmlTag="quantity"/>
                    <compositeDE name="Composite Unit of Measure" id="C001"
                      sequence="3"
                      xmlTag="compositeUnitOfMeasure">
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="1"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="M"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="2"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="3"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="4"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="5"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="6"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="7"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="8"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="9"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="10"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="11"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="12"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                        <dataElement name="Unit or Basis for Measurement Code" id="355"
                          sequence="13"
                          description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                          type="ID" required="O"
                          minLength="2" maxLength="2"
                          xmlTag="unitOrBasisForMeasurementCode"/>
                        <dataElement name="Exponent" id="1018"
                          sequence="14"
                          description="Power to which a unit is raised"
                          type="R" required="O"
                          minLength="1" maxLength="15"
                          xmlTag="exponent"/>
                        <dataElement name="Multiplier" id="649"
                          sequence="15"
                          description="Value to be used as a multiplier to obtain a new value"
                          type="R" required="O"
                          minLength="1" maxLength="10"
                          xmlTag="multiplier"/>
                    </compositeDE>
                    <dataElement name="Amount Qualifier Code" id="522"
                      sequence="4"
                      description="Code to qualify amount"
                      type="ID" required="X"
                      minLength="1" maxLength="3"
                      xmlTag="amountQualifierCode"/>
                    <dataElement name="Monetary Amount" id="782"
                      sequence="5"
                      description="Monetary amount"
                      type="R" required="X"
                      minLength="1" maxLength="18"
                      xmlTag="monetaryAmount"/>
                    <dataElement name="Unit of Time Period or Interval" id="344"
                      sequence="6"
                      description="Code indicating the time period or interval"
                      type="ID" required="X"
                      minLength="2" maxLength="2"
                      xmlTag="unitOfTimePeriodOrInterval"/>
                    <dataElement name="Date/Time Qualifier" id="374"
                      sequence="7"
                      description="Code specifying type of date or time, or both date and time"
                      type="ID" required="X"
                      minLength="3" maxLength="3"
                      xmlTag="dateTimeQualifier"/>
                    <dataElement name="Date" id="373"
                      sequence="8"
                      description="Date expressed as CCYYMMDD"
                      type="DT" required="X"
                      minLength="8" maxLength="8"
                      xmlTag="date"/>
                    <dataElement name="Time" id="337"
                      sequence="9"
                      description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                      type="TM" required="X"
                      minLength="4" maxLength="8"
                      xmlTag="time"/>
                    <dataElement name="Date/Time Qualifier" id="374"
                      sequence="10"
                      description="Code specifying type of date or time, or both date and time"
                      type="ID" required="X"
                      minLength="3" maxLength="3"
                      xmlTag="dateTimeQualifier"/>
                    <dataElement name="Date" id="373"
                      sequence="11"
                      description="Date expressed as CCYYMMDD"
                      type="DT" required="X"
                      minLength="8" maxLength="8"
                      xmlTag="date"/>
                    <dataElement name="Time" id="337"
                      sequence="12"
                      description="Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
                      type="TM" required="X"
                      minLength="4" maxLength="8"
                      xmlTag="time"/>
                    <dataElement name="Percent Qualifier" id="1004"
                      sequence="13"
                      description="Code to qualify percent"
                      type="ID" required="X"
                      minLength="1" maxLength="2"
                      xmlTag="percentQualifier"/>
                    <dataElement name="Percent" id="954"
                      sequence="14"
                      description="Percentage expressed as a decimal"
                      type="R" required="X"
                      minLength="1" maxLength="10"
                      xmlTag="percent"/>
                    <dataElement name="Yes/No Condition or Response Code" id="1073"
                      sequence="15"
                      description="Code indicating a Yes or No condition or response"
                      type="ID" required="O"
                      minLength="1" maxLength="1"
                      xmlTag="yesNoConditionOrResponseCode"/>
                </segment>
                <segment name="Lead Time" id="LDT"
                  occurs="-1"
                  sequence="470"
                  required='O'
                  description="To specify lead time for availability of products and services"
                  xmlTag="LeadTime">
                    <dataElement name="Lead Time Code" id="345"
                      sequence="1"
                      description="Code indicating the time range"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="leadTimeCode"/>
                    <dataElement name="Quantity" id="380"
                      sequence="2"
                      description="Numeric value of quantity"
                      type="R" required="M"
                      minLength="1" maxLength="15"
                      xmlTag="quantity"/>
                    <dataElement name="Unit of Time Period or Interval" id="344"
                      sequence="3"
                      description="Code indicating the time period or interval"
                      type="ID" required="M"
                      minLength="2" maxLength="2"
                      xmlTag="unitOfTimePeriodOrInterval"/>
                    <dataElement name="Date" id="373"
                      sequence="4"
                      description="Date expressed as CCYYMMDD"
                      type="DT" required="O"
                      minLength="8" maxLength="8"
                      xmlTag="date"/>
                    <segment name="Marks and Numbers" id="MAN"
                      description="To indicate identifying marks and numbers for shipping containers"
                      sequence="480"
                      occurs="10"
                      required='O'
                      xmlTag="MarksAndNumbers">
                        <dataElement name="Marks and Numbers Qualifier" id="88"
                          sequence="1"
                          description="Code specifying the application or source of Marks and Numbers (87)"
                          type="ID" required="M"
                          minLength="1" maxLength="2"
                          xmlTag="marksAndNumbersQualifier"/>
                        <dataElement name="Marks and Numbers" id="87"
                          sequence="2"
                          description="Marks and numbers used to identify a shipment or parts of a shipment"
                          type="AN" required="M"
                          minLength="1" maxLength="48"
                          xmlTag="marksAndNumbers"/>
                        <dataElement name="Marks and Numbers" id="87"
                          sequence="3"
                          description="Marks and numbers used to identify a shipment or parts of a shipment"
                          type="AN" required="O"
                          minLength="1" maxLength="48"
                          xmlTag="marksAndNumbers"/>
                        <dataElement name="Marks and Numbers Qualifier" id="88"
                          sequence="4"
                          description="Code specifying the application or source of Marks and Numbers (87)"
                          type="ID" required="X"
                          minLength="1" maxLength="2"
                          xmlTag="marksAndNumbersQualifier"/>
                        <dataElement name="Marks and Numbers" id="87"
                          sequence="5"
                          description="Marks and numbers used to identify a shipment or parts of a shipment"
                          type="AN" required="X"
                          minLength="1" maxLength="48"
                          xmlTag="marksAndNumbers"/>
                        <dataElement name="Marks and Numbers" id="87"
                          sequence="6"
                          description="Marks and numbers used to identify a shipment or parts of a shipment"
                          type="AN" required="O"
                          minLength="1" maxLength="48"
                          xmlTag="marksAndNumbers"/>
                    </segment>
                    <segment name="Quantity" id="QTY"
                      description="To specify quantity information"
                      sequence="490"
                      occurs="5"
                      required='O'
                      xmlTag="Quantity">
                        <dataElement name="Quantity Qualifier" id="673"
                          sequence="1"
                          description="Code specifying the type of quantity"
                          type="ID" required="M"
                          minLength="2" maxLength="2"
                          xmlTag="quantityQualifier"/>
                        <dataElement name="Quantity" id="380"
                          sequence="2"
                          description="Numeric value of quantity"
                          type="R" required="X"
                          minLength="1" maxLength="15"
                          xmlTag="quantity"/>
                        <compositeDE name="Composite Unit of Measure" id="C001"
                          sequence="3"
                          xmlTag="compositeUnitOfMeasure">
                            <dataElement name="Unit or Basis for Measurement Code" id="355"
                              sequence="1"
                              description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                              type="ID" required="M"
                              minLength="2" maxLength="2"
                              xmlTag="unitOrBasisForMeasurementCode"/>
                            <dataElement name="Exponent" id="1018"
                              sequence="2"
                              description="Power to which a unit is raised"
                              type="R" required="O"
                              minLength="1" maxLength="15"
                              xmlTag="exponent"/>
                            <dataElement name="Multiplier" id="649"
                              sequence="3"
                              description="Value to be used as a multiplier to obtain a new value"
                              type="R" required="O"
                              minLength="1" maxLength="10"
                              xmlTag="multiplier"/>
                            <dataElement name="Unit or Basis for Measurement Code" id="355"
                              sequence="4"
                              description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                              type="ID" required="O"
                              minLength="2" maxLength="2"
                              xmlTag="unitOrBasisForMeasurementCode"/>
                            <dataElement name="Exponent" id="1018"
                              sequence="5"
                              description="Power to which a unit is raised"
                              type="R" required="O"
                              minLength="1" maxLength="15"
                              xmlTag="exponent"/>
                            <dataElement name="Multiplier" id="649"
                              sequence="6"
                              description="Value to be used as a multiplier to obtain a new value"
                              type="R" required="O"
                              minLength="1" maxLength="10"
                              xmlTag="multiplier"/>
                            <dataElement name="Unit or Basis for Measurement Code" id="355"
                              sequence="7"
                              description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                              type="ID" required="O"
                              minLength="2" maxLength="2"
                              xmlTag="unitOrBasisForMeasurementCode"/>
                            <dataElement name="Exponent" id="1018"
                              sequence="8"
                              description="Power to which a unit is raised"
                              type="R" required="O"
                              minLength="1" maxLength="15"
                              xmlTag="exponent"/>
                            <dataElement name="Multiplier" id="649"
                              sequence="9"
                              description="Value to be used as a multiplier to obtain a new value"
                              type="R" required="O"
                              minLength="1" maxLength="10"
                              xmlTag="multiplier"/>
                            <dataElement name="Unit or Basis for Measurement Code" id="355"
                              sequence="10"
                              description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                              type="ID" required="O"
                              minLength="2" maxLength="2"
                              xmlTag="unitOrBasisForMeasurementCode"/>
                            <dataElement name="Exponent" id="1018"
                              sequence="11"
                              description="Power to which a unit is raised"
                              type="R" required="O"
                              minLength="1" maxLength="15"
                              xmlTag="exponent"/>
                            <dataElement name="Multiplier" id="649"
                              sequence="12"
                              description="Value to be used as a multiplier to obtain a new value"
                              type="R" required="O"
                              minLength="1" maxLength="10"
                              xmlTag="multiplier"/>
                            <dataElement name="Unit or Basis for Measurement Code" id="355"
                              sequence="13"
                              description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
                              type="ID" required="O"
                              minLength="2" maxLength="2"
                              xmlTag="unitOrBasisForMeasurementCode"/>
                            <dataElement name="Exponent" id="1018"
                              sequence="14"
                              description="Power to which a unit is raised"
                              type="R" required="O"
                              minLength="1" maxLength="15"
                              xmlTag="exponent"/>
                            <dataElement name="Multiplier" id="649"
                              sequence="15"
                              description="Value to be used as a multiplier to obtain a new value"
                              type="R" required="O"
                              minLength="1" maxLength="10"
                              xmlTag="multiplier"/>
                        </compositeDE>
                        <dataElement name="Free-Form Message" id="61"
                          sequence="4"
                          description="Free-form information"
                          type="AN" required="X"
                          minLength="1" maxLength="30"
                          xmlTag="freeFormMessage"/>
                    </segment>
                    <segment name="Message Text" id="MSG"
                      description="To provide a free-form format that allows the transmission of text information"
                      sequence="500"
                      occurs="1000"
                      required='O'
                      xmlTag="MessageText">
                        <dataElement name="Free-Form Message Text" id="933"
                          sequence="1"
                          description="Free-form message text"
                          type="AN" required="M"
                          minLength="1" maxLength="264"
                          xmlTag="freeFormMessageText"/>
                        <dataElement name="Printer Carriage Control Code" id="934"
                          sequence="2"
                          description="A field to be used for the control of the line feed of the receiving printer"
                          type="ID" required="X"
                          minLength="2" maxLength="2"
                          xmlTag="printerCarriageControlCode"/>
                        <dataElement name="Number" id="1470"
                          sequence="3"
                          description="A generic number"
                          type="N0" required="O"
                          minLength="1" maxLength="9"
                          xmlTag="number"/>
                    </segment>
                </segment>
            </segment>
            <segment name="Percent Amounts" id="PCT"
              occurs="-1"
              sequence="510"
              required='O'
              description="To qualify percent amounts and supply percent amounts"
              xmlTag="PercentAmounts">
                <dataElement name="Percent Qualifier" id="1004"
                  sequence="1"
                  description="Code to qualify percent"
                  type="ID" required="M"
                  minLength="1" maxLength="2"
                  xmlTag="percentQualifier"/>
                <dataElement name="Percent" id="954"
                  sequence="2"
                  description="Percentage expressed as a decimal"
                  type="R" required="M"
                  minLength="1" maxLength="10"
                  xmlTag="percent"/>
                <segment name="Monetary Amount" id="AMT"
                  description="To indicate the total monetary amount"
                  sequence="520"
                  occurs="-1"
                  required='O'
                  xmlTag="MonetaryAmount">
                    <dataElement name="Amount Qualifier Code" id="522"
                      sequence="1"
                      description="Code to qualify amount"
                      type="ID" required="M"
                      minLength="1" maxLength="3"
                      xmlTag="amountQualifierCode"/>
                    <dataElement name="Monetary Amount" id="782"
                      sequence="2"
                      description="Monetary amount"
                      type="R" required="M"
                      minLength="1" maxLength="18"
                      xmlTag="monetaryAmount"/>
                    <dataElement name="Credit/Debit Flag Code" id="478"
                      sequence="3"
                      description="Code indicating whether amount is a credit or debit"
                      type="ID" required="O"
                      minLength="1" maxLength="1"
                      xmlTag="creditDebitFlagCode"/>
                </segment>
            </segment>
        </segment>
    </table>
    <table section="summary">
        <segment name="Transaction Totals" id="CTT"
          description="To transmit a hash total for a specific element in the transaction set"
          sequence="10"
          occurs="1"
          required='O'
          xmlTag="TransactionTotals">
            <dataElement name="Number of Line Items" id="354"
              sequence="1"
              description="Total number of line items in the transaction set"
              type="N0" required="M"
              minLength="1" maxLength="6"
              xmlTag="numberOfLineItems"/>
            <dataElement name="Hash Total" id="347"
              sequence="2"
              description="Sum of values of the specified data element. All values in the data element will be summed without regard to decimal points (explicit or implicit) or signs. Truncation will occur on the left most digits if the sum is greater than the maximum size of the hash total of the data element. Example: -.0018 First occurrence of value being hashed. .18 Second occurrence of value being hashed. 1.8 Third occurrence of value being hashed. 18.01 Fourth occurrence of value being hashed. --------- 1855 Hash total prior to truncation. 855 Hash total after truncation to three-digit field."
              type="R" required="O"
              minLength="1" maxLength="10"
              xmlTag="hashTotal"/>
            <dataElement name="Weight" id="81"
              sequence="3"
              description="Numeric value of weight"
              type="R" required="X"
              minLength="1" maxLength="10"
              xmlTag="weight"/>
            <dataElement name="Unit or Basis for Measurement Code" id="355"
              sequence="4"
              description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="unitOrBasisForMeasurementCode"/>
            <dataElement name="Volume" id="183"
              sequence="5"
              description="Value of volumetric measure"
              type="R" required="X"
              minLength="1" maxLength="8"
              xmlTag="volume"/>
            <dataElement name="Unit or Basis for Measurement Code" id="355"
              sequence="6"
              description="Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken"
              type="ID" required="X"
              minLength="2" maxLength="2"
              xmlTag="unitOrBasisForMeasurementCode"/>
            <dataElement name="Description" id="352"
              sequence="7"
              description="A free-form description to clarify the related data elements and their content"
              type="AN" required="O"
              minLength="1" maxLength="80"
              xmlTag="description"/>
        </segment>
        <segment name="Transaction Set Trailer" id="SE"
          description="To indicate the end of the transaction set and provide the count of the transmitted segments (including the beginning (ST) and ending (SE) segments)"
          sequence="20"
          occurs="1"
          required='M'
          xmlTag="TransactionSetTrailer">
            <dataElement name="Number of Included Segments" id="96"
              sequence="1"
              description="Total number of segments included in a transaction set including ST and SE segments"
              type="N0" required="M"
              minLength="1" maxLength="10"
              xmlTag="numberOfIncludedSegments"/>
            <dataElement name="Transaction Set Control Number" id="329"
              sequence="2"
              description="Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set"
              type="AN" required="M"
              minLength="4" maxLength="9"
              xmlTag="transactionSetControlNumber"/>
        </segment>
    </table>
</transactionSet>
Copyright 1999-2000 - American Coders, LTD Raleigh, NC USA