Introduction to HL7 Format
-
An HL7 message is the unit of data transferred between HL7 systems.
Here is an example of HL7 message:(以下是一个HL7消息的例子)
-
Every HL7 message consists of a sequence of segments. Each segment occupies a line. This message contains 7 segments (MSH, EVN, PID, …, PR1).
-
每一个HL7消息都包含了一系列的段,每一个段占一行(换行符号结束),如下的这个消息包含了7个段
-
Every message begins with the MSH (Message Header) segment which contains the message type, version and other important information.
-
每一个HL7消息都 会以MSH段开始,它包含了消息的类型,版本等其它重要的信息。
-
Each message message has a type that defines its purpose. This message has the type ADT^A01 (Patient Admit/Visit notification) of the version 2.4.
-
第一个消息都有一个类型
-
Each segment begins with a tree-letter label that identifies its type and purpose. For example PID segment contains patient identification data. You can find more information on message and segment types on the official Health Level 7 web site (http://www.hl7.org).
-
第一个段都以三个字母为开头标志,这个标志定义了他的类型与使用,如PID段表示病人信息。
-
Each segment is divided into fields separated by pipe character ‘|’. This PID segment contains 10 fields. Some of the fields are empty.
-
每一个段又使用"|"分割为不同的pipe,如下这个例子的PID段有10个 fields,有些是空的。
-
Fields may also be divided into subfields. In this example patient’s name divided on a surname, first name, second name and suffix.
-
fields 还可以分成subfields, 如下这个例子中病人名字分成了几个部分。