Professional Documents
Culture Documents
HL7 and Healt h Level Sev en are regist ered t radem ark s of Healt h Level Seven, I nc. Reg. U.S. Pat & TM Off
Table of Contents
1. Minim al Lower Layer Prot ocol ( MLLP)
1.1 I nt r oduct ion
1.2 Block Form at
1.3 Lim it at ions of MLLP
1.4 Ex am ples
1.5 Refer ences
1.1 Introduction
This docum ent specifies t he Minim al Lower Lay er pr ot ocol ( MLLP, a.k.a. MLP) . The MLLP pr ot ocol has a long hist ory of use wit hin t he HL7
com m unit y, alt hough it has never been form ally part of t he HL7 st andar d it self.
The MLLP pr ot ocol is a m inim alist ic OSI - session layer fr am ing prot ocol. I t is assum ed t hat t he MLLP prot ocol will be used only in a net work
envir onm ent . Most of t he det ails of err or det ect ion and cor rect ion are handled by t he lower lev els of any reasonable net work prot ocol ( e.g.
TCP/ I P, SNA) and do not require any supplem ent at ion.
Figu r e 1 I n t e r a ct ion D ia gr a m
The goal of t his lower lev el pr ot ocol is t o provide an int er face bet ween HL7 and t he net w or k t hat uses m inim al ov er head. This pr ot ocol is
ext ensively used for t he t ranspor t of HL7 v er sion 2 m essages. MLLP has lim it ed suppor t for char act er encodings, see below for det ails. This
Transpor t Specificat ion suppor t s ( am ongst ot her m essage encodings and I TSs) t he vert ical bar and XML HL7 version 2 m essage encodings
and t he ver sion 3 XML I TS. This t r ansport pr ot ocol m ay not be applicable t o som e HL7 v er sion 3 I TSs.
St ar t Block char act er ( 1 by t e) . ASCI I < VT> , i.e., < 0x0B> . This should not be confused wit h t he ASCI I char act ers
< SB>
SOH or STX.
Dat a ( var iable num ber of byt es) . This is t he HL7 dat a cont ent of t he block . The dat a can cont ain any single- by t e
dddd values great er t han 0x1F ( see next par agr aph for issues r elat ed t o char act er encodings) and t he ASCI I carr iage
ret ur n char act er, < CR> .
End Block char act er ( 1 byt e) . ASCI I < FS> , i.e., < 0x 1C> . This should not be confused wit h t he ASCI I charact er s
< EB>
ETX or EOT.
< CR> Carr iage Ret urn ( 1 byt e) . The ASCI I car riage r et urn charact er , i.e., < 0x 0D> .
1.4 Examples
This sect ion cont ains a num ber of ex am ples of MLLP- fram ed HL7 payloads, wher e < SB> < EB> and < CR> ar e used t o denot e t he non-
pr int able MLLP- fram ing single- by t e values 0x0B, 0x1C and 0x0D. They ar e not t o be int er pret ed as XML- t ags.
1: HL7 version 2 Example
<SB>
MSH|^~\&|ZIS|1^AHospital|||199605141144||ADT^A01|20031104082400|P|2.3|||
AL|NE|||8859/15|<CR>EVN|A01|20031104082400.0000+0100|20031104082400
PID||""|10||Vries^Danny^D.^^de||19951202|M|||Rembrandlaan^7^Leiden^^7301TH^""
^^P||""|""||""|||||||""|""<CR>PV1||I|3w^301^""^01|S|||100^van den Berg^^A.S.
^^""^dr|""||9||||H||||20031104082400.0000+0100<CR>
<EB><CR>
2: HL7 version 3 Example
<SB>
<?xml version="1.0" encoding="ISO-8859-15"?>
<Message xmlns="urn:hl7-org:v3" xmlns:voc="urn:hl7-org:v3/voc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<id extension="10213" root="2.16.840.1.113883.2.4.99.1.700222.1"/>
<creationTime value="20030216140000"/>
<versionId>V3PR1_ballot5</versionId>
<interactionId extension="MFMT_IN100010NL" root="2.16.840.1.113883"/>
<processingCode code="P"/>
. . .
. . .
</Message>
<EB><CR>
3: CDA Release 2 Example
<SB>
<?xml version="1.0"?>
<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:voc="urn:hl7-org:v3/voc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:hl7-org:v3 CDA.ReleaseTwo.CommitteeBallot01.July.2003.xsd">
1.5 References
This specificat ion is based on t he HL7 I m plem ent at ion Guide for HL7 v er sion 2.3.1, appendix C " Lower Layer Pr ot ocols" , sect ion C.4.3.