Академический Документы
Профессиональный Документы
Культура Документы
2.x Introduction
Presented by
Jim Forbes &
Sisamone Phanthasomchit
2005
1
Session Overview
• Introduction
• Need for a Standard
• 2.X Conceptual Overview
• break
• Practice Exercise
• HL7 Tips
2
Session Overview - Objectives
3
Introduction – What is HL7?
What is HL7
• HL7 is an ANSI accredited data exchange Standard
for Healthcare ;
– An ANSI accredited Standards Development Organization
Purpose:
• To facilitate communications of electronic Information
within a Healthcare setting
Primary Goal:
• To provide standards for the exchange of data among
Healthcare computer applications that eliminate or
substantially reduce custom interface programming
and software maintenance that otherwise may be
required
4
Introduction – Why the name?
5
Introduction - The ISO OSI Stack
Level Name Short Description Examples
7 Application Interfaces directly to and performs HTTP,SMTP, FTP, Telnet, AppleTalk, LDAP etc
common application services for the
application processes
6 Presentation Responsible for the delivery and HTTP/HTML, XML, FTP, Telnet, Apple Filing
formatting of information to the Protocol
application layer for further
processing or delay (i.e. conversion of
data from EBCDIC to ASCII)
5 Session Provides full or half duplex operations Appletalk Session Protocol (ASP)
and establishes checkpoint, DataLink Control (DLC)
adjournment, termination and restart NBT
procedures. NetBios
7
Need for a Standard…In The Beginning
$ = {a,b,c}
$=
$= {b,a ,f }
,c} d
e,
$ = {f,e,d}
$ = {c,b
{c {
,a , =
b} $
,a}
d ,e,f}
{
$=
8
Need for a Standard…What HL7 Gives Us
{a,b,c}
{a,b
{a ,c}
,b , }
{a,b,c}
c} e, ,f
{d
{d,e,f}
e,f}
{d ,
9
Need for a Standard…Getting the Most out of HL7
7 :F IN}
{ HL
{HL7:ADT}
: ADT}
7
{HL
{H
Server
{H L7
{HL7:FIN}
{HL7:ADT}
D T} L7
:A
:FI
N}
L7: A DT
}
{H I N}
7: F
L
{H
10
Need for a Standard…HL7 the Early Years
2 Control 2 Control
5 Query 5 Query
Membership: 12
8 Master files
Participation aprox. 75
Membership: 1300
Participation: 250-300
June 1994: HL7 becomes an V2.2 = ANSI Accredited Standard 1996
ANSI Accredited Standards
Developing Organization 11
Need for a Standard…HL7 the Early Years
15 Personnel Management
Appendices
A Data Definition Table
B Lower Layer Protocols
C BNF Message Descriptions
D Glossary
Membership: 2000+ Participation: 400-500 13
Need for a Standard…Recent
14
Need for a Standard…Historical Timelines
Australia + Canada
+ China
Germany Finland
Japan India
The Netherlands Korea
New Zealand Southern Africa
Taiwan
United Kingdom
v3
P
1 1 1 1 1 2 2 R
9 9 9 9 9 0 0 E
8 9 S
9 9 9 0 0 E
7 0 4 7 9 0 3 N 15
T
Need for a Standard – Additional Background
16
2.x Conceptual Overview
18
2.x Conceptual Overview – Trigger Events
Example: Trigger Events (for more info see 2.17.2 of 2.5 TABLE 003)
Message Description
A01 ADT/ACK – Admit/visit notification
A02 ADT/ACK – Transfer a patient
A03 ADT/ACK – Discharge a patient
O01 ORM – Order Message (also RDE, RDS, RGV, RAS)
O02 ORR – Order Response (also RRE, RRD, RRG, RRA)
O03 OMD – Diet order
R01 ORU/ACK – Unsolicited transmission of an observation message
… Etc…
19
2.x Conceptual Overview – Messages
20
2.x Conceptual Overview – Messages (cont)
Example: Message Type (for more info see 2.17.1 of 2.5 TABLE 0076)
Message Description Chapter
ACK General acknowledgement message 2
ADR ADT response 3
ADT ADT message 3
BAR Add/change billing account 6
CRM Clinical study registration message 7
CSU Unsolicited study data message 7
DFT Detailed financial transaction 6
DOC Document response 9
DSR Display response 5
EAC Automated equipment command message 13
EAN Automated equipment notification message 13
ORM Pharmacy/treatment order message 4
ORU Unsolicited transmission of an observation message 7
… Etc…
21
2. x Conceptual Overview – Messages (cont)
Message Type
Trigger Code
ADT - A01
MSH
EVN
PID
NK1
Segments
PV1
OBX
AL1
IN1 22
...
2.x Conceptual Overview – Messages (cont)
23
2.x Conceptual Overview – Messages (cont)
ADT^A01 ADT Message Status Chapter
MSH Message Header 2
{{SFT}] Software Segment Required Segments 2
EVN Event Type 3
PID Patient Identification 3
[ PD1 ] Additional Demographics 3
[{ROL}] Role Optional Segments 15
[{NK1}] Next of Kin / Associated Parties 3
PV1 Patient Visit 3
[ PV2 ] Patient Visit – Additional Info 3
[{ROL}] Role Optional & 15
[{DB1}] Disability Information Repeating 3
[{OBX}] Observation/Result Segments 7
[{AL1 }] Allergy Information 3
[{DG1}] Diagnosis Information 6
[{DRG}] Diagnosis Related Group 6
… continued on next slide …
24
2.x Conceptual Overview – Messages (cont)
ADT^A01 ADT Message Status Chapter
[{ --- Procedure begin Segment Group
PR1 Procedures 6
[{ROL}] Role 15
}] --- Procedure end
[{GT1}] Guarantor 6
[{ 15 --- Insurance begin Segment Group
IN1 Insurance 6
[ IN2 ] Insurance Additional Info. 6
[{ IN3}] Insurance Additional Info – Cert. 6
[{ROL}] Role 15
}] --- Insurance end
[ ACC ] Accident Information 6
[ UB1 ] Universal Bill Information 6
[ UB2 ] Universal Bill 92 Information 6
[ PDA ] Patient Death and Autopsy 3
continued from previous slide
25
2.x Conceptual Overview – Messages (cont)
28
2.x Conceptual Overview – Segments (cont)
A segment is a logical group of fields in a defined
sequence
ADT
MSH
EVN
PID
Fields
NK1
PV1
PV2
AL1 29
...
2.x Conceptual Overview – Segments (cont)
HL7 Attribute Table - PID
SEQ LEN DT OPT RP/# TBL# ITEM # ELEMENT NAM E
1 4 SI O 00104 Set ID - PID
2 20 CX B 00105 Patient ID
3 250 CX R Y 00106 Patient Identifier List
4 20 CX B Y 00107 Alternate Patient ID - PID
5 250 XPN R Y 00108 Patient Nam e
6 250 XPN O Y 00109 Mother’s Maiden Nam e
7 26 TS O 00110 Date/Tim e of Birth
8 1 IS O 0001 00111 Adm inistrative Sex
9 250 XPN B Y 00112 Patient Alias
10 250 CE O Y 0005 00113 Race
11 250 XAD O Y 00114 Patient Address
12 4 IS B 0289 00115 County Code
13 250 XTN O Y 00116 Phone Num ber - Hom e
14 250 XTN O Y 00117 Phone Num ber - Business
15 250 CE O 0296 00118 Prim ary Language
16 250 CE O 0002 00119 Marital Status
17 250 CE O 0006 00120 Religion
18 250 CX O 00121 Patient Account Num ber
19 16 ST B 00122 SSN Number - Patient
20 25 DLN O 00123 Driver's License Number - Patient
30
2.x Conceptual Overview – Fields
(Attributes)
Sequence Number
Ordinal position of the data field within the segment..
Maximum length
Maximum number of characters that one occurrence of
the data field may occupy
Data Type
The Basic building block used to construct or restrict the
contents of a data field.
31
2.x Conceptual Overview – Fields
(Attributes)
Attributes Continued:
Optionality
O = Optional
R = Required
C = Conditionally required
B = left in for backward compatibility
X = Not used with this trigger event
W = Withdrawn
Repetition
Whether the field may repeat
Table
Specifies the Hl7 identifier for a set of coded values
ID Number
Unique identifier the data item throughout the Standard
Name
Descriptive name of the data item
32
2.x Conceptual Overview – Fields
(Attributes – Data Types)
Example: Data Types (for more info see 2.16. of 2.5 TABLE
0440)
Data Data Type Name LEN Category Comment
type
AD Address 415 Demographic Replaced by XAD as of v
s 2,3
CN Composite ID number Code Values Withdrawn. Replaced by
and name XCN as of v 2.3
DTM Date/time 24
ST String 199 Alphanumeric
TS Time stamp 26 Date/time
TX Text Data 65536 Alphanumeric
XAD External address 631 Demographic Replaces AD as of v 2.3
s
XCN Extended composite ID 3002 Code Values Replaces CN as of v 2.3
number and name
XPN Extended person name 1103 Demographic Replaces PN as of v 2.3
s
… Etc…
33
2.x Conceptual Overview – Fields
(Attributes – Data Types - XAD)
|Forbes^James^H^III^DR^PHD^L|
35
2.x Conceptual Overview – Fields
(Attributes – Data Types - Other)
Field
Field
MSH|^~\&|…
123456789…
Sub-
Component
component
Repeat Escape
39
2.x Conceptual Overview – Example (Fields
and Delimiters)
MSH|^~\&|REG|TGH|LAB|TML|200502151126||ADT^A01|M12345|
P|2.5|<cr>
EVN|A01|200502151126|<cr>
PID|1||PATID1234^5^M11||FORBES^JAMES^H||19670329|M||C|
1200 ELM STREET^^TORONTO^ON^M5G1Z6|GL| (416)555-
1212|(416)555-3434||S||X45 ^2^M10|123456789|987654^ON|<cr>
NK1|1|FORBES^SADIE^K|WIFE||||CP^Contact person|<cr>
PV1|1|I|0^2012^01|E||||004777^LEBAUER^SARA^J.||TRMA||||A
DM|A0|<cr>
PID|1||PATID1234^5^M11||FORBES^JAMES^H||19670329|M
3 5
12 4 40
2.x Conceptual Overview – Example (Fields
and Delimiters)
PID|1||PATID1234^5^M11||FORBES^JAMES^H||19670329|M
| FORBES^JAMES^H|
1 2 3
42
2.x Conceptual Overview – HL7 Message
Profiling (Components of a Message Profile)
43
2.x Conceptual Overview – HL7 Message
Profiling (What is a use case?)
A use case model documents the scope and requirements
for an HL7 message profile or set of message profiles
Example A01 (Admit)
Accept/Save
HIS broadcasts
A01 Trigger
Message
44
2.x Conceptual Overview – HL7 Message
Profiling (Use case example)
2.3 Overview Clerk or Nurse assigns patient a bed on a nursing unit. This is
part of the visit or appointment registration process.
2.4 Preconditions Visit or appointment registration is available on HIS. Bed is
unoccupied by another patient.
2.5 Main Flow Actor Action:
1. Clerk or Nurse starts visit or appointment registration on
HIS.
2. Clerk or Nurse searches for available bed on Nursing Unit
on HIS.
System response to (2):
Returns all available bed on Nursing Unit.
3. Clerk or Nurse assign patient a bed on Nursing Unit.
System response to (3):
Shows patient is in bed assigned.
45
2.x Conceptual Overview – HL7 Message
Profiling (Dynamic Definition)
46
2.x Conceptual Overview – HL7 Message
Profiling (Interaction Model)
47
2.x Conceptual Overview – HL7 Message
Profiling (Interaction Model)
Sending Application
(Patient Administration) Receiving System (Departmental Application, 1..n)
Patient Admitted
Broadcast
Send ADT^A01 Receive ADT^A01
ACK Code ‘AE’: Invalid Syntax/Semantics ACK Code ‘AA’: Application Accept
Process Message
Receive ACK Send ACK with ACK Code
48
2.x Conceptual Overview – HL7 Message
Profiling (Static Definition)
49
Sample Static Definition – Message Level
Segment ADT Message Usage Cardinality Chapter
MSH Message Header R [1..1] 2
EVN Event Type R [1..1] 3
PID Patient Identification R [1..1] 3
[PD1] Additional Demographics X [0..0] 3
[{ROL}] Role X [0..0] 12
[{NK1}] Next of Kin/Associated Parties RE [0..3] 3
PV1 Patient Visit C [0..1] 3
[PV2] Patient Visit – Additional Info. RE [0..1] 3
[{ROL}] Role X [0..0] 13
[{DB1}] Disability Information X [0..0] 3
[{OBX}] Observation/Result X [0..0] 7
[{AL1}] Allergy Information RE [0..0] 3
[{DG1}] Diagnosis Information X [0..0] 6
[DRG] Diagnosis Related Group X [0..0] 6
[{
PR1 Procedures X [0..0] 6
[{ROL}] Role X [0..0] 12
50
…..
Sample Segment Level Definition – PID (Patient Identification) Segment
SEQ LEN DT Usage Cardinality TBL# Item# Element Name
1 4 SI X 00104 Set ID – PID
2 20 CX RE [0..1] 00105 Patient ID
3 20 CX R [0..*] 00106 Patient Identifier List
4 20 CX X 00107 Alternate Patient ID - PID
5 48 XPN R [1..*] 00108 Patient Name
6 48 XPN RE [0..*] 00109 Mother’s Maiden Name
7 26 TS RE [0..1] 00110 Date/Time of Birth
8 1 IS RE [0..1] 0001 00111 Sex
9 48 XPN X 00112 Patient Alias
10 80 CE X 0005 00113 Race
11 106 XAD RE [0..3] 00114 Patient Address
12 4 IS X 0289 00115 County Code
13 40 XTN RE [0..3] 00116 Phone Number-Home
14 40 XTN RE [0..3] 00117 Phone Number-Business
15 60 CE X 0296 00118 Primary Language
51
2.x Conceptual Overview – HL7 Message
Profiling (Static Definition – Field Level)
Provides:
•Field Definition
•User-defined and suggested field values
•Constant Values
•Example Data Values
•Components and Subcomponents
52
2.x Conceptual Overview – HL7 Message
Profiling (Profile Types)
53
2.x Conceptual Overview – HL7 Message
Profiling (Profile Types – Vendor Constrainable)
54
2.x Conceptual Overview – HL7 Message
Profiling (Profile Types – Realm Constrainable)
55
2.x Conceptual Overview – HL7 Message
Profiling (Profile Types – Implementation)
Implementation profiles represent the lowest level of
specification required for unambiguous
implementation.
56
2.x Conceptual Overview – HL7 Message
Profiling (Profile Types)
ADT^A01 ADT^A01
NK1 NK1 NK1 NK1 NK1 NK1 NK1 NK1 NK1 NK1
PV1 PV1
Fields/Components:
PV2 PV2
-Field usage (optionality)
OBX OBX
-Cardinality (min, max)
AL1 AL1 -Value Sets/Coding System
-Descriptions
57
Practice Exercise 1– Identify Field Component
PID|1||PATID1234^5^M11||FORBES^JAMES^H||1
9670329|M||C|1200 ELM
STREET^^TORONTO^ON^M5G1Z6^CAN|GL|
(416)555-1212|(416)555-3434||S||X45
^2^M10|123456789|987654^ON|<cr>
59
Practice Exercise 3 – Identify Syntax Errors
The following A01 message includes errors.
Identify the errors.
MSH|^~\&|REG|TGH|LAB|TML|200502151126||ADT-
A01|M12345|P|2.5|<cr>
EVN|A03|200502151126!
PID]1||PATID1234^5^M11||FORBES^JAMES^H||196
70329|M||C|1200 ELM
STREET^^TORONTO^ON^M5G1Z6^CAN|GL|
(416)555-1212|(416)555-3434||S||X45
^2^M10|123456789|987654^ON|<cr>
NK1|1|FORBES^SADIE^K|SPO||||CP*Contact
person|<cr>
PV11|1|I|0^2012^01|E||||004777^LEBAUER^SARA^J.|
|TRMA||||ADM|A0|||I|<cr>
60
Practice Exercise 3 - Answers
MSH|^~\&|REG|TGH|LAB|TML|200502151126||ADT-
A01|M12345|P|2.5|<cr>
EVN|A03|200502151126!
PID]1||PATID1234^5^M11||FORBES^JAMES^H||196
70329|M||C|1200 ELM
STREET^^TORONTO^ON^M5G1Z6^CAN|GL|
(416)555-1212|(416)555-3434||S||X45
^2^M10|123456789|987654^ON|<cr>
NK1|1|FORBES^SADIE^K|SPO||||CP*Contact
person|<cr>
PV11|1|I|0^2012^01|E||||004777^LEBAUER^SARA^J.|
|TRMA||||ADM|A0|||I|<cr>
61
HL7 Tips
62
Questions?
63
Thank you
Allie Grassie
Guy Patterson
Sudhir Oak
Helen Stevens
64
Contact Info
Presenters:
Contact Info:
Allie Grassie CIHI
HL7 Canada Secretariat
416 – 481 – 2002 x 3583
agrassie@cihi.ca
65