UNH Message header

To head, identify and specify a message.

Position
Element
Name
Type
Requirement
Min
Max
Repeat
010
Message reference number
String (AN)
Mandatory
1
14
1
Unique message reference assigned by the sender.
020
Message identifier
Composite (composite)
Mandatory
1
010
Message type
String (AN)
Mandatory
1
6
-
Code identifying a type of message and assigned by its controlling agency.
In UNSMs (United Nations Standard Messages), the representation is a6.
020
Message version number
String (AN)
Mandatory
1
3
-
Version number of a message type.
030
Message release number
String (AN)
Mandatory
1
3
-
Release number within the current message version number.
040
Controlling agency, coded
String (AN)
Mandatory
1
3
-
Code identifying a controlling agency.
050
Association assigned code
String (AN)
Conditional
1
6
-
Code, assigned by the association responsible for the design and maintenance of the message type concerned, which further identifies the message.
060
Code list directory version number
String (AN)
Conditional
1
6
-
Version number of the code list directory.
070
Message type sub-function identification
String (AN)
Conditional
1
6
-
Code identifying a sub-function of a message type.
The code qualifies the message type data element (0065) to allow the recipient to identify a specific sub-function of a message.
030
Common access reference
String (AN)
Conditional
1
35
1
Reference serving as a key to relate all subsequent transfers of data to the same business case or file.
040
Status of the transfer
Composite (composite)
Conditional
1
010
Sequence of transfers
Numeric (N)
Mandatory
1
2
-
Number assigned by the sender indicating the transfer sequence of a message related to the same topic. The message could be an addition or a change to an earlier transfer related to the same topic.
The first message in the sequence shall be assigned as number 1.
020
First and last transfer
A
Conditional
1
1
-
Indication used for the first and last message in a sequence of messages related to the same topic.
050
Message subset identification
Composite (composite)
Conditional
1
010
Message subset identification
String (AN)
Mandatory
1
14
-
Coded identification of a message subset, assigned by its controlling agency.
020
Message subset version number
String (AN)
Conditional
1
3
-
Version number of the message subset.
030
Message subset release number
String (AN)
Conditional
1
3
-
Release number within the message subset version number.
040
Controlling agency, coded
String (AN)
Conditional
1
3
-
Code identifying a controlling agency.
060
Message implementation guideline identification
Composite (composite)
Conditional
1
010
Message implementation guideline identification
String (AN)
Mandatory
1
14
-
Coded identification of the message implementation guideline, assigned by its controlling agency.
020
Message implementation guideline version number
String (AN)
Conditional
1
3
-
Version number of the message implementation guideline.
030
Message implementation guideline release number
String (AN)
Conditional
1
3
-
Release number within the message implementation guideline version number.
040
Controlling agency, coded
String (AN)
Conditional
1
3
-
Code identifying a controlling agency.
070
Scenario identification
Composite (composite)
Conditional
1
010
Scenario identification
String (AN)
Mandatory
1
14
-
Code identifying scenario.
020
Scenario version number
String (AN)
Conditional
1
3
-
Version number of a scenario.
030
Scenario release number
String (AN)
Conditional
1
3
-
Release number within the scenario version number.
040
Controlling agency, coded
String (AN)
Conditional
1
3
-
Code identifying a controlling agency.

Stedi is a registered trademark of Stedi, Inc. Stedi's EDI Reference is provided for marketing purposes and is free of charge. All names, logos, and brands of third parties listed on our site are trademarks of their respective owners (including “X12”, which is a trademark of X12 Incorporated). Stedi, Inc. and its products and services are not endorsed by, sponsored by, or affiliated with these third parties. Our use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.