2 Patient Administration for Pathology

2 Patient Administration for Pathology

2.1 Message Control Segments 

The following segments are necessary to support the functionality described in this chapter.

If a value is the usual default for use in Australia it has been highlighted in blue.

Figure 2-1. HL7 message segments 

Segment Name

HL7 Section Reference

Segment Name

HL7 Section Reference

BHS

2.1.2

BTS

2.1.3

DSC 

2.1.4 

ERR

2.1.5

FHS 

2.1.6 

FTS 

2.1.7 

MSA 

2.1.8

MSH

2.1.9

2.1.2 BHS - batch header segment

The BHS segment defines the start of a batch.

 

HL7 Attribute Table - BHS – Batch Header

SEQ

LEN

DT

OPT

RP/#

TBL#

ITEM #

ELEMENT NAME

SEQ

LEN

DT

OPT

RP/#

TBL#

ITEM #

ELEMENT NAME

1

1

ST 

R

 

 

00081

Batch Field Separator

2

3

ST

R

 

 

00082

Batch Encoding Characters

3

15

ST

O

 

 

00083

Batch Sending Application

4

20

ST

O

 

 

00084

Batch Sending Facility

5

15

ST

O

 

 

00085

Batch Receiving Application

6

20

ST

O

 

 

00086

Batch Receiving Facility

7

26

TS

O

 

 

00087

Batch Creation Date/Time

8

40

ST

O

 

 

00088

Batch Security

9

20

ST

O

 

 

00089

Batch Name/ID/Type

10

80

ST

O

 

 

00090

Batch Comment

11

20

ST

O

 

 

00091

Batch Control ID

12 

20

ST 

 

 

00092 

Reference Batch Control ID 

2.1.2.0 BHS field definitions

2.1.2.1 BHS-1 Batch field separator (ST) 00081

Definition: This field contains the separator between the segment ID and the first real field, BHS-2-batch encoding characters. 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).

2.1.2.2 BHS-2 Batch encoding characters (ST) 00082

Definition: This field contains the four characters in the following order: the component separator, repetition separator, escape characters, and subcomponent separator. Australian values are ^~\& (ASCII 94,126, 92, and 38, respectively). 

2.1.2.3 BHS-3 Batch sending application (ST) 00083

Definition: This field uniquely identifies the sending application among all other applications within the network enterprise. The network enterprise consists of all those applications that participate in the exchange of HL7 messages within the enterprise. Entirely site-defined.

2.1.2.4 BHS-4 Batch sending facility (ST) 00084

Definition: This field contains the address of one of several occurrences of the same application within the sending system. Absent other considerations, the Medicare Provider ID might be used with an appropriate sub-identifier in the second component. Entirely user-defined.

2.1.2.5 BHS-5 Batch receiving application (ST) 00085

Definition: This field uniquely identifies the receiving applications among all other applications within the network enterprise. The network enterprise consists of all those applications that participate in the exchange of HL7 messages within the enterprise. Entirely site-defined.

2.1.2.6 BHS-6 Batch receiving facility (ST) 00086

Definition: This field identifies the receiving application among multiple identical instances of the application running on behalf of different organizations. See comments BHS-4-batch sending facility. Entirely site-defined.

2.1.2.7 BHS-7 Batch creation date/time (TS) 00087

Definition: This field contains the date/time that the sending system created the message. If the time zone is specified, it will be used throughout the message as the default time zone.

2.1.2.8 BHS-8 Batch security (ST) 00088

Definition: In some applications of HL7, this field is used to implement security features. Its use is not yet further specified.

2.1.2.9 BHS-9 Batch name/ID/type (ST) 00089

Definition: This field can be used by the application processing the batch. It can have extra components if needed.

2.1.2.10 BHS-10 Batch comment (ST) 00090

Definition: This field is a comment field that is not further defined in the HL7 protocol.

2.1.2.11 BHS-11 Batch control ID (ST) 00091

Definition: This field is used to uniquely identify a particular batch. It can be echoed back in BHS-12-reference batch control ID if an answering batch is needed.

2.1.2.12 BHS-12 Reference batch control ID (ST) 00092

Definition: This field contains the value of BHS-11-batch control ID when this batch was originally transmitted.

Not present if this batch is being sent for the first time. See definition for BHS-11-batch control ID.

2.1.3 BTS - batch trailer segment

The BTS segment defines the end of a batch.

 

2.1.3.0 BTS field definitions

HL7 Attribute Table - BTS – Batch Trailer

SEQ

LEN

DT

OPT

RP/#

TBL#

ITEM #

ELEMENT NAME

SEQ

LEN

DT

OPT

RP/#

TBL#

ITEM #

ELEMENT NAME

1

10

ST

O

 

 

00093

Batch Message Count

2

80

ST

O

 

 

00090

Batch Comment

3

100

NM 

O

Y

 

00095

Batch Totals

2.1.3.1 BTS-1 Batch message count (ST) 00093

Definition: This field contains the count of the individual messages contained within the batch.

2.1.3.2 BTS-2 Batch comment (ST) 00090

Definition: This field is a comment field that is not further defined in the HL7 protocol.

2.1.3.3 BTS-3 Batch totals (NM) 00095

Definition: We encourage new users of this field to use the HL7 Version 2.3 data type of NM and to define it as “repeating.” This field contains the batch total. Only a single Batch is allowed in Australia.

This field may be defined as a CM data type for backward compatibility with HL7 Versions 2.2 and 2.1with each total being carried as a separate component. Each component in this case is an NM data type.

2.1.4 DSC - continuation pointer segment

The DSC segment is used in the continuation protocol.

 

2.1.4.0 DSC field definitions

HL7 Attribute Table - DSC – Continuation Pointer

SEQ

LEN

DT

OPT

RP/#

TBL#

ITEM #

ELEMENT NAME

SEQ

LEN

DT

OPT

RP/#

TBL#

ITEM #

ELEMENT NAME

180 

ST 

 

 

00014

Continuation Pointer

1

ID 

 

0398

01354 

Continuation Style 

2.1.4.1 DSC-1 Continuation pointer (ST) 00014

Definition: This field contains the continuation pointer. In an initial query, this field is not present. If the responder returns a value of null or not present, then there is no more data to fulfill any future continuation requests. For use with continuations of unsolicited messages, see HL7 International Standard chapter 5 and section 2.15.2, "Continuation messages and segments.” Note that continuation protocols work with both display- and record-oriented messages.

2.1.4.2 DSC-2 Continuation style (ID) 01354

Definition: Indicates whether this is a fragmented message (see HL7 International Standard Section 2.15.2, "Continuation messages and segments"), or if it is part of an interactive continuation message (see HL7 International Standard Section 5.6.3, "Interactive continuation of response messages").

Refer to HL7 Table 0398 – Continuation style code for valid values.

HL7 Table 0398 - Continuation style code

Value

Description

Value

Description

F

Fragmentation

I

Interactive Continuation

2.1.5 ERR - error segment

The ERR segment is used to add error comments to acknowledgment messages.

 

HL7 Attribute Table - ERR –Error

SEQ

LEN

DT

OPT

RP/#

TBL#

ITEM #

ELEMENT NAME

SEQ

LEN

DT

OPT

RP/#

TBL#

ITEM #

ELEMENT NAME

1

80

CM

R

Y

 

00024

Error Code and Location

2.1.5.0 ERR field definition

2.1.5.1 ERR-1 Error code and location (CM) 00024

Components: <segment ID (ST)> ^ <sequence (NM)> ^ <field position (NM)> ^ <code identifying error (CE)>

Definition: This field identifies an erroneous segment in another message. The second component is an index if there is more than one segment of type <segment ID>. For systems that do not use the HL7 Encoding Rules, the data item number may be used for the third component. The fourth component (which references HL7 Table 0357 - Message error condition codes, (as a CE data type) is restricted from having any subcomponents as the subcomponent separator is now the CE’s component separator.

2.1.6 FHS - file header segment

The FHS segment is used to head a file as defined in Overview.

 

HL7 Attribute Table - FHS - File Header   

SEQ

LEN

DT

OPT

RP/#

TBL#

ITEM #

ELEMENT NAME

SEQ

LEN

DT

OPT

RP/#

TBL#

ITEM #

ELEMENT NAME

1

1

ST

R

 

 

00067

File Field Separator

2

4

ST

R

 

 

00068

File Encoding Characters

3

15

ST

O

 

 

00069

File Sending Application

4

20

ST

O

 

 

00070

File Sending Facility

5

15

ST

O

 

 

00071

File Receiving Application

6

Anonymous
November 28, 2024

The MSH table notes that the values can only be 10 characters long. All of the acceptable values are more than 10 characters. Tony Cruice and Eli Brown. Medical Objects.