BC-5000&5150 HL7 Communication Protocol V1.0 en
BC-5000&5150 HL7 Communication Protocol V1.0 en
0)
打印要求 彩色 黑白
HL7 通信协议
参 考 资 料
文件编号 说 明
文件发放部门:
(按照下面二个说明项填写)
1、工装、夹具、通用及试剂类文件必填项;
2、对于需要发文的机密级和绝密级文档必须填写此项,其
他密级文档可参照执行。
保密文件,知识产权属迈瑞公司所有。 第 1 页 共 25 页
Confidentiality: Confidential Z-110-002561-00-1.0
修 订 记 录
ECN/CR/PCN/T
版本 软件版本 修 改 内 容 概 述 修订人 生效日期
CN
(注:此模板5.0版开始加入 “生效时间”列,故之前修订记录中此项信息为空)
Table of Contents
Table of Contents ............................................................................................................................................ 3
1 Low-Level Protocol ......................................................................................................................... 4
2 HL7 Message Constructing Principles ...................................................................................... 5
3 Principles of Escape Character Conversion ............................................................................ 6
3.1 Message Information................................................................................................................. 6
3.2 Message Description................................................................................................................. 7
4 Example ........................................................................................................................................... 15
4.1 Sample Message ..................................................................................................................... 15
4.2 Sample Response Message .................................................................................................. 16
4.3 QC Message............................................................................................................................. 16
4.4 QC Response Message.......................................................................................................... 16
4.5 HL7 Coding and Constant Definition .................................................................................... 17
4.6 OBR-4 Message Type Coding ............................................................................................... 17
4.7 OBX-3 parameter type code .................................................................................................. 17
4.8 Analysis Parameter ................................................................................................................. 21
5 Enumeration Value of the Other HL7 Field ............................................................................. 22
5.1 HL7 Data Type Definition ........................................................................................................ 22
5.2 Binary Data Communication .................................................................................................. 24
5.3 Base64 Coding......................................................................................................................... 24
1 Low-Level Protocol
TCP interface communication/port communication is based on byte stream, there is no message
boundary. HL7 of high-level protocol is based on messages. The function of terminating the message
is not provided. In order to determine the message boundary, the MLLP low-level protocol is used
(see HL7 Interface Standards Version 2.3 .1). Messages are transmitted in the following format:
<SB> ddddd <EB><CR>
among which:
1. No.: the HL7 message begins with the segment name of 3 characters followed by the fields
which are separated by delimiters. "No." refers to the order of the field in the HL7 message
segment.
E.g.
PID |1 | |7393670^^^^MR||^Liu Jia ||19950804000000|Female
↑ ↑ ↑
Segment name Field 1 Field 3
Note: for MSH segment, the field delimiter following the segment name is considered to be the first
field, used to define the field delimiter values of the whole message.
3.2.1 MSH
MSH (Message Header) segment contains basic information of HL7 messages, including delimiter
value, message type and coding method etc. It is the first field of every HL7 message.
MSH|^~\&| | |||20361231235941||ORU^R01|2|P|2.3.1||||||UNICODE
MSH segments Example
For the value of each filed of the MSH message, see Table3-1.
Table 3-1 Meaning table of the MSH message
3.2.2 MSA
MSA(Message Acknowledgment)message includes the confirmation information, which appears in
3.2.3 PID
The PID (Patient Identification) segment contains the patient demographic information.
PID|1||CHARTNO^^^^MR||^NAME|||Male
Example 错误!文档中没有指定样式的文字。-1 PID message example
See Table 11-3 for field definitions in use.
Table 3-3 Definition table of the PID field
No. Field/delimi Data Recomme Description Example
ter Name Type nded Max
Length
1 Set ID - PID SI 4 Serial No., used to identify 1
different PID segments in a
message
3 Patient CX 20 Used as patient ID in the sample CHARTNO^
Identifier List analysis result messages, in the ^^^MR
form of "patient ID^^^^MR".
Used as batch No. of control in
QC messages.
5 Patient XPN 48 Patient name (consists of ^NAME
Name FirstName and LastName), in
the form of
"LastName^FirstName"
7 Date/Time of TS 26 Used as time of birth in sample
Birth information messages.
In the form of
YYY[MM[DD[HH[MM[SS]]]]].
Used as expiration date of the
control in QC messages.
8 Sex IS 1 Gender, string. Male
3.2.4 PV1
The PV1 (Patient Visit) segment contains the patient visit information.
PV1|1||DEPT^^BEDN11
PV1 segments Example
See Table 3-4 for field definitions in use.
Table 3-5 PV1 Field Definitions
No. Field/delimi Data Recomme Description Example
ter Name Type nded Max
Length
1 Set ID - PV1 SI 4 Serial No., used to identify 1
different PV1 segments in a
message.
2 Patient IS 1 Patient type, string, content not
Class defined.
3 Assigned PL 80 Patient location information, in DEPT^^BED
Patient the form of "Department^ ^ Bed N11
Location No."
20 Financial FC 50 Payer, string, content not
Class defined.
3.2.5 OBR
The OBR (Observation Request) segment contains the test report information.
OBR|1||ABCDEF-0YT-4|00001^Automated
Count^99MRC||20000706050000|20090626103851|||DELIVERY||||20000706070000||||||||||HM||||||||Li
OBR message example
See Table 3-6 for field definitions in use.
Table 3-7 OBR Field Definitions
No. Field/delimi Data Recomme Description Example
ter Name Type nded Max
Length
1 Set SI 10 Serial No., used to identify 1
ID - OBR different OBR segments in a
message
2 Placer Order EI 22
Number
3 Filler Order EI 22 Used as sample ID in sample ABCDEF-0Y
Number + analysis result messages. T-4
Used as QC file No. in QC
messages.
4 Universal CE 200 Universal service ID, used to 00001^Auto
Service ID identify different types of mated
analysis results. See the Count^99MR
enumeration constant sampling C
section for details.
6 Requested TS 26 Draw time. 2000070605
Date/time Used as the time when the blood 0000
sample is drawn.
7 Observation TS 26 Time of analysis. 2009062610
Date/Time # 3851
10 Collector XCN 60 Analysis orderer DELIVERY
Identifier * Here indicates the person who
order the analysis.
13 Relevant ST 300 Relevant clinical information.
Clinical Info. Can be used as the clinical
diagnostic information of patient
information.
14 Specimen TS 26 Time when the sample is 2000070607
Received received. 0000
Date/Time * Used as the time when the
analysis is ordered.
22 Results TS 26 Result report/Status change -
Rpt/Status Tie.
Chng - Used as the time of validation.
Date/Time +
24 Diagnostic ID 10 Diagnosis maker ID; value: "HM" HM
Serv Sect ID (means Hematology)
28 Result XCN 60 Copy the result to.
Copies To Used as the person who validate
the sample results.
32 Principal CM 200 Principal result interpreter. Li
Result Used as the operator of the
Interpreter + sample analysis in sample
messages.
Used as the operator of the QC
count in QC messages.
3.2.6 OBX
The OBX (Observation/Result) segment contains the parameter information of each test result.
OBX|7|NM|6690-2^WBC^LN||9.55|10*9/L|4.00-10.00||||F
OBX Message example
See Table 3-8 for field definitions in use.
Table 3-9 OBX Field Definitions
No. Field/delimi Data Recomme Description Example
ter Name Type nded Max
Length
1 Set ID - OBX SI 10 Serial No., used to identify 7
different OBX segments in a
message.
2 Value Type ID 3 Data type of the analysis result. NM
Value: "ST", "NM", "ED", "IS",
etc.
3 Observation CE 590 Analysis item identifier. 6690-2^WBC
Identifier In the form of ^LN
"ID^Name^EncodeSys", where
ID is the identifier of the
analysis item; Name is the
description of the item;
EncodeSys is the coding
system of the item.
See the enumeration constant
sampling section for details.
Note: ID and EncodeSys are
used to identify different
analysis parameters, while
Name is for description
purpose rather than
identification.
5 Observation * 65535 Analysis result data, which can 9.55
Value be numeric, string, enumeration
value, binary data, etc. (Binary
data like histogram or
O – reagent expiration
which it is calculated
4 Example
4.3 QC Message
The content form of QC Message is different from that of the sample count result message, the
MSH-11 of the QC message is valued as Q, the represented message type is QC data.
Intermediate Data of Analysis Results histogram and scattergram data of WBC, RBC, and
PLT, etc.)
WBC 15000^WBC Histogram.
WBChistogra
ED 15000 Histogram. 99MRC Binary^99MRC
m binary data
Binary
Left 15001^WBC Histogram.
WBC
discriminator Left Line^99MRC
NM 15001 Histogram. 99MRC
of the WBC
Left Line
histogram
Right 15002^WBC Histogram.
WBC
discriminator Right Line^99MRC
NM 15002 Histogram. 99MRC
of the WBC
Right Line
histogram
Middle 15003^WBC Histogram.
WBC
discriminator Middle Line^99MRC
NM 15003 Histogram. 99MRC
of the WBC
Middle Line
histogram
WBC 15004^WBC Histogram.
WBC
histogram Meta Length^99MRC
NM 15004 Histogram. 99MRC
metadata
Meta Length
length
WBC WBC 15005^WBC Histogram.
histogram left Histogram. Left Line
NM 15005 99MRC
discriminator Left Line Adjusted^99MRC
adjusted flag Adjusted
WBC 15006^WBC Histogram.
WBC
histogram Right Line
Histogram.
right NM 15006 99MRC Adjusted^99MRC
Right Line
discriminator
Adjusted
adjusted flag
WBC 15007^WBC Histogram.
WBC
histogram Middle Line
Histogram.
middle NM 15007 99MRC Adjusted^99MRC
Middle Line
discriminator
Adjusted
adjusted flag
WBC WBC 15008^WBC Histogram.
histogram ED 15008 Histogram. 99MRC BMP^99MRC
bitmap data BMP
Total number WBC 15009^WBC Histogram.
of WBC NM 15009 Histogram. 99MRC Total^99MRC
Histogram Total
RBC RBC 15050^RBC Histogram.
histogram ED 15050 Histogram. 99MRC Binary^99MRC
binary data Binary
Left 15051^RBC Histogram.
RBC
discriminator
NM 15051 Histogram. 99MRC Left Line^99MRC
of the RBC
Left Line
histogram
Right 15052^RBC Histogram.
RBC
discriminator
NM 15052 Histogram. 99MRC Right Line^99MRC
of the RBC
Right Line
histogram
RBC RBC 15053^RBC Histogram.
historgram Histogram. Binary Meta
NM 15053 99MRC
metadata Binary Meta Length^99MRC
length Length
CM - Composite
Format defined by the field.
ED – Encapsulate Data
<source application (HD)> ^ <type of data (ID)> ^ <data sub type (ID)> ^ <encoding (ID)> ^ <data
(ST)>
EI - Entity Identifier
<entity identifier (ST)> ^ <namespace ID (IS)> ^ <universal ID (ST)> ^ <universal ID type (ID)>
HD - Hierarchic designator
<namespace ID (IS)> ^ <universal ID (ST)> ^ <universal ID type (ID)>
FT - Formatted text
This data type is derived from the string data type by allowing the addition of embedded formatting
instructions. These instructions are limited to those that are intrinsic and independent of the
circumstances under which the field is being used.
NM - Numeric
A number represented as a series of ASCII numeric characters consisting of an optional leading sign
(+ or -), the digits and an optional decimal point.
PL - Person location
<point of care (IS )> ^ <room (IS )> ^ <bed (IS)> ^ <facility (HD)> ^ < location status (IS )> ^
<person location type (IS)> ^ <building (IS )> ^ <floor (IS )> ^ <location description (ST)>
PT - Processing type
<processing ID (ID)> ^ <processing mode (ID)>
SI - Sequence ID
A non-negative integer in the form of an NM field. The uses of this data type are defined in the
chapters defining the segments and messages in which it appears.
ST – String
TS - Time stamp
YYYY[MM[DD[HHMM[SS[.S[S[S[S]]]]]]]][+/-ZZZZ] ^ <degree of precision>