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="