LECT 3 Health Level 7 (HL7)
LECT 3 Health Level 7 (HL7)
Goal
Get a basic understanding of HL7
Messaging standard ,its structure and
use in the healthcare domain.
A Business Scenario
Loading…
• The patient is registered in the Lab.
• Blood test is done and report is generated.
• The patient collects the lab report and shows it to his
or her doctor.
Problem statement
•
Loading…
The lab system imports this message and processes
the details of the patient and creates a new patient
record in the system.
System A System B
*Jan*1980***Address=10JanpathNewDelhi***Zip=560
010***problem=generalCheckup&&InsuranceInfo***co
&
mpany=TAIG***plan=Nirvana***ID=123456&&$$
↓
Ending
delimiters
Why disparate systems?
• *
Applications are often developed in need
based scenarios.
• &
Developed by different suppliers or in house
groups
• D
Applications address a specialized need and do
not solve the whole problem.
• &
Applications come bundled with equipments.
•
[ ⑨
Time frames and business considerations.
Ex software
. related
only to one device and unrelated to other devices
Why Standards ?
Loading…
Why Standards ?
• Standards are controlled and universally
accepted.
• Standards are a result of research that aims at
providing a generic solution and areGrglobally
C
published.
• Promote tools, certifications and trainings and
products.
• Standards promote distributed development.
• Allow site variations.
Goal of HL7
• “To provide standards for the exchange of data
among healthcare computer applications that
eliminate or substantially reduce the custom
interface programming and program
maintenance that may be otherwise required.”
• Such guidelines or data standards are a set of
rules that allow information to be shared and
processed in a uniform and consistent manner.
• These data standards are meant to allow healthcare
organizations to easily share clinical information.
• Theoretically, this ability to exchange information
should help to minimize the tendency for medical care
Common Information Systems in a
Hospital &Without HL7
some of them link
together and other are not
Pharmacy I3 Admission
Scheduling I5 Lab
I1 I4
Nutrition I2 Accounting
With HL7 · all systems connected together
Pharmacy Admission
Nutrition Accounting
HL7 Program used
translation
in
↑ HL7
HL7
>
themselves.
-
The name HL7
8 - the 7 level of (150)
③
Application
-
Function -
Presentation
- >
Session
Transport
④ -
Communication -
7
Network
-
Data Link
-
&
&
Physical
The seven layers of OSI
the highest layer
Field F1 F2 Segment 2 Fn
Segment
HL7 Message basics
Message {
Segment { Fields….}
Segment {Fields….}
}
Which segments should comprise the message is
predefined in the HL7 specs.
The fields that should come together to form a particular
segment is also predefined in the HL7 specs.
The HL7 spec also defines the data types that form the
fields.
5-segments
Segment Example
separate between the
field
·
go y
MSH|^~\&|ADT1|MCM|LABADT|MCM|198808181126|SECURITY|ADT^A0
1|MSG00001|P|2.4|<cr>
⑧
EVN|A01|198808181123||<cr>
G
PID|1||PATID1234^5^M11^ADT1^MR^MCM~123456789^^^USSSA^SS||JON
③S
ES^WILLIAM^A^III||196
10615|M||C|1200 N ELM STREET^^GREENSBORO^NC^27401-1020|GL|(91-
9)379-1212|
(919)2713434||S||PATID12345001^2^M10^ADT1^AN^A|123456789|987654^
NC|<cr>
8NK1|1|JONES^BARBARA^K|WI^WIFE||||NK^NEXT OF KIN<cr>
GPV1|1|I|2000^2012^01||||004777^LEBAUER^SIDNEY^J.|||SUR||||ADM|A0|
<cr>
HL7 – Segments
• A segment is a logical grouping of data fields.
Segments of a message may be required or optional.
• They may occur only once or may be allowed to
repeat.
• Each segment is given a name and ID.
• The ID is a three character code as defined in the HL7
-
spec.
HL7 – Segments
• E.g. of HL7 segments:
MSH||STORE|MISSION|MIME|LAUREL|199801181007|security|ADT|MSGG0 -
0201|||<CR>
-
-
time
Date :
1998/1/18
10 : 07 am
EVN|01|199801181005||<CR> -
admission time
Patient ID segment
Patient ID
Gender
↑
name : John B .
Doe
Date
1947/7/1
of birth :
↑
:
caucasian
a
FRANCISCO^CA^94122-0619||415-681-2888||||||||<CR>
-
address
William
of the
K . Smith
doctor :
PV1|1|I|100^345^01||||00135^SMITH^WILLIAM^K||SUR|ADM|<CR>
F
- -
room
bed number
nursia
Example Meaning
• The ADT message was sent from system STORE
at the MISSION site to system MIME at LAUREL
site on the same date two minutes after the admit
• Patient John B. Doe, II, male, Caucasian, born on
July 1, 1947, lives at 371 Main Avenue in San
Loading…
Francisco, was admitted on January 18, 1998, at
10:05 am.
• The next of kin is Linda E. Doe, wife.
• The patient has been assigned to Room 345 bed 01
on nursing unit 100 by Doctor William K. Smith
(#00135) for surgery.
HL7 - Triggers
• Trigger is a real world event that creates the need for
data to flow amongst systems.
admission
-
Value Description
A01 Admit/Visit
from ward to another
>
-
tell
the information
something about
inside
the
the message
message
MSH|^~\&|ConnectX|AIIMSDelhi|LABADT|AIIMSDelhi|19
8807181126|SECURE|ADT^A01|MSG00001|P|2.3|101|
|AL||IND||<cr>
HL7 – MSH segment
Message Control
MSH -1 Field Separator
MSH|^~\&|ConnectX|AIIMSDelhi|LABADT
|AIIMSDelhi|198807181126|SECURE|
ADT^A01|MSG00001|P|2.3|101||AL||
IND||<cr>
HL7 – MSH segment
Message Control
MSH –2 Encoding Characters
MSH|^~\&|ConnectX|AIIMSDelhi|LABADT
|AIIMSDelhi|198807181126|SECURE|
ADT^A01|MSG00001|P|2.3|101||AL||
IND||<cr>
HL7 – MSH segment
Message Control
MSH –3 Sending application software
>
MSH –5 Receiving application
MSH|^~\&|ConnectX|AIIMSDelhi|LABADT
|AIIMSDelhi|198807181126|SECURE|
ADT^A01|MSG00001|P|2.3|101||AL||
IND||<cr>
HL7 – MSH segment
Message Control
MSH -4 Sending Facility
7 department ,
site
Receiving
facility
ADT^A01|MSG00001|P|2.3|101||AL||
IND||<cr>
HL7 – MSH segment
Message Control
MSH – 7 Date and Time of Message
The following segment indicates that the
message has been sent on 18 July 1988
at 11:26 A.M.
MSH|^~\&|ConnectX|AIIMSDelhi|LABADT
Date time
|AIIMSDelhi|198807181126|SECURE|
-
ADT^A01|MSG00001|P|2.3|101||AL||
IND||<cr>
HL7 – MSH segment
Message Control
MSH – 8 Security.
The use of this segment is not yet specified. But can
be used to implement security features.
MSH|^~\&|ConnectX|AIIMSDelhi|LABADT
|AIIMSDelhi|198807181126|SECURE|
ADT^A01|MSG00001|P|2.3|101||AL||
IND||<cr>
HL7 – MSH segment
Message Control
MSH – 9 Type of message.
MSH|^~\&|ConnectX|AIIMSDelhi|LABADT
|AIIMSDelhi|198807181126|SECURE|
-
ADT^A01|MSG00001|P|2.3|101||AL||
admit/ visit
IND||<cr>
HL7 – MSH segment
Message Control
3rd wil
MSH – 10 Message Control ID
&
-
5!
>
-
plon
-
.
n/
·sil's
a correlation ID.
MSH|^~\&|ConnectX|AIIMSDelhi|LABADT|AIIMS
Delhi|198807181126|SECURE|ADT^A01|
MSG00001|P|2.3|101||AL||IND||<cr>
HL7 –Message Control
MSH - 11 Processing ID.
MSH|^~\&|ConnectX|AIIMSDelhi|LABADT
|AIIMSDelhi|198807181126|SECURE|
ADT^A01|MSG00001|P|2.3|101||AL||
IND||<cr>
HL7 – MSH segment
Message Control
MSH – 13 Sequence Number >
- related to the application itself
application.
-
MSH|^~\&|ConnectX|AIIMSDelhi|LABADT|AI
IMSDelhi|198807181126|SECURE|ADT^A0
1|MSG00001|P|2.3|101||AL||IND||<cr>
HL7 – MSH segment
Message Control
MSH – 15 Acknowledgment Type
The following segment indicates that the
receiving application should send an
-
I
acknowledgment
acknowledgment message always.
that
nee
the is sende
message
MSH|^~\&|ConnectX|AIIMSDelhi|LABADT
|AIIMSDelhi|198807181126|SECURE|
ADT^A01|MSG00001|P|2.3|101||AL||
IND||<cr>
Other possible values are: NE,SU,ER which
stand for never, success and error.
HL7 – MSH segment
Message Control
MSH – 17 Country Code.
MSH|^~\&|ConnectX|AIIMSDelhi|LABADT|AI
IMSDelhi|198807181126|SECURE|ADT^A0
1|MSG00001|P|2.3|101||AL||IND||<cr>
Patient
Admission ADT Message
ADT Message
ADT Message
Billing
Nursing
ADT A01 required segments
Sr Segme Details
nt
~
MSH|^~\&|ADT1|MCM|LABADT|MCM|198807181126|SECURITY|ADT^A01|
- ~
version I
MSG00001|P|2.4|<cr>
-
T
admit/visit
unique identifier
about Production
-
event
EVN|A01|198807181123||<cr>
-
Date :
1988/7/18
admit/visit
time : 11 : 23 Am
Caucasian
Patient
male
↑
PID|1||PATID1234^5^M11^ADT1^MR^MCM~123456789^^^USSSA^SS||JONE birth : 1961/6/15 -
S^WILLIAM^A^III||19610615|M||C|1200 N ELM
name :
William A Jonese
-
.
-
STREET^^GREENSBORO^NC^27401-1020|GL|(91-9)379-1212|
address (919)2713434||S||PATID12345001^2^M10^ADT1^AN^A|123456789|9876
-
54^NC|<cr>
Jones
name : BARBARA K .
NK1|1|JONES^BARBARA^K|WI^WIFE||||NK^NEXT OF KIN<cr>
- -
ebed
a
Room
PV1|1|I| 17NB^420^C^CommunityHospital^^N^6^Next to the ICU^
E
||||004777^LEBAUER^SIDNEY^J.|||SUR|<cr>
inpatient
-
-
name and #P of the doctor
Patient Admin ADT A01
Patient William A. Jones,III was admitted on July 18,
1988 at 11:23 a.m. by doctor Sidney J. Lebauer
(#004777) for surgery (SUR).
The patient is admitted as InPatient and has been
assigned the location 17 north block room no 420 bed
c at the community hospital, next to ICU.
The message was sent from system ADT1 at the
MCM site to system LABADT, also at the MCM site,
on the same date as the admission took place, but
three minutes after the admit.
Patient Discharge ADT A03 trigger
·
The A03 event can be used to notify EMR system,
②
-
1 2
&
laboratory
discharged.
Patient Discharge ADT A03
Patient
Discharge ADT A03 Message
EMR
Billing