HL7 - Laboratorie data

HL7-segmenter

MSH
PID
ORC
OBR
OBX

HL7 messages (OUTBOUND)

MSH - Message Header Segment

Name                        
Segment
Field
Fixed value
Description
Field Separator MSH
1
|
This field contains the separator between the segment ID and the first real field. As such it serves as the separator and defines the character to be used as a separator for the rest of the message. Recommended value is |, (ASCII 124).
Encoding characters
MSH 2 ^~\& This field contains the four characters in the following order: the component separator, repetition separator, escape character, and subcomponent separator. Recommended values are ^~\&
Sending application
MSH
3   This field uniquely identifies the sending application among all other applications within the network enterprise.
Sending Facility MSG
4
  This field contains the address of one of several occurrences of the same application within the sending system. In this context, it contains the name of the sending laboratory (e.g., "Vejle - KBA").
Receiving application
MSH
5
  This field uniquely identifies the receiving application among all other applications within the network enterprise. 
Receiving Facility MSH
6
  This field identifies the receiving application among multiple identical instances of the application running on behalf of different organizations
Date/time of message
MSH
7
  This field contains the date/time that the sending system created the message.
Event
MSH
9
  This field contains the message type (9.1) and trigger event (9.2) for the message
Message Control ID MSH
10
  This field contains a number or other identifier that uniquely identifies the message. The receiving system echoes this ID back to the sending system in the Message acknowledgment segment (MSA).
Processing ID MSH
11
  This field is used to decide whether the message is part of a production (P), training (T), or debugging system (D)
Version ID MSH
12
2.3.1
This field is matched by the receiving system to its own version to be sure the message will be interpreted correctly.
Accept acknowledgment type MSH 15   This field identifies the conditions under which accept acknowledgments are required to be re-turned in response to this message. Required for enhanced acknowledgment mode.
Application acknowledgment type MSH 16   This field contains the conditions under which application acknowledgments are required to be returned in response to this message. Required for enhanced acknowledgment mode.
Character Set MSH
18
  This field contains the character set for the entire message

Example

MSH|^~\&|BCC-lab|Vejle - KBA|CETREA-HI|Cetrea_HI|20111115220815||ORU^R01|BCC70504-15112011|P|2.3.1|||NE|AL||UNICODE UTF-8

PID - Patient Identification Segment

Name                        
Segment
Field
Fixed value
Description
Patient Identifier List PID 3   This field contains the primary patient identifier (CPR number).
Patient Name PID 5   This field contains the legal name of the patient: Family Name (5.1), Given Name (5.2), and Middel Intial or Name (5.3).
Date/Time of Birth PID 7   This field contains the patient’s date and time of birth (optional).
Sex PID 8   This field contains the patient’s sex.

Example

PID|||0504904865||Testperson, Mand J||20111115|M

ORC - Common Order Segment

Name                        
Segment
Field
Fixed value
Description
Filler Order Number ORC 3   This field contains the unique requisition number.
Order Status ORC 5   This field specifies the status of an order/requisition as a whole. Possible values are: IP (Bestilt, Rekvireret), SC (Prøven tages), A (Prøven er taget), CA (Rekvisition slettet) og CM (Rekvisition komplet).
Date/Time of transaction ORC 9   This field contains the date and time the current transaction enters the ordering application. For
messages creating new orders, this is the date and time the order was entered.

Example

ORC|||100000264843||CM||||20111115174400

OBR - Observation Request Segment

Name                        
Segment
Field
Fixed value
Description
Set ID OBR 1   For the first order transmitted, the sequence number shall be 1; for the second order, it shall be 2; and so on.
Placer Order Number OBR 2   This field contains the unique requisition number.
Universal Service ID OBR 4   This field contains the identifier code for the requested analysis. 4.1 specifies the identifier for the analysis (NPU), while 4.2 specifies the full name of the analysis.
Observation Date/Time OBR 7   Time stamp for the blood sample.
Result Status OBR 25   This field specifies the status of the individial analysis within the requisition. Possible values are: F (Svaret er godkendt og frigivet), R (Svaret er kvitteret af den kliniske bruger), S (Prøvetagning er i gang), P (Prøvetagning er sket), I (Prøve er i analyse), O (Prøve er rekvireret)
Procedure Code OBR 44   This field contains a unique identifier assigned to the procedure, if any.

Example
OBR|1|100000264843||NPU21558^Antitrombin (enz.; trombin);P|||20111115174400||||||||||||||||||F

OBX - Observation/result Segment

Name                        
Segment
Field
Fixed value
Description
Abnormal Flags OBX 8   This field contains a table lookup indicating the normalcy status of the result.
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.