Escolar Documentos
Profissional Documentos
Cultura Documentos
ImplementationGuide forImmunizationMessaging
Release1.2 02/15/2011
PageIntentionallyBlank
PublicationHistoryofPreviousVersions: ImplementationGuideforImmunizationDataTransactions usingVersion2.3.1ofthe HealthLevelSeven(HL7)StandardProtocol Version Date Version2.0 June1999 Version2.1 September2003 Version2.2 June2006
Revision history
Revision Date Author Release1.0 5/1/2010 RobSavage Release1.1 8/15/2010 RobSavage Release1.2 2/15/2011 RobSavage AlistofchangesmaybefoundattheendofImplementationGuide. ForinformationaboutHL7,contact: ForinformationaboutthisGuide,contact: RobSavage HealthLevelSeven 3300WashtenawAvenue,Suite227 rbsavage@cdc.gov AnnArbor,MI481044250 WarrenWilliams Phone:(734)6777777 wxw4@cdc.gov Fax:(734)6776622 EMail:hq@hl7.org ImmunizationInformationSystems Website:www.hl7.org SupportBranch,ImmunizationServices Division,NationalCenterfor ForinformationabouttheAmerican ImmunizationandRespiratoryDiseases, ImmunizationRegistryAssociation,visit CentersforDiseaseControland www.immregistries.org Prevention Phone:(404)6398245 Fax:(404)6398171 Website: www.cdc.gov/vaccines/programs/iis/default.htm
TableofContents
1. INTRODUCTION................................................................................................................1 INTENDED AUDIENCE .............................................................................................. 1 SCOPE.................................................................................................................... 2 ORGANIZATION AND FLOW ...................................................................................... 3 INTRODUCTION TO DIAGRAMS AND MODELS ............................................................ 5 ACTOR AND USE CASE DIAGRAMS AND TABLES ............................................ 5 SEQUENCE DIAGRAMS ................................................................................. 6 ACTIVITY DIAGRAMS .................................................................................... 7 2. ACTORS,GOALS,ANDMESSAGINGTRANSACTIONS..........................................................9 ACTORS AND GOALS .............................................................................................. 9 HIGH-LEVEL VIEW OF USE CASES ......................................................................... 12 USE CASE DESCRIPTIONS ..................................................................................... 14 USE CASE 1SEND IMMUNIZATION HISTORY ............................................. 14 USE CASE 2RECEIVE IMMUNIZATION HISTORY ........................................ 15 USE CASE 3REQUEST IMMUNIZATION HISTORY ....................................... 15 USE CASE 4RETURN IMMUNIZATION HISTORY ......................................... 17 USE CASE 4AFIND CANDIDATE CLIENTS ................................................. 17 USE CASE 5--ACCEPT REQUESTED HISTORY: ............................................. 20 USE CASE 6SEND DEMOGRAPHIC DATA ................................................. 21 USE CASE 7ACCEPT DEMOGRAPHIC DATA ............................................. 21 USE CASE 8--ACKNOWLEDGE RECEIPT ...................................................... 22 USE CASE 9REPORT ERROR .................................................................. 23 MESSAGING IN THE CONTEXT OF THE BUSINESS PROCESS .................................... 23 3. HL7MESSAGINGINFRASTRUCTURE................................................................................26 HL7 DEFINITIONS .................................................................................................. 26 BASIC MESSAGE CONSTRUCTION RULES .............................................................. 28 ENCODING RULES FOR SENDING................................................................ 28 ENCODING RULES FOR RECEIVING ............................................................. 29 IMPLICATIONS OF THE ENCODING RULES .................................................... 29 DETERMINING USAGE OF SEGMENTS, FIELDS AND COMPONENTS ............... 30 MESSAGE ATTRIBUTES COMMON TO ALL MESSAGES ............................................ 35 SEGMENT ATTRIBUTES COMMON TO ALL SEGMENTS ............................................. 36 4. HL7DATATYPES.............................................................................................................38 DATA TYPES FOR IIS USE ..................................................................................... 38 CE -- CODED ELEMENT (MOST USES) ......................................................... 39 CE -- CODED ELEMENT (TEXT ONLY IN RXA-9)........................................... 41 CQ -- COMPOSITE QUANTITY WITH UNITS .................................................. 41 CWE -- CODED WITH EXCEPTIONS ............................................................ 42 CX -- EXTENDED COMPOSITE ID WITH CHECK DIGIT .................................. 44 DT -- DATE ............................................................................................... 45 DTM -- DATE/TIME .................................................................................... 46 EI -- ENTITY IDENTIFIER ............................................................................. 46
ERL -- ERROR LOCATION .......................................................................... 47 FC -- FINANCIAL CLASS ............................................................................. 49 FN -- FAMILY NAME ................................................................................... 49 HD -- HIERARCHIC DESIGNATOR ................................................................ 50 ID -- CODED VALUES FOR HL7 TABLES ...................................................... 51 IS -- CODED VALUES FOR USER DEFINED TABLES ...................................... 52 LA2 -- LOCATION WITH ADDRESS VARIATION 2 ........................................... 52 MSG -- MESSAGE TYPE ............................................................................ 53 NM -- NUMERIC ......................................................................................... 54 PT -- PROCESSING TYPE ........................................................................... 54 SAD -- STREET ADDRESS .......................................................................... 55 SI -- SEQUENCE ID .................................................................................... 55 ST STRING ............................................................................................. 56 TS -- TIME STAMP ..................................................................................... 56 VID -- VERSION ID ..................................................................................... 56 XAD -- EXTENDED ADDRESS ..................................................................... 57 XCN - EXTENDED COMPOSITE ID NUMBER AND NAME FOR PERSONS ........ 59 EXTENDED PERSON NAME (XPN) .............................................................. 62 XTN - EXTENDED TELECOMMUNICATION NUMBER ...................................... 63 5. SEGMENTSANDMESSAGEDETAILS................................................................................66 BHSBATCH HEADER SEGMENT ......................................................................... 72 BHS FIELD DEFINITIONS............................................................................. 72 BTSBATCH TRAILER SEGMENT ......................................................................... 73 BTS FIELD DEFINITIONS ............................................................................. 73 ERRERROR SEGMENT ...................................................................................... 73 ERR FIELD DEFINITIONS: ........................................................................... 75 EVN - EVENT TYPE SEGMENT ............................................................................... 76 EVN FIELD DEFINITIONS............................................................................. 76 FHSFILE HEADER SEGMENT ............................................................................. 77 FHS FIELD DEFINITIONS ............................................................................. 77 FTSFILE TRAILER SEGMENT ............................................................................. 78 IN1INSURANCE SEGMENT (IN2, IN3) ................................................................. 78 MSAMESSAGE ACKNOWLEDGEMENT SEGMENT ................................................ 79 MSA FIELD DEFINITIONS ............................................................................ 79 MSHMESSAGE HEADER SEGMENT .................................................................... 80 MSH FIELD DEFINITIONS ............................................................................ 81 NK1NEXT OF KIN SEGMENT .............................................................................. 86 NK1 FIELD DEFINITIONS ............................................................................. 89 NTENOTE SEGMENT ......................................................................................... 90 NTE FIELD DEFINITIONS ............................................................................. 90 OBXOBSERVATION RESULT SEGMENT .............................................................. 90 OBX FIELD DEFINITIONS ............................................................................ 93 ORCORDER REQUEST SEGMENT ...................................................................... 95 ORC FIELD DEFINITIONS ............................................................................ 98 PD1PATIENT DEMOGRAPHIC SEGMENT ........................................................... 100 PD1 FIELD DEFINITIONS ........................................................................... 102 PIDPATIENT IDENTIFIER SEGMENT................................................................... 104 PID FIELD DEFINITIONS ............................................................................ 108 PV1PATIENT VISIT SEGMENT........................................................................... 111
PV1 FIELD DEFINITIONS ........................................................................... 114 QAKQUERY ACKNOWLEDGEMENT SEGMENT ................................................... 115 QAK FIELD DEFINITIONS .......................................................................... 115 QPD QUERY PARAMETER DEFINITION .............................................................. 116 QPD FIELD DEFINITIONS .......................................................................... 116 RCP RESPONSE CONTROL PARAMETER SEGMENT ........................................... 117 RCP FIELD DEFINITIONS .......................................................................... 118 RXA-- PHARMACY/TREATMENT ADMINISTRATION SEGMENT ................................ 119 RXA FIELD DEFINITIONS........................................................................... 122 RXR-- PHARMACY/TREATMENT ROUTE SEGMENT ............................................... 126 RXR FIELD DEFINITIONS .......................................................................... 126 6. MESSAGESFORTRANSMITTINGIMMUNIZATIONINFORMATION.................................128 INTRODUCTION.................................................................................................... 128 SEND IMMUNIZATION HISTORY--VXU ................................................................... 128 REQUESTING INFORMATION (IMMUNIZATION HISTORY) QBP .............................. 130 RESPOND TO REQUEST FOR INFORMATION RSP ................................................ 131 REQUESTING AN IMMUNIZATION HISTORY FROM ANOTHER SYSTEM VXQ ............. 132 THE USE OF VXQ IS NOT SUPPORTED FOR 2.5.1 IMMUNIZATION MESSAGING. ............................................................................................................... 132 ACKNOWLEDGING A MESSAGE--ACK .................................................................. 132 SENDING DEMOGRAPHIC INFORMATION VXU OR ADT ....................................... 133 SENDING MESSAGES IN A BATCH ........................................................................ 134 7. QUERYANDRESPONSEPROFILE(QBP/RSP)..................................................................136 REQUEST IMMUNIZATION HISTORY QUERY PROFILE Z34^CDCPHINVS ............ 136 RETURN A LIST OF CANDIDATES PROFILE -- Z31^CDCPHINVS .......................... 148 INTRODUCTION: ....................................................................................... 148 USE CASE: .............................................................................................. 149 STATIC DEFINITION .................................................................................. 150 SEGMENT LEVEL PROFILE ....................................................................... 152 FIELD LEVEL PROFILE .............................................................................. 152 DYNAMIC DEFINITION............................................................................... 153 ACKNOWLEDGEMENT RESPONSIBILITIES .................................................. 153 RETURN AN IMMUNIZATION HISTORY Z32^CDCPHINVS .................................. 154 INTRODUCTION: ....................................................................................... 154 USE CASE: .............................................................................................. 154 STATIC DEFINITION .................................................................................. 156 SEGMENT LEVEL PROFILE ....................................................................... 157 FIELD LEVEL PROFILE .............................................................................. 158 DYNAMIC DEFINITION............................................................................... 158 CHANGEHISTORYDETAILS...................................................................................................159 APPENDIXA: CODETABLES...................................................................................................1 APPENDIXBGUIDANCEONUSAGEANDEXAMPLEMESSAGES..............................................1 IMMUNIZATION HISTORY DEFINITION ........................................................................ 1 SEND IMMUNIZATION HISTORY (VXU) ...................................................................... 2
BUSINESS PROCESS ............................................................................................... 2 SUPPORTED MESSAGE SEGMENTS .......................................................................... 5 EXAMPLE VXU # 1-BASIC MESSAGE: ...................................................................... 6 EXAMPLE VXU #2 - INDICATE VACCINE FUNDING SOURCE AND CLIENT ELIGIBILITY STATUS: ................................................................................................................. 7 ELIGIBILITY STATUS: .................................................................................... 7 FUNDING SOURCE: ...................................................................................... 8 EXAMPLE VXU #3 - INCLUDE IMMUNIZATION HISTORY EVALUATION AND FORECAST IN VXU ..................................................................................................................... 10 INDICATING THE SCHEDULE THAT WAS USED: ............................................. 14 INDICATING VACCINE GROUP ASSOCIATED: ................................................ 15 REPORTING THE ORDINAL POSITION IN A SERIES: ...................................... 16 REPORTING THE NUMBER OF DOSES IN A SERIES: ...................................... 16 REPORTING NEXT DOSE RECOMMENDATION DATES: .................................. 16 REPORTING RECOMMENDATION REASONS: ................................................ 17 USING THE NTE SEGMENT ASSOCIATED WITH AN OBX TO PROVIDE MORE INFORMATION: ........................................................................................... 17 EXAMPLE VXU #4 - SEND CLIENT SPECIFIC CONDITIONS ........................................ 18 EVIDENCE OF IMMUNITY: ............................................................................ 18 CONTRAINDICATIONS TO IMMUNIZATION: .................................................... 18 FACTORS WHICH INDICATE THE NEED FOR AN IMMUNIZATION OR A CHANGED RECOMMENDATION: ................................................................................... 19 EXAMPLE VXU #5 SEND IMMUNIZATIONS ASSOCIATED WITH REACTIONS (ADVERSE EVENTS) ............................................................................................................... 19 EXAMPLE VXU #6 DELETE AN IMMUNIZATION RECORD ........................................ 20 VXU EXAMPLE #7--SEND INFORMATION ABOUT VACCINE INFORMATION STATEMENT (VIS) .................................................................................................................... 21 VXU EXAMPLE #8SEND INFORMATION ABOUT IMMUNIZATION REFUSAL ............. 22 VXU EXAMPLE #9SEND TWO LOT NUMBERS IN RXA ......................................... 22 VXU EXAMPLE #10RECORDING BIRTH INFORMATION......................................... 23 VXU EXAMPLE #11RECORDING AN INCOMPLETELY ADMINISTERED DOSE OR A NON-POTENT DOSE................................................................................................ 23 SEND ACKNOWLEDGEMENT ACK IN RESPONSE TO VXU ....................................... 24 SEND ACKNOWLEDGEMENT OF SUCCESS IN ACK ........................................ 24 SEND ERROR IN ACK ................................................................................ 24 SEND REQUEST FOR VACCINE HISTORY (QBP/RSP) ............................................. 25 PROCESS FOR REQUESTING IMMUNIZATION HISTORY.................................. 25 DESCRIPTION OF THE VXQ/VXX/VXR PROCESS FROM VERSION 2.3.1....... 26 USING QBP QUERY TO REPLICATE VXQ/VXX/VXR .................................... 27 RETURNING A LIST OF CANDIDATE CLIENTS IN RESPONSE TO QBP^Q11 QUERY ...................................................................................................... 30 RETURNING AN IMMUNIZATION HISTORY IN RESPONSE TO A REQUEST FOR IMMUNIZATION HISTORY QUERY ................................................................. 31 ACKNOWLEDGING A QUERY THAT FINDS NO CANDIDATE CLIENTS ................. 31 ACKNOWLEDGING A QUERY THAT FINDS MORE CANDIDATES THAN REQUESTED ................................................................................................................. 32 USING A TWO-STEP PROCESS TO REQUEST AN IMMUNIZATION HISTORY ....... 33 RETURNING A LIST OF CANDIDATE CLIENTS IN RESPONSE TO PDQ QUERY ... 36 RECEIVING SYSTEM DETERMINES THAT MESSAGE HAS ERRORS ................... 37 MALFORMED MESSAGE .............................................................................. 37 NO MATCH IS FOUND ................................................................................ 38
TableofFigures
Revision history..................................................................................................... 3 Figure 1-1 Simple Use Case Diagram ................................................................. 6 Figure 1-2-Simple Sequence Diagram .................................................................. 7 Figure 1-3 Simple Activity Diagram ....................................................................... 8 Table 2-1 Actors and Goals for Messaging ......................................................... 10 Figure 2-1 Use Case Diagram ............................................................................ 13 Figure 2-2 Finding a Client .................................................................................. 14 Figure 2-3-Use Cases 1 and 2: Send and Receive Immunization History .......... 15 Figure 2-4-Use Cases 3, 4 and 5: Request Immunization History, Respond to Request and Accept Requested History ...................................................... 17 Figure 2-5--Using PDQ to Resolve Identity Prior to Request for Immunization History ......................................................................................................... 18 Figure 2-6--Implicit Identity Resolution in Response to a Request for Immunization History When One High-confidence Match Is Found ............. 19 Figure 2-7--Implicit Identity Resolution in Response to a Request for Immunization History When Lower Confidence Candidates Are Found ...... 20 Figure 2-8--Send Demographic Data Via VXU or ADT ....................................... 22 Figure 2-9--VXU Process Model ......................................................................... 25 Table 3-1 Outcome of Encoding Rule Breaches ................................................. 29 Table 3-1--Usage Code Interpretations for Fields, Components and Subcomponents ................................................................................................. 31 Table 3-2--Usage Code Interpretation for Segments .......................................... 34 Table 3-3--Message Attributes ............................................................................ 35 Table 3-4--Segment Attributes ............................................................................ 36 Table 4-1-- Data Types ....................................................................................... 39 Table 4-2 Coded Element (CE) ........................................................................... 40 Table 4-3 Coded Element (CE) for Text Only RXA-9 ......................................... 41 Table 4-4 Composite Quantity with Units (CQ) .................................................. 42 Table 4-5 Coded with Exceptions (CWE) ........................................................... 43 Table 4-6 Extended Composite ID with Check Digit(CX) ................................... 44 Table 4-7 Date (DT) ........................................................................................... 45 Table 4-8 Date/Time (DTM) ............................................................................... 46 Table 4-9 Entity Identifier (EI) ............................................................................. 46 Table 4-10 Error Location (ERL) ........................................................................ 47 Table 4-11 Financial Class (FC) ......................................................................... 49 Table 4-12 Family Name.................................................................................... 50 Table 4-13 Hierachical Designator (HD) ............................................................. 50 Table 4-14 Coded Values for User Defined Tables (IS) ...................................... 52 Table 4-15 Location with Address Variation 2 ..................................................... 52 Table 4-16 Message Type (MSG) ....................................................................... 53 Table 4-17 Numeric (NM) ................................................................................... 54 Table 4-18 Processing Type (PT) ...................................................................... 55 Table 4-19 Street Address (SAD) ....................................................................... 55 Table 4-20 Sequence Id (SI) ............................................................................... 56
Table 4-21 Time Stamp (TS) .............................................................................. 56 Table 4-22 Version ID (VID) ................................................................................ 56 Table 4-23 Extended Address (XAD) .................................................................. 57 Table 4-24 Extended Composite ID Number and Name (XCN) .......................... 59 Table 4-25 Extended Person Name (XPN) ......................................................... 62 Table 4-26 XTN Extended Telecommunication Number (XTN) .......................... 63 Table 5-1 Message Segments ............................................................................ 66 Table 5-2 Batch Header Segment (BHS) ............................................................ 72 Table 5-3 Batch Trailer Segment (BTS) .............................................................. 73 Table 5-4 Error Segment (ERR).......................................................................... 74 Table 5-5 Event Segment (EVN)......................................................................... 76 Table 5-6 File Header Segment (FHS) ............................................................... 77 Table 5-7 File Trailer Segment (FTS) ................................................................. 78 Table 5-8 Message Acknowledgement Segment (MSA)..................................... 79 Table 5-9 Message Header Segment (MSH) ...................................................... 80 Table 5-10 Message Types ................................................................................ 83 Table 5-11-Next of Kin Segment (NK1) .............................................................. 87 Table 5-12 Note Segment (NTE) ........................................................................ 90 Table 5-13 Observation Segment (OBX) ............................................................ 91 Table 5-14 Common Order Segment (ORC) ...................................................... 96 Table 5-15-Patient Demographic Segment (PD1) ............................................ 101 Table 5-16-Patient Identifier Segment (PID) ..................................................... 105 Table 5-17-Patient Visit (PV1) .......................................................................... 112 Table 5-18-Query Acknowledgement Segment ................................................ 115 Table 5-19-Query Parameter Definition (QPD) ................................................. 116 Table 5-20-Response Control Parameter ......................................................... 118 Table 5-21 Pharmacy/Treatment Administration (RXA) .................................... 120 Table 5-22 Pharmacy/Treatment Route (RXR) ................................................. 126 Table 6-1-Supported Messages ........................................................................ 128 Table 6-2--VXU Segment Usage ...................................................................... 128 Figure 6-1-VXU Domain Diagram ..................................................................... 130 Table 6-3 QBP/RSP Query By Parameter/Segment Pattern Response ........ 131 Table 6-4-Segment Pattern Response (RSP) ................................................... 132 Table 6-5 Message Acknowledgement Segment (ACK) ................................... 132 Table 6-6-ADT A04 Message ........................................................................... 134 Table 7-1 Request Immunization History Query Profile .................................... 137 Table 7-2-Response Grammar to Different Outcomes...................................... 138 Table 7-3 Response Grammar RSP^K11 ......................................................... 140 Table 7-4 MSH Specification for Request Immunization History Query ............ 142 Table 7-5 QPD Input Parameter Specification .................................................. 143 Table 7-6 QPD Input Parameter Field Description and Commentary ............... 144 Table 7-7 RCP Response Control Parameter Field Description and Commentary ................................................................................................................... 147 Table 7-8 Query Response Possibilities ........................................................... 148 Figure 7-1--Return Candidate List..................................................................... 149 Table 7-9 Response Grammar RSP^K11 ......................................................... 150
Figure 7-2 Return Candidate List (RSP^K11) ................................................... 153 Figure 7-3 Return Immunization History Use Case ........................................... 155 Figure 7-4 Return Immunization History Response Grammar .......................... 156 Figure 7-5 Return Immunization History Sequence Diagram ............................ 158 Table 40--Release 1.1 Changes ....................................................................... 159 Table 41--Release 1.2 Changes ....................................................................... 159 Table 41-Immunization History Definition ............................................................. 1 Figure 6-VXU Business Process ........................................................................... 3 Figure 7-Segment Usage ...................................................................................... 6 Figure 8--VXQ/VXX/VXR processes ................................................................... 26 Figure 9--Request Immunization History ............................................................. 28
Chapter 1: Introduction
1. Introduction
ImmunizationInformationSystems(IIS)arecentralizedpopulationbasedrepositoriesof immunizationrelatedinformation.Theyreceiveandsharedataonindividual clients/patientswithanumberofothersystems,includingElectronicHealthRecord systems(EHRS).HealthLevelSeven(HL7)isanationallyrecognizedstandardfor electronicdataexchangebetweensystemshousinghealthcaredata.TheHL7standard isakeyfactorthatsupportsthistwowayexchangeofinformationbecauseitdefinesa syntaxorgrammarforformulatingthemessagesthatcarrythisinformation.Itfurther describesastandardvocabularythatisusedinthesemessages.Itdoesnotdependon specificsoftware,thatis,itisplatformindependent. ThisdocumentrepresentsthecollaborativeeffortoftheAmericanImmunization RegistryAssociation(AIRA)andtheCentersforDiseaseControlandPrevention(CDC)to improveintersystemcommunicationofimmunizationrecords.Thisimplementation guidewillreplacetheexistingImplementationGuideforImmunizationDataTransaction UsingVersion2.3.1oftheHL7StandardProtocol,andwillbebasedonHL7Version 2.5.1,aspublishedbytheHL7organization(www.hl7.org).Theexisting2.3.1Guidehas anumberofsuccessfulimplementationsthatexchangemessageswithotherIISand EHRS.Theexperienceoftheseimplementationshasidentifiedanumberofareasofthe existingGuidethatwouldbenefitfromanupdateoftheGuide. AsHL7hasdevelopedandpublishednewversionsofthestandard,ithassoughtto maximizetheabilityofimplementations,basedonnewerversionstobeabletoaccept messagesfromearlierversions.Basedonthis,weanticipatethatfaithful implementationsofthisGuidewillbeabletoacceptmostimmunizationmessages basedonthe2.3.1Guide.Notethatvariationsincurrent2.3.1interfacesincreasethe riskthatfaithful2.5.1implementationswillencounterproblemswith2.3.1messages. Thebenefitsfrommovingto2.5.1shouldencouragemigrationtothisstandard. ImplementationsthataresupportingVersion2.3.1messagesshouldcontinuetofollow thespecificationsof2.3.1messagesdescribedintheImplementationGuideVersion2.2, June2006.
IntendedAudience
ThisGuidehastwoaudiences.Thefirstisthesystemmanagersthatmustunderstand thisprocessatahighlevel.ThesecondisthetechnicalgroupfromIISandEHRSthat mustimplementtheseguidelines.Forthemwestriveforanunambiguousspecification forcreatingandinterpretingmessages.OurgoalisforthisGuidetobeabridgebetween thetwo.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
Chapter 1: Introduction
ItisimportanttonotethatHL7specifiestheinterfacebetween2systems.Itdoesnot specifyhowanygivensystemisimplementedtoaccomplishthegoalsofmessaging.
Scope
ThisGuideisintendedtofacilitatetheexchangeofimmunizationrecordsbetween differentsystems 1 .Thisincludes sendingandreceivingimmunizationhistoriesforindividuals sendingandreceivingdemographicinformationabouttheindividuals requestingimmunizationhistoriesforindividuals respondingtorequestsforimmunizationhistoriesbyreturningimmunization histories acknowledgingreceiptofimmunizationhistoriesandrequestsfor immunizationhistories reportingerrorsinthemessagingprocess sendingobservationsaboutanimmunizationevent(thismayinclude funding,reactions,forecastsandevaluations). TheGuideisnotintendedtospecifyotherissuessuchas businessrules,whicharenotimplicitinHL7,appliedwhencreatinga message businessrules,whicharenotimplicitinHL7,appliedwhenprocessinga receivedmessage thestandardtransportlayer searchprocessusedwhenrespondingtoaquery businessrulesusedtodeduplicateclientsorevents managementofvaccineinventory 2 maintenanceofMasterPersonIndex. Localimplementationsareresponsiblefortheimportantissuesdescribedabove.One waytoinsuresuccessistopublishalocalprofileorimplementationguidethatoutlines thelocalbusinessrulesandprocesses.TheseguidesmayfurtherconstrainthisGuide, butmaynotcontradictit.ThisGuidewillidentifysomeofthekeyissuesthatshouldbe addressedinlocalprofiles. TheGuideismeanttosupportandintegratewithstandardsharmonizationefforts. TheseeffortsincludetheHealthInformationStandardsPanel(HITSP),HITSPhas selectedanumberofitemswhichsupportinteroperabilitybetweenhealthsystems. Amongtheseisselectionofpreferredvocabulary.ThisGuidewilladoptthesestandard vocabulariesastheyapply.Anothereffort,whichpromotesstandardsharmonization,is
1 2
The exchange partners could be IIS, EHR-S. or other health data systems. Note that requesting an immunization history may require interaction with an MPI or other identity source. Those using these services should consult with profiles or implementation guides that support this. Integrating the Healthcare Enterprise (IHE) has profiles that support MPI maintenance and identity resolution. HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 2 1/31/2011
Chapter 1: Introduction
anorganizationcalledIntegratingtheHealthcareEnterprise(IHE) 3 .Theyproduce profiles,whichdefinehowtoaccomplishvariousgoalswithcommoncomponents. ThisGuidemakesthefollowingassumptions: Infrastructureisinplacetoallowaccurateandsecureinformationexchange betweeninformationsystems. 4 ProvidersaccessimmunizationinformationthrougheitheranEHRSor immunizationinformationsystem(IIS). Privacyandsecurityhasbeenimplementedatanappropriatelevel. Legalandgovernanceissuesregardingdataaccessauthorizations,data ownershipanddatauseareoutsidethescopeofthisdocument. Theimmunizationrecordanddemographicrecordforeachpatientcontains sufficientinformationforthesendingsystemtoconstructtheimmunizationand demographicmessageproperly. Externalbusinessrulesareassumedtobedocumentedlocally. Itisimportanttobeabletoacceptcompleteimmunizationhistoriesfromdifferent sourcesandhaveamethodforintegratingthem.Thisimpliesthatasystemshouldnot assumethatanyrecordsentisnew.Ifthesystemmakesthisassumptionandreceives acompletehistorythathasoverlappingimmunizationrecords,thereisariskfor duplicaterecords. ThereisbestpracticeguidanceonhandlingthisfromtheAmericanImmunization RegistryAssociation(AIRA)intheModelingImmunizationRegistryOperations Workgroup(MIROW)documentsavailabletheAIRAwebsite.(immregistries.org)
OrganizationandFlow
Thefirsttwochaptersaremeanttolayoutwhatcanbedoneandwhy.Thechapters thatfollowthemdescribeandspecifyhow.Theystartatthemostgranularleveland proceedtothemessagelevel.Severalappendicessupportimplementerswithvaluesets andexamplesofuse. Boxednotesareusedtocallattentiontoareaswheretherearechangesfromthe version2.3.1ImplementationGuideorareaswherereadersshouldpayspecial attention.
3
IHE is an industry-supported group, which creates implementable specifications, based on existing standards, to support accomplishment of selected use cases. 4 This infrastructure is not specified in this document, but is a critical element to successful messaging. Trading partners must select a methodology and should specify how it is used. HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
Chapter 1: Introduction
Chapter1Introduction ThischapterdescribesthescopeoftheGuideandgivessupportingbackground.It includesadescriptionofthediagramsthatwillbeusedtoillustratebusinessprocesses andtransactions. Chapter2Actors,GoalsandMessagingTransactions Chapter2describesthebusinessmotivationsthatthisGuidewillsupport.Itwill describetheentities(actors)thatwillrelyonthemessages.Itwilllayoutthe transactionsthatwillsupportthegoalsoftheseactors(usecases).Finally,itwill describethebroadercontextthatthismessagingoccursin.Therearesupporting businessprocessesoutsideoftheactualmessagingthatarekeystosuccess. Chapter3Messaginginfrastructure Chapter3focusesontheunderlyingrulesandconceptsthatarethebasisforHL7 messaging.Itwillillustratethecomponentsofmessages,thegrammaticalrulesfor specifyingthecomponentsandsubcomponents. Chapter4_DatatypeDefinitions Thischapterwilldescribeandspecifyalldatatypesanticipatedforusebythemessages supportedbythisGuide.Wheretherearesubcomponentstoadatatype,itwillspecify anyrulesrelatedtouse.ThevaluesusedinmessagesarespecifiedinappendixA.Data typesarethebuildingblockforsegments,describedinthenextchapter. Chapter5MessageSegments Chapter5givesspecificationsformessagesegments.Segmentsareunitsofthemessage thatcarryspecifictypesofinformation.ForinstancePIDcarriespatientidentifying information.Thesegmentsincludedinthischapterarethosethatareneededbythe messagesspecifiedinChapter6. Chapter6MessageDetailsforImmunization Chapter6specifieshowtousethebuildingblocksofdatatypesandsegmentstomeet thebusinessneedstoconveyimmunizationrecords.Itwillincludespecificationfor requestinganimmunizationhistoryandacknowledgingmessagereceiptorerrors. Chapter7QueryProfileforRequestinganImmunizationHistory. HL7hasatemplateforspecifyingaquery.Thischapterusesthattemplatetogivethe specificationsforaqueryrequestinganImmunizationHistory.Itisbuiltontheprevious 4chapters.Twochildprofiles,whichsupportresponsetothequery,arealsofoundin thischapter. AppendixACodeTables ThisappendixlistsexpectedvaluesforallcodeddataelementsusedinthisGuide. HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 4
1/31/2011
Chapter 1: Introduction
IntroductiontoDiagramsandModels
Thisdocumentmakesuseofmodelsordiagramstoillustratethetransactionsandtheir components.TheseincludeUseCasemodel,SequenceDiagramandActivityDiagram. ThesearebasedontheUnifiedModelingLanguage(UML).Theillustrationsbeloware examplesonly.Detailedmodelswillbefoundintheappropriatesectionslaterinthe document. ActorandUseCaseDiagramsandTables Actorsareinformationsystemsorcomponentsofinformationsystemsthatproduce, manage,oractoncategoriesofinformationrequiredbyoperationalactivitiesinthe enterprise.Inourcontext,usecasesaretasksorgoalsthatactorsusetocommunicate therequiredinformationthroughstandardsbasedmessages.Thediagramsandtables ofactorsandtransactionsinsubsequentsectionsindicatewhichtransactionseachactor performs. Theusecasesshownonthediagramsareidentifiedbytheirname.Supportingtextwill definethegoalofausecase.Theactorsassociatedwitheachusecasewillbeincluded andshowtheirrelationship.Thediagrambelowshows2actorsthatusetheSend ImmunizationHistoryUseCase.InthisusecaseweseethatbothIISandEHRSusethe SendImmunizationHistoryusecase.ItdoesnotimplythattheIISsendsan immunizationhistorytoanEHRS.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
Chapter 1: Introduction
SequenceDiagrams Thedescriptionsoftheusecasesthatfollowincludesequencediagramsthatillustrate howtheusecaseisaccomplishedasasequenceoftransactionsbetweenrelevant actors. Thesediagramsareintendedtoprovideanoverviewsothetransactionscanbeseenin thecontextoftheparticipatinginstitutionsworkflows.Thesediagramsarenot intendedtopresenttheonlypossiblescenario,justthoserequiredtoaccomplishthe goalsofcommunicatingbetweeninformationsystems. Insomecasesthesequenceoftransactionsmaybeflexible.Wherethisisthecasethere willgenerallybeanotepointingoutthepossibilityofvariations.Transactionsareshown asarrowsorientedaccordingtotheflowoftheprimaryinformationhandledbythe transaction.Inthediagrambelowweseethatonesystem(itcouldbeIISorEHRS) sendsanimmunizationrecordtoanothersystem.ThemessagesentisaVXU (UnsolicitedUpdateofImmunizationRecord).Thereceiverprocessesthemessageand sendsanacknowledgmentofthereceipt.Theprocessingisnotpartofthemessaging andmayvaryfromapplicationtoapplication.Theacknowledgementcouldbeassimple asIgotit,allisOKorThemessagehaserrorsandIcantacceptit
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
Chapter 1: Introduction
ActivityDiagrams Activitydiagramsareanotherwayofshowingwhatishappeningwithinsystemsand betweensystems.Theyaremostusefulforshowingthedecisionlogicused.The diagramincludesswimlanes,whichseparatethetasksofcooperatingsystems.The purposeofthefollowingdiagramistoillustratethecomponentsofanactivitydiagram, nottodesignasystem. Inthiscase,thesendingsystemsendsaVXU.Thereceivingsystemparsesthemessage anddecideswhattodowithit.Weassumethatparsingwassuccessfultosimplifythis diagram.Thereareanumberofdecisionsthataremadeandeachleadstoanactionor actions.Thediamondsrepresentdecisionpoints.Inthefirstdecisionpoint,thesystem branchesfollowsdifferentpaths,dependingontheresultsoftheclientsearch.Ifno matchesarefound,itfollowsitslocalprocessforintegratinganewrecordintothedata base.Ifalowerconfidencematchisfound(forinstance,morethanoneclientmatches theincomingrecord)itfollowslocalbusinessrulesforthesituation.Ifahighconfidence matchisfound,itfollowslocalbusinessrulesformergingtheincomingdataintoan existingclientrecord.Allactionsthenmovetoacknowledgetheresultsoftheactivity. Theactualactivityofarealsystemmaybeverydifferentfromthis.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
Chapter 1: Introduction
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
ActorsandGoals
Thereareanumberofprimaryactorsinvolvedindataexchange.Theseinclude ImmunizationInformationSystem(IIS) ElectronicHealthRecordSystems(EHRS)andothersystems 5 AnactorwithasupportingrolemaybeaMasterPersonIndex(MPI) 6 . Wewillfocusonthefirst2actorsbutwillillustratehowtheMPIactormaybe integrated.Theseactorscanbesuppliersofinformation/dataand consumers/requestersofdata.Wewillconsidertheinitiatorofamessaging conversationthesenderandthetargetofthisfirstmessagethereceiver.Obviously,a sendermayreceivemessages.Forinstance,asenderinitiatesarequestforan immunizationhistoryforaclient.Thereceiverrespondswithamessagethatisreceived bytheinitiatingsender.Forclarity,theinitiatorwillkeepthelabelofsender. Notethatwedonotassumethatthesenderorreceiverisaspecificdatasource(IISor EHR).OneIISmayqueryanotherIISoranEHRS.Similarly,anEHRSmaysendan immunizationhistorytoanotherEHRS. OtheractorshaveaninterestinthefunctionsofanIISandmessaging.Theseinclude: Clients/patients Users Policymakers Researchers PublicHealthagencies
5 6
The diagrams often show an IIS and an EHRs/other system. The other system may be an IIS. A Master Person Index is used by some health data systems to cross-reference a persons identifiers across these systems. If system A needs the persons id from system B, then it may retrieve it from the MPI. The PIX query asks for one systems personal identifier, based on another systems identifier. HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 9 1/31/2011
Clinicians Billingsystems
TheseactorswillnotbedirectlyaddressedinthisGuide.Theyinteractwiththeprimary actorstoaccomplishtheirneeds.
Table 2-1 Actors and Goals for Messaging
Responsibility Provideaccesstoacomplete, consolidatedimmunization recordforeachpersoninits catchmentarea Supplyindividual immunizationrecordsto authorizedusersandsystems Supportaggregatereporting andanalysis Evaluateimmunizationhistory andmakerecommendations fornextdoses Storemedicalconditionsthat affectwhatvaccinesare recommended
ElectronicHealth Recordsystem(EHR S)
MessagingGoals Receiveimmunization historiesandupdates Receivedemographicupdates Receiverequestsforindividual records Receiveobservationsabouta person Sendobservationsabouta person Sendimmunizationrecordsto othersystems Senddemographicdata Requestimmunizationrecord Requestpersonid Acknowledgereceiptof message Reportprocessingerrorsfrom receiptofmessage Receiveimmunization historiesandupdates Receivedemographicupdates Receiverequestsforindividual 10
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
Actor
Maintainalistofpatientsand identifiersforasetofpersons Supplyidentifiersforother systemsuse Beacentraldemographic supplierforparticipating systems Providecrossreferencefor identifiersforparticipating systems.
MessagingGoals records Sendimmunizationrecordsto IIS Senddemographicdata Receiveobservationsabouta person Sendobservationsabouta person RequestImmunizationrecord Requestpersonid Acknowledgereceiptof message Reportprocessingerrorsfrom receiptofmessage Requestevaluationonan immunizationhistoryand recommendationsfornext doseonagivenSchedule,such asACIP Sendidforanindividualfor useinarecordrequestor recordupdate Receiverequestforpersonid. Returncompletedemographic dataforanindividualfrom centraldemographicstore
ThetablelistsanumberofmessagingneedsthatrelatetoIISandtheirtradingpartners. TheseareallcandidatesforHL7messaging.Somearenotcurrentlyimplemented,but HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 11
1/31/2011
giveusthelandscapethatshouldbeconsidered.Notethatthemessagingfor maintainingofanMPIisoutofscopeforthisImplementationGuide. Anotherwaytoorganizethesetasksorgoalsistodecomposethegoalsoftheentities (actors)intothevariousrolestheymayplay.Theserolesinclude: Immunizationhistorysupplier Immunizationhistoryconsumer Demographicinformationsupplier Demographicinformationconsumer Identityresolutionbroker Eachoftheactorsabovemayhavethecapacityandinteresttosupportsome constellationoftheseroles.Thisapproachisusefulforsystemdesignand implementationandencouragesaservicesapproachtodevelopment.Sincethegoalof thischapteristoprovideanontechnicalviewtohelpsystemmanagersunderstand howmessagingcanmeettheirneeds,wewillfocusonthebusinessentitiesandtheir goals.
HighLevelViewofUseCases
Wecanmaptheseactorsandmessaginggoalstousecases.Thefollowingdiagrammaps themessaginggoalsofthevariousplayerstousecases.Theseusecaseswillbedefined below.Notethatsomeoftheseusecasesarelogicallyrelated.Forinstance,Request ImmunizationHistoryispairedwithReturnImmunizationHistory.SendImmunization HistoryneedsthereceivertoReceiveImmunizationHistory.Theseusecasesarenot intendedtobethebasisofasoftwaredesignprocess. Severalpathsmayaccomplishtherequestforimmunizationhistory.Systemswillreturn animmunizationhistorywhentheyareconfidentthatthepersonrequestedhasbeen identified.Onepathseparatesidentityresolutionfromtherequestforimmunization history.Anotherincludesimplicitidentityresolution.Fordetails,seeusecase3,4Aand 4below.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
12
Chapter 2: Actors, Goals and Messaging Transactions Figure 2-1 Use Case Diagram
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
13
Chapter 2: Actors, Goals and Messaging Transactions Figure 2-2 Finding a Client
ThefollowingliststheHL7MessagesshownbelowintheUseCases: ACKAcknowledgementmessage ADTAdmit,DischargeandTransfermessage QBPQuerybyparameter RSPRespondtoQBP VXUUnsolicitedvaccinehistory ThefollowingareprofiledqueriessupportedbyIHEforidentityresolution: PDQAspecifictypeofQBPthatfacilitatesidentifyresolutionbasedondemographic information PIXAspecifictypeofQBPthataccomplishesidcrossreference
UseCaseDescriptions
UseCase1SendImmunizationHistory Goal:Tosendanimmunizationhistoryforanindividualclientfromonesystemto another.InadditiontoEHRSandIIS,othersystemssuchasvitalrecordssystemsor billingsystemscouldusethismessagetosendimmunizationhistories.
HL7 version 2.5.1 Message Type: VXU
Precondition:Auserorotheractorrequeststhatthesendingsystemsendan immunizationhistory.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
14
Precondition:AVXUisreceivedbythereceivingsystem. UseCase3RequestImmunizationHistory Goal:Torequestanimmunizationhistoryfromanothersystem. Precondition:Auserorotheractorrequeststhatthesendingsystemsendarequestfor animmunizationhistoryusingdemographicinformationand/orotheridentifiers. TheoldVXQqueryincludedimplicitidentityresolution.Ifahighconfidencecandidate wasidentified,basedondemographicsandotheridentifiers,animmunizationhistory wasreturnedinaVXR.Iflowerconfidencecandidateswerefound,alistofcandidates wasreturnedforfurtherselectioninaVXX.TheselectionfromtheVXXinformedthere querywithanewVXQ.TheapproachoutlinedinthisGuideallowsthisprocesstobe followedusingdifferentmessages.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
15
Anotherapproachthatiscommonintheinformaticsworldistoseparatetheidentity resolutionfromtherequestforcontent(immunizationhistoryinthiscase).Herethe requestersendsaqueryseekingacandidate,basedondemographicsandother identifiers.Therequesterselectsfromthecandidatesreturnedandthensendsthe requestforcontentbasedonthatselection.Theidentitymaybesoughtfromaseparate MasterPersonIndexorfromthecontentprovider.Oneindustrystandard,which supportsthisapproach,isthePDQqueryprofilebyIntegratingtheHealthcare Enterprise(IHE).TheapproachoutlinedinthisGuideallowsthisprocesstobefollowed. Athirdsituationoccurswhentherequesteralreadyknowsanidentifiermeaningfulto therespondingsystem.Thismayoccurwhenthesendingsystemhasalreadysenta recordforthepersonofinterestthatincludesthesendersidentifier.Alternatively,it mayoccuriftherequesterknowstheuniqueidentifierusedbytherespondingsystem. TheapproachoutlinedinthisGuideallowsthisprocesstobefollowed. Sinceidentityresolutionisrequiredeitherimplicitlyorexplicitly,ausecaseisdescribed forfindingaclient/candidate(UseCase4A).Thatusecasecontainsthealternateflows forthedifferentpaths. Notethatmoredetailedinformationabouttheflowofeventsandoptionsisavailablein AppendixB.
HL7 version 2.5.1 Message Type: QBP using Request Immunization History query profile.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
16
Chapter 2: Actors, Goals and Messaging Transactions Figure 2-4-Use Cases 3, 4 and 5: Request Immunization History, Respond to Request and Accept Requested History
Notethatthesendingsystemprocessmayincludeconfirmingthattherecordreturned istheonebeingsought.Thisprocessisnotspecifiedhere. UseCase4ReturnImmunizationHistory Goal:Toreturnanimmunizationhistory.Itdoesnotincludetheprocessesusedtofind candidateclientsforreturn. Thereare4possibleresults: 1. Oneclientmatchesexactly 7 thecriteriasent 2. Oneormoreclientsmatchthecriteriasent(inexactmatch) 8 3. Noclientsmatchthecriteriasent 4. Therewereerrorsorotherproblems NotethatsystemsmustdealwiththesituationwhereaClienthasindicatedthathis/her recordsmustbeprotected.(Onlytheowningprovidermayview)Thisshouldbeclearly documented. SeeFigure6.
Standard Reference HL7 version 2.5.1 Message Type: RSP
Precondition:Areceivingsystemreceivesarequestforanimmunizationhistory.
HL7 version 2.5.1 Message Type: QBP using Request Immunization History query profile
UseCase4AFindCandidateClients Goal:Tofindoneormorecandidateclientsfromanothersystemandselectonetobe usedwhenrequestinganimmunizationhistory. Precondition: Therearetwopotentialpreconditions. 1. Auserorotheractorrequeststhatthesendingsystemsendarequestforoneor morecandidateclientsusingdemographicinformationand/orotheridentifiers. (ThisiswellspecifiedintheIHEPDQprofile) 2. Areceivingsystemreceivesarequestforimmunizationhistoryusingarequest forimmunizationhistoryquery.
7 8
The definition of exact is a local business rule and should be documented locally. If more than one client has a high-confidence match with the query parameters, this is an inexact match. HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
17
Figure 2-5--Using PDQ to Resolve Identity Prior to Request for Immunization History
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
18
Figure 2-6--Implicit Identity Resolution in Response to a Request for Immunization History When One High-confidence Match Is Found
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
19
Figure 2-7--Implicit Identity Resolution in Response to a Request for Immunization History When Lower Confidence Candidates Are Found
HL7 version 2.5.1 Message Type: QBP using Request Immunization History query profile Or QBP using PDQ (IHE)
UseCase5Acceptrequestedhistory:
Scope:
Thegoalofthisusecaseistoacceptanimmunizationhistoryinresponsetoaqueryfor animmunizationhistoryfromanothersystem.
Standard Reference HL7 version 2.5 Message Type:RSP
Preconditions:Asendingsystemreceivesarequestedimmunizationhistory.
Sequence Diagram:
Seesequencediagramsforusecase3above.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
20
ThestandardmessagesthatmaybeusedforcarryingdemographicdataareVXU,ADT. Precondition:Thereceivingsystemreceivesdemographicdata.
Sequence Diagram:
SeeFigure7.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
21
UseCase8AcknowledgeReceipt
Scope:
Precondition:Asystemhasprocessedamessageanddeterminedthesuccessofreceipt.
Sequence Diagram:
Seesequencediagramsforusecasesabove.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
22
UseCase9ReportError
Scope:
Thegoalofthisusecaseistosenderrormessagesrelatedtomessages.
Standard Reference HL7 version 2.5 Message Type: ACK, RSP
Precondition:Asystemhasprocessedamessageandfounderrors.
Sequence Diagram:
Seesequencediagramsforusecasesabove.
MessagingintheContextoftheBusinessProcess
Whilethisdocumentfocusesontheformatandcontentofmessagesfromonesystem toanother,itisusefultounderstandwherethisfitsintothebiggerpictureof interoperablecommunication. ThefollowingdiagramillustratesthemostcommonmessageexchangeintheIIS context,theVXU(unsolicitedimmunizationrecord).Whenthesendingsystemwishesto sendaVXUtoareceivingsystem,itmustdoseveralstepsinpreparation: o Createmessage 9 o Assembledataonpersonofinterest o BuildtheVXUmessagewiththisdata o Sendthemessage o Connecttothereceivingsystem.Thepartnersmustagreeonhowthisis done. o Thesendingsystemnowsendsthemessageovertheconnectionandthe receivingsystemcatchesthemessage. Thereceiveraccomplishesthefollowingsteps: o Processthereceivedmessage o Determinethatthemessageisintheappropriateformat. o Parsethemessageintoaformatthatituses. o Evaluatethemessagecomponentstodeterminethatthesearecorrectly formattedandspecified. o Sendanacknowledgementtothesender,indicatingthemessagehasbeen successfullyprocessed.
Identifying which clients record to send is an important consideration, but outside the scope of this document. HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 23 1/31/2011
o Integratethereceivedrecordintotheexistingdatabase. 10 o Deduplicateonclienttobesurethateachclientonlyhasonerecord. o Deduplicatetheevents(immunizations,forinstance). o Insertorupdatedata. Obviously,theinteractionmaybemorecomplexthanthis 11 .Theconnectionmaybe rejectedorfail.Themessagemaybepoorlyformedormaynotcontainrequired information.Partofthemessagemaycontainerrors,buttheseerrorsarenotsufficient torejecttheentiremessage. Thebusinessrulesforboththesenderandthereceivershouldbeclearlyspecifiedso thateachsideunderstandshowthemessagewillbehandled. Whenillustratingtheprocessesinvolvedineachmessagebelow,wewillnotelaborate ontheprocessesthatoccuroutsidetheactualmessageexchange.
10 11
Local business rules determine how this occurs and should be documented clearly. See Appendix B for illustrations of the processing rules expected when handling HL7 messages. HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
24
AppendixBgivesdetailedexamplemessagesandhasillustrationofthebusiness processessurroundingothermessagetransactions.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
25
HL7definitions
Thetermsbelowareorganizedtomovefromthemessagetosubsequentlymore granularcomponents. Message:Amessageistheentireunitofdatatransferredbetweensystemsinasingle transmission.Itisaseriesofsegmentsinasequencedefinedbythemessage specifications.ThesespecificationsarebasedonconstraintstotheHL7specifications,as describedinanImplementationGuide. Example: Segment Description MSH| MessageHeader PID| PersonalIdentifiers ORC| OrderSegment RXA| Vaccineadministeredsegment ThetableaboveshowsanimmunizationhistoryforthepatientidentifiedinthePID.This personhasoneimmunizationorderedandrecorded. Segment:Asegmentisalogicalgroupingofdatafields.Segmentswithinadefined messagemayberequiredoroptional,mayoccuronlyonce,ormaybeallowedto repeat.EachsegmentisnamedandisidentifiedbyasegmentID,aunique3character code. Example:
PID|||12322^^^Assigning authority^MR^||Savage^Robert^^^^^L^|
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
26
Nullfieldsshouldnotbesentinimmunizationmessages.Systemswhichwillsendnull fields()mustspecifytheiruseinlocalimplementationguides.Systemswhichwill acceptandprocessnullfields,asdescribedabove,mustspecifytheiruseinlocal implementationguides. Datatype:Adatatyperestrictsthecontentsandformatofthedatafield.Datatypesare givena2or3lettercode.Somedatatypesarecodedorcompositetypeswithseveral components.Theapplicabledatatypeislistedanddefinedineachfielddefinition. CodeSets/Systems:Mostdataelementswillhaveassociatedlistsofacceptablevalues intablessupportedbyastandardsorganizationsuchasHL7orCDC.Thesecodesetswill includedefinitionstosupportcommonusage. Delimiters:Delimitercharactersareusedtoseparatesegments,fieldsandcomponents inanHL7message.ThedelimitervaluesaregiveninMSH2andusedthroughoutthe message.Applicationsmustuseagreedupondelimiterstoparsethemessage.Messages usedinthisGuideshallusethefollowingdelimiters: <CR>=SegmentTerminator; |=FieldSeparator; ^=ComponentSeparator; &=SubComponentSeparator; ~=RepetitionSeparator;
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
27
\=EscapeCharacter. Messagesyntax:Eachmessageisdefinedinspecialnotationthatliststhesegment3 letteridentifiersintheordertheywillappearinthemessage.Braces,{},indicatethat oneormoreoftheenclosedgroupofsegmentsmayrepeat,andbrackets,[],indicate thattheenclosedgroupofsegmentsisoptional.Notethatsegmentsmaybenested withinthebracesandbrackets.Thiswillindicatethatthenestedsegmentsareunits withinasubgroupofsegments.TheirUsageisrelativetotheparentsegmentinthe group. Zsegments:Allmessagetypes,triggereventcodes,andsegmentIDcodesbeginning withZarereservedforlocallydefinedmessages.Nosuchcodeswillbedefinedwithin theHL7Standard.TheusersofthisGuidehaveagreedtoeliminateZsegmentsfrom theirimplementationsinordertoproduceastandardmethodthatwillbeused nationallytotransmitimmunizationdata.Thequeryprofiledinthisdocumentdoes haveanamecodewhichbeginswithZasspecifiedbyHL7.
BasicMessageConstructionRules
EncodingRulesforSending 1.Encodeeachsegmentintheorderspecifiedintheabstractmessageformat. 2.PlacetheSegmentIDfirstinthesegment. 3.Precedeeachdatafieldwiththefieldseparator. 4.Encodethedatafieldsintheorderanddatatypespecifiedinthesegmentdefinition table. 5.Endeachsegmentwiththesegmentterminator. 6.Components,subcomponents,orrepetitionsthatarenotvaluedattheendofafield neednotberepresentedbycomponentseparators.Thedatafieldsbelow,forexample, areequivalent: |^XXX&YYY&&^|isequalto|^XXX&YYY^| |ABC^DEF^^| isequalto|ABC^DEF| 7.Components,subcomponents,orrepetitionsthatarenotvalued,butprecede components,subcomponentsorrepetitionsthatarevaluedmustberepresentedby
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
28
appropriateseparators.Forexample,thefollowingCEdatatypeelementhasthefirst triplicateemptyandapopulatedsecondtriplicate:
|^^^ABC^Text^Codesystem|
8.Ifafieldallowsrepetition(Cardinalitymaximum>1),thenthelengthofthefield appliestoEACHrepetition. EncodingRulesforReceiving 1.Ifadatasegmentthatisexpectedisnotincluded,treatitasifalldatafieldswithin werenotpresent. 2.Ifadatasegmentisincludedthatisnotexpected,ignoreit;thisisnotanerror. 3.Ifdatafieldsarefoundattheendofadatasegmentthatarenotexpected,ignore them;thisisnotanerror. ImplicationsoftheEncodingRules Thefollowingtableliststheexpectedoutcomeimpliedbytheencodingrulesabove.
Table 3-1 Outcome of Encoding Rule Breaches
Condition Requiredsegmentnot present. Segmentsnotincorrect order Segmentnotexpected Nonrepeatingsegmentis repeated Requiredsegmenthas requiredfieldsthatarenot presentorrejecteddueto errors Optionalsegmenthas requiredfieldthatisnot presentorrejecteddueto errors.
SecondaryOutcome Errormessagereturnedto sendingsystem. Ifthissegmentisrequired, thenmessagerejected. Informationintherepeated segmentislosttoreceiving system. Errormessagereturnedto sendingsystem.
Segmentisignored
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
Requiredfieldisrejected duetoerrors.
Segmentis ignored/rejected.
SecondaryOutcome Ifsegmentisrequired,then messageisrejected.If segmentisnotrequired, theinformationinthe segmentislosttoreceiving system. Ifsegmentisrequired,then messageisrejected.If segmentisnotrequired, theinformationinthe segmentislosttoreceiving system.
DeterminingUsageofSegments,FieldsandComponents ManyfieldsandsegmentsinHL7areoptional.Thisguidetightensconstraintsonsome fieldstosupportfunctionalityrequiredfrommeaningfuluseofimmunizationdata.The followinglisttherulesappliedtothedecisionsusedtodetermineusageinthisGuide. 1.Anysegment,field,orcomponentthatisrequiredbyHL7standardisrequired. 2.AnyfieldorcomponentthatisarequiredNationalVaccineAdvisoryCommittee (NVAC)CoreDataelementisrequiredbutmaybeempty 12 . 3.AnysegmentthatcontainsarequiredNVACCoredataelementisrequiredbutmaybe empty. 4.Anysegment,field,orcomponentthatisretainedforbackwardcompatibilityin Version2.5.1shallbeunsupportedinthisGuide. 5.Anysegment,field,orcomponentthatisconditionalbutmaybeemptyinVersion 2.5.1shallbeconditionalorconditionalbutmaybeemptyinthisGuide,unlessthis conflictswith2or3above.
12
In some cases they may not be empty. Client name may never be empty or null, for instance. HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 30 1/31/2011
6.Allotherfieldswillbeleftoptional.
Table 3-1--Usage Code Interpretations for Fields, Components and Sub-components
UsageCode R
Interpretation Required
RE
Requiredbutmay beempty
Comment Aconformingsendingapplicationshallpopulateall Relementswitha nonemptyvalue. Conformingreceivingapplicationshallprocessor ignoretheinformationconveyedbyrequired elements. Aconformingreceivingapplicationmustnotraise anerrorduetothepresenceofa requiredelement,butmayraiseanerrordueto theabsenceofarequiredelement. Theelementmaybemissingfromthemessage, butmustbesentbythesendingapplicationif thereisrelevantdata. Aconformingsendingapplicationmustbecapable ofprovidingall"RE"elements.Ifthe conformingsendingapplicationknowsthe requiredvaluesfortheelement,thenitmustsend thatelement.Iftheconformingsending applicationdoesnotknowtherequiredvalues, thenthatelementwillbeomitted. Receivingapplicationswillbeexpectedtoprocess orignoredatacontainedintheelement,butmust beabletosuccessfullyprocessthemessageifthe elementisomitted(noerrormessageshouldbe generated becausetheelementismissing).
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
31
UsageCode C
Interpretation Conditional
Comment Thisusagehasanassociatedconditionpredicate. Thispredicateisanattributewithinthemessage. Ifthepredicateissatisfied: Aconformantsendingapplicationmustalways sendtheelement. Aconformantreceivingapplicationmustprocess orignoredataintheelement.Itmayraiseanerror iftheelementisnotpresent. IfthepredicateisNOTsatisfied: AconformantsendingapplicationmustNOTsend theelement. AconformantreceivingapplicationmustNOTraise anerroriftheconditionpredicateisfalseandthe elementisnotpresent,thoughitmayraisean erroriftheelementISpresent.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
32
Comment Thisusagehasanassociatedconditionpredicate. Thispredicateisanattributewithinthemessage. Ifthepredicateissatisfied: Iftheconformingsendingapplicationknowsthe requiredvaluesfortheelement,thenthe applicationmustsendtheelement. Iftheconformingsendingapplicationdoesnot knowthevaluesrequiredforthiselement, thentheelementshallbeomitted.The conformingsendingapplicationmustbecapable ofknowingtheelement(whenthepredicateis true)forallCEelements. Iftheelementispresent,theconformantreceiving applicationshallprocessorignorethevaluesof thatelement.Iftheelementisnotpresent. Theconformantreceivingapplicationshallnot raiseanerrorduetothepresenceorabsenceof theelement. Ifthepredicateisnotsatisfied: Theconformantsendingapplicationshallnot populatetheelement. Theconformantreceivingapplicationmayraisean applicationerroriftheelementispresent. O Optional Thiselementmaybepresentifspecifiedinlocal profile.Localpartnersmaydevelopprofilesthat supportuseofthiselement.Intheabsenceofa profile,conformantsendingapplicationswillnot sendtheelement. Conformantreceivingapplicationswillignorethe elementifitissent,unlesslocalprofilespecifies otherwise.Conformantreceivingapplicationsmay notraiseanerrorifitreceivesanunexpected optionalelement. X NotSupported Theelementisnotsupported.Sending applicationsshouldnotsendthiselement. Receivingapplicationsshouldignorethiselement ifpresent.Areceivingapplicationmayraisean HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 33
1/31/2011
UsageCode CE
UsageCode
Interpretation
Elementsthatareoptionalorarenotsupportedforuseinimmunizationmessageswill benotedintheelementtable,butnotintheelementdefinitiontextthatfollow.
Table 3-2--Usage Code Interpretation for Segments
UsageCode R
Interpretation Required
RE
Requiredbutmay beempty
Optional
Comment Aconformingsendingapplicationshallincludeall Rsegments. Conformingreceivingapplicationshallprocessall requiredsegments. Aconformingreceivingapplicationmustprocess allrequiredsegments.Itshouldraiseanerrordue totheabsenceofarequired segment. Thesegmentmaybemissingfromthemessage, butmustbesentbythesendingapplicationif thereisrelevantdata. Aconformingsendingapplicationmustbecapable ofprovidingall"RE"segments.Ifthe conformingsendingapplicationhasdataforthe requiredsegment,thenitmustsendthat segment. Receivingapplicationswillbeexpectedtoprocess thedatacontainedinthesegment.Itmustbeable tosuccessfullyprocessthemessageifthesegment isomitted(noerrormessageshouldbegenerated becausethesegmentismissing). Thissegmentmaybepresentifspecifiedinlocal profile.Localpartnersmaydevelopprofilesthat supportuseofthissegment.Intheabsenceofa profile,conformingsendingapplicationswillnot sendtheelement.Conformantreceiving applicationswillignoretheelementifitissent, unlesslocalprofilespecifiesotherwise. 34
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
UsageCode X
Interpretation NotSupported
MessageAttributesCommontoAllMessages
ThefollowingdescribehowmessagespecificationswillbeillustratedinthisGuide. ThesetermswillbeusedinthetablesspecifyingmessagesthroughoutthisGuide.
Table 3-3--Message Attributes
MessageAttributes Attribute Description Threecharactercodeforthesegmentandtheabstractsyntax (i.e.,thesquareandcurlybraces) [ XXX ] Optional { XXX } Repeating XXX Required(notinsideanybraces) [{ XXX }]OptionalandRepeating Segment
[ XXX ]
[YYY]
Name Usage
Cardinality
YYYisnestedwithinthesegmentblockstartingwithXXX.Itisan optionalsubsegmenttoXXX 13 .Thewholeblockisoptional. NotethatforSegmentGroupstherewillnotbeasegmentcode present,butthesquareandcurlybraceswillstillbepresent. NameoftheSegmentorSegmentgroupelement. Usageofthesegment.Indicatesifthesegmentisrequired, optional,ornotsupportedinamessage.SeetablewithUsage CodeInterpretationabove. Indicatoroftheminimumandmaximumnumberoftimesthe elementmayappear. [0..0] Elementneverpresent. [0..1] Elementmaybeomittedanditcanhaveatmost,one
13
YYY may only be included if XXX is present. XXX may be present without YYY. HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
35
occurrence. [1..1] ElementmusthaveexactlyoneOccurrence. [0..n] Elementmaybeomittedormayrepeatuptontimes. [1..n] Elementmustappearatleastonce,andmayrepeatupto ntimes. [0..*]Elementmaybeomittedorrepeatforanunlimitednumber oftimes. [1..*]Elementmustappearatleastonce,andmayrepeat unlimitednumberoftimes. [m..n]Elementmustappearatleastmand,atmost,ntimes.
SegmentAttributesCommontoAllSegments
Theabbreviatedtermsandtheirdefinitions,asusedinthesegmenttableheadings,are asfollows:
Table 3-4--Segment Attributes
Abbreviation Description Seq Sequenceoftheelements(fields)astheyarenumberedinthesegment Recommendedmaximumlengthoftheelement.Lengthsareprovided onlyforprimitivedatatypes. Lengthsshouldbeconsideredrecommendations,notabsolutes.The Len receivermaytruncatefields,components,andsubcomponentslonger thantherecommendedlength.Thereceivershouldnotfailtoprocessa messagesimplybecausefields,components,orsubcomponentsaretoo long. DataType DatatypeusedforHL7element.Datatypespecificationscanbefoundin Chapter4. IndicateswhetherthefieldissupportedinthisGuide.Indicatesifthe field,component,orsubcomponentisrequired,optional,orconditional inthecorrespondingsegment,field,orcomponent.SeeUsageCode Interpretation,above. Note:Arequiredfieldinanoptionalsegmentdoesnotmeanthe Usage segmentmustbepresentinthemessage.Itmeansthatifthesegmentis present,therequiredfieldswithinthatsegmentmustbepopulated.The sameappliestorequiredcomponentsofoptionalfields.Ifthefieldis populated,thentherequiredcomponentmustbepopulated.Thesame appliestorequiredsubcomponentsofoptionalcomponents.Ifa componentispopulated,therequiredsubcomponentsofthat componentmustalsobepopulated.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
36
Abbreviation Description Indicatoroftheminimumandmaximumnumberoftimestheelement mayappear. [0..0] Elementneverpresent. [0..1] Elementmaybeomittedandcanhaveatmost,oneoccurrence. [1..1] Elementmusthaveexactlyoneoccurrence. [0..n] Elementmaybeomittedormayrepeatuptontimes. Cardinality [1..n] Elementmustappearatleastonce,andmayrepeatupton times. [0..*] Elementmaybeomittedorrepeatforanunlimitednumberof times. [1..*] Elementmustappearatleastonce,andmayrepeatunlimited numberoftimes. [m..n] Elementmustappearatleastmand,atmost,ntimes. Item# UniqueitemidentifierinHL7 HL7Element HL7descriptoroftheelementinthesegment. Name Comment ListsanyconstraintsimposedandothercommentsinthisGuide
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
37
DataTypesforIISUse
Datatypesspecifytheformatandtypeofdataused.Adatatypemaybeassimpleasanumeric datatype,whichallowsanumber.Itmaybeamorecomplexcodedentrythatrequiresa specificsetofcodevaluesandthenameofthecodesystem.Datatypesmaycontain subcomponentsthatarespecifiedbydatatypes. Thefollowinglistofdatatypesonlyincludesthosethatareusedbyfieldsthatareanticipated forIISuse.DatatypesforfieldsthatarenotusedinthisGuidearenotincluded,eveniftheyare partofsegmentthatisused.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
38
Chapter 4: HL7 Data Types Table 4-1-- Data Types Data type CE CQ CWE CX DT DTM EI ERL FC FN HD ID IS LA2 MSG NM PT SAD SI ST TS VID XAD XCN XPN XTN Data Type Name Coded element Composite Quantity with Units Coded with Exceptions Extended Composite Id with Check digit Date Date/Time Entity Identifier Error Location Financial Class Family Name Hierarchic Designator Coded Values for HL7 Tables Coded value for User-Defined Tables Location with address variation 2 Message Type Numeric Processing Type Street Address Sequence ID String Time Stamp Version Identifier Extended Address Extended Composite ID Number and Name for Persons Extended Person Name Extended telephone number
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
39
Chapter 4: HL7 Data Types Table 4-2 Coded Element (CE) SEQ 1 LEN 999 Data Type ST Usage RE Value Set Component Name Identifier Comments Identifying Code. Human readable text that is not further used. If Sequence 1 is populated, this should also be populated. If sequence 1 is populated, this field must be populated. Alternate Identifying coded. Human readable text that is not further used. If Sequence 4 is populated, this should also be populated. If sequence 4 is populated, this field must be populated.
2 3 4
999 20 999
ST ID ST
CE C RE
0396
5 6
999 20
ST ID
CE C
0396
Note: Sequence 1,2, and 3 are one triplet that are treated as a unit. The other triplet is a separate unit. Either may be populated, but should mean the same thing if both are populated. The order of the contents is not specified. In the previous guide, the first triplet was reserved for CVX codes in RXA-5. This is no longer true, based on HL7 usage of CE data type.
Identifier (ST)
Definition: Sequence of characters (the code) that uniquely identifies the item being referenced. Different coding schemes will have different elements here.
Text (ST)
Definition: The descriptive or textual name of the identifier, e.g., DTaP. This is not used by the sending or receiving system, but rather facilitates human interpretation of the code.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
40
0396
HL7039 0396
Note: Sequence 1,2, and 3 are one triplet that are treated as a unit. The other triplet is a separate unit. Either may be populated, but should mean the same thing if both are populated. When transmitting text note only, only the first triplet shall be populated.
Text (ST)
Definition: Free text note regarding the immunization reported in this RXA.
CQCompositeQuantitywithUnits
Definition: This data type carries a quantity and attendant units. Its primary use in this Guide will be for indicating the maximum number of records to return in a query response.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
41
Chapter 4: HL7 Data Types Table 4-4 Composite Quantity with Units (CQ)
SEQ 1 LEN 16 Data Type NM Usage R Value set COMPONENT NAME Quantity COMMENTS The value shall be a positive integer. 2 CE R 0126 Units The value shall be RD (records).
Quantity (NM)
Definition: This component specifies the numeric quantity or amount of an entity.
Units (CE)
Definition: This component species the units in which the quantity is expressed. Field-by-field, default units may be defined within the specifications. When the quantity is measured in the default units, the units need not be transmitted. If the quantity is recorded in units different from the default, the units must be transmitted.
CWECodedWithExceptions
Definition: Specifies a coded element and its associated detail. The CWE data type is used when 1) more than one table may be applicable or 2) the specified HL7 or externally defined table may be extended with local values or 3) when text is in place, the code may be omitted.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
42
Chapter 4: HL7 Data Types Table 4-5 Coded with Exceptions (CWE)
Data SEQ LEN Type Usage Value Set Component Name Comments
999
ST
RE
Identifier
Identifying Code. Human readable text that is not further used. If Sequence 1 is populated, this should also be populated. If sequence 1 is populated, this field must be populated. Alternate Identifying code. Human readable text that is not further used. If Sequence 4 is populated, this should also be populated. If sequence 4 is populated, this field must be populated.
2 3 4
999 20 999
ST ID ST
CE CE RE
0396
5 6 7 8 9
999 20 10 10 199
ST ID ST ST ST
CE CE O O O
0396
Alternate Text Name of Alternate Coding System Version Id Alternate Coding System Version Id Original Text
Note: Sequences 1,2 and 3 are one triplet that are treated as a unit. The other triplet is a separate unit. Either may be populated, but should mean the same things if both are populated. The order of the contents is not specified. In the previous guide, the first triplet was reserved for CVX codes in RXA-5. This is no longer true, based on HL7 usage of CE data type.
Identifier (ST)
Definition: Sequence of characters (the code) that uniquely identifies the item being referenced. Different coding schemes will have different elements here.
Text (ST)
Definition: The descriptive or textual name of the identifier, e.g., DTaP. This is not used by the sending or receiving system, but rather facilitates human interpretation of the code.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
43
Definition: This data type is used for specifying an identifier with its associated administrative detail.
Maximum Length: 1913
Note: The check digit and check digit scheme are empty if ID is alphanumeric.
Example:
|1234567^^^ME129^MR|
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
44
ID (ST)
Definition: The value of the identifier itself.
DTDate
Definition: Specifies the century and year with optional precision to month and day. Table 4-7 Date (DT) SEQ 1 LEN 8
Data Type
Usage R
Value Set
Comments
As of v 2.3, the number of digits populated specifies the precision using the format specification YYYY(MM[DD]). Thus: Examples:
|19880704| |199503| |2000|
Four digits are used to specify a precision of "year" Six are used to specify a precision of "month" Eight are used to specify a precision of "day."
14
OIDs are object identifiers. According to wikipeida: Health Level Seven (HL7), a standards-developing organization in the area of electronic health care data exchange, is an assigning authority at the 2.16.840.1.113883 (joint-iso-itu-t.country.us.organization.hl7) node. HL7 maintains its own OID registry, and as of January 1, 2008 it contained almost 3,000 nodes, most of them under the HL7 root. The Centers for Disease Control and Prevention has also adopted OIDs to manage the many complex values sets or "vocabularies" used in public health. The various OIDs are available in the Public Health Information Network (PHIN) Vocabulary Access and Distribution System (VADS).
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
45
DTMDate/Time
Table 4-8 Date/Time (DTM)
Data
SEQ
LEN 24
Type
Usage R
Value Set
Comments
The number of characters populated (excluding the time zone specification) specifies the precision. Format: YYYY[MM[DD[HH[MM[SS[.S[S[S[S]]]]]]]]][+/-ZZZZ]. Thus: Four digits are used to specify a precision of "year" Six are used to specify a precision of "month" Eight are used to specify a precision of "day." the first ten are used to specify a precision of "hour the first twelve are used to specify a precision of "minute the first fourteen are used to specify a precision of "second the first sixteen are used to specify a precision of "one tenth of a second the first nineteen are used to specify a precision of " one ten thousandths of a second
When the time zone is not included, it is presumed to be the time zone of the sender. Example: |199904| specifies April 1999.
EIEntityIdentifier
Definition: The entity identifier defines a given entity within a specified series of identifiers.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
46
Namespace ID (IS)
The assigning authority is a unique identifier of the system (or organization or agency or department) that creates the data. Refer to User-defined Table 0363 Assigning authority for suggested values.
Universal ID (ST)
This is a universal id associated with this entity. It must be linked to the Universal Id Type below. If populated, it shall be an OID.
SEQ 1
LEN 3
Data Type ST
Usage R
Value Set
2 3
2 2
NM NM
R RE
Segment Sequence Field Position This should not be populated if the error refers to the whole segment.
NM
RE
Field Repetition
NM
RE
Component Number
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
47
Definition: This data type identifies the segment and its constituent where an error has occurred.
Maximum Length: 18
Segment ID (ST)
Definition: Specifies the 3-letter name for the segment.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
48
Maximum Length: 47
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
49
Surname (ST)
This is the person's last name.
ExamplefromPID:|Anyperson| HDHierarchicDesignator HITSP is recommending the use of OIDs in fields using this data type. Definition:HDidentifiesan(administrativeorsystemorapplicationorother)entitythathas responsibilityformanagingorassigningadefinedsetofinstanceidentifiers(suchasplaceror fillernumber,patientidentifiers,provideridentifiers,etc.).Thisentitycouldbeaparticular healthcareapplicationsuchasaregistrationsystemthatassignspatientidentifiers,a governmentalentitysuchasalicensingauthoritythatassignsprofessionalidentifiersordrivers licensenumbers,orafacilitywheresuchidentifiersareassigned.
Table 4-13 Hierachical Designator (HD)
SEQ 1 LEN 20 Data Type IS Usage CE Value Set 0300 0361 0362 0363 COMPONENT NAME Namespace ID COMMENTS This field is used for a locally defined name/id. It may be used as previous version 2.3.1 Implementation Guide specified. If the field or component is required, then this field shall be populated if components 2 and 3 are not populated. The value set used depends on usage.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
50
SEQ 2
LEN 199
Data Type ST
Usage CE
Value Set
COMMENTS This field shall be populated if component 3 is populated. This field must be populated if field 1 is empty. This field shall used OID if populated
ID
CE
0301
Universal ID Type
This field shall be populated if component 2 is populated. If populated the value is constrained to ISO
IS -- Namespace ID
User-defined Table 0300/0361/0362/0363 - Namespace ID is used as the HL7 identifier for the user-defined table of values for this component.
Note: When the HD is used in a given segment (either as a field or as a component of another data type) this table may be re-defined (given a different user-defined table number and name) by the technical committee responsible for that segment. Tables 0361-0363 are preferred for most instances. For instance for identifying the assigning authority, use 0363.
Universal ID (ST)
The HDs second component, <universal ID> (UID), is a string formatted according to the scheme defined by the third component, <universal ID type> (UID type). The UID is intended to be unique over time within the UID type. It is rigorously defined. Each UID must belong to one of the specifically enumerated schemes for constructing UIDs (defined by the UID type). The UID (second component) must follow the syntactic rules of the particular universal identifier scheme (defined by the third component). Note that these syntactic rules are not defined within HL7 but are defined by the rules of the particular universal identifier scheme (defined by the third component).
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
51
Chapter 4: HL7 Data Types example of an ID field is PID 24 Multiple Birth Indicator. This data type should be used only for HL7 tables (see Appendix A).
20 (Max.)
Maximum Length: 20
The value of such a field follows the formatting rules for a ST field except that it is drawn from a site-defined (or user-defined) table of legal values. There shall be an HL7 table number associated with IS data types. This data type should be used only for user-defined tables (see Section 2.5.3.6 - Table).
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
52
SEQ 7 8 9 10 11 12 13 14 15 16
Data Type IS IS ST ST ST ST ST ID ID ST
Usage O O O O O O O O O O
COMPONENT NAME Building Floor Street Address Other Designation City State or Province Zip or Postal Code
COMMENTS
0399 0190
Note: Replaces the CM data type used in 4.14.5.13 RXD-13, 4.14.6.11 RXG-11 and 4.14.7.11 RXA-11 as of V 2.5.
MSGMessageType
Definition: This field contains the message type, trigger event, and the message structure ID for the message. Table 4-16 Message Type (MSG)
SEQ 1 2 3 LEN 3 3 7 Data Type ID ID ID R R R 0076 0003 0354 Message Code Trigger Event Message Structure Usage Value Set COMPONENT NAME COMMENTS
53
Chapter 4: HL7 Data Types See section 2.5.1- Messages for further discussion.
Maximum Length: 16
Examples:
|999| |-123.792|
Leading zeros, or trailing zeros after a decimal point, are not significant. For example, the following two values with different representations, 01.20 and 1.2," are identical. Except for the optional leading sign (+ or -) and the optional decimal point (.), no non-numeric ASCII characters are allowed. Thus, the value <12 should be encoded as a structured numeric (SN) (preferred) or as a string (ST) (allowed, but not preferred) data type.
PTProcessingType
Definition: This data type indicates whether to process a message as defined in HL7 Application (level 7) Processing rules.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
54
Maximum Length: 3
Processing ID (ID)
A value that defines whether the message is part of a production, training, or debugging system. Refer to HL7 Table 0103 - Processing ID for valid values.
SADStreetAddress
Definition: This data type specifies an entity's street address and associated detail.
SISequenceId
Definition: A non-negative integer in the form of a NM field. The uses of this data type are defined in the chapters defining the segments and messages in which it appears.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
55
Maximum Length: 4. This allows for a number between 0 and 9999 to be specified.
STString
Definition: String data is left justified with trailing blanks optional. Any displayable (printable) ACSII characters (hexadecimal values between 20 and 7E, inclusive, or ASCII decimal values between 32 and 126), except the defined escape characters and defined delimiter characters.
TSTimeStamp
Definition: Specifies a point in time.
Maximum Length: 26
Time (DTM)
Definition: The point in time.
VIDVersionId Definition:ThisspecifiestheHL7version.
Table 4-22 Version ID (VID)
SEQ LEN Data Type ID CE CE Usage Value Set COMPONENT NAME COMMENTS
1 2 3
R O O
0104 0399
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
56
Version ID (ID)
Used to identify the HL7 version. Refer to HL7 Table 0104 Version ID in section 2.15.9.12 for valid values.
XADExtendedAddress
Definition: This data type specifies the address of a person, place or organization plus associated information.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
57
City (ST)
Definition: This component specifies the city, or district or place where the addressee is located depending upon the national convention for formatting addresses for postal usage.
Country (ID)
Definition: This component specifies the country where the addressee is located. HL7 specifies that the 3-character (alphabetic) form of ISO 3166 be used for the country code. Refer to HL7 Table 0399 Country code in section 2.15.9.17 for valid values.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
58
XCNExtendedCompositeIDNumberAndNameForPersons
Definition: This data type identifies a person using a unique id and name. The ID is associated with an entity such as an organization, which assigns the ID. Table 4-24 Extended Composite ID Number and Name (XCN)
SEQ 1 LEN 15 DT ST Usage C TBL# COMPONENT NAME ID Number COMMENTS If name fields below are not populated, then this field must be populated. 2 3 4 30 30 FN ST ST RE RE RE Family Name Given Name Second and Further Given Names or Initials Thereof 5 6 7 20 20 5 ST ST IS O O X 0360 Suffix (e.g., JR or III) Prefix (e.g., DR) Degree (e.g., MD) Use Professional suffix in sequence 21. 8 4 IS O 0297 Source Table Since we are requiring assigning authority, this field may be left empty. 9 HD C 0363 Assigning Authority If the id field is populated, then this field must be populated. 10 1 ID O 0200 Name Type Code If the name fields are populated and this is empty, then the type defaults to L, legal name. 11 1 ST O Identifier Check Digit
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
59
SEQ 12
LEN 3
DT ID
Usage C
TBL# 0061
COMMENTS If check digit identifier is populated, then this field must indicate the check digit scheme.
13
ID
0203
14 15 1
HD ID
O O 0465
16 17 18 19 20 21 22 23 1
CE DR ID TS TS ST CWE CWE
O X X O O O O O
0448
0444
Name Assembly Order Effective Date Expiration Date Professional Suffix Assigning Jurisdiction Assigning Agency or Department
This data type is used where there is a need to specify the ID number and name of a person.
ID number (ST)
This string refers to the coded ID assigned by the assigning authority.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
60
Suffix (ST)
Used to specify a name suffix (e.g., Jr. or III).
Prefix (ST)
Used to specify a name prefix (e.g., Dr.).
Note: When the HD data type is used in a given segment as a component of a field of another data type, User-defined Table 0300 - Namespace ID (referenced by the first sub-component of the HD component) may be re-defined (given a different user-defined table number and name) by the technical committee responsible for that segment. By site agreement, implementers may continue to use User-defined Table 0300 Namespace ID for the first sub-component.
61
ExtendedPersonName(XPN)
Definition: This is used for representing a persons name. Table 4-25 Extended Person Name (XPN)
SEQ 1 2 3 30 30 LEN Data Type FN ST ST Usage R R RE Value Sets COMPONENT NAME Family Name Given Name Second and Further Given Names or Initials Thereof 4 5 6 20 20 6 ST ST IS O O X 0360 Suffix (e.g., JR or III) Prefix (e.g., DR) Degree (e.g., MD) Use Professional suffix in sequence 14 7 8 1 1 ID ID RE O 0200 0465 Name Type Code Name Representation Code 9 10 11 12 13 14 199 1 CE DR ID TS TS ST O X O O O O 0444 0448 Name Context Name Validity Range Name Assembly Order Effective Date Expiration Date Professional Suffix COMMENTS
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
62
Suffix (ST)
Used to specify a name suffix (e.g., Jr. or III).
Prefix (ST)
Used to specify a name prefix (e.g., Dr.).
XTNExtendedTelecommunicationNumber Definition:Thiscontainstheextendedtelephonenumber.
Table 4-26 XTN Extended Telecommunication Number (XTN)
SEQ 1 LEN 199 Data Type ST Usage X Value Set COMPONENT NAME Telephone Number COMMENTS Deprecated as of 2.3 2 3 ID R 0201 Telecommunication Use Code 3 8 ID RE 0202 Telecommunication Equipment Type 4 199 ST CE Email Address If the telecommunicati on type code is NET, then this field shall be populated. 5 3 NM O Country Code
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
63
SEQ 6
LEN 5
Data Type NM
Usage CE
Value Set
COMMENTS If the telecommunicati on type code is not NET, then this field shall be populated.
NM
CE
Local Number
If the telecommunicati on type code is not NET, then this field shall be populated.
8 9 10 11 12
5 199 4 6 199
NM ST ST ST ST
O O O O O
Extension Any Text Extension Prefix Speed Dial Code Unformatted Telephone number
Note: Components five through nine reiterate the basic function of the first component in a delimited form that allows the expression of both local and international telephone numbers. As of 2.3, the recommended form for the telephone number is to use the delimited form rather than the unstructured form supported by the first component . The old implementation guide (2.3.1) allowed the first component to be used for phone number. This is not supported by this Guide.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
64
Extension (NM)
The extension to the phone.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
65
Definition TheBatchHeaderSegmentwraps agroupof1ormoremessages. Thesemaybeamixtureof acceptablemessagetypes.This segmentisnotrequiredforreal timemessaging.Thatis,astream ofmessagesmaybesentwithout aBHS.Asystemmaychooseto requireBHSforallgroupsof messages,butshouldspecifythis requirementinalocal implementationGuide. TheBTSsegmentdefinestheend ofabatch.Itisrequiredifthe messagehasamatchingBHS. Theerrorsegmentreports informationabouterrorsin processingthemessage.The segmentmayrepeat.Eacherror
MessageUsage Any
Usage Optional
Any
ACK,RSP
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
66
Segment (Name/Role)
Definition willhaveitsownERRsegment.
MessageUsage
Note
TheEVNsegmentisusedto ADT communicatenecessarytrigger eventinformationtoreceiving applications.Valideventtypesfor allchaptersarecontainedinHL7 Table0003EventType Thefileheadersegmentmaybe Any usedtogrouponeormore batchesofmessages.Thisisa purelyoptionalsegment,evenif batchesaresent.Itsuseisnot anticipatedforuseinrealtime transactions.Anysystemthat anticipatesitsuseshouldspecify thisinalocalimplementation Guide. TheFTSsegmentdefinestheend Any ofafileofbatches.Itisonlyused whentheFHSsegmentisused.
Usedtoconveyeventtrigger information.
Optional
Usedtomarkthebeginningofafileof batches.
VXU
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
67
Segment (Name/Role)
Definition properlyproratedandpatient andinsurancebills. Thissegmentisincludedinthe queryresponse(RSP) and acknowledgment (ACK) messages.Itcontains informationusedtoidentifythe receiversacknowledgement responseto anidentifiedprior message. TheMSHsegmentdefinesthe intent,source,destination,and somespecificsofthesyntaxofa message.
MessageUsage
Usage
Note
MSA (Message
Acknowledgeme ntSegment)
RSP,ACK
All
VXU,ADT,RSP
Abilityto createand processis requiredfor conformant systems. Abilityto createand processis requiredfor conformant systems. Abilityto createand processis requiredfor conformant
Usedtocarryinformationaboutthe nextofkinforaclient.
Usedtocarryanoterelatedtothe parentsegment.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
68
Definition
MessageUsage
Note
Theobservationresultsegment ADT,VXU,RSP hasmanyuses.Itcarries observationsabouttheobjectof itsparentsegment.Inthe VXU/RSPitisassociatedwiththe RXAorimmunizationrecord.The basicformatisaquestionandan answer. ORC TheCommonOrdersegment VXU,RSP (OrderRequest (ORC)isusedtotransmitfields Segment) thatarecommontoallorders(all typesofservicesthatare requested).Whilenotall immunizationsrecordedinan immunizationmessageareableto beassociatedwithanorder,each RXAmustbeassociatedwithone ORC,basedonHL72.5.1standard. PD1 Thepatientadditional VXU,RSP,ADT (Patient demographicsegmentcontains Demographic demographicinformationthatis Segment) likelytochangeaboutthepatient. Inimmunizationmessages,thisis informationabouttheneedto protecttheclientsinformation, howtheyshouldbepartof
Usedtoreportoneatomicpartofan observation.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
69
Segment (Name/Role)
Definition
MessageUsage
Usage
Note
remindereffortsandtheircurrent statusintheIIS. Thissegmentcontainspermanent VXU,ADT,RSP patientidentifyingand demographicinformationthat,for themostpart,isnotlikelyto change.Usedbyallapplications astheprimarymeansof communicatingpatient identificationinformation. frequently. Thissegmentcontains VXU,ADT,RSP informationrelatedtoaspecific visit.
Usedtocarryinformationaboutthe patient/client.
RSP
QPD
Queryparameterdefinition
QBP,RSP
Abilityto createand processis requiredfor conformant systems. Abilityto createand processis requiredfor conformant systems. Abilityto createand processis
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
70
Segment (Name/Role)
Definition
MessageUsage
Usage requiredfor conformant systems. Abilityto createand processis requiredfor conformant systems. Abilityto createand processis requiredfor conformant systems. Abilityto createand processis requiredfor conformant systems.
Note
RCP
Responsecontrolparameter segment
QBP
RXA
Pharmacy/Treatment AdministrationSegment
VXU,RSP
RXR
Pharmacy/TreatmentRoute Segment
VXU,RSP
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
71
BHSBatchHeaderSegment
Table 5-2 Batch Header Segment (BHS) SEQ 1 2 3 4 5 6 7 8 9 10 11 12 40 20 80 20 20 LEN 1 3 Data Type ST ST HD HD HD HD TS ST ST ST ST ST Cardinality [1..1] [1..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] Value set ITEM # 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 ELEMENT NAME Batch Field Separator Batch Encoding Characters Batch Sending Application Batch Sending Facility Batch Receiving Application Batch Receiving Facility Batch Creation Date/Time Batch Security Batch Name/ID/Type Batch Comment Batch Control ID Reference Batch Control ID Usage R R O O O O O O O O O O Constraint The BHS.1 field shall be | The BHS.2 field shall be ^~\&
BHSfielddefinitions
BHS-1 Batch Field Separator (ST) 00081
Definition: This field contains the separator between the segment ID and the first real field, BHS-2-batch encoding characters. As such it serves as the separator and defines the character to be used as a separator for the rest of the message. The required value is |,(ASCII 124). Note that this field is different from other fields and immediately follows the Segment name code. BHS|
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
72
separator
BTSBatchTrailerSegment
Table 5-3 Batch Trailer Segment (BTS) SEQ 1 2 3 LEN 10 80 100 Data Type ST ST NM Cardinality [0..1] [0..1] [0..1] Value Set ITEM # 00093 00090 00095 ELEMENT NAME Batch Message Count Batch Comment Batch Totals Usage O O O Constraint
BTSfielddefinitions
BTS-1 - BTS-3 Not anticipated to be used for immunization messages.
Example:BTS||
ERRErrorSegment
NotethattheERR1fieldisnotsupportedinVersion2.5.1. Itmaycontinuetobeusedforversions2.4andearlierasspecifiedintheearlierImplementationGuide.ItistheONLYfieldthatwill beincludedinanERRsegmentiftheMSHindicatesthatthemessagewiththeerrorwasaversionpriorto2.5.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
73
Table 5-4 Error Segment (ERR) SEQ 1 2 18 LEN Data Type ELD ERL Cardinality [0..0] [0..1] 15 Value Set ITEM # 00024 01812 ELEMENT NAME Error Code and Location Error Location Usage X RE Constraint Not supported for Version 2.5 and above. If an error involves the entire message (e.g. the message is not parseable.) then location has no meaning. In this case, the field is left empty.
3 4 5 6 7 8 80 2048 250 2
CWE ID CWE ST TX TX
HL7 Error Code Severity Application Error Code Application Error Parameter Diagnostic Information User Message
R R O O O O This field may contain free text that may be displayed to a user. It is not intended for any further processing.
9 10 11
20
IS CWE CWE
O O O
This Guide does not support repeat of this field. It assumes that each error will be contained in one ERR segment. If the same error occurs more than once, there will be one ERR for each.
15
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
74
SEQ 12
LEN
Cardinality [0..1]
Value Set
ITEM # 01822
Usage O
Constraint
ERRfielddefinitions:
Note that ERR-1 is not supported for use in messages starting with version 2.5.
16
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
75
ExamplewitherrorinPID: ERR||PID^1^5|101^Requiredfieldmissing^HL70357^^^|E|
EVNEventTypeSegment
. Table 5-5 Event Segment (EVN) SEQ 1 2 3 4 5 6 7 3 LEN 3 Data Type ID TS TS IS XCN TS HD Cardinality [0.. 1] [1..1] [0..1] [0..1] [0..*] [0..1] [0..1] 0062 0188 Value set 0003 ITEM# 00099 00100 00101 00102 00103 01278 01534 ELEMENT NAME Event Type Code Recorded Date/Time Date/Time Planned Event Event Reason Code Operator ID Event Occurred Event Facility Usage O R O O O O O Comment
EVNfielddefinitions
EVN-2 Recorded Date/Time (TS) 00100
Definition: Most systems will default to the system date/time when the transaction was entered, but they should also permit an override.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
76
FHSFileHeaderSegment
Table 5-6 File Header Segment (FHS) SEQ 1 2 3 4 5 6 7 8 9 10 11 12 40 20 80 20 20 LEN 1 4 Data Type ST ST HD HD HD HD TS ST ST ST ST ST Cardinality [1..1] [1..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] Value Set ITEM # 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 ELEMENT NAME File Field Separator File Encoding Characters File Sending Application File Sending Facility File Receiving Application File Receiving Facility File Creation Date/Time File Security File Name/ID File Header Comment File Control ID Reference File Control ID Usage R R O O O O O O O O O O Comment The FSH.1 field shall be | The FSH.2 field shall be ^~\&
FHSfielddefinitions
FHS-1 File Field Separator (ST) 00067
Definition: This field has the same definition as the corresponding field in the MSH segment. The value shall be |.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
77
Note that this field is different from other fields and follows the segment name code immediately. FHS|
FTSFileTrailerSegment
Table 5-7 File Trailer Segment (FTS) SEQ 1 2 LEN 10 80 Data Type NM ST Cardinality [0..1] [0..1] Value set ITEM # 00079 00080 ELEMENT NAME File Batch Count File Trailer Comment Usage Comment
O O
IN1InsuranceSegment(IN2,IN3)
These segments are not anticipated for use in immunization messaging. They are not described or specified further in this Guide. Local implementations may document use for local purposes in local implementation Guide.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
78
MSAMessageAcknowledgementSegment
Table 5-8 Message Acknowledgement Segment (MSA) SEQ 1 2 3 4 5 6 CE LEN 2 20 80 15 Data Type ID ST ST NM Cardinality [1..1] [1..1] [0..1] [0..1] [0..1] [0..0] 0357 Value Set 0008 ITEM # 00018 00010 00020 00021 00022 00023 ELEMENT NAME Acknowledgment Code Message Control ID Text Message Expected Sequence Number Delayed Acknowledgment Type Error Condition Usage R R O O O X Comment
MSAfielddefinitions
MSA-1 Acknowledgment Code (ID) 00018
Definition: This field contains an acknowledgment code, see message processing rules. Refer to HL7 Table 0008 - Acknowledgment code for valid values.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
79
MSHMessageHeaderSegment
HL7 ATTRIBUTE TABLE - MSH - MESSAGE HEADER
Table 5-9 Message Header Segment (MSH) SEQ 1 2 3 4 5 6 7 LEN 1 4 Data Type ST ST HD HD HD HD TS Cardinality [1..1] [1..1] [0..1] [0..1] [0..1] [0..1] [1..1] 0361 0362 0361 0362 Value set ITEM # 00001 00002 00003 00004 00005 00006 00007 ELEMENT NAME Field Separator Encoding Characters Sending Application Sending Facility Receiving Application Receiving Facility Date/Time Of Message Usage R R RE RE RE RE R Constraint The MSH.1 field shall be | The MSH.2 field shall be ^~\& No constraint No constraint No constraint No constraint
8 9 10 11 12 13 14
40 15 20 3 15 180
ST MSG ST PT VID NM ST
Security Message Type Message Control ID Processing ID Version ID Sequence Number Continuation Pointer
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
80
SEQ 15
LEN 2
Data Type ID
Cardinality [0..1]
ITEM # 00015
ELEMENT NAME Accept Acknowledgement Type Application Acknowledgment Type Country Code Character Set Principal Language Of Message Alternate Character Set Handling Scheme Message Profile Identifier
Usage RE
Constraint
16
ID
[0..1]
0155
00016
RE
AL-always, NE-Never, ER-Error/reject only, SU successful completion only Use 3 character country code from ISO 3166. If is empty, assume USA blank defaults to ASCII printable blank blank
17 18 19 20
3 16
ID ID CE
0399 0211
O O O O
20
ID
0356
01317
21
EI
[0..*]
01598
This field will be required for use whenever a Profile is being used.
MSHfielddefinitions
MSH-1 Field Separator (ST) 00001
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
81
Example: MSH|
MSH-2 Encoding Characters (ST) 00002
Definition:Thisfieldcontainsthefourcharactersinthefollowingorder:thecomponentseparator,repetitionseparator,escape character,andsubcomponentseparator.Requiredvaluesare^~\&(ASCII94,126,92,and38,respectively).
MSH-3 Sending Application (HD) 00003
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
Transaction Messagetype Unsolicitedupdateofimmunizationrecord VXU Unsolicitedupdateofdemographicdata ADT Querytoanothersystem QBP Responsetoquery RSP RefertoHL7Table0003Eventtypeforvalidvaluesforthetriggerevent.ThistablecontainsvalueslikeA01,O01,R01etc.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
83
Messagestructurecomponentisrequired.
MSH-10 Message Control ID (ST) 00010
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
84
Acceptacknowledgementindicatesifthemessagewassafelyreceivedornot.Itdoesnotindicatesuccessfulprocessing.Application acknowledgementindicatestheoutcomeofprocessing.
MSH-16 Application Acknowledgment Type (ID) 00016
Available from ISO 1 Rue de Varembe, Case Postale 56, CH 1211, Geneve, Switzerland
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
85
Thisfieldwillberequiredwheneveraprofileisbeingusedtoconstrainthemessage.
NK1NextofKinSegment
TheNK1segmentcontainsinformationaboutthepatientsotherrelatedparties.Anyassociatedpartiesmaybeidentified.Utilizing NK11setID,multipleNK1segmentscanbesenttopatientaccounts.Thatis,eachsubsequentNK1incrementstheprevioussetID by1.Soif3NK1weresentinonemessage,thefirstwouldhaveasetidof1,thesecondwouldhave2andthethirdwouldhave3.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
86
Table 5-11-Next of Kin Segment (NK1) SEQ 1 2 LEN 4 Data Type SI XPN Cardinality [1..1] [1..*] Value set ITEM# 00190 00191 ELEMENT NAME Set ID - NK1 Name Usage R R The first instance is the legal name and is required. The first instance shall be the primary address. The first instance shall be the primary phone number. Constraint
3 4
CE XAD
[1..1] [0..*]
0063
00192 00193
Relationship Address
R RE
XTN
[0..*]
00194
Phone Number
RE
6 7 8 9 10 11 12 13 14 15 16 17 2 1 8 8 60
[0..*] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] 0223 0002 0001 0327/ 0328 0131
00195 00196 00197 00198 00199 00200 00201 00202 00119 00111 00110 00755
Business Phone Number Contact Role Start Date End Date Next of Kin / Associated Parties Job Title Next of Kin / Associated Parties Job Code/Class Next of Kin / Associated Parties Employee Number Organization Name - NK1 Marital Status Administrative Sex Date/Time of Birth Living Dependency
O O O O O O O O O O O O
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
87
SEQ 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
LEN 2
Data Type IS CE CE
Cardinality [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1]
Value set 0009 0171 0296 0220 0215 0136 0231 0006 0212 0189 0222
ITEM# 00145 00129 00118 00742 00743 00744 00745 00120 00109 00739 00125 00747 00748 00749 00750 00751
ELEMENT NAME Ambulatory Status Citizenship Primary Language Living Arrangement Publicity Code Protection Indicator Student Indicator Religion Mothers Maiden Name Nationality Ethnic Group Contact Reason Contact Persons Name Contact Persons Telephone Number Contact Persons Address Next of Kin/Associated Partys Identifiers Job Status Race Handicap Contact Person Social Security Number Next of Kin Birth Place VIP Indicator
Usage O O O O O O O O O O O O O O O O O O O O O O
Constraint
2 1 2
2 2 16
IS CE IS ST ST
IS
0099
00146
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
88
NK1fielddefinitions
NK1-1 Set ID - NK1 (SI) 00190
Definition: This field contains the number that identifies this transaction. For the first occurrence of the segment, the sequence number shall be one, for the second occurrence, the sequence number shall be two, etc.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
89
NTENoteSegment
The NTE segment is used for sending notes and comments. It is used in relation to OBX in the VXU and RSP. It is also used in ADT in relation to various segments. Table 5-12 Note Segment (NTE) SEQ 1 2 3 4 LEN 4 8 Data Type SI ID FT CE Cardinality [0..1] [0..1] [1..1] [0..1] 0364 0105 Value Set ITEM # 00096 00097 00098 01318 ELEMENT NAME Set ID - NTE Source of Comment Comment Comment Type Usage O O R O Comment
NTEfielddefinitions
NTE-3 Comment (FT) 00098
Definition: This field contains the comment contained in the segment.
OBXObservationResultSegment
Theobservationresultsegmenthasmanyuses.Itcarriesobservationsabouttheobjectofitsparentsegment.IntheVXU/RSPitis associatedwiththeRXAorimmunizationrecord.Thebasicformatisaquestion(OBX3)andananswer(OBX5).
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
90
Table 5-13 Observation Segment (OBX) SEQ 1 2 3 LEN 4 2 Data Type SI ID CE Cardinality [1..1] [1..1] [1..1] 0125 Value Sets ITEM# 00569 00570 00571 ELEMENT NAME Set ID OBX Value Type Observation Identifier Usage R R R CE, NM, ST, DT, or TS This indicates what this observation refers to. It poses the question that is answered by OBX-5. Comment
4 5
20
ST varies 18
[0..1] [1..1]
00572 00573
RE R This is the observation value and answers the question posed by OBX-3 If the observation in OBX-5 requires an indication of the units, they are placed here.
CE
[0..1]
00574
Units
CE
7 8 9 10 11 12
60 5 5 2 1
ST IS NM ID ID TS
References Range Abnormal Flags Probability Nature of Abnormal Test Observation Result Status Effective Date of Reference Range Values
O O O O R O Constrain to F
18
The length of the observation field is variable, depending upon value type. See OBX-2 value type.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
91
SEQ 13 14 15 16 17 18 19 20
LEN 20
Value Sets
ELEMENT NAME User Defined Access Checks Date/Time of the Observation Producer's Reference Responsible Observer Observation Method Equipment Instance Identifier Date/Time of the Analysis Reserved for harmonization with V2.6 Reserved for harmonization with V2.6 Reserved for harmonization with V2.6
Usage O R O O O O O O
Comment
21
[0..1]
22
[0..1]
23 24
XON XAD
[0..1] [0..1]
02283 02284
O O
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
92
SEQ 25
LEN
Cardinality [0..1]
Value Sets
ITEM# 02285
Usage O
Comment
OBXfielddefinitions
OBX-1 Set ID - OBX (SI) 00569
Definition: This field contains the sequence number. The first instance shall be set to 1 and each subsequent instance shall be the next number in sequence.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
93
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
94
OBX|6|TS|297697^DATEVACCINEINFORMATIONSTATEMENT PRESENTED^LN|2|19901207||||||F|<CR>
ORCOrderRequestSegment
TheCommonOrdersegment(ORC)isusedtotransmitfieldsthatarecommontoallorders(alltypesofservicesthatarerequested). Whilenotallimmunizationsrecordedinanimmunizationmessageareabletobeassociatedwithanorder,eachRXAmustbe associatedwithoneORC,basedonHL72.5.1standard.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
95
Table 5-14 Common Order Segment (ORC) SEQ 1 2 3 4 5 6 7 8 9 10 2 1 LEN 2 Data Type ID EI EI EI ID ID TQ EIP TS XCN Cardinality [1..1] [0..1] [1..1] [0..1] [0..1] [0..1] [0..0] [0..1] [0..1] [0..1] 0038 0121 Value Set 0119 ITEM# 00215 00216 00217 00218 00219 00220 00221 00222 00223 00224 ELEMENT NAME Order Control Placer Order Number Filler Order Number Placer Group Number Order Status Response Flag Quantity/Timing Parent Date/Time of Transaction Entered By Usage R RE R O O O X O O RE This is the person that entered this immunization record into the system. This shall be the provider ordering the immunization. It is expected to be empty if the immunization record is transcribed from a historical record. Comment use RE See Guidance below. See Guidance below.
11 12
XCN XCN
[0..1] [0..1]
00225 00226
O RE
13 14 15
PL XTN TS
O O O
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
96
SEQ 16 17
LEN
Data Type CE CE
Value Set
ELEMENT NAME Order Control Code Reason Entering Organization Entering Device Action By Advanced Beneficiary Notice Code Ordering Facility Name Ordering Facility Address Ordering Facility Phone Number Ordering Provider Address Order Status Modifier Advanced Beneficiary Notice Override Reason Filler's Expected Availability Date/Time Confidentiality Code Order Type Enterer Authorization Mode
Usage O O
Comment
18 19 20
CE XCN CE
O O O
21 22 23 24 25 26
O O O O O O
27 28 29 30
O O O O
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
97
SEQ 31
LEN
Cardinality [0..1]
Value Set
ITEM# 02286
Usage O
Comment
ORCfielddefinitions
ORC-1 Order Control (ID) 00215
Definition: Determines the function of the order segment. The value for VXU and RSP shall be RE.
PlacerOrderNumber(ORC2)andFillerOrderNumber(ORC3)areuniqueidentifiersfromthesystemwhereanorderwasplaced andwheretheorderwasfilled.Theywereoriginallydesignedformanaginglaborders.Thesefieldshaveausagestatusof ConditionalinVersion2.5.1.TheconditionforeachisthattheymustbepresentineithertheOBRorORCofamessage.Therehas beenconfusionaboutusageforthesefields.TheOrdersandObservationsworkgrouphasaddressedthisconfusion.Inthecontext thatORCwillbeusedinImmunizationmessagingeitherORC2orORC3mustbepopulated.Theymaybothbepopulated. Intheimmunizationcontext,itisnotcommontohaveonesystemplacingandonefillinganimmunizationorder.Insomecases neitherisknown.Theusecasethatthesehavesupportedistoallowasystemthatsentanimmunizationrecordtoanothersystem toidentifyanimmunizationthatneedstobechangedusingtheFillerOrderNumberithadsent. ThisGuidespecifiesthatPlacerOrderNumberisRE(required,butmaybeempty).TheFillerOrderNumberSHALLbetheunique immunizationidofthesendingsystem.
ORC-2 Placer Order Number (EI) 00216
The placer order number is used to uniquely identify this order among all orders sent by a provider organization. ORC-2 is a system identifier assigned by the placer software application. The Placer Order Number and the Filler Order Number are essentially foreign keys exchanged between applications for uniquely identifying orders and the associated results across applications.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
98
In the case where the ordering provider organization is not known, the sending system may leave this field empty.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
99
PD1PatientDemographicSegment
ThePatientDemographicSegmentcontainspatientdemographicinformationthatmaychangefromtimetotime.Therearethree primaryusesforinImmunizationMessages.Theseincludeindicatingwhetherthepersonwantshis/herdataprotected,whetherthe personwantstoreceiverecall/remindernoticesandthepersonscurrentstatusintheregistry.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
100
Table 5-15-Patient Demographic Segment (PD1) SEQ 1 2 3 4 5 6 7 8 9 10 11 12 13 LEN 2 2 250 250 2 2 2 2 1 250 250 1 8 Data Type IS IS XON XCN IS IS IS IS ID CX CE ID DT Cardinality [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] 0215 0136 0231 0295 0315 0316 0136 Value Set 0223 0220 Item # 00755 00742 00756 00757 00745 00753 00759 00760 00761 00762 00743 00744 01566 ELEMENT NAME Living Dependency Living Arrangement Patient Primary Facility Patient Primary Care Provider Name & ID No. Student Indicator Handicap Living Will Code Organ Donor Code Separate Bill Duplicate Patient Publicity Code Protection Indicator Protection Indicator Effective Date Place of Worship Advance Directive Code Immunization Registry Status Immunization Registry Status Effective Date Publicity Code Effective Date Usage O O O O O O O O O O RE RE CE If protection indicator is valued, then this field should be valued. Comment
14 15 16 17
250 250 1 8
XON CE IS DT
O O RE CE If the registry status field is filled, then this should be valued. If the publicity code field is filled then this field should be valued.
18
DT
[0..1]
01571
CE
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
101
SEQ 19 20 21
LEN 5 2 3
Data Type IS IS IS
Usage O O O
Comment
PD1fielddefinitions
PD1-3 Patient Primary Facility (XON) 00756
Definition: This field contains the name and identifier that specifies the primary care healthcare facility selected by the patient. Use may be specified locally.
PD1-4 Patient Primary Care Provider Name & ID No. (XCN) 00757
Definition: Identifier for primary care provider. Use may be specified locally.
Local policies determine how data are protected. In general, it indicates who may view the clients data. It may be as narrow as just the provider that entered the information.
19
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
102
Protection State Yes, protect the data. Client (or guardian) has indicated that the information shall be protected. (Do not share data) No, it is not necessary to protect data from other clinicians. Client (or guardian) has indicated that the information does not need to be protected. (Sharing is OK) No determination has been made regarding clients (or guardians) wishes regarding information sharing
Code Y N
PD1-12 is empty.
Notes on use of Y for Protection Indicator in 2.5.1 Guide vs. earlier Guides.
Note that the previous Implementation Guide stated that Y meant that a persons information could be shared. This was an incorrect interpretation of the use of this field. The meaning now aligns with the definition of HL7. That is, Y means data must be protected. Existing systems that use the old meaning will need to determine how they will send the correct value in a 2.5.1 message.
Note that the value sent in a message that is based on the 2.3.1 or 2.4 version of the HL7 standard shall continue to follow the old guidance. That is, Y means sharing is allowed and N means sharing is not allowed.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
103
PIDPatientIdentifierSegment
ThePIDisusedbyallapplicationsastheprimarymeansofcommunicatingpatientidentificationinformation.Thissegmentcontains permanentpatientidentifyinganddemographicinformationthat,forthemostpart,isnotlikelytochangefrequently.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
104
Table 5-16-Patient Identifier Segment (PID) SEQ 1 2 3 4 5 LEN 4 Data Type SI CX CX CX XPN Cardinality [0..1] [0..0] [1..*] [0..0] [1..*] Value Set ITEM# 00104 00105 00106 00107 00108 Element Name Set ID - PID Patient ID Patient Identifier List Alternate Patient ID 00106 Patient Name Usage RE X R X R the first repetition shall contain the legal name. Multiple given names or initials are separated by spaces. Required, must have month, day and year. M= male, F = female, U = not determined/unspecified/unk nown. Constraint
6 7 8 1
XPN TS IS
RE R RE
0001
9 XPN [0..0] 00112 Patient Alias X
10
CE
[0..*]
0005
00113
Race
RE
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
105
SEQ
LEN
Data Type
Cardinality
Value Set
ITEM#
Element Name
Usage
Constraint system) should be used for governmentally assigned numeric codes (####-#).
11 12 13 4
XAD IS XTN
00114
RE X RE
The first repetition should be the primary address. County belongs in address field. The first instance shall be the primary phone number. Only one item is allowed per repetition.
0289
00115 00116
14 15 16 17 18 19 20 21 22 16
XTN CE CE CE CX ST DLN CX CE
[0..1] [0..1] [0..1] [0..1] [0..1] [0..0] [0..0] [0..0] [0..1] 0189 0296
Phone Number Business Primary Language Marital Status Religion Patient Account Number SSN Number - Patient Driver's License Number - Patient Mother's Identifier Ethnic Group
O O O O O X X X RE First triplet shall contain H,N,U if populated. Second triplet shall contain government issued code from table xxx, if populated. If both are populated, they must match logically. Use ISO 639.
0002 0006
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
106
SEQ 23 24
LEN 60 1
Data Type ST ID
Cardinality [0..1]
Value Set
ITEM# 00126
Usage O
Constraint Use may be specified locally. The acceptable values are Y and N. If the status is undetermined, then field shall be empty. If Multiple Birth Indicator is populated with Y, then this field should contain the number indicating the persons birth order, with 1 for the first child born and 2 for the second.
[0..1]
0136
00127
RE
25
NM
[0..1]
00128
Birth Order
CE
26 27 28 29 30 1
CE CE CE TS ID
Citizenship Veterans Military Status Nationality Patient Death Date and Time Patient Death Indicator
0136
00741
31 32 33 34 35 36
1 20
ID IS TS HD CE CE
0136 0445
Identity Unknown Indicator Identity Reliability Code Last Update Date/Time Last Update Facility Species Code Breed Code
0446 0447
01539 01540
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
107
SEQ 37 38 39
LEN 80
Value Set
ITEM# 01541
Usage O O O
Constraint
0429 0171
01542 01840
PIDfielddefinitions
PID-1 Set ID - PID (SI) 00104
Definition: This field contains the number that identifies this transaction. For the first occurrence of the segment, the sequence number shall be one, for the second occurrence, the sequence number shall be two, etc.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
108
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
109
Empty field
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
110
Y N
PV1PatientVisitSegment
The PV1 segment is used to convey visit specific information. The primary use in immunization messages is to carry information about the clients eligibility status.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
111
Table 5-17-Patient Visit (PV1) SEQ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 2 2 6 2 2 3 2 LEN 4 1 Data Type SI IS PL IS CX PL XCN XCN XCN IS PL IS IS IS IS IS XCN IS CX FC Cardinality [0..1] [1..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [1..*] 0064 0087 0092 0023 0009 0099 0010 0018 0010 0010 0010 0069 0007 0004 Value Set ITEM# 00131 00132 00133 00134 00135 00136 00137 00138 00139 00140 00141 00142 00143 00144 00145 00146 00147 00148 00149 00150 ELEMENT NAME Set ID - PV1 Patient Class Assigned Patient Location Admission Type Pre-admit Number Prior Patient Location Attending Doctor Referring Doctor Consulting Doctor Hospital Service Temporary Location Preadmit Test Indicator Re-admission Indicator Admit Source Ambulatory Status VIP Indicator Admitting Doctor Patient Type Visit Number Financial Class Usage O R O O O O O O O O O O O O O O O O O R Constraint If populated, this should be 1. R
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
112
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
2 2 2 2 8 12 3 2 4 8 10 12 12 1 8 3
IS IS IS IS DT NM NM IS IS DT IS NM NM IS DT IS DLD CE
[0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1]
Charge Price Indicator Courtesy Code Credit Rating Contract Code Contract Effective Date Contract Amount Contract Period Interest Code Transfer to Bad Debt Code Transfer to Bad Debt Date Bad Debt Agency Code Bad Debt Transfer Amount Bad Debt Recovery Amount Delete Account Indicator Delete Account Date Discharge Disposition Discharged to Location Diet Type
O O O O O O O O O O O O O O O O O O
0073 0110
0021
0111
00164 00165
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
113
39 40 41 42 43 44 45 46 47 48 49 50 51 52
2 1 2
IS IS IS PL PL TS TS
[0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1] [0..1]
00169 00170 00171 00172 00173 00174 00175 00176 00177 00178 00179
Servicing Facility Bed Status Account Status Pending Location Prior Temporary Location Admit Date/Time Discharge Date/Time Current Patient Balance Total Charges Total Adjustments Total Payments Alternate Visit ID Visit Indicator Other Healthcare Provider
O O O O O O O O O O O O O O
12 12 12 12 1
NM NM NM NM CX IS XCN
PV1fielddefinitions
PV1-2 Patient Class (IS) 00132
Definition: This field is used by systems to categorize patients by site. It shall be constrained to R.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
114
This field does not indicate how each immunization was paid for on this visit. That information may be carried in an OBX segment associated with each RXA segment.
QAKQueryAcknowledgementSegment
Table 5-18-Query Acknowledgement Segment SEQ 1 2 3 4 5 6 10 10 10 LEN 32 2 Data Type ST ID CE NM NM NM Cardinality [1..1] [0..1] [0..1] [0..1] [0..1] [0..1] 0208 0471 Value set ITEM# 00696 00708 01375 01434 01622 01623 ELEMENT NAME Query Tag Query Response Status Message Query Name Hit Count This payload Hits remaining Usage R O O O O O Comment
QAKfielddefinitions
QAK-1 Query Tag (ST) 00696
Definition: This field contains the value sent in QPD-2 (query tag) by the initiating system, and will be used to match response messages to the originating query. The responding system is required to echo it back as the first field in the query acknowledgement segment(QAK).
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
115
QPDQueryParameterDefinition
The QPD segment defines the parameters of the query.
Table 5-19-Query Parameter Definition (QPD) SEQ 1 2 3-n 32 LEN Data Type CE ST varies Cardinality [1..1] Value Set 0471 ITEM# 01375 00696 01435 ELEMENT NAME Message Query Name Query Tag User Parameters (in successive fields) Usage R R R Generated by the initiating system. The specification of this sequence is found in the profile specific to the use case. Comment
QPDfielddefinitions
QPD-1 Message Query Name (CE) 01375
Definition: This field contains the name of the query. These names are assigned by the function-specific chapters of this specification. It is one to one with the conformance statement for this query name, and it is in fact an identifier for that conformance statement.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
116
This field differs from MSA-2-Message control ID in that its value remains constant for each message (i.e. all continuation messages) associated with the query, whereas MSA-2-Message control ID may vary with each continuation message, since it is associated with each individual message, not the query as a whole.
RCPResponseControlParameterSegment
The RCP segment is used to restrict the amount of data that should be returned in response to query. It lists the segments to be returned.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
117
Table 5-20-Response Control Parameter SEQ 1 LEN 1 Data Type ID Cardinality [0..1] Value set 0091 ITEM# 00027 ELEMENT NAME Query Priority Usage O Comments Constrain to empty or I. Immediate priority is expected. This field may contain a maximum number of records that may be returned. The first component contains the count and the second contains RD for records.
CQ
[0..1]
0126
00031
3 4 5 6 7 1
CE TS ID SRT ID
0394
01440 01441
Response Modality Execution and Delivery Time Modify Indicator Sort-by Field Segment group inclusion
O O O O O
0395
RCPfielddefinitions
RCP-1 Query Priority (ID) 00027
Definition: This field contains the time frame in which the response is expected. Refer to HL7 Table 0091 - Query priority for valid values. Table values and subsequent fields specify time frames for response. Only I for immediate shall be used for this field.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
118
Note that this field is the maximum total records to return. The Version 2.5.1 standard indicates the maximum number to return in each batch. No batching of responses is permitted in this Guide.
RXAPharmacy/TreatmentAdministrationSegment
TheRXAsegmentcarriespharmacyadministrationdata.ItisachildofanORCsegment,whicharepeatingsegmentintheRSPand VXUmessages.BecauseORCareallowedtorepeatanunlimitednumbersofvaccinationsmaybeincludedinamessage.EachRXA mustbeprecededbyanORC. 20 ThereisachangerequiringanORCconflictswiththepreviousimplementationGuide.Inthat,ORCisoptionalandinfactrarely includedinaVXU.
20
The HL7 Version 2.5.1 document clearly indicates that any RXA must be associated with an ORC. In the case of immunization, each immunization will have its own ORC.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
119
Table 5-21 Pharmacy/Treatment Administration (RXA) SEQ 1 2 3 4 LEN 4 4 Data Type NM NM TS TS Cardinality [1..1] [1..1] [1..1] [0..1] Value Set ITEM # 00342 00344 00345 00346 ELEMENT NAME Give Sub-ID Counter Administration Sub-ID Counter Date/Time Start of Administration Date/Time End of Administration Administered Code Administered Amount Administered Units Usage R R R RE If populated, this should be the same as Start time (RXA-3) CVX code is strongly preferred. If administered amount is not recorded, use 999. If previous field is populated by any value except 999, it is required. The primary use of this field it to convey if this immunization record is based on a historical record or was given by the provider recording the immunization. All systems should be able to support this use. Other uses of this field are permitted, but need to be specified locally. Comment Constrain to 0 (zero) Constrain to 1
5 6 7 20
CE NM CE
0292
R R CE
8 9
CE CE
00350 00351
O RE
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
120
SEQ 10 11 12 13 14 15 16
LEN
Value Set
ELEMENT NAME Administering Provider Administered-at Location Administered Per (Time Unit) Administered Strength Administered Strength Units Substance Lot Number Substance Expiration Date
Usage RE RE O O O RE CE
20 20
ST NM CE
20
ST TS
17 18
CE CE
[0..*] [0..*]
0227
01131 01136
RE C If the Completion status is RE, then this shall be populated If this field is not populated, it is assumed to be CP or complete. If the Refusal reason is populated, this field shall be set to RE.
19 20 2
CE ID
01123 01223
O RE
21 22 23
2 5
ID TS NM
0323
Action Code - RXA System Entry Date/Time Administered Drug Strength Volume
RE O O
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
121
SEQ 24 25 26
LEN
Value Set
ELEMENT NAME Administered Drug Strength Volume Units Administered Barcode Identifier Pharmacy Order Type
Usage O O O
Comment
ID
0480
01699
RXAfielddefinitions
RXA-1 Give Sub-ID Counter (NM) 00342
Definition: This field is used to match an RXA and RXG. Not a function under IIS. Constrain to 0 (zero).
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
122
Definition:Thisfieldrecordstheamountofpharmaceuticaladministered.Theunitsareexpressedinthenextfield,RXA7.Registries thatdonotcollecttheadministeredamountshouldrecordthevalue999inthisfield.
RXA-7 Administered units (CE) 00349
Definition: This field is conditional because it is required if the administered amount code does not imply units. This field must be in simple units that reflect the actual quantity of the substance administered. It does not include compound units. This field is not required if the previous field is populated with 999.
This field may be used for other notes if specified locally. The first repetition shall be the information source. If other notes are sent when information source is not populated, then the first repetition shall be empty. Other notes may include text only in component 2 of the repeat. Acceptance of text only is by local agreement only.
Information source is an NVAC core data element. It speaks to the reliability of the immunization record. IIS rely on this information.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
123
Note that previous Implementation Guide (2.3.1) overloaded this field by using local codes to indicate administering provider, ordering provider and recording provider. This is a misuse of this field and not supported in this Guide. The ordering and entering providers are indicated in the associated ORC segment.
21
This value should uniquely identify a specific facility. Systems may choose to publish a table with local values.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
124
Note: The lot number is the number printed on the label attached to the container holding the substance and on the packaging which houses the container. If two lot numbers are associated with a product that is a combination of different components, they may be included in this field. The first repetition should be the vaccine.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
125
reason it is common practice to indicate action as Add even if this vaccination has been previously reported. It is important to not assume that Updates will be or need to be specifically indicated.
RXRPharmacy/TreatmentRouteSegment
The Pharmacy/Treatment Route segment contains the alternative combination of route, site, administration device, and administration method that are prescribed as they apply to a particular order. Table 5-22 Pharmacy/Treatment Route (RXR) SEQ 1 2 3 4 5 6 LEN Data Type CE CWE CE CWE CE CWE Cardinality [1..1] [0..1] [0..1] [0..1] [0..1] [0..1] 0495 TBL# 0162 0163 0164 0165 ITEM # 00309 00310 00311 00312 01315 01670 ELEMENT NAME Route Administration Site Administration Device Administration Method Routing Instruction Administration Site Modifier Usage R RE O O O O Constraint
RXRfielddefinitions
RXR-1 Route (CE) 00309
Definition: This field is the route of administration. Refer to User-Defined Table 0162 - Route Of Administration for valid values.
This will change, based on HITSP. They specify use of FDA list. Systems should be prepared to accept either FDA or HL7 codes.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
126
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
127
RSP
ACK ADT
Purpose SendImmunization History Request Immunization HistoryandRequest PersonId RespondtoRequest forImmunization Recordand RespondtoRequest forPersonId SendMessage Acknowledgement SendPerson DemographicData
AssociatedProfiles Z34^CDC
QBP
Z31^CDC Z32^CDC
VXU,ADT,QBP ACK
SendImmunizationHistoryVXU
SystemsmaysendunsolicitedimmunizationrecordsusingaVXU.Thismaybearecord thatisnewtothereceivingsystemormaybeanupdatetoanexistingrecord.The followingtableliststhesegmentsthatarepartofaVXU.Someoftheoptionalsegments arenotanticipatedtobeused.SeeAppendixBfordetailedactivitydiagramsand examplemessagesthatillustratetheprocessingofthismessage.
Table 6-2--VXU Segment Usage
Usage R O
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
Usage R RE RE RE
O O O
Comment EveryVXUhasonePIDsegment. EveryPIDsegmentinVXUmayhaveoneorless PD1segment ThePIDsegmentinaVXUmayhavezeroormore NK1segments. ThePIDsegmentinaVXUmayhavezeroorone PV1segment.Subsequentmessagesregarding thesamepatient/clientmayhaveadifferentPV1 segment. NotdescribedinthisGuide.Maybelocally specified. NotdescribedinthisGuide.Maybelocally specified. Theinsurancegroupmayrepeat.
O O O
EndInsurancegroup BeginOrdergroup ORC [1..*] TQ1 TQ2 RXA RXR OBX NTE [0..1] [0..1] [1..1] [0..1] [0..*] [0..1]
RE O O R RE RE RE
NotdescribedinthisGuide.Maybelocally specified. NotdescribedinthisGuide.Maybelocally specified. NotdescribedinthisGuide.Maybelocally specified. EachVXUmayhavezeroormoreOrdergroups TheordergroupinaVXUmayhaveoneormore ORCsegments. NotdescribedinthisGuide.Maybelocally specified. NotdescribedinthisGuide.Maybelocally specified. EachORCsegmentinaVXUmusthaveoneRXA segment.EveryRXArequiresanORCsegment. EveryRXAsegmentinaVXUmayhavezeroor oneRXRsegments. EveryRXAsegmentinaVXUmayhavezeroor moreOBXsegments. EveryOBXsegmentinaVXUmayhavezeroor oneNTEsegment.
129
RequestingInformation(ImmunizationHistory)QBP
ThisdescriptionwillspecifytheuseofQBPformessaging,butisnotspecifictotheuse casesinthisGuide.FormalQueryandResponseProfilesforspecifyingthestructureto
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
130
supporttheusecaseswillfollowinChapter7.TheQBPqueryhasamatchingRSP response.(Seebelow)
QBP/RSP query by parameter/segment pattern response (events vary ) Table 6-3 QBP/RSP Query By Parameter/Segment Pattern Response Segment MSH Cardinality [1..1] Usage R Comment The MSH must include an identifier which indicates the Query Profile used. Not anticipated for use in immunization messages.
[{SFT}] QPD [ []
O R R
The Query Profile will specify the list of fields and their components in the order that they will be expected for this query. The Query Profile will list the segments that are expected to be returned in response to this query. Not anticipated for use in immunization messages.
] RCP
[ DSC ]
Continuation Pointer
RespondtoRequestforInformationRSP
Thespecificationsbelowarenotspecifictotherequestforimmunizationhistory,but arethefoundationonwhichthosespecificationsarebased.TheQueryprofilefor requestinganimmunizationhistoryandtheassociatedResponsemaybefoundin Chapter7ofthisGuide. FormalProfilesbasedontheQueryProfileinChapter7willallowtherequestingsystem tobeinformediftheresponseisalistofcandidateclientsorasingleimmunization history.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
131
Chapter 6: Messages for Transmitting Immunization Information Table 6-4-Segment Pattern Response (RSP) Segment MSH Cardinality [1..1] Usage R Comment The MSH will indicate which query is being responded to and what Query Profile it was based on. Not anticipated for use in immunization messages.
[{SFT}]
[0..1]
R O R R This segment echoes the Query Parameter Definition Segment sent in the requesting query. The specified segments and their contents as specified in the Segment Pattern from Query Profile, are returned here. May be empty if no records returned. Not anticipated for use in immunization messages.
] [ DSC ]
RequestingAnImmunizationHistoryfromAnotherSystemVXQ
TheuseofVXQisnotsupportedfor2.5.1immunizationmessaging. Version2.5.1implementationsareexpectedtosupportQBPstylequery.
AcknowledgingaMessageACK
TheACKreturnsanacknowledgementtothesendingsystem.Thismayindicateerrorsin processing.
Table 6-5 Message Acknowledgement Segment (ACK)
Usage R O
Comment
Not anticipated for use in immunization
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
132
Usage R RE
Comment
messages.
Includeifthereareerrors.
Note: For the general acknowledgment (ACK) message, the value of MSH-9-2-Trigger event is equal to the value of MSH-9-2-Trigger event in the message being acknowledged. The value of MSH-9-3-Message structure for the general acknowledgment message is always ACK.
SendingDemographicInformationVXUorADT
UseoftheADTmessageisrequiredforparticipationinthePIX/PDQprofilefor maintenanceoftheMasterPersonIndex.Inaddition,itmaybeusedtopopulateanIIS withdatafromsystemsthatdonotcontainimmunizationdataorthatcantproduce immunizationmessages. Inmostcases,atpresent,useoftheADTmessageisnotanticipatedforwidespreaduse outsideofthiscontext.SincethisImplementationGuidefocusesonmessaging immunizationinformation,thoseinterestedinuseoftheADTarereferredtoChapter3 oftheVersion2.5.1documentation.Inaddition,theIHEprofilesincludeclearguidelines onusinganADT.TheVXUmessagemaybeusedtoconveydemographicinformation withoutinclusionofimmunizationinformation,sinceORCareoptionalsegments. ADTmessagesshallnotbeusedfortransmittingimmunizationrecords.Theymaybe usedfortransmittingdemographicinformation. ThisGuidewillgivespecificationsfortheRegisterPatient(A04)message.Theonly differencesbetweenA04andA28aretheMessageType(MSH9)andtheadditionofa PDA(PatientDeathandAutopsy)segmentfortheA04variantoftheADT.TheGuidewill notprovidespecificationsforthefullsuiteofpatientmanagementactivities.Systems thatwillsupportthesemoreextensiveactivitiesshouldadoptanexistingprofileor developanimplementationguideorprofilespecifyingtheirlocaluse. IntegratingtheHealthcareEnterprise(IHE)haspublishedaprofilethatprovidessupport forthetransactionsthatsupportinteractionwithaMasterPersonIndex(MPI).Those planningextensiveuseofADTareurgedtoconsultthesedocuments. http://www.ihe.net/profiles/index.cfm http://www.ihe.net/Technical Framework/index.cfm 22
22
These links are current as of 5/1/2010. HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
133
Chapter 6: Messages for Transmitting Immunization Information Table 6-6-ADT A04 Message
Segment MSH [{SFT}] EVN PID [PD1] [{ROL}] [{NK1}] PV1 [PV2] [{ROL}] [{DB1}] [{OBX}] [{AL1}] [{DG1}] [DRG] [{ PR1 [{ROL}] }] [{GT1}] [{ IN1 IN2 IN3 [{ROL}] }] [ACC] [UB1] [UB2] [PDA]
Cardinality [1..1] [0..*] [1..1] [1..1] [0..1] [0..*] [0..*] [1..1] [0..1] [0..*] [0..*] [0..*] [0..*] [0..*] [0..*] [0..1] [0..*] [0..*] [0..1] [0..1] [0..1] [0..*] [0..1] [0..1] [0..1] [0..1]
Usage R O R R RE O O R O O O O O O O O O O O O O O O O O O
Comment EverymessagebeginswithanMSH. EveryADThasoneEVNsegment. EveryADThasonePIDsegment. EveryPIDsegmentinADTmayhavezeroorone PD1segment ThePIDsegmentinaADTmayhavezeroormore NK1segments. ThePIDsegmentinanADTmusthaveonePV1 segment. ThePIDsegmentinanADTmayhavezeroormore OBXsegments.
SendingMessagesinaBatch
Systemsmaychoosetosendmessagesinbatches.Abatchbeginswithabatchheader statement(BHS)andendswithaBatchTrailerSegment.Batchesmayinturnbebatched intofilesofbatchesusingFileHeaderStatementandFileTrailerstatement.Ifasystemis 134
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
sendingasinglebatch,theFHS/FTSisnotnecessary.Astreamofmessagesmaybesent withoutuseofeitherBHSorFHS. Thegenericlayoutofabatchmessageisasfollows: BHS VXU VXU BTS Similarly,afileofbatchesislaidoutasfollows: FHS BHS VXU VXU BTS BHS VXU BTS FTS
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
135
This functionality entails a query that uses demographic and other identifying information to request an immunization history. If one or more lower confidence candidates are found a list of candidates is returned. If a single high-confidence match is found, an immunization history is returned. 24 These links are current as of 5/1/2010.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
136
NA
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
137
Notethatwhenonepatientisfound,aReceivingsystemmaychoosetosendanimmunizationhistoryoralistofonepatient identifiersdependingonthelocalbusinessrules.Thisshouldbeclearlydocumentedinalocalprofile. Eachsystemwillneedtodeterminethebusinessrulesthatdealwithpatientswhowishtohavetheirrecordsprotected.Some systemsmaychoosetotreatthepersonasiftheyarenotinthesystem.Othersmaychoosetosendaresponseindicatingthatthe personexistsinthesystembutdoesnotallowsharing.Thisruleshouldbeclearlydocumentedinthelocalprofile. QueryGrammar QBP^Q11^QBP Q11 Query Grammar: QBP Message Usage Comment
MSH [{SFT}] Message Header Segment Software Segment R O Local profile may specify QPD RCP [ DSC ] Query Parameter Definition Response Control Parameter Continuation Pointer R R X Not supported
ResponseGrammar
Table 7-2-Response Grammar to Different Outcomes
OutcomeofQuery Nomatchfound
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
138
Responseincludesacompleteimmunizationhistoryasspecifiedbelow. SeeProfileReturnImmunizationHistory. 26 Atleastonelowerconfidencematch is ResponsereturnsonePIDwithassociatedPD1andNK1segmentsforeach found,but<=maximumnumberallowed. potentialmatch.Noimmunizationhistoryisreturned. SeeProfileReturnCandidateList. Morethanthemaximumnumberallowedis Responseindicatesthatthemessagewassuccessfullyprocessed,butthat found. toomanypotentialmatcheswerefound. Themaximumnumberallowedisthelowerofthemaximumnumber requestedandthemaximumnumberthatthereceivingsystemwillreturn. Messageisnotwellformedandhasfatal Responseindicatesthatthemessagewasnotsuccessfullyprocessedand errors. mayindicateerrors. Theresponsegrammarbelowwillaccommodateeachofthecasesabove.Ifonehighconfidencecandidateisfoundthenanentire immunizationhistorymaybereturned.Ifoneormorelowerconfidencecandidatesarefound,thenalistofpatientidentifiersmay bereturned. Theusageofsegmentswillbespecifiedintwoseparateprofiles.Thefirstprofilewilladdressthecasewhereoneormorelower confidencematchesarefound.Inthiscasealistofcandidateswillbereturned.Thesewillnothaveimmunizationhistories.(Similar toV2.3.1VXX)Theotherprofilewillhandlethecasewherethereceivingsystemfindsonehighconfidencematch.Inthiscaseone clientimmunizationrecordwillbereturned(similartoV2.3.1VXR).
Definition of match is left to local business rules. These rules should be documented in a local implementation guide. For example, a system may only return an immunization history when the match is exact, returning a list of 1 if one person for a lower probability match. 26 More than one high confidence match constitutes is considered a set of lower confidence matches.
25
Exactlyonehighconfidencematchfound 25
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
139
ResponseGrammarRSP^K11
Table 7-3 Response Grammar RSP^K11 Segment MSH MSA [ERR] QAK QPD [{ [{ PID [PD1] [{NK1}] }] [ [PV1] [IN1] [{ ORC RXA [RXR] [{ OBX [NTE] [1..1] [0..1] [0..*] [1..1] [0..1] R RE RE R RE [0..1] [0..1] [0..1] [0..*] [1..1] O RE RE RE R Cardinality [1..1] [1..1] [0..1] [1..1] [1..1] [0..1] [0..*] [1..1] [0..1] [0..*] HL7 Optionality 27 R R O R R O O R RE RE Query Parameter Definition Segment 28 --- Response begin 29 Beginpatientidentifier Comment
If errors exist, then this segment is populated.
EndPatientIdentifier Beginimmunizationhistory
BeginObservation
27 28
Optionality is not the same as Usage, but rather the standard definitions of HL7. Matches the information in the requesting QBP message. 29 If a query errors out or if no matching persons are found the segments in the Response group will not be returned.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
140
}] }] ] }]
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
141
8 9 10 11 12 13 14 15
40 15 20 3 15 180 2
ST MSG ST PT VID NM ST ID
Security Message Type Message Control ID Processing ID Version ID Sequence Number Continuation Pointer Accept Acknowledgment Type
O R R R R O O RE NE-Never 2.5.1
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
142
SEQ 16 17 18 19 20 21
LEN 2 3 16
Data Type ID ID ID CE
ELEMENT NAME Application Acknowledgment Type Country Code Character Set Principal Language Of Message Alternate Character Set Handling Scheme Message Profile Identifier
Usage RE O O O O R
Constraint
AL-Always
blank blank blank blank Z34^ CDCPHINVS
20
ID EI
0356
01317 01598
QPDInputParameterSpecification
Table 7-5 QPD Input Parameter Specification
Field Seq (Query ID=Z34) 1 Name Key/ Search Sort LEN TYPE Opt Rep Match Op TBL Segment Field Name Service Identifier Code Element Name or Value Z34^Request Immunization History^HL70471 Y PID.3 PID.5 PID.6 PID.7 PID.8 PID-3: Patient Identifier List PID-5: Patient Name PID-6: Mothers maiden name PID-7: Patient date of birth PID-8: Patient sex
MessageQueryName
CE
2 3 4 5 6 7
QueryTag PatientList PatientName PatientMotherMaiden Name Patient Date of Birth Patient Sex
32
ST CX XPN XPN
R RE RE RE RE RE
26 1
TS IS
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
143
Name
Key/ Search
Sort
LEN
TYPE
Opt
Rep
Match Op
TBL
Element Name or Value PID-11: Patient Address PID-13: Patient home phone PID-24: Patient multiple birth indicator PID-25: Patient birth order PID-33: Patient last update date PID-34: Patient last update faciliity
Patient Address Patient home phone Patient multiple birth indicator Patient birth order Client last updated date Client last update facility 1 2
XAD XTN ID NM TS HD
RE RE RE RE RE RE
QPDInputParameterFieldDescriptionandCommentary
Table 7-6 QPD Input Parameter Field Description and Commentary
Input Parameter (Query ID=Z34) Comp. Name DT Description
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
144
Comp. Name
DT
Description
CE ST CX
Z34^Request Immunization History^HL70471 Unique to each query message instance. The combination of values for Patientlist.ID, patientlst.identifiercode and Patientlist.AssigningAuthority are intended to allow unique identification of a client, if the data are found in the responding system. If this field, PID.3.1, is not valued, PatientList is not considered when seeking matching clients. If this field, PID.3.4, is not valued, PatientList is not considered when seeking matching clients. If this field, PID.3.5, is not valued, PatientList is not considered when seeking matching clients. If this field, PID.5, is not valued, then the query will return an error, since this is a required field. If this field, PID.5.1, is not valued, then patient name is considered to contain no value. If this field, PID.5.2, is not valued, then patient name is considered to contain no value. Given name is required. If this field, PID.5.3, is not valued, then all values for this field are considered a match. If this field, PID.5.4, is not valued, then all values for this field are considered a match. If this field, PID.6, is not valued, Mothers maiden name is not considered when seeking matching clients. If this field, PID.6.1, is not valued, then mothers maiden name is considered to contain no value. If this field, PID.6.2, is not valued, then all values for this field are considered a match. If this field, PID.7, is not valued to an accuracy of at least day,
ID Assigning Authority IdentifierTypeCode PatientName Family Name Given Name Second or further names Suffix Mothers Maiden Name Family Name Given Name DateOfBirth
ST HD IS XPN FN ST ST ST XPN FN ST TS
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
145
Comp. Name
DT
Description
then this field is considered not valued. Sex Address Street Address City State ZIP Address Type Phone IS XAD SAD ST ST ST IS XTN If this field, PID.8, is not valued, then all values for this field are considered a match. If this field, PID.11, is not valued, then address will not be considered when seeking matching clients. If this field, PID.11.1, is not valued, then all values for this field are considered a match. If this field, PID.11.3, is not valued, then address is considered to contain no value. If this field, PID.11.4, is not valued, then address is considered to contain no value. If this field, PID.11.5, is not valued, then all values for this field are considered a match. If this field, PID.11.7 is not valued, then it shall default to L, legal address. This field will be considered the Home phone. If this field, PID.13, is not valued, then phone number is not considered when seeking matching clients. If this field, PID.13.6, is not valued, then all values for this field shall be considered matches. If this field, PID.13.7, is not valued, then address is considered to contain no value. If this field, PID.24, is not valued, then Multiple Birth Indicator is not considered when seeking matching clients. If this field, PID.25, is not valued, then birth order is not considered when seeking matching clients. If this field, PID.33, is not valued, then client last updated date is not considered when seeking matching clients. If this field, PID.34, is not valued, then client last updating facility
Area code Local number Multiple Birth Indicator Birth Order Client last updated date Client last update facility
NM NM ID NM TS TS
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
146
Comp. Name
DT
Description
1 10
ID CQ NM CWE
If this field is not valued then it shall default to I. The only value permitted is I. The maximum number of patients that may be returned. This value is set by the requester. The sender may send up to this number. This value shall be RD (records) Real time or Batch. Default is R. This field shall be empty.
3 7
60 256
CWE ID
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
147
ReturnaListofCandidatesProfileZ31^CDCPHINVS
HL7Version2.5.1MessageProfileforReturningaListofCandidatesinResponsetoaRequestImmunizationHistoryQuery Introduction: Akeytaskthatmustbeaccomplishedforimmunizationmessagingisrequestinganimmunizationhistoryfromanotherinformation system.Thereare4possibleoutcomestoarequestforimmunizationquery.
Table 7-8 Query Response Possibilities
Outcome Noclientsarefoundthatmatchthe requestedperson Exactlyonehighconfidencematchis found. Oneormorelowerconfidencepersons matchthecriteriasent.Matchingmore thanonehighconfidencecandidate constitutesalowerconfidencematch. Themessageisnotwellformedandcant beprocessed.
Returnerroracknowledgement
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
148
UseCase:
Name: ReturnCandidateList Actors: 1. ImmunizationHistoryRequesterisasystemthatrequestsanimmunizationhistoryforaspecificindividual.Inthisusecase, itreceivesthecandidatelistsent. 2. ImmunizationHistorySupplierreturnscandidatelisttoarequesterforinresponsetoarequestforimmunizationhistory. Preconditions: 1. TheHistorySupplierhasfoundrecordsforoneormorepersonswhomatchtheparametersinthequery. 2. TheHistorySupplierhascreatedtheresponsemessage. FlowofEvents: 1. TheHistorySuppliersendstheRSPresponsemessage. 2. TheHistoryRequesterreceivestheRSPresponsemessage.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
149
If errors exist, then this segment is populated.
30 31
Matches the information in the requesting QBP message. If a query errors out or if no matching persons are found the segments in the Response group will not be returned.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
150
}] [ [0..0] X
RE RE RE R
BeginObservation
Endobservation EndPharmacyAdministration EndOrder EndImmunizationHistory Responseend
Thisprofileindicatesthatalistofpatientidentificationshallbereturned.ItshallbeidentifiedinMSH21byitsprofileidentifier.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
151
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
152
DynamicDefinition
Sequence Diagram
Figure 7-2 Return Candidate List (RSP^K11)
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
153
ReturnanImmunizationHistoryZ32^CDCPHINVS
HL7Version2.5.1MessageProfileforReturninganImmunizationHistory Introduction: Akeytaskthatmustbeaccomplishedforimmunizationmessagingisrequestinganimmunizationhistoryfromanotherinformation system.Onecomponentofthatprocessisreturninganimmunizationhistory.ThisprofileconstrainstheQBPQuery,Request ImmunizationHistoryQueryZ34,thatisspecifiedabove.Thatqueryprofilespecifiesthequeryforrequestinganimmunization historyandisintendedtosupport2typesofresponse.Oneresponsereturnsalistofcandidateclient/patientstobethebasisof furtherselection.Thatselectionisthenusedtorequeryforanimmunizationhistory.Thesecondisaresponsethatreturnsan immunizationhistory.Thissecondisthefocusofthismessageprofile.Thegoalofthisprofileistoconstraintheresponsespecifiedin theRequestImmunizationHistoryqueryprofiletoasingleimmunizationhistory.Inallotheraspectsitconformscompletelywiththe specificationsdescribedintheimplementationGuideforthisqueryprofile. UseCase: Name:
ReturnImmunizationHistory
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
154
Actors: 1. ImmunizationHistoryRequesterisasystemthatrequestsanimmunizationhistoryforaspecificindividual.Inthisusecase, itreceivestheimmunizationhistorysent. 2. ImmunizationHistorySupplierreturnsanimmunizationhistorytoarequesterforaspecificindividualinresponsetoa requestforimmunizationhistory. Preconditions: 1. TheHistorySupplierhasfoundtherecordsfortherequestedperson. 2. TheHistorySupplierhascreatedtheresponsemessage. FlowofEvents: 1. TheHistorySuppliersendstheRSPresponsemessage. 2. TheHistoryRequesterreceivestheRSPresponsemessage. PostConditions:
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
155
If errors exist, then this segment is populated.
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
156
Beginpatientvisit
BeginObservation
Endobservation EndPharmacyAdministration EndOrder Responsecontrolparameterend
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
157
Thisdiagramillustratesthecontextofthemessage.ThemessagespecifiedinthisprofileisinBoldandlabeledReturnImmunization History(RSP^K11).
Acknowledgement Responsibilities
Applicationlevelacknowledgementisallowed,butnotrequired. 158
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
Change History
Location Page100 Page46 Page124 AppendixA1 AppendixA2andA3 AppendixA33 AppendixA2 AppendixA30 AppendixA30 AppendixA36 Location AppendixA18 AppendixAmultiple Chapter6,page129 Chapter5,p72 Chapter5,p72and throughoutGuide Chapter7,p140 Chapter7,page156 Chapter7,page157 Chapter4,page61 AppendixB,throughout AppendixB15
Change PD14PrimaryProvider.CorrecteddatatypetoXCN. CorrectedusagedefinitionsforEIEntityIdentifierdata type. ClarifieddefaultactionifRXA21ActionCodeisnot populated. AddedcopyrightnoteonLOINCcodes.Addedreference toSNOMED.AddedreferencetoPHINVADS RemovedlinkstodeadwebpagesonRaceandEthnicity. AddedNCITtocodes CorrectedValuesetOIDforrace. CorrectedcodeforAllergytoproteinofrodentorigin. RemovedduplicaterowVXC28 CorrectedLOINCcodeforcontraindication
Table 111--Release 1.2 Changes
Change Addedexampleofresponsetoquerythatfoundtoo manycandidates. Correcteduseofprofileidentifiersintheresponses. ChangedHL70396toCDCPHIVS. CorrectedcardinalityofGT1andInsurancesegment group. CorrectedspellingofBHS Changednulltoemptyindatatypes,fieldsand segments.Insomecasesdeletedcontentsofcell Correctedcardinality RemovedextraneousRCProwintable. IncludeprofileidinthetextexplainingZ32^CDCPHINVS IllustrateduseofHDdatatypeinXCN CorrectedQuerynametoZ34^Request Immunization
History^CDCPHINVS
CorrectedLOINCinexamplemessage.Itwassetto Reaction,butshouldbe597799,scheduleused. Chapter5,page105 CorrectedcardinalityofPID1 Chapter5,variouspages CorrectedcardinalityoffieldswithusageofX(not supported)from[0..1]to[0..0] Chapter5,page108 CorrecteddatatypeofPID39TribalcitizenshipfromCE toCWE HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 159
1/31/2011
Change History
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) 1/31/2011
160
HL7definedTable0003Eventtype[onlyselectedvalueslisted](useinMSH9,second component) Thiscodeindicatesthetriggerevent.RefertoChapter3,Version2.5.1forfurther informationonHL7eventtriggers. Value Description A28 A08 A04 Q11 K11 V04 ADT/ACKAddpersoninformation ADT/ACKUpdatepersoninformation ADT/ACKRegisterapatient QBPQuerybyparameterrequestinganRSPsegmentpatternresponse(Query forvaccinationrecord) RSPSegmentpatternresponseinresponsetoQBP^Q11(Responseto vaccinationquery) VXUUnsolicitedvaccinationrecordupdate
UserdefinedTable0004Patientclass[valuessuggestedbyHL7](useinPV12) Thiscodecategorizesthepatientinthecurrentevent. TheonlyvaluesupportedisRforrecurringpatient.ForacurrentlistofHL7values pleasereferencetheHL7version2.5.1documents. UserdefinedTable0005Race[ThesevaluesareconsistentwiththeOMBNoticeof revisedcategoriesforcollectionofraceandethnicitydatathecombinedformat.](use inPID10,NK135) Thiscoderepresentstheclientsselfreportedrace. ValuesetOID: 2.16.840.1.114222.4.11.836 USracecodes Description
Thefollowingtableisincludedforreference.TheNIPoriginalracecodesarestill acceptedforbackwardscompatibility.ThenumericcodeUSracecodesshouldbeused.
Appendix A - A2 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
USracecodes
Description AmericanIndianor AlaskaNative Asian NativeHawaiianor OtherPacificIslander BlackorAfrican American White OtherRace Unknown
Description
I A A B W O U
AmericanIndian orAlaskaNative AsianorPacific Islander AsianorPacific Islander BlackorAfrican American White Other Unknown
HL7definedTable0008Acknowledgmentcode(useinMSA1) Thiscodeindicatesthetypeofacknowledgementexpected. Value Description AA AE AR CA CE CR Originalmode:ApplicationAccept Enhancedmode:Applicationacknowledgment:Accept Originalmode:ApplicationError Enhancedmode:Applicationacknowledgment:Error Originalmode:ApplicationReject Enhancedmode:Applicationacknowledgment:Reject Enhancedmode:Acceptacknowledgment:CommitAccept Enhancedmode:Acceptacknowledgment:CommitError Enhancedmode:Acceptacknowledgment:CommitReject
UserdefinedTable0063Relationship[asdefinedinHL7sVersion2.4](useinNK13, IN117) Value Description BRO Brother CGV Caregiver FCH Fosterchild FTH Father GRD Guardian GRP Grandparent MTH Mother OTH Other PAR Parent SCH Stepchild SEL Self SIB Sibling SIS Sister SPO Spouse UserdefinedTable0064Financialclass[NIPsuggestedvalues](useinPV120) Financialclassreferencesaclientseligibilitystatusatapointintime.Thevaluesinthis tablerelatetoeligibilityfortheVaccineforChildren(VFC)program.Local implementationsmaydefineanddocumentlocalcodes. NotethatfundingsourceforaspecificimmunizationisdifferentfromFinancialClass. ThesearedocumentedinCDClocalcodestable,CDCPHINVS(ValuesetOID 2.16.840.1.114222.4.11.3287). Code Lable Definition V01 Not VFC eligible Client does not qualify for VFC because they do not have one of the statuses below. This category does not include the underinsured (see V08). V02 VFC eligibleClient is currently on Medicaid or Medicaid Medicaid/Medicaid managed care. Managed Care V03 VFC eligibleClient does not have insurance coverage for Uninsured vaccinations.
Appendix A - A4 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
V04
V05
V06
V07
V08
VFC eligibleAmerican Indian/Alaskan Native VFC eligibleFederally Qualified Health Center Patient (under-insured) VFC eligible- State specific eligibility (e.g. S-CHIP plan) VFC eligibilityLocal-specific eligibility Not VFC eligibleUnder-insured
Client has insurance that partially covers vaccines received on visit and so is eligible for VFC coverage at a Federally Qualified Health Center. The client must be receiving the immunizations at the FQHC. Client is eligible for VFC, based on State-specific rules, such as S-CHIP. Client is eligible for VFC, based on local-specific rules. Client has insurance that partially covers vaccines received on visit. The immunizations were not administered at a Federally Qualified Health Center (FQHC)
HL7definedTable0076Messagetype[onlyselectedvalueslisted](useinMSH9,first component)
Value Description Usage in this guide
HL7definedTable0078Abnormalflags(useinOBX8) Fieldsusingthiscodesetareexpectedtobeempty.ForacurrentlistofHL7values pleasereferencetheHL7version2.5.1documents. HL7definedTable0085Observationresultstatuscodesinterpretation(useinOBX 11) FieldsusingthiscodesetareexpectedtobeFforFinal.ForacurrentlistofHL7values pleasereferencetheHL7version2.5.1documents. HL7definedTable0091Querypriority FieldsusingthiscodesetareexpectedtobeIorempty,whichindicatesImmediate processingisexpected.ForacurrentlistofHL7valuespleasereferencetheHL7version 2.5.1documents.
Appendix A - A5 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
HL7definedTable0104VersionID(useinMSH12) Value Description 2.1 2.2 2.3 2.3.1 2.4 2.5.1 Release2.1 Release2.2 Release2.3 March1997 Release2.3.1May1999 Release2.4October2000 Release2.5.1April2007
OK RE
Orderaccepted&OK Observationstofollow
Notsupported Supported
Yes No
Value in Field
|| <empty field> ||
Meaning
Nullify the value recorded in the receiving system data base.
Make no changes to the record in the receiving data base. The sending system has no information on this field.
HL7definedTable0162Routeofadministration[onlyselectedvalueslisted](usein RXR1) NotethatHITSPhasspecifiedtheuseoftheFDArouteofadministration.Thefollowing tablemapsthesetotheHL7table0162values. FDA HL70162 Description Definition NCI Thesaurus (NCIT) ID Intradermal withinorintroducedbetweenthe C38238 layersoftheskin IM Intramuscular withinorintothesubstanceofa C28161 muscle NS Nasal Givenbynose C38284
Appendix A - A7 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
IN IV PO OTH SC TD
Other/Miscellaneous Percutaneous made,done,oreffectedthroughthe skin. Subcutaneous Undertheskinorbetweenskinand muscles. Transdermal describessomething,especiallya drug,thatisintroducedintothe bodythroughtheskin
Appendix A - A8 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
HL7definedTable0163Administrativesite[onlyselectedvalueslisted](useinRXR2) HITSPhasrecommendedtheuseofSNOMEDcodes.Atthispointnotallofthese conceptshaveprecoordinatedSNOMEDcodes.Thepostcoordinatedarelongerthan thenominallengthofthefirstcomponentoftheCEdatatype.Therefore,thisguidewill continuetosupporttheHL70163codes. SNOMED HL70163 Description LT LA LD LG LVL LLFA RA RT RVL RG RD RLFA LeftThigh LeftUpperArm LeftDeltoid LeftGluteousMedius LeftVastusLateralis LeftLowerForearm RightUpperArm RightThigh RightVastusLateralis RightGluteousMedius RightDeltoid RightLowerForearm
UserdefinedTable0189EthnicGroup[ThesevaluesareconsistentwiththeOMB NoticeofrevisedcategoriesforcollectionofraceandethnicitydataandwithHL7s Version2.4](useinPID22,NK128) Description HL7Version2.4 US ethnicity codes ethnicitycodes 21352 21865 H N U HispanicorLatino notHispanicorLatino Unknown
Appendix A - A9 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
N F L BDL BR RH BA
RecordingofBirthStateusestheBDL,birthdeliverylocationcode.
Appendix A - A10 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
HL7definedTable0200Nametype(useinallXCN,XPNdatatypes;includingPID5,6, 9) Value Description Definition A Aliasname Thisisanicknameorotherassumedname. L Legalname Thisapersonsofficialname.Itistheprimaryname recordedintheIIS. D Displayname Thisisthepreferrednamedisplayedonauser interface. M Maidenname Thisisawomansnamebeforemarriage. C Adoptedname Thisisthenameofapersonafteradoption. B Nameatbirth Thisisnamerecordedatbirth(priortoadoption). P Nameofpartner/spouse Thisisthenameofthepartnerorspouse. U Unspecified Thisisanameofunspecifiedtype. HL7definedTable0201Telecommunicationusecode(useinallXTNdatatypes; includingPID13,14) Value Description PRN ORN WPN VHN ASN EMR NET BPN Primaryresidencenumber Otherresidencenumber Worknumber Vacationhomenumber Answeringservicenumber Emergencynumber Network(email)address Beepernumber
HL7definedTable0202Telecommunicationequipmenttype(useinallXTNdata types;includingPID13,14)
Value PH FX MD CP BP Internet X.400 TDD TTY Description Telephone Fax Modem Cellular phone Beeper Internet address: Use only if telecommunication use code is NET X.400 email address: Use only if telecommunication use code is NET Telecommunications Device for the Deaf Teletypewriter
Appendix A - A11 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
UserdefinedTable0203Identifiertype[valuessuggestedbyHL7;withNIPsuggested additions](useinallCX,XCNtypecodes;includingPID2,3,4,18,21andRXA10)
HL7 Table 0203 - Identifier type
Value AN ANON Description Account number Anonymous identifier Comment An identifier that is unique to an account. An identifier for a living subject whose real identity is protected or suppressed Justification: For public health reporting purposes, anonymous identifiers are occasionally used for protecting patient identity in reporting certain results. For instance, a state health department may choose to use a scheme for generating an anonymous identifier for reporting a patient that has had a positive human immunodeficiency virus antibody test. Anonymous identifiers can be used in PID 3 by replacing the medical record number or other non-anonymous identifier. The assigning authority for an anonymous identifier would be the state/local health department. Class: Financial A more precise definition of an account number: sometimes two distinct account numbers must be transmitted in the same message, one as the creditor, the other as the debtor. Class: Financial A more precise definition of an account number: sometimes two distinct account numbers must be transmitted in the same message, one as the creditor, the other as the debtor. Class: Financial Temporary version of an Account Number. Use Case: An ancillary system that does not normally assign account numbers is the first time to register a patient. This ancillary system will generate a temporary account number that will only be used until an official account number is assigned. An identifier that is unique to an advanced practice registered nurse within the jurisdiction of a certifying board Class: Financial Class: Financial An identifier that is unique to a persons bank card. Replaces AM, DI, DS, MS, and VS beginning in v 2.5. Class: Financial Use Case: needed especially for transmitting information about invoices. An identifier that is unique to a dentist within the jurisdiction of the licensing board
ANC
AND
ANT
APRN BA BC
Advanced Practice Registered Nurse number Bank Account Number Bank Card Number
BR CC
CY DDS
Appendix A - A12 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
Value DEA
DFN
Comment An identifier for an individual or organization relative to controlled substance regulation and transactions. Use case: This is a registration number that identifies an individual or organization relative to controlled substance regulation and transactions. A DEA number has a very precise and widely accepted meaning within the United States. Surprisingly, the US Drug Enforcement Administration does not solely assign DEA numbers in the United States. Hospitals have the authority to issue DEA numbers to their medical residents. These DEA numbers are based upon the hospitals DEA number, but the authority rests with the hospital on the assignment to the residents. Thus, DEA as an Identifier Type is necessary in addition to DEA as an Assigning Authority. An identifier issued to a health care provider authorizing the person to write drug orders Use Case: A nurse practitioner has authorization to furnish or prescribe pharmaceutical substances; this identifier is in component 1.
DL DN DPM DO DR EI EN FI GI GL GN HC JHN
Drivers license number Doctor number Podiatrist license number Osteopathic License number Donor Registration Number Employee number Employer number Facility ID Guarantor internal identifier General ledger number Guarantor external identifier Health Card Number Jurisdictional health number (Canada)
An identifier that is unique to a podiatrist within the jurisdiction of the licensing board. An identifier that is unique to an osteopath within the jurisdiction of a licensing board. A number that uniquely identifies an employee to an employer.
Class: Financial Class: Financial Class: Financial Class: Insurance 2 uses: a) UK jurisdictional CHI number; b) Canadian provincial health card number: A number assigned to a member of an indigenous or aboriginal group outside of Canada.
IND LI LN LR MA MB
Indigenous/Aboriginal Labor and industries number License number Local Registry ID Patient Medicaid number Member Number
Patient's Medicare number Practitioner Medicaid number Microchip Number Practitioner Medicare number
Class: Insurance An identifier for the insured of an insurance policy (this insured always has a subscriber), usually assigned by the insurance carrier. Use Case: Person is covered by an insurance policy. This person may or may not be the subscriber of the policy. Class: Insurance Class: Insurance Class: Insurance
Appendix A - A13 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
Value MD
MI
Military ID number
MR MRT
NE
Comment An identifier that is unique to a medical doctor within the jurisdiction of a licensing board. Use Case: These license numbers are sometimes used as identifiers. In some states, the same authority issues all three identifiers, e.g., medical, osteopathic, and physician assistant licenses all issued by one state medical board. For this case, the CX data type requires distinct identifier types to accurately interpret component 1. Additionally, the distinction among these license types is critical in most health care settings (this is not to convey full licensing information, which requires a segment to support all related attributes). A number assigned to an individual who has had military duty, but is not currently on active duty. The number is assigned by the DOD or Veterans Affairs (VA). An identifier that is unique to a patient within a set of medical records, not necessarily unique within an application. Temporary version of a Medical Record Number Use Case: An ancillary system that does not normally assign medical record numbers is the first time to register a patient. This ancillary system will generate a temporary medical record number that will only be used until an official medical record number is assigned. In the US, the Assigning Authority for this value is typically CMS, but it may be used by all providers and insurance companies in HIPAA related transactions. Class: Insurance Used for the UK NHS national identifier. In the US, the Assigning Authority for this value is typically CMS, but it may be used by all providers and insurance companies in HIPAA related transactions. Class: Insurance In the US, the Assigning Authority for this value is typically CMS, but it may be used by all providers and insurance companies in HIPAA related transactions. Class: Insurance In Germany a national identifier for an insurance company. It is printed on the insurance card (health card). It is not to be confused with the health card number itself. Class: Insurance Use case: a subdivision issues the card with their identifier, but the main division is going to pay the invoices.
NH
NI
NII
NIIP
National Insurance Payor Identifier (Payor) National Person Identifier where the xxx is the ISO table 3166 3-character (alphabetic) country code Nurse practitioner number National provider identifier
NNxxx NP NPI
An identifier that is unique to a nurse practitioner within the jurisdiction of a certifying board. Class: Insurance In the US, the Assigning Authority for this value is typically CMS, but it may be used by all providers and insurance companies in HIPAA related transactions.
Appendix A - A14 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
Description Optometrist license number Physician Assistant number Penitentiary/correctional institution Number Living Subject Enterprise Number Pension Number Patient internal identifier Person number Temporary Living Subject Number Passport number
Comment A number that is unique to an individual optometrist within the jurisdiction of the licensing board. An identifier that is unique to a physician assistant within the jurisdiction of a licensing board A number assigned to individual who is incarcerated. An identifier that is unique to a living subject within an enterprise (as identified by the Assigning Authority). A number that is unique to a patient within an Assigning Authority. A number that is unique to a living subject within an Assigning Authority. Temporary version of a Lining Subject Number. A unique number assigned to the document affirming that a person is a citizen of the country. In the US this number is issued only by the State Department. A number that is unique to an individual provider, a provider group or an organization within an Assigning Authority. Use case: This allows PRN to represent either an individual (a nurse) or a group/organization (orthopedic surgery team).
PRC PRN
PT QA RI
RPH RN RR RRI SL SN
Pharmacist license number Registered Nurse Number Railroad Retirement number Regional registry ID State license Subscriber Number
A generalized resource identifier. Use Case: An identifier type is needed to accommodate what are commonly known as resources. The resources can include human (e.g. a respiratory therapist), non-human (e.g., a companion animal), inanimate object (e.g., an exam room), organization (e.g., diabetic education class) or any other physical or logical entity. An identifier that is unique to a pharmacist within the jurisdiction of the licensing board. An identifier that is unique to a registered nurse within the jurisdiction of the licensing board.
Class: Insurance An identifier for a subscr ber of an insurance policy which is unique for, and usually assigned by, the insurance carrier. Use Case: A person is the subscriber of an insurance policy. The persons family may be plan members, but are not the subscriber.
SR SS TAX U UPIN VN
State registry ID Social Security number Tax ID number Unspecified identifier Medicare/CMS (formerly HCFA)s Universal Physician Identification numbers Visit number
Class: Insurance
Appendix A - A15 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
Value WC WCN XX
Comment
HL7definedTable0207Processingmode(useinMSH11) Fieldsusingthiscodesetareexpectedtobeempty.ForacurrentlistofHL7values pleasereferencetheHL7version2.5.1documents. UserdefinedTable0208Queryresponsestatus[valuessuggestedbyHL7](usein QAK2) Value Description OK NF AE AR TM Datafound,noerrors(thisisthedefault) Nodatafound,noerrors Applicationerror Applicationreject Toomanycandidatesfound
Appendix A - A16 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
UserdefinedTable0215Publicitycode[valuessuggestedbyNIP](useinPD111) Value Description 01 02 03 04 05 06 07 08 09 10 11 12 Noreminder/recall Reminder/recallanymethod Reminder/recallnocalls Reminderonlyanymethod Reminderonlynocalls Recallonlyanymethod Recallonlynocalls Reminder/recalltoprovider Remindertoprovider Onlyremindertoprovider,norecall Recalltoprovider Onlyrecalltoprovider,noreminder
(alphabetizedbymanufacturername)
TRUE FALSE
Appendix A - A17 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
AVB AVI BA
FALSE FALSE acquiredbymedimmune FALSE includesHylandImmuno,Immuno InternationalAG,andNorthAmerican Vaccine,Inc./acquiredsomeassets TRUE fromalphatherapeutics bayerbiologicalsnowownedby FALSE talecris FALSE includesSwissSerumandVaccine TRUE InstituteBerne formerlyMichiganBiologicProducts TRUE Institute NewownerofNABIHBasof December2007,DoesNOTreplace NABIBiopharmaceuticalsinthiscode TRUE list. TRUE FALSE FALSE FALSE FALSE TRUE TRUE acquiredbyMerieux CSLBiotherapiesrenamedtoCSL Behring
BaxterHealthcare Corporation BayerCorporation BernaProducts BernaProducts Corporation BioportCorporation Biotest Pharmaceuticals Corporation Cangene Corporation CelltechMedeva Pharmaceuticals CenteonL.L.C. ChironCorporation Connaught CSLBiotherapies,Inc DynPortVaccine Company,LLC EvansMedical Limited GeoVaxLabs,Inc. GlaxoSmithKline GreerLaboratories, Inc. Immuno InternationalAG ImmunoU.S.,Inc. IntercellBiomedical KoreaGreenCross Corporation Lederle Massachusetts
BTP CNJ CMP CEN CHI CON CSL DVC EVN GEO SKB GRE IAG IUS INT KGC LED MBL
Appendix A - A18 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
MA
BiologicLaboratories BiologicLaboratories Massachusetts PublicHealth BiologicLaboratories FALSE acquisitionsofU.S.Biosciencein1999 andAvironin2002,aswellasthe integrationwithCambridgeAntibody Technologyandthestrategic alignmentwithournewparent MedImmune,Inc. TRUE company,AstraZeneca,in2007. Merck&Co.,Inc. TRUE Merieux FALSE Miles FALSE formerlyNorthAmericanBiologicals, NABI TRUE Inc. NewYorkBlood Center TRUE NorthAmerican Vaccine,Inc. FALSE includesChiron,PowderJect Pharmaceuticals,CelltechMedeva Novartis Pharmaceutical VaccinesandEvansLimited,Ciba Corporation TRUE GeigyLimitedandSandozLimited Novavax,Inc. TRUE OrganonTeknika Coporation TRUE Orthoclinical aJ&Jcompany(formerlyOrtho Diagnostics TRUE DiagnosticSystems,Inc.) Othermanufacturer TRUE Parkedale nowebsiteandnonewsarticles Pharmaceuticals FALSE (formerlyParkeDavis) Pfizer TRUE PowderJect Pharmaceuticals FALSE PraxisBiologics FALSE (formerlyAventisPasteur,Pasteur MerieuxConnaught;includes ConnaughtLaboratoriesandPasteur sanofipasteur TRUE Merieux) Sclavo,Inc. TRUE Solvay Pharmaceuticals TRUE SwissSerumand VaccineInst. FALSE Talecris Biotherapeutics TRUE includesBayerBiologicals
Appendix A - A19 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
JPN
TheResearch Foundationfor MicrobialDiseases ofOsakaUniversity (BIKEN) UnitedStatesArmy MedicalResearch andMaterial Command Unknown manufacturer VaxGen WyethAyerst
TRUE
TRUE
WAL ZLB
WyethAyerst ZLBBehring
TRUE TRUE FALSE includesWyethLederleVaccinesand Pediatrics,WyethLaboratories, LederleLaboratories,andPraxis Biologics,acquiredbyPfizer FALSE 10/15/2009 includesAventisBehringandArmour FALSE PharmaceuticalCompany,ChildofCSL
Appendix A - A20 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
CVXVaccinesAdministered
VaccineName adenovirus,NOS adenovirus,type7 LongName adenovirusvaccine,NOS adenovirusvaccine,type7, live,oral adenovirus,type4 adenovirusvaccine,type4, 54 live,oral anthrax anthraxvaccine 24 BCG BacillusCalmetteGuerin 19 vaccine botulinumantitoxin botulinumantitoxin 27 cholera choleravaccine 26 CMVIG cytomegalovirusimmune 29 globulin,intravenous denguefever denguefevervaccine 56 diphtheriaantitoxin diphtheriaantitoxin 12 DT(pediatric) diphtheriaandtetanus 28 toxoids,adsorbedforpediatric use DTaP diphtheria,tetanustoxoids 20 andacellularpertussisvaccine DTaP,5pertussis diphtheria,tetanustoxoids 106 antigens andacellularpertussis vaccine,5pertussisantigens DTaP,NOS diphtheria,tetanustoxoids 107 andacellularpertussis vaccine,NOS DTaPHepBIPV DTaPhepatitisBand 110 poliovirusvaccine DTaPHib DTaPHaemophilusinfluenzae 50 typebconjugatevaccine DTaPHibIPV diphtheria,tetanustoxoids 120
34
CVXcode Current Status 82 Inactive 55 Inactive Inactive Active Active Inactive Inactive Active Inactive Inactive Active
Active Active
Inactive
Appendix A - A21 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
andacellularpertussis vaccine,Haemophilus influenzaetypebconjugate, andpoliovirusvaccine, inactivated(DTaPHibIPV) DTaPIPV Diphtheria,tetanustoxoids 130 andacellularpertussis vaccine,andpoliovirus vaccine,inactivated DTP diphtheria,tetanustoxoids 1 andpertussisvaccine DTPHib DTPHaemophilusinfluenzae 22 typebconjugatevaccine DTPHibHepB DTPHaemophilusinfluenzae 102 typebconjugateandhepatitis bvaccine hantavirus hantavirusvaccine 57 HBIG hepatitisBimmuneglobulin 30 HepA,adult hepatitisAvaccine,adult 52 dosage HepA,NOS hepatitisAvaccine,NOS 85 HepA,ped/adol hepatitisAvaccine, 83 pediatric/adolescentdosage, 2doseschedule HepA,ped/adol,3 hepatitisAvaccine, 84 dose pediatric/adolescentdosage, 3doseschedule HepA,pediatric, hepatitisAvaccine,pediatric 31 NOS dosage,NOS HepAHepB hepatitisAandhepatitisB 104 vaccine HepB,adolescentor hepatitisBvaccine,pediatric 8 pediatric orpediatric/adolescent dosage HepB, hepatitisBvaccine, 42 adolescent/highrisk adolescent/highriskinfant infant dosage HepB,adult hepatitisBvaccine,adult 43 dosage HepB,dialysis hepatitisBvaccine,dialysis 44 patientdosage HepB,NOS hepatitisBvaccine,NOS 45
Active
Inactive
Inactive
Appendix A - A22 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
hepatitisCvaccine hepatitisEvaccine herpessimplexvirus,type2 vaccine Hib(HbOC) Haemophilusinfluenzaetype bvaccine,HbOCconjugate Hib(PRPD) Haemophilusinfluenzaetype bvaccine,PRPDconjugate Hib(PRPOMP) Haemophilusinfluenzaetype bvaccine,PRPOMPconjugate Hib(PRPT) Haemophilusinfluenzaetype bvaccine,PRPTconjugate Hib,NOS Haemophilusinfluenzaetype bvaccine,conjugateNOS HibHepB Haemophilusinfluenzaetype bconjugateandHepatitisB vaccine HIV humanimmunodeficiency virusvaccine HPV,bivalent humanpapillomavirus vaccine,bivalent HPV,quadrivalent humanpapillomavirus vaccine,quadrivalent IG immuneglobulin, intramuscular IG,NOS immuneglobulin,NOS IGIV immuneglobulin,intravenous influenza,H5N1 influenzavirusvaccine,H5N1, 1203 A/Vietnam/1203/2004 (nationalstockpile) influenza,live, influenzavirusvaccine,live, intranasal attenuated,forintranasaluse influenza,NOS influenzavirusvaccine,NOS8 Influenza,seasonal, JapaneseEncephalitisvaccine highdose forintramuscular administration influenza,split(incl. influenzavirusvaccine,split purifiedsurface virus(incl.purifiedsurface antigen) antigen) influenza,whole influenzavirusvaccine,whole virus IPV poliovirusvaccine,inactivated
58 59 60 47 46 49 48 17 51
61 118 62 86 14 87 123
111 88 134
15
Active
16 10
Inactive Active
Appendix A - A23 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
JapaneseEncephalitisVaccine 39 SC Juninvirusvaccine 63 leishmaniasisvaccine 64 leprosyvaccine 65 Lymediseasevaccine 66 measlesandrubellavirus 4 vaccine malaria malariavaccine 67 measles measlesvirusvaccine 5 melanoma melanomavaccine 68 meningococcalC meningococcalCconjugate 103 conjugate vaccine meningococcal meningococcalpolysaccharide 114 MCVP4 (groupsA,C,YandW135) diphtheriatoxoidconjugate vaccine(MCV4) meningococcal meningococcalpolysaccharide 32 MPSV4 vaccine(MPSV4) meningococcal,NOS meningococcalvaccine,NOS 108 MMR measles,mumpsandrubella 3 virusvaccine MMRV measles,mumps,rubella,and 94 varicellavirusvaccine mumps mumpsvirusvaccine 7 OPV poliovirusvaccine,live,oral 2 parainfluenza3 parainfluenza3virusvaccine 69 pertussis pertussisvaccine 11 plague plaguevaccine 23 Pneumococcal pneumococcalconjugate 133 conjugatePCV13 vaccine,13valent pneumococcal pneumococcalconjugate 100 conjugatePCV7 vaccine,7valent pneumococcal pneumococcalpolysaccharide 33 polysaccharide vaccine PPV23 pneumococcal,NOS pneumococcalvaccine,NOS 109 polio,NOS poliovirusvaccine,NOS 89 Qfever Qfevervaccine 70 rabies,intradermal rabiesvaccine,forintradermal 40 injection injection rabies, rabiesvaccine,for 18
Active Inactive Inactive Inactive Inactive Active Active Active Inactive Active Active
Active Active Active Active Active Inactive Inactive Inactive Active Active Active Active
Appendix A - A24 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
intramuscular injection rabies,NOS rheumaticfever RiftValleyfever RIG rotavirus, monovalent rotavirus,NOS rotavirus, pentavalent rotavirus, tetravalent RSVIGIV
intramuscularinjection Inactive Inactive Inactive Active Active Active Active Inactive Active Active
rabiesvaccine,NOS 90 rheumaticfevervaccine 72 RiftValleyfevervaccine 73 rabiesimmuneglobulin 34 rotavirus,live,monovalent 119 vaccine rotavirusvaccine,NOS 122 rotavirus,live,pentavalent 116 vaccine rotavirus,live,tetravalent 74 vaccine respiratorysyncytialvirus 71 immuneglobulin,intravenous RSVMAb respiratorysyncytialvirus 93 monoclonalantibody (palivizumab),intramuscular rubella rubellavirusvaccine 6 rubella/mumps rubellaandmumpsvirus 38 vaccine Staphylococcus Staphylococcusbacteriophage 76 bacteriolysate lysate Td(adult) tetanusanddiphtheria 9 toxoids,adsorbedforadult use Td(adult) tetanusanddiphtheria 113 preservativefree toxoids,adsorbed, preservativefree,foradult use Tdap tetanustoxoid,reduced 115 diphtheriatoxoid,and acellularpertussisvaccine, adsorbed tetanustoxoid tetanustoxoid,adsorbed 35 tetanustoxoid,NOS tetanustoxoid,NOS 112 tickborne tickborneencephalitis 77 encephalitis vaccine TIG tetanusimmuneglobulin 13 TST,NOS tuberculinskintest;NOS 98 TSTOTtinetest tuberculinskintest;old 95 tuberculin,multipuncture
Active
Active
Appendix A - A25 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
device TSTPPDintradermal tuberculinskintest;purified proteinderivativesolution, intradermal TSTPPDtinetest tuberculinskintest;purified proteinderivative, multipuncturedevice tularemiavaccine tularemiavaccine typhoid,NOS typhoidvaccine,NOS typhoid,oral typhoidvaccine,live,oral typhoid,parenteral typhoidvaccine,parenteral, otherthanacetonekilled, dried typhoid,parenteral, typhoidvaccine,parenteral, AKD(U.S.military) acetonekilled,dried(U.S. military) typhoid,ViCPs typhoidVicapsular polysaccharidevaccine vaccinia(smallpox) vaccinia(smallpox)vaccine vaccinia(smallpox) vaccinia(smallpox)vaccine, diluted diluted vacciniaimmune vacciniaimmuneglobulin globulin varicella varicellavirusvaccine VEE,inactivated Venezuelanequine encephalitis,inactivated VEE,live Venezuelanequine encephalitis,live,attenuated VEE,NOS Venezuelanequine encephalitisvaccine,NOS VZIG varicellazosterimmune globulin VZIG(IND) varicellazosterimmune globulin(InvestigationalNew Drug) yellowfever yellowfevervaccine zoster zostervaccine,live novaccine novaccineadministered administered RESERVEDdonot RESERVEDdonotuse use unknown unknownvaccineorimmune
96
Inactive
97
Inactive
78 91 25 41
53
Active
Active Active Inactive Active Active Active Active Active Active Inactive
Appendix A - A26 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
globulin UserdefinedTable0296Language ISO639shallbeusedforLanguage.ItisavailablefromPHINVADSat: http://phinvads.cdc.gov/vads/ViewValueSet.action?id=43D34BBC-617F-DD11B38D-00188B398520# ThecodeusedfromHL70396tableisISO6392. Examplecodesarefoundinthetablebelow. Notethatthiscodediffersfromthe2.3.1Guide,whichusedthe2charactercodes. Value Description ara arm cat chi dan eng fre ger hat heb hin hmn jpn kor rus som spa vie Arabic Armenian Catalan;Valencian Chinese Danish English French German Haitian;HaitianCreole Hebrew Hindi Hmong Japanese Korean Russian Somali Spanish;Castilian Vietnamese
HL7definedTable0301UniversalIDtype(useinallHDdatatypes) Value Description DNS GUID HCD HL7 ISO L,M,N Random AnInternetdottednameeitherinASCIIorasintegers. SameasUUID. TheCENHealthcareCodingSchemeDesignator.(IdentifiersusedinDICOM followthisassignmentscheme.) ReservedforfutureHL7registrationschemes. AnInternationalStandardsOrganizationObjectIdentifier. Thesearereservedforlocallydefinedcodingschemes. Usuallyabase64encodedstringofrandombits.Theuniquenessdependsonthe lengthofthebits.MailsystemsoftengenerateASCIIstringuniquenames, fromacombinationofrandombitsandsystemnames.Obviously,such identifierswillnotbeconstrainedtothebase64characterset. TheDCEUniversalUniqueIdentifier. AnX.400MHSformatidentifier. AnX.500directoryname.
Appendix A - A28 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
HL7definedTable0354Messagestructure[onlyselectedvalueslisted](useinMSH9, thirdcomponent) Value Events ACK QBP_Q11 RSP_K11 VXU_V04 ACK QBP RSP VXU
HL7definedTable0356Alternatecharactersethandlingscheme(useinMSH20) Fieldsusingthiscodesetareexpectedtobeempty.ForacurrentlistofHL7values pleasereferencetheHL7version2.5.1documents. HL7definedTable0357Messageerrorstatuscodes(useinERR3) Status Statustext Description/Comment code Success 0 Messageaccepted Success.Optional,astheAAconveysthis.Usedfor systemsthatmustalwaysreturnastatuscode. Themessagesegmentswerenotintheproperorder orrequiredsegmentsaremissing. Arequiredfieldismissingfromthesegment. Thefieldcontaineddataofthewrongdatatype, e.g.,anNMfieldcontainedlettersofthealphabet. AfieldofdatatypeIDorISwascomparedagainst thecorrespondingtable,andnomatchwasfound. TheMessagetypeisnotsupported. TheEventCodeisnotsupported. TheProcessingIDisnotsupported. TheVersionIDisnotsupported. TheIDofthepatient,order,etc.wasnotfound. Usedfortransactionsotherthanadditions,e.g., transferofanonexistentpatient. TheIDofthepatient,order,etc.alreadyexists.Used inresponsetoadditiontransactions(Admit,New Order,etc.).
Rejectionstatuscodes 200 Unsupportedmessage type 201 Unsupportedeventcode 202 Unsupportedprocessing ID 203 UnsupportedversionID 204 Unknownkeyidentifier
205
Duplicatekeyidentifier
Appendix A - A29 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
Appendix A - A30 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
UserdefinedTable0360DegreeSelectedvaluessuggestedbyHL7.;(useinallXPN datatypes,includingPID5,6,9) Value Description PN AA AS BA BN BS BSN CER CANP CMA CNP CNM CNA CRN CNS CPNP DIP PHD MD DO EMT EMTP FPNP HS JD LPN MA MBA MPH MS MSN MDA MT NG NP PharmD PA AdvancedPracticeNurse AssociateofArts AssociateofScience BachelorofArts BachelorofNursing BachelorofScience BachelorofScienceinNursing Certificate CertifiedAdultNursePractitioner CertifiedMedicalAssistant CertifiedNursePractitioner CertifiedNurseMidwife CertifiedNursesAssistant CertifiedRegisteredNurse CertifiedNurseSpecialist CertifiedPediatricNursePractitioner Diploma DoctorofPhilosophy DoctorofMedicine DoctorofOsteopathy EmergencyMedicalTechnician EmergencyMedicalTechnicianParamedic FamilyPracticeNursePractitioner HighSchoolGraduate JurisDoctor LicensedPracticalNurse MasterofArts MasterofBusinessAdministration MasterofPublicHealth MasterofScience MasterofScienceNursing MedicalAssistant MedicalTechnician NonGraduate NursePractitioner DoctorofPharmacy PhysicianAssistant
Appendix A - A31 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
UserdefinedTable0361Application Nosuggestedvaluesdefined. UserdefinedTable0362Facility Nosuggestedvaluesdefined. UserdefinedTable0363AssigningAuthority Localimplementationswillneedtoaddcodestothistabletoidentifylocalassigning authorities.Thevaluesinthistableareintendedtobeusedbystateandregional immunizationprograms. Code AKA ALA ARA ASA AZA BAA CAA CHA COA CTA DCA DEA FLA FMA GAA GUA HIA IAA Grantee ALASKA ALABAMA ARKANSAS AMERICANSAMOA ARIZONA NEWYORKCITY CALIFORNIA CHICAGO COLORADO CONNECTICUT DISTRICTOF COLUMBIA DELAWARE FLORIDA FEDSTATESMICRO GEORGIA GUAM HAWAII IOWA
Appendix A - A32 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
IDA ILA INA KSA KYA LAA MAA MDA MEA MHA MIA MNA MOA MPA MSA MTA NCA NDA NEA NHA NJA NMA NVA NYA OHA OKA ORA PAA PHA PRA RIA RPA SCA SDA TBA THA TNA TXA UTA VAA VIA VTA
IDAHO ILLINOIS INDIANA KANSAS KENTUCKY LOUISIANA MASSACHUSETTS MARYLAND MAINE REPMARSISLANDS MICHIGAN MINNESOTA MISSOURI NO.MARIANAISLAND MISSISSIPPI MONTANA NORTHCAROLINA NORTHDAKOTA NEBRASKA NEWHAMPSHIRE NEWJERSEY NEWMEXICO NEVADA NEWYORKSTATE OHIO OKLAHOMA OREGON PENNSYLVANIA PHILADELPHIA PUERTORICO RHODEISLAND REPUBLICPALAU SOUTHCAROLINA SOUTHDAKOTA SANANTONIO HOUSTON TENNESSEE TEXAS UTAH VIRGINIA VIRGINISLANDS VERMONT
Appendix A - A33 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
Appendix A - A34 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
SNOMED International
Description SNOMED topology codes (anatomic sites) Unified Medical Language Universal Product Code UPIN WHO record # drug codes (6 digit) WHO record # drug codes (8 digit) WHO record # code with ASTM extension WHO ATC
UserdefinedTable0441Immunizationregistrystatus(useinPD116)[HL7assigned tablenumber0441inVersion2.4] Value Description A I L M P U Active InactiveUnspecified InactiveLosttofollowup(cannotcontact) InactiveMovedorgoneelsewhere(transferred) InactivePermanentlyinactive(donotreactivateoraddnewentriestothis record) Unknown
Information
Error
Comment Transactionsuccessful,but theremaybeissues.These mayincludenonfatal errorswithpotentialfor lossofdata. Transactionsuccessful,but includesreturned information. Transactionwasnot successful.
Appendix A - A35 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
NIPdefinedNIP003Observationidentifiers(useinOBX3) 35 LOINC Description Corresponding Correspondingobservation 36 Code datatype valueEXAMPLEORcodetable (indicatein touse(valueinOBX5) OBX2) VaccineFundingSourceUseinOBX3toindicatethatOBX5willcontainthefunding sourceforagivenimmunization.
All VAERS-only items removed. This material contains content from LOINC (http://loinc.org). The LOINC table and LOINC codes are copyright 1995-2010, Regenstrief Institute, Inc. and the Logical Observation Identifiers Names and Codes (LOINC) Committee. Appendix A - A36
36
35
HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
30963-3
(CE)
ValueSetOID 2.16.840.1.114222.4.11.3287
ValueSetCode:: PHVS_ImmunizationFundingSource_IIS
VaccineTypeIdentifier
30956-7 Vaccine Type (Vaccine group or family) Component Vaccine Type (CE) HL70292 (CVX codes use the codes described as NOS as needed.) HL70292 (CVX codes use the codes described as NOS as needed.) 19970522
38890-0
(CE)
Contraindications,Precautions,IndicationsandImmunities
30946-8 Vaccination contraindication/precaution effective date Vaccination temporary contraindication/precaution expiration date Vaccination contraindication/precaution (DT)
30944-3
(DT)
19990523
30945-0
(CE)
ValueSetOID 2.16.840.1.114222.4.11.3288
ValueSetCode:: PHVS_VaccinationContraindication_IIS
31044-1
Reaction
(CE)
ValueSetOID 2.16.840.1.114222.4.11.3289
ValueSetCode:: PHVS_VaccinationReaction_IIS
59784-9
(CE)
59785-6
Indications to immunize
(CE)
ValueSetOID 2.16.840.1.114222.4.11.3290
ValueSetCode:: PHVS_VaccinationSpecialIndications_IIS
VaccineInformationStatement(VIS)Dates
29768-9 29769-7 Date Vaccine Information Statement Published Date Vaccine Information Statement Presented (TS) (TS) 19900605 199307311615
ForecastingandEvaluatingImmunizations
Appendix A - A37 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
30973-2 30979-9
(NM) (CE)
2 HL70292 (CVX)
30980-7 Date vaccine due 30981-5 Earliest date to give 30982-3 Reason applied by forecast logic to project this vaccine Immunization Schedule used
19980526 19980522 Codes for forecast logic reason locally defined. ValueSetOID
2.16.840.1.114222.4.11.3291 ValueSetCode:: PHVS_ImmunizationScheduleIdentifier_IIS
59779-9
CE
Immunization Series name Number of doses in primary series Dose validity Status in immunization series
CE NM ID CE
SmallpoxTakeRead:Thesecodesallowinformationaboutevaluationofasmallpox vaccination,calledthetakeresponse.
46249-9 46250-7 VACCINATION TAKERESPONSE TYPE VACCINATION TAKERESPONSE DATE (ST) (TS) Major Take, Equivocal, Not Available 20091221
LOINCcodesarecopyright19952009,RegenstriefInstituteandtheLogical ObservationIdentifierNamesandCodes(LOINC)Committee.Allrightsreserved. ThefollowingNIPtablesarenotincludedinthisGuide.TheysupportVAERS reporting,whichnotwithinthescopeofthisGuide. NIP005EventConsequences NIP007VaccinatedatLocation NIP008VaccinepurchasedwithFunds NIP009Adverseeventpreviouslyreported NIP010Reporttype ThefollowingvaluesetsreplaceanumberofNIPtables.Thesehavebeenregisteredin theCDClocalvalueset,CDCPHINVS.Whereappropriate,existingcodesareused.For
Appendix A - A38 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
CDCPHINVS
Appendix A - A39 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
NIPdefinedNIP004Contraindications,Precautions,andImmunities This table has been replaced by separate tables for contraindications, indications, reactions and immunities ValueSetNameVaccinationContraindications(UsedinOBX5) ValueSetOID2.16.840.1.114222.4.11.3288
ValueSetCode::PHVS_VaccinationContraindication_IIS Valuesetdefinition:indicatesacontraindicationtovaccination. CodeSetOID: SNOMED:2.16.840.1.113883.6.96 CDCPHINVS:2.16.840.1.114222.4.5.274
Concept Code
VXC30 VXC17 VXC18 91930004 294847001 294468006 294466005 VXC19
Concept Name
allergy(anaphylactic)to proteinsofrodentorneural origin allergy(anaphylactic)to2 phenoxyethanol allergytobakersyeast (anaphylactic) Allergytoeggs(disorder) Gelatinallergy(disorder) Neomycinallergy(disorder) Streptomycinallergy(disorder) allergytothimerosal (anaphylactic) allergytopreviousdoseofthis vaccineortoanyofitsunlisted vaccinecomponents (anaphylactic)
Definition
allergy(anaphylactic) toproteinsofrodentor neuralorigin allergy(anaphylactic) to2phenoxyethanol allergytobakersyeast (anaphylactic) allergytoeggingestion (anaphylactic) allergytogelatin (anaphylactic) allergytoneomycin (anaphylactic) allergytostreptomycin (anaphylactic) allergytothimerosal (anaphylactic) allergytoprevious doseofthisvaccineor toanyofitsunlisted vaccinecomponents (anaphylactic) allergy(anaphylactic) toalum allergy(anaphylactic) tolatex allergy(anaphylactic) topolymycinB Previoushistoryof intussusception encephalopathywithin 7daysofpreviousdose ofDTPorDTaP currentfeverwith moderatetosevere illness
03 04 05 06 07 08 09
VXC20 402306009 300916003 294530006 VXC21 Allergytoaluminum(disorder) Latexallergy(disorder) PolymyxinBallergy(disorder) Previoushistoryof intussusception encephalopathywithin7days ofpreviousdoseofDTPor DTaP currentfeverwithmoderate tosevereillness
15
CDCPHINVS
VXC22
16
CDCPHINVS
VXC23
Appendix A - A40 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
Concept Code
Concept Name
currentacuteillness, moderatetosevere(withor withoutfever)(e.g.,diarrhea, otitismedia,vomiting)
Definition
currentacuteillness, moderatetosevere (withorwithoutfever) (e.g.,diarrhea,otitis media,vomiting) chronicillness(e.g., chronicgastrointestinal disease) HistoryofArthus hypersensitivity reactiontoatetanus containingvaccine administered<10yrs previously underlyingunstable, evolvingneurologic disorders,(including seizuredisorders, cerebralpalsy,and developmentaldelay) immunodeficiencydue toanycause,including HIV(hematologicand solidtumors, congenital immunodeficiency, longterm immunosuppressive therapy,including steroids) pregnancy(in recipient) thrombocytopenia thrombocytopenic purpura(history)
VXC24
CDCPHINVS
22
SCT
27624003
Chronicdisease(disorder) HistoryofArthus hypersensitivityreactiontoa tetanuscontainingvaccine administered<10yrs previously underlyingunstable,evolving neurologicdisorders, (includingseizuredisorders, cerebralpalsy,and developmentaldelay)
VXC25
CDCPHINVS
37
CDCPHINVS
36
39 40 41
ValueSetNameVaccinationReactionIIS(UsedinOBX5) ValueSetOID2.16.840.1.114222.4.11.3289
ValueSetCode::PHVS_VaccinationReaction_IIS Valuesetdefinition:indicatesareactionoradverseeventassociateintimewithanimmunization. CodeSetOID: SNOMED:2.16.840.1.113883.6.96 CDCPHINVS:2.16.840.1.114222.4.5.274
Concept Code
Concept Name
Definition
Anaphylaxis Encephalopathy
persistent,inconsolablecrying lasting>3hourswithin48 hoursofdose collapseorshocklikestate within48hoursofdose convulsions(fits,seizures) within72hoursofdose feverof>40.5C(105F)within 48hoursofdose GuillainBarresyndrome(GBS) within6weeksofdose Rashwithin14daysofdose Intussusceptionwithin30days ofdose
persistent,inconsolable cryinglasting>3hours within48hoursofdose collapseorshocklike statewithin48hoursof dose convulsions(fits, seizures)within72 hoursofdose feverof>40.5C(105F) within48hoursofdose GuillainBarre syndrome(GBS)within 6weeksofdose Rashwithin14daysof dose Intussusceptionwithin 30daysofdose
CDCPHINVS
CDCPHINVS
CDCPHINVS CDCPHINVS
CodeSetOID: CDCPHINVS:2.16.840.1.114222.4.5.274
Concept Code
Concept Name
Definition
Rabiesexposure withinprevious10 days. Memberofspecial group
V 2.3.1 Value
CDCPHINVS CDCPHINVS
Concept Code
Z31
Concept Name
Definition
ReturnCandidate Clients Return Immunization History
RequestImmunization History
V 2.3.1 Value
Z32
CDCPHINVS CDCPHINVS
Z34
Example: |Z34^CDCPHINVS|
ValueSetNameImmunizationScheduleIdentifiersIIS(UsedinOBX5) ValueSetOID2.16.840.1.114222.4.11.3292
ValueSetCode::PHVS_ImmunizationScheduleIdentifier_IIS Valuesetdefinition:Identifiesthescheduleusedforimmunizationevaluationandforecast. CodeSetOID: CDCPHINVS:2.16.840.1.114222.4.5.274
Appendix A - A43 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
Concept Code
VXC16
Concept Name
ACIPSchedule
Definition
V 2.3.1 Value
Example: |VXC16^ACIPSchedule^CDCPHINVS| LocalImplementationsmayaddlocalcodesforlocalschedules.Inordertodothis, thelocalimplementationguideshouldpublishthecodeinalocaltable.Thecode systemidentifier(CDCPHINVSuseaboveisanexample)needstobeincludedinalocal copyofTable0396.Seefirstrowforexample.Thelocalschedulecodeshouldbe recordedasfollows: |yourLocalcode^yourschedulenamehere^99xxx| The99xxxisthelocalcodetableidentifier.Xxxarealphacharacters. ValueSetNameEvidenceofImmunityIIS(UsedinOBX5) ValueSetOID2.16.840.1.114222.4.11.3293
ValueSetCode::PHVS_EvidenceOfImmunity_IIS Valuesetdefinition:Evidenceofimmunityindicatesthatapersonhasplausibleevidence
Concept Code
Concept Name
Definition
409498004 Anthrax
Historyofanthraxinfection.
(disorder)
Appendix A - A44 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
Concept Code
Concept Name
Definition
397428000 Diphtheria (disorder) 76902006 Tetanus (disorder) 27836007 Pertussis (disorder) 40468003 Viralhepatitis, typeA(disorder) 66071002 TypeBviral hepatitis (disorder) 91428005 Haemophilus influenzae infection (disorder) 240532009 Human papillomavirus infection (disorder) 6142004 Influenza (disorder) 52947006 Japanese encephalitisvirus disease (disorder) 14189004 Measles (disorder) 36989005 Mumps (disorder) 36653000 Rubella (disorder) 23511006 Meningococcal infectious disease (disorder) 16814004 Pneumococcal infectious disease (disorder) 398102009 Acute poliomyelitis (disorder)
26 25
HistoryofHIBinfection.
SCT
HistoryofHPVinfection.
SCT
SCT SCT
27 28 31
Historyofpneumococcalinfection.
SCT
Historyofpolioinfection.
SCT
30
Appendix A - A45 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
Concept Code
Concept Name
Definition
14168008 Rabies(disorder) 18624000 Diseasedueto Rotavirus (disorder) 4834000 Typhoidfever (disorder) 111852003 Vaccinia (disorder) 38907003 Varicella (disorder) 16541001 Yellowfever (disorder)
Historyofrabiesinfection. Historyofrotavirusinfection.
Examples: |38907003^Varicellainfection^SCT|
Appendix A - A46 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/31/2011
Appendix B HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.0) Last Updated on 2/1/2010
ImmunizationHistoryDefinition
Animmunizationhistoryconsistsofthefollowingcomponents: DataElement NVAC 37 HL7MessageLocation CoreData Element 38 Clientidentifiers 39 ID Optional PID3 Name Required PID5 Mothersmaidenname Required PID6 Clientdemographics Race Required PID10 Ethnicity Required PID22 Gender Required PID8 Birthdate Required PID7 Deathdate N/A 40 PID29 Birthorder Required PID24 MultipleBirthIndicator N/A PID25 BirthState PID11 Required Birthfacility Optional Clientlocators address Optional PID11 phone(andemail) Optional PID13 ClientIISstatus(MOGE) Optional PD116 Clienteligibilityforvaccine Optional PV120 funding(VFC) Clientprimarylanguage Optional PID15 Clientprivacyrequest N/A PD112 (protectionofinformation) Clientdesiresonbeing N/A PD111 contactedforreminders Nextofkinname,addressand Optional NK1Segment phonenumber Historyofvaccinepreventable Optional OBXsegment
37 38
National Vaccine Advisory Committee Required means that a system must be able to store if known. Optional means that a system should be able to store if known. 39 ID is a list of all important identifiers like IIS id, medical record number, birth registration number and SSN. 40 N/A indicates that it is not currently in the NVAC core data elements,
Appendix B 1 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
Animmunizationhistoryconsistsofthefollowingcomponents: DataElement NVAC 37 HL7MessageLocation CoreData Element 38 diseasesuchasVaricella Immunizationrecords RXAsegment Vaccine Required RXA5 Vaccinelot Required RXA15 Vaccinationdate Required RXA4 Quantity N/A RXA6andRXA7 Vaccineprovider Optional Administering RXA10 Organization Ordering ORC12 clinician Clinicsiteof RXA11 administration Manufacturer Required RXA17 Vaccineinformation N/A OBXsegment sheetdate Injectionsite Optional RXR2 Administrationroute N/A RXR1 VaccineExpirationDate Optional RXA16 Fundingsource N/A OBXsegment Recordsource(historical Optional RXA9 indicator) Reactionstovaccination N/A OBXsegment Refusalofvaccination N/A RXA18andRXA20 Clientconditionsthatimpact N/A OBXSegment forecastinganddosevalidation Nextdoseforecast N/A OBXSegment Validationofrecordeddose N/A OBXSegment basedonschedule recommendations
SendImmunizationHistory(VXU) BusinessProcess
Thefollowingactivitydiagramillustratestheprocessofsendingandreceivingan immunizationhistory.Itismeanttobeillustrativeandnotprescriptive.Withthe
Appendix B 2 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
a. DetermineifmessagemeetsHL7rules b. Validatebasedonlocalbusinessrules 41 5. Seekmatchingclientinreceiverdatabase a. Nomatchisfound 42 i. Addtheclienttothereceiverdatabase. ii. Sendacknowledgementmessage 43 b. Exactlyonematchfound i. Determineifclientinreceiverdatabasehasindicatedthathis/her dataistobeprotected(protectionindicator=Y) 44 ii. Protectionindicator=Y 1. Donotintegraterecordintoreceiverdatabase 2. Sendacknowledgement 45 iii. Protectionindicator=N 1. Basedonlocalbusinessrules,integrateincomingrecord intoreceiverdatabase. 2. Sendacknowledgement c. Morethanonematchfound i. Sendacknowledgement 46 6. Sendacknowledgmenttosendingsystem 7. Sendingsystemacceptsacknowledgementmessage. 47 Notethatsendingsystemmayindicatethatitdoesnotacceptacknowledgement messages.Inthiscase,noacknowledgementisreturned.Thisisnotrecommended. Itisexpectedthataclientsimmunizationhistoryisthecompletehistoryknowntothe sendingsystem,andnotjustupdatesonnewinformationinthesendingsystem.While somesystemsmaysendupdatesonly,thereceivingsystemshouldmakeno assumptionsaboutthis.Thishasimportantimplicationsforprocessingthoseincoming records.Atthesametime,thesendingsystemmaynotknowofallimmunizations,so receivingsystemmusthaveaprocessforintegratingthereceiveddataintoanexisting record.TheModelingImmunizationRegistryOperationsWorkgroup(MIROW)has
See Send Error in ACK for dealing with errors if either of these two tasks identifies problems. Local business rules determine what happens next, but we assume that it is a simple insert of the client record. The receiving system may require review and confirmation prior to insertion. Other systems may choose to require human review before adding to data base. 43 See Send Acknowledgement with no error. 44 Locally, this may be known as the sharing indicator. In this case, the equivalent value is sharing = N. 45 Local business rules may vary. In general, the acknowledgement may reject the client record, but not indicate the existence of the client record in the receiver system. 46 Local business rules will determine how the multiple matches are to be handled. The record could be put into a pending state, rejected outright, loaded in as a new record for clean up later. 47 The sending system response to an acknowledgement message (ACK) is locally determined. Good practice would be to have a way to use the ACK to alert user to outcome and to allow trouble-shooting of problem messages.
42
41
Appendix B 4 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
producedachapterofbestpracticesonthisprocess.ThisisavailableontheAmerican ImmunizationRegistryAssociationwebsite(www.immregistries.org). Thefollowingexamplemessagesrepresentstraightforwardimmunizationhistory messages.Theydonotillustratedealingwithspecificusecases,suchasmessaging reactions,clientspecificconditionsorvaccineforecasts.Clearly,thesemaybe componentsofaVXU,butwillbeaddressedseparatelytosimplifythemessages. Itisimportanttoreiterateherethatconformantsystemsshouldbeabletosuccessfully populateandprocesstheVXUmessagesegmentsandfieldsidentifiedasRequiredor Requiredbutmaybeempty.Theyshouldbeabletopopulateandprocessconditional itemswhenthepredicateconditionsaremet.Ifsegmentsorfieldsareoptionally repeating,theyshouldbeabletogracefullyhandletherepetitions.Systemsthatdonot conformtotheseexpectationsriskmisseddata.
SupportedMessageSegments
Thefollowingtableliststhesegmentsandtheirusage. Segment Cardinality Usage 48 Notes MSH [1..1] R Everymessagebegins withanMSH PID [1..1] R EveryVXUrequires onePID PD1 [0..1] RE NK1 [0..*] RE NK1mayrepeatand mayincludetheclient witharelationshipof self. PV1 [0..1] RE IN1 [0..1] O IN13arenotspecified inthisguide. IN2 [0..1] O IN3 [0..1] O AllofthefollowingsegmentsarepartoftheORDERgroup.A VXUdoesnotrequireanORCgroup,allowingupdateof patient/clientrelateddataintheabsenceofupdatedRXA data.EachRXAdoesrequireanORC. ORC [0..*] RE RXA [1..1] 49 R EachRXAisthechildof
R means it is required. RE means it is required if known/available. X means not supported in this Guide. O means optional. 49 Each ORC must have 1 RXA and each RXA belongs to exactly 1 ORC.
Appendix B 5 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
48
RXR OBX
[0..1] [0..*]
RE RE
NTE
[0..1]
RE
ExampleVXU#1Basicmessage:
Storyboard: JohnnyNewPatient(male),born4/14/09hashad1doseofHepBon4/15/09, accordingtherecordbroughtinbyMom(SallyPatient).Theyliveat123AnyStreet, Somewhere,Wisconsin54000.NurseStickeratDalittleClinic(DCS_DC),administersthe followingshotson5/31/09: DTAPHepBIPV(Pediarix)lot#xy3939IM HIB(ActHIB)lot#33k2aIM TheywereallorderedbyDrMaryPediatricwhobelongstoDabigClinicalSystem(DCS). Momacknowledgedthathisdatamaybesharedwithotherproviders.Johnnyiseligible forMedicaid.HismedicalrecordnumberinDabigClinicalSystemis432155.Myron ClerkenteredtheinformationintotheEHRs(MYEHR). TheinformationwassentfromDabigClinicalSystemtotheStateIIS Notethatwewillindicatetheendofeachsegmentwitha<CR>.Segmentsmaywrap aroundinthisdocument.Wewillinsertablanklinebetweeneachsegmentfor increasedreadability.
MSH|^~\&|MYEHR|DCS|||20090531145259||VXU^V04^VXU_V04|3533469|P|2.5.1 ||||AL <CR> PID|1||432155^^^DCS^MR||Patient^Johnny^New^^^^L||20090414150308|M||| 123 Any St^^Somewhere^WI^54000^^L<CR> PD1||||||||||||N|20090531<CR> NK1|1|Patient^Sally|MTH^mother^HL70063|123 Any St^^Somewhere^WI^54000^^L<CR> PV1|1|R||||||||||||||||||V02^20090531<CR> ORC|RE||197023^DCS|||||||^Clerk^Myron|||||||DCS^Dabig Clinical System^StateIIS<CR>
Appendix B 6 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
RXA|0|1|20090415132511|20090415132511|31^Hep B Peds NOS^CVX|999|||01^historical record^NIP0001|||||||| <CR> ORC|RE||197027^DCS|||||||^Clerk^Myron||^Pediatric^MARY^^^^^^^L^^^^^^ ^^^^^MD<CR> RXA|0|1|20090531132511|20090531132511|48^HIB PRP-T^CVX|999|||00^new immunization record^NIP0001|^Sticker^Nurse|^^^DCS_DC||||33k2a||PMC^sanofi^MVX<CR> RXR|C28161^IM^NCIT^IM^IM^HL70162|<CR> ORC|RE||197028^DCS|||||||^Clerk^Myron||^Pediatric^MARY^^^^^^^L^^^^^^ ^^^^^MD<CR> RXA|0|1|20090531132511|20090531132511|110^DTAP-Hep BIPV^CVX|999|||00^new immunization record^NIP0001|^Sticker^Nurse|^^^DCS_DC||||xy3939||SKB^GSK^MVX<CR> RXR|IM^IM^HL70162^C28161^IM^NCIT|<CR>
ExampleVXU#2Indicatevaccinefundingsourceandclienteligibility status:
Immunizationmessagesmustbeabletoconveytheeligibilitystatusofarecipientwhen theyreceivedimmunizations.Inaddition,thesemessagesmustbeabletoinclude informationonthefundingsourceforanimmunization.Whilethesearerelated,they areseparateconcepts. Eligibilitystatus: ThePV1segmentshallbeusedtoconveyeligibilitystatus,asithasinthepast.ThePV1 20,FinancialClass,isarepeatingfieldofFCdatatype.Thisdatatypeiscomposedof twocomponents.Thefirstisfinancialclasscode(datatypeIS)andpointstoauser definedtable(0064).ThesecondcomponentisEffectiveDateandinourcaseindicates whenthefinancialclasswasdetermined.Theformatisdisplayedbelow. |Financialclass^Effectivedate| Arepetitionisindicatedbytherepetitionsymbol,~.Therepetitionfollowsthe~.Ifa listofeligibilityissent,therepetitionsshouldbeuniqueonfinancialclassandeffective date.Thatis,twodifferentfinancialclassesmayhavethesameeffectivedate. Similarly,twodifferenteffectivedatesmayhavethesamefinancialclass. Onlythecurrenteligibilityneedstobesentinamessage,butthehistoryofeligibility shouldbestored.Receivingsystemsshouldbeabletoaccepteithercurrenteligibilityor completehistoryofeligibility.
Appendix B 7 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
ThefollowingexampleshowsthePV1segmentwithonefinancialclassandeffective date.
MSH
PID
PV1|1|R||||||||||||||||||V02^20090531<CR>
Sending Two Financial Classes With Dates:
PV1|1|R||||||||||||||||||V02^20090531~IHS02^20090531<CR> If repetition is used and indicates 2 financial classes on the same date, they should not be mutually exclusive. (i.e. Medicaid and not eligible for VFC) Documentation of local usage will greatly facilitate interoperability. This documentation should include both local values in table 0064 and business rules for processing. Local codes should express information about the client at the time of a visit and not about payment source for the immunizations given that day.
Appendix B 8 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
Federal funds
VXC1
VXC2
PHC68
VXC3
OTH
UNK
funded by private funds, including insurance. Immunization was funded with public funds from the federal government. Immunization was funded with public funds from a state. Immunization was paid for with military funds. Immunization was paid for with tribal funds. Immunization was paid for by funding not listed above. Funding source for immunization is not specified.
Thefundingsourcemaybelinkedtoeachimmunizationrecord,usinganOBXsegment. (Seenotebelowforthesupportinginfrastructureonthesystemside.) NotethattheorderofOBXsegmentsisnotspecified.Theymayappearinanyorder.So oneimmunizationmayhaveanOBXlistingfundingsource,followedbyanOBX indicatinganadversereaction.Theordermaybereversedandreceivingsystemshould gracefullyhandlethemineithercase. Observationsubid(OBX4)groupsrelatedobservations. Thefollowingexampleshowsanimmunizationrecordwithonefundingsourceanda second,historicalrecordofanimmunizationwithoutafundingsource.Itdoesnotshow eligibility,whichwouldbeinthePV1segment.
MSH. PID ORC|RE|197027^DCS|1970237^DCS|||||||^Clerk^Myron||^Pediatric^MARY^^^ ^^^^L^^^^^^^^^^^MD<CR> RXA|0|1|20090531132511|20090531132511|48^HIB PRPT^CVX|999||||^Sticker^Nurse|^^^DCS_DC||||33k2a||PMC^sanofi^MVX<CR> RXR| C28161^IM^NCIT^IM^IM^HL70396<CR>
Appendix B 9 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
OBX|1|CE|30693-3^funding source for immunization^LN|1|PHC70^Privately funded^CDCPHINVS||||||F|||20090415<CR> ORC|RE|197023^DCS|197023^DCS|||||||^Clerk^Myron||^^^^^^^^^L|||||DCS^ Dabig Clinical System^StateIIS<CR> RXA|0|1|20090415132511|20090415132511|31^Hep B Peds NOS^CVX|999||||||||||| <CR>
Intheexampleabove,weseethatthefirstimmunizationinthemessagewasfundedby Privatefunding.Thesecondimmunizationinthemessagedoesnothavefundingsource included,probablybecauseitisnotabletobedetermined,sinceitisahistoricrecordof animmunization. Supportinginfrastructure: Inordertosupportthislevelofdetail,thefundingsourceforeachdoseofvaccinegiven mustberecordedinthedatabase.Thereareanumberofpotentialsolutions,butone logicaloneistobuildonexistinginventorymanagementcapabilities.Ifeach immunizationispulledfromaspecificlotofvaccineandthatlothasafundingsource associated,thenthefundingsourcemaybedetermined.Thiswouldrequirethatthe inventorymanagementsystemwouldneedtoseparatevaccinelotswiththesamelot number,butdifferentfunding.
ExampleVXU#3Includeimmunizationhistoryevaluationandforecastin VXU
The LOINC codes and value sets are still in the process of development. The basic concepts should not change. Evaluatinganimmunizationhistory,basedontherecommendationsoftheACIP scheduleorotherscheduleisanimportantfunctionprovidedbymanyIIS.Basedonthis evaluationandotherfactors,recommendationsmaybemadefornextdosesdue.Some oftheirtradingpartnerswouldliketoreceivetheoutcomeofthisevaluation.The previousimplementationguideincludedamethodforaccomplishingthisusingOBX segments.Thisdocumentillustrateshowthisisdoneandexpandsonthetypesof informationthatmaybemessaged. Thisdocumentdoesnotdescribenorspecifythefunctionalityoraccuracyofthe forecastingservice.Thefocusisonlyonthecontentofthemessages.Implementations shouldpublishdocumentationonlocalspecifics. Thisdocumentisnotmeanttosupportacalltoaforecastingandevaluationservice.It ismeanttosupportexistingapplicationsthatmessagevaccineforecastsandevaluation asapartofacompleteimmunizationhistory.
Appendix B 10 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
This does not mean that every message must have one of the required OBX. It just means that this concept needs to be known to put the evaluation and forecast in context.
Appendix B 11 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
Whenaclinicianevaluatesapersonsimmunizationhistoryandmakes recommendations,she/hemustuseastandard(schedule).Traditionally,clinicianshave evaluatedbasedonvaccinegroupsorfamilies.Theschedulehasoneormoresetsof immunizationeventsthatcanbesatisfiedtoindicateprotectionagainstthediseasesof thevaccinegroupofinterest.Theseconstituteaseries. Thefollowingtablelaysouttheinformationneededtoconveyanevaluationand forecast. Data Use OBX3Value Optionalityfor element meaningfulevaluation andforecast 50 . Schedule Identifiesthe 597799 Required standardsused. ACIPisthe prototypical example. Vaccine Identifieswhich Singlevaccinetypeuse Required group/family diseasesare 309567 expectedtobe preventedby Combinationvaccine completionof use388900 series. Seriesname Nameofthespecific 597807 Optional setofdosesand recommendations thatwereusedto evaluatethisdose andmake recommendations. Ordinal Indicateswhich 309732 Required positionin doseinaseriesthis primary givenimmunization series fulfills. DoseValidity Indicatesifthisdose 597815 Optional wasgiven appropriatelyfor thisseriesinthis schedule.
50
Use
OBX3Value
SeriesStatus
Nextdose forecast
Indicateshowmany 597823 appropriatelygiven dosesarerequired tomeetthegoalsof thisseries. Notethatinthe casewherethere aredosesthatmay beskipped,dueto theageofthe client/patient,the numbershallreflect theadjusted numberofdoses. Thisindicatesthe 597831 statusoftheclients progresstoward meetingthegoalsof theseriesselected. Thiscouldbe complete,overdue, inprogress,etc. Earliestdatedose 309815 shouldbegiven. Datenextdose recommended Latestdatenext doseshouldbe given Datedoseis overdue 309807
optional
Requiredforforecast
597773
597781
Reasoncode
309823
Optional
Appendix B 12 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
Data element
Use
OBX3Value
recommendation waschanged becauseofaspecial circumstance. Itisimportanttonotethatevaluationrelatestodosesreceived,butrecommendations relatetodosesnotyetgiven.Eachwillbeaddressedseparately.Evaluationwillbe associatedwithanimmunizationreceived.Recommendationswillbeassociatedwith futureevents.ThatistheywillbeassociatedwithanRXAthatindicatesthatnodose wasgiven.Theywillnotbeassociatedwithexistingimmunizationrecords(RXA).This meansthatifapersonhasreceivedonehepBdose(valid).Theevaluationwillbe associatedwiththefirstRXAindicatingthatshe/hereceivedthedose.TheOBX followingthiswillindicatetheevaluation.Therecommendationsforthenextdosedue willbeassociatedwithasecondRXA. Thereareotherfactorsrelatingtoforecasting,suchasexemptionandprevious immunity.Thesearedealtwithintheclientspecificconditionsimpactingforecasting. Whenagivendoseisevaluatedagainstaschedule,wecanmakeanumberof observationsaboutit.EachdoseofvaccinerecordedistransmittedinanRXAsegment. EachRXAsegmentmayhaveoneormoreOBX,observationsegments.Eachdistinct pieceofinformationisfoundinitsownOBXsegmentandfollowsitsassociatedRXA. Thebasicstructureforincludingevaluationinamessageis: RXAtheimmunizationandvaccine OBXvaccinegroup OBXtheschedule OBXseriesused OBXdosenumberinseries(ordinalposition) OBXdosesinseries OBXdosevalidity OBXseriesstatus Thebasicstructureforevaluationofcombinationvaccinecomponentsis: RXAtheimmunizationandvaccine OBXvaccinegroup 51
51
All of the related observations are linked to the vaccine group using the OBX-4, observation sub-id.
Appendix B 13 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
OBXtheschedule OBXseriesused OBXdosenumberinseries(ordinalposition) OBXdosesinseries OBXdosevalidity OBXvaccinegroup 52 OBXtheschedule OBXseriesused OBXdosenumberinseries(ordinalposition) OBXdosesinseries OBXdosevalidity OBXseriesstatus Thebasicstructurefortherecommendationinthemessageis: RXAvaccine,CVXNOS(nodosegiven) OBXtheschedule OBXtheseriesused OBXdosenumberintheseries OBXnumberofdosesintheseries OBXearliestnextdosedue OBXrecommendednextdosedue OBXoverduenextdosedue OBXseriesstatus ThisdocumentwillfirstillustratehowtobuildeachOBXtosupportreportingthekey information.Thenextsectionwillshowhowtoputthesepiecestogethertocreate evaluationandrecommendationsinVXU.Notethatthesameapproachmaybeusedin anRSPthatreturnsanimmunizationhistory. IndicatingtheSchedulethatwasused: Evaluationisonlymeaningfulinthecontextofadefinedschedule.Scheduleisa requiredelementinamessagethatiscarryingevaluationorrecommendation information. TheonlyschedulesupportedbyCDCistheACIPschedule.Somesystemsmaychooseto developotherschedulesthatmeetlocalneeds.WeassumethatACIPistheschedule usedinourexamples.
52
All of the related observations are linked to the vaccine group using the OBX-4, observation sub-id.
Appendix B 14 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
OBX|1|CE|59779-9^Schedule used^LN|1|VXC16^ACIP^CDCPHINVS||||||F|||20090415<CR>
Appendix B 15 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
Recommendation: Thereisadifferentcodetobeusedforindicatingthenumberofthenextdosedue. NotethatthepreferredLOINCcodesarenotvaccinegroupspecific.Theuseofold vaccinespecificLOINCshouldnotoccur.Forexample,30936-9 DTaP/DTP dose count in combination vaccine shouldnotbeused. ReportingtheNumberofDosesinaSeries: Therearenodifferencesbetweenrecommendationsandevaluations.Thisnumeric fieldindicatesthenumberofdosesrequiredtomeetthegoalsoftheprimaryseriesfor thisvaccinegroup.Itwouldbeemptyforaboosterdose.
OBX|1|N|59782-3^number of doses in series^LN|1|1||||||F|||20090415<CR>
ReportingNextDoseRecommendationDates: Forecastingnextdosedueisanimportantfunctionthatcanbereportedinamessage. Thereareanumberofkeydatesthatcanbecommunicated: Datetype Definition Theearliestacceptabledatebasedonthe Thisistheearliestdatethataperson scheduleused shouldreceivethenextdoseforthe vaccinegroup.Itdoesnotincludeany graceperiod.Forexampletheearliest
Appendix B 16 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
dataapersonshouldreceiveaDTAPis age42days. Therecommendeddate Thisisthedatethatapersonshould ideallyreceivethenextdoseforthe vaccinegroup. Theoverduedate(thedatethepersonis Thisisthedatethatthepersonis consideredlateforgettingthevaccine) consideredlateforgettingthenextdose forthevaccinegroup.Itisalocally definedvalue. Thelatestdatethatadoseshouldbegiven Thisisthelastpossibledatethataperson (e.g.forHIBitiscurrently5yearsold) shouldreceivethenextdoseforthe vaccinegroup.Generally,thisisrelated toageofrecipient.Forexamplethe oldestapersonshouldreceiveadoseof HIBis5yearsold. Notalldatesmayberelevantandsomaybeomitted.
OBX|1|TS|30956-7^vaccine type^LN|1|17^HIB, NOS^CVX||||||F<CR> OBX|1|CE|59779-9^Immunization Schedule used^LN|1|VXC16^ACIP^CDCPHINVS||||||F|||20090415<CR> OBX|1|DT|30980-7^Date vaccination due^LN|1|20090615||||||F|||20090415<CR>
ReportingRecommendationReasons: Sometimesadosemaybreakaspecificruleintheschedule.Alternativelyconditions maytriggerspecialrules,suchastheneedforacceleratingtherecommendationsto catchupwiththepreferredschedule.Thismaybereportedfromthesystemina message.Thelistofvaluesislocallydetermined.Theseshouldbedocumentedlocally. LocalCodesdrivetheanswers. UsingTheNTESegmentAssociatedWithAnOBXToProvideMoreInformation: EachOBXmayhaveanassociatedNTEsegment.Thismaybeusedforsendingnotesor commentsthatthereceivingsystemmaychoosetodisplaytoauser.Anyuseofthisis localandrequireslocaldocumentation. IssuesThatAreOutsideOfMessagingButImpactTheValueSentInAMessage 1. Therearesomeserieswheredosesmaybeskipped.Forinstanceapersonwho getssignificantlybehindonsomeHIBseriesmayskipadoseandcomplete
Appendix B 17 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
ExampleVXU#4Sendclientspecificconditions
Evaluationofimmunizationhistoryandforecastingnextdosedueareimportantservices providedbymanyIIS.Thereareanumberoffactorsthatcanimpacttheseevaluations andforecasts.Ingeneralterms,somefactorscontraindicatenextdoses,whileothers recommendnextdoses.ThesefactorsmaybemessagedinOBXsegmentsassociated withanRXA. Evidenceofimmunity: Infectionwiththediseasesthatarethetargetofimmunizationsleadstolongterm immunity.Furtherimmunizationagainstthediseaseisnotlikelytoprovidebenefit. Definition: Evidenceofimmunityindicatesthatapersonhasplausibleevidencethattheyhave alreadydevelopedimmunitytoaparticulardisease.Thedefinitionofplausibleevidence isalocaldecision,butbestpracticewouldsuggestthatserologicalevidenceofimmunity isthestrongestindicatorofimmunity. TheexamplebelowshowsthatnodoseofHepBvaccinewasgivenbecausetheperson hadevidenceofpreviousinfectionwithHepB.
ORC|RE||197027^DCS|||||||^Clerk^Myron| <CR>
RXA|0|1|20090412|20090412|998^No vaccine administered^CVX|999<CR> OBX|1|CE|59784-9^Disease with presumed immunity ^LN|1|66071002^HISTORY OF HEP B INFECTION^SCT||||||F<CR>
ExampleVXU#5Sendimmunizationsassociatedwithreactions(adverse events)
Somepeopleexperienceadverseeventsafterreceiptofanimmunization.Inmany cases,ImmunizationInformationSystems(IIS)recordtheseinconjunctionwitha specificimmunizationevent.Occasionally,theexactimmunizationeventinformationis unknown.(e.g.anaphylaxisoccurredafterapreviousdose,yearsinthepast.) Definition: Anadversereactionisanegativephysicalconditionthatoccursshortlyafteroneor moreimmunizationshavebeenreceived. LOINCcode: 31044-1
Value Set is Vaccination Reaction in CDCPHINVS
ORC|RE||197027^DCS|||||||^Clerk^Myron||^Pediatric^MARY^^^^^^^L^^^^^^ ^^^^^MD<CR>
Appendix B 19 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
ThisexampledescribesadoseofHIBgivenon4/12/2009.On4/15/2009,theclient experiencedafever>40.5Candencephalopathy.
ExampleVXU#6DeleteanImmunizationRecord
Thereareoccasionswhenasystemthathassentanimmunizationrecordtoanother systemwishestodeletetherecordontheothersystem.Thereareseveralapproaches thatmaybetaken.Theapproachselecteddependsontherulesandcapabilitiesofboth systems. Oneapproachusesasnapshotapproach.Eachtimeanimmunizationhistoryissent,it replacestheentireimmunizationhistoryonthereceivingside. AnotherapproachistousetheRXA21,ActionCodetorequestdeletionofaspecific record.Somesystemswillmatchtherequestwithanexistingimmunizationrecord basedonvaccine,vaccinationdateandotherfactorsimplicitintherecordandthe request.TheymayalsousetheORC3,FillerOrderNumber,touniquelydeletethe recordofinterest. ThefollowingdiagramillustrateshowtheORC3maybeusedtoidentifyan immunizationrecordfordeletion 53 .Notethatthesendingsystemincludesthesending systemuniqueidintheORC3firstcomponent.Thesecondcomponentistheassigning authority,inthiscaseasystemthatislabeledMYIIS.Inorderforalaterdeleterequest tobesuccessful,thereceivingsystemmuststorethosevalues.Asubsequentrequestto deleteanimmunizationrecordincludesthesendingsystemidandassigningauthority. Thereceivingsystemsearchesforanimmunizationrecordwiththesamesending systemidandassigningauthority.Inthiscaseweshowthattherecordmatchismade andtherecordisdeletedfromthereceivingsystem.
53
VXUExample#7SendInformationAboutVaccineInformationStatement (VIS)
TheVaccineInformationStatement(VIS)isadocumentthatexplainsthereasonsfora vaccineandthepotentialrisksfromreceivingthevaccine.IIStrackthefactthataVIS wassharedwiththeclientorparent.Therearetwopiecesofinformationabouteach event. thedatethattheVISwaspresentedtotheclient/parent. thepublicationdateoftheVISthatwaspresented. ThesearecarriedinseparateOBXsegmentsassociatedwithavaccinationevent(RXA). Foravaccinethatisacombinationofvaccines,thereareoftenseparateVISforeach vaccine.Thismaybehandledbysending2setsofOBX,oneforeachvaccine. ThereisachangeinhowOBX3usesLOINCcodes.Itnolongerusessubcomponent LOINCstogroupinformation.IntheoldGuide,38890-0&29768-9 in OBX-3 indicated the
vaccine group and VIS Publication Date. The first component is unacceptable in version 2.5.1.
Example1Singlevaccine
InthisexamplethepersonreceivedadoseofMMRon10/10/2009.TheyreceivedaVIS sheetonthesameday.Thedocumenthadapublicationdateof1/10/2008.
Appendix B 21 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
Example2Combinationvaccine
RXA|0|1|20091010||94^MMRV^CVX|0.5|ML^^ISO+||||||||EZ342|20111001|MSD^^MVX<CR> OBX|1|TS|38890-0^Component Vaccine Type^LN|1|21^Varicella^CVX||||||F<CR> OBX|2|TS|29768-9^VIS Publication Date^LN|1|20091010||||||F<CR> OBX|3|TS|29769-9^VIS Presentation Date^LN|1|20101010||||||F<CR> OBX|4|TS|38890-0^Component Vaccine Type^LN N|2|03^MMR^CVX||||||F<CR> OBX|5|TS|29768-9^VIS Publication Date^LN|2|20071010||||||F<CR OBX|6|TS|29768-9^VIS Presentation Date^LN|2|20101010||||||F<CR>
VXUExample#8SendInformationAboutImmunizationRefusal
Clientsortheirparentsmaychoosenottobeimmunizedagainstaparticulardiseaseor diseases.Itisimportanttosharethisinformationwhensendingimmunizationhistories usingHL7.Thereareseveralcomponentstomessagingarefusal.Therefusalreasonis indicatedinRXA18.TheCompletionStatusinRXA20indicatesthatthevaccinewas notgiven.Theamountgivenshouldbe0.Thefollowingexampleillustrateshowto accomplishthis.
ORC|RE||197027^DCS|||||||^Clerk^Myron <CR>
RXA|0|1|20091010||107^DTAP-NOS^CVX|999||||||||||||00^Parental refusal^NIP002||RE<CR>
VXUExample#9SendTwoLotNumbersinRXA
Thereareoccasionswhentwovaccinesarecombinedatthetimeofadministration. TheRXAsegmentshouldbeusedtocapturethisinformation,specificallytheRXA15 field.Thisfieldallowsrepetition.EachseparateLotnumbercanbeplacedherewitha~ separatingthetwolotnumbers.Eachcomponentbelongstooneormorevaccine groupsorfamilies.
Appendix B 22 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
VXUExample#10RecordingBirthInformation
Birthinformationcanbeapowerfultoolinidentityresolution.Componentsofbirth informationarelistedintheNVACcoredataelements.Theinformationthatcanbe carriedinanHL7messageincludes: Field HL7messageComponent Example Birthdate PID7 19500512 Birth PID3(asoneidentifierin 12345^^^assigning Registration list) authority^BR Number Birthorder PID24 2 MultipleBirth PID25 Y Indicator BirthState PID11(asoneaddressin ^^^WI^^^BDL list,useaddresstypeBDL) Birthfacility PID23 ChildrensHospital NotethatBirthFacilityisnotusedforBirthState.
VXUExample#11Recordinganincompletelyadministereddoseora nonpotentdose.
Thereareoccasionswhenadoseisnotcompletelyadministered.Forexampleachild mayjumpawayduringinjectionandanunknownquantitywasadministered.Inthis case,thedoseneedstoberecordedtosupportaccurateinventorymanagementandto allowforrecalloftheclientifthereisarecallofthevaccine.Thisisaccomplishedusing theCompletionstatusinRXA20.TheRXAiscompletedasusual,butthecompletion statusissettoPA.Ifmoredetailsareofinterest,thenthisinformationmaybeplacedin anNTEsegmentunderanOBXsegment.Ifthereasonisanonpotentdose,thenthis informationmaybeincludedinanOBX.
Appendix B 23 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
RXA|0|1|20091010||03^MMR^CVX|0.5|ML^^ISO+||||||||A23E1||MSD^^MVX|||PA<CR>
SendAcknowledgementACKInResponseToVXU
Sendinganacknowledgementcanaccomplishoneofanumberoftasks.Itcanindicate thatthemessagethatwassentwassuccessfullyreceivedandprocessed.Itcanalso indicatethatthemessagehaderrors.Whenamessageissent,itcanindicatewhenan acknowledgementisexpected.Thechoicesmayincludealways,onlyonerrorornever. TheabilitytoacceptACKmessagesallowssendingsystemmanagerstotroubleshoot communications.Itallowsthemtoidentifysystematicproblemswithmessagecreation. BeingabletosendACKallowsreceivingsystemmanagerstoinformsendingsystem managersaboutthenatureoferrorsreceived. SendacknowledgementofsuccessinACK Somesystemsmaywishtoreceiveanacknowledgmentmessage,regardlessofwhether thereceivingsystemhadproblemswiththemessage.Inthatcase,thereisarelatively straightforwardresponse.
MSH|^~|&|DCS|MYIIS|MYIIS||20090604||ACK^V04^ACK|9299381|P|2.5.1|||ER<CR> MSA|AA|9299381<CR>
Intheexampleabove,thesystemwiththecodeDCSissendinganacknowledgementto thesystemwiththecodeMYIISonJune4,2009.Themessageindicatesthattherewere noerrorsinprocessing.DCSonlywantsanacknowledgementifMYIISencountersan errorinprocessingtheacknowledgement. SendErrorinACK Whenthereareerrors,thesecaneitherbefatalornonfatal.Fatalerrorsindicatethat themessagethatwassentwasnotabletobeprocessed.Nonfatalmeansthatthe messagethatwassenthadsometypeoferror,whichdidnotpreventthemessagefrom beingprocessed.Somedatamayhavebeenlostasaresultoftheerror.Inaddition,the errormayhavebeenintheprocessingoftheHL7orviolationofalocalbusinessrule.
Acknowledging A Fatal HL7 Processing Error:
Intheexamplemessageabove,weseethatthePID5(patientname)fieldwasmissing. SincethisisarequiredfieldinaPID,thePIDisignoredandthereforeismissing. Notethatlocalviolationoflocalbusinessrulesmaybyreturnedinanacknowledgement message.Thoserulesarebestrepresentedincodesthatarereferencedinalocaltable. ThesemayberecordedintheERRsegment.Alocalbusinessrulemayleadtorejection ofpartsorallofamessage.Forinstance,alocalbusinessrulemaystatethatthesystem requiresafirstnameforeveryperson.Ifnofirstnameisincludedinthemessage,then thesystemrejectsthefieldforname(PID5).Sincethisisarequiredfieldinarequired message,theentiremessageisrejected.TherewouldbeathirdERRsegmentindicating thatalocallyrequiredcomponentwasmissing.(Noexampleisgiven,asthereisno localtableoferrorsinthisappendix.
Acknowledging A Non-Fatal HL7 Processing Error:
TheexampleaboveindicatesthatanerroroccurredinPID33(lastupdateddate).Itdid notcausethemessagetoberejected.
SendRequestforVaccineHistory(QBP/RSP)
ProcessforrequestingImmunizationHistory Requestinganimmunizationhistoryisakeyfunctionsupportedbymessaging.As describedabove,acompleteimmunizationhistoryincludesalltheinformationneeded forevaluatingwhatimmunizationshavebeenreceivedandwhatonesareneedednext. ThisqueryisdefinedinaQueryProfileinChapter7oftheImplementationGuide.The requestingsystemsendsarequestwithsomecombinationofdemographicand
Appendix B 25 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
identifierinformation.ThisImplementationGuidereplicatesthefunctionalityofthe VXQ/VXX/VXRqueryandresponses. DescriptionoftheVXQ/VXX/VXRProcessFromVersion2.3.1 ThefollowingdescribestheprocessthatwasusedwhenrespondingtoaVXQandis includedtogivebackground.AsdescribedintheusecasesinChapter2ofthisGuide, requestinganimmunizationhistoryrequirestherespondingsystemtofindamatching client.TheoldVXQqueryrequiredimplicitidentityresolution.Thatis,theresponding systemusedlocallydefinedmethodstofindapersonandifexactlyonehighconfidence matchwasfound,returnedanimmunizationhistory.Iflowerconfidencematcheswere found,itreturnedalistofclientswiththeiridentifiers(PID,NK1)forreviewbyaperson ontherequestingsystem.Ifoneofthecandidateswasselectedandreturnedina secondVXQ,thentheonehighconfidencematchisreturned.Thefollowingdiagram illustratestheflow.(Themessagesbetweensystemsareboldedarrows.)
b. Ifsendingsystemusermaychoosetoaccepttheimmunizationhistory, thesendingsystemfollowslocalprotocolsforincorporatingthenew record. 2. Thesearchfindsoneormorecandidateclients. a. SendingsystemuserselectstheoneofinterestandresendstheVXQwith themorecompleteinformation. 3. Thesearchfindsnocandidatestoreturn. a. Anacknowledgementisreturnedtothesendingsystem. 4. Themessageismalformedandnoqueryisprocessed. a. Anacknowledgementisreturnedtothesendingsystem. Step2isthestepwheretheimplicitidentityresolutionoccurs. ThenewerQBPstylequeryallowsidentityresolutiontobeseparatedfromrequestfor content.Thisisaccomplishedusingatwostepapproach.ItmirrorstheflowoftheVXQ whenlowerconfidencecandidatesarefoundandreturned.Oneindustrystandardfor accomplishingthistwostepapproachisthePatientDemographicQuery(profilebyIHE). ThisGuideallowseitherexactreplicationoftheVXQ/VXX/VXRapproachoratwostep approach.Thetwostepprocessaccomplishesthesamegoalastheoldprocess,but separatestherequestforimmunizationhistoryandtherequestforidentityresolution. Thetwostepapproachtakestheresultsoftheselectionfromtheidentityresolution andrequeststheimmunizationhistoryfortheselectedperson.Notethatthistwostep approachalsofacilitatesinteractionwithaMasterPatientindex(MPI). ThisGuideandAppendixdoesNOTprescribethesearchmethods,sotheseshouldbe describedinalocalprofileorimplementationguide. Inaddition,thisguidedoesnotdefinethemeaningofexactmatches.Thisneedstobe specifiedlocally. UsingQBPquerytoreplicateVXQ/VXX/VXR Thediagramforthenewqueryisverysimilartothepreviousdiagram.Theonlyreal differencesarethemessagesused.InplaceoftheVXQ,aRequestImmunizationHistory query(QBP^Q11^QBP_Q11)issent.IthasanMSH21,profileidofZ34^CDCPHINVS.In placeofaVXX,aReturnCandidateListresponseisreturned(profileidof Z31^CDCPHINVS).InplaceofaVXR,aReturnImmunizationHistoryresponseis returned(profileidofZ32^CDCPHINVS).
Appendix B 27 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
Figure 9--Request Immunization History
Appendix B 28 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
5. Seekmatchingclientinreceiverdatabase 55 a. Nomatchisfound b. Exactlyonematchisfound. c. Oneormoreinexactmatchesandlessthanmaximumplus1allowed 56 matchesfound. d. Morethanthemaximumallowedmatchesfound. e. Oneormoreclientsarefound,buttheydonotwanttheirrecordsshared. 6. Thereceivingsystemresponds(seebelow). Whenaclientisdoesnotwanthis/herdatasharedandisfound,localbusinessrules needtobeapplied.Forinstance,someapplicationsmaybehaveasiftheclientrecord doesnotexistinthesystem.Thatis,itwouldrespondwithanorecordsfound message.Theexceptiontothiswouldbeiftherequestingproviderweretheonewho settheprotectionindicator.Inthiscase,thepersonmaybeacandidatethatis returned.Anotherresponsemightbetosendlimitedinformationnotifyingthe requestingsystemthatthepersonexists,butwantshis/herrecordsprotected. Thesendingsystemmustdealwiththereturnedmessages.Whileitisoutsidethescope ofthisimplementationguide,therearesomelogicalactions.Theseactionsshouldbe documentedlocally.Thefollowingindicatesomeofthepossibilities.Thelistisneither prescriptivenorcomplete. Onecandidateimmunizationhistoryisreturned. o Userreviewsandaccepts o Userreviewsandrejects o Requestingsystemacceptsandmarksforreview. Alistofcandidatesarereturned o Userreviewsandselectsone NewQBPissent usingtheidentifyinginformationfromtheRSP list o Userreviewsandrejectsall Usercreate sanewquerywithmoreordifferentinformation o Requestingsystemacceptsandstoresthelistforlaterreview. ThefollowingisanexamplequeryusingtheQBP^Q11queryprofilespecifiedinthe ImplementationGuide.
MSH|^~\&|||||||QBP^Q11^QBP_Q11|793543|P|2.5.1|||||||||Z34^CDCPHINVS <CR> QPD| Z34^Request Immunization History^CDCPHINVS |37374859|123456^^^MYEHR^MR|Child^Bobbie^Q^^^^L|Que^Suzy^^^^^M|20050512|M|10 East Main
Each case will be detailed below. Note that this is an area that should clearly be documented by each system in a local profile or implementation guide. 56 This maximum may be set by the sending system and may be determined by the receiving system. The maximum will be the smaller of the two.
Appendix B 29 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
55
St^^Myfaircity^GA^^^L<CR> RCP|I|5^RD^HL70126|R^real-time^HL70394<CR>
ThisqueryisbeingsentfromasystemwithanamespaceidentifierofMYEHR.Itis requestinganimmunizationhistoryforapersonnamedBobbieQChild.Hismothers maidennamewasSuzyQue.Hewasborn5/12/2005andlivesat10EastMainSt, Myfaircity,Georgia.HismedicalrecordnumberwithMYEHRis12345.Themostrecords thattherequestingsystemwantsreturnediflowerconfidencecandidatesarereturned is5.Processingisexpectedtobeimmediate. LocalimplementationswillspecifywhichfieldsarerequiredintheQPD.Allfieldshavea usageofRE(required,butmaybeempty).Thismeansthatsendingsystemsmay populateanyorallofthesefields.Receivingsystemsmustacceptvaluesinanyofthese fields,butmayspecifywhicharerequiredandwhichwillbeignored. ReturningalistofcandidateclientsinresponsetoQBP^Q11query WhenasystemreceivesaQBP^Q11RequestforImmunizationHistoryquery,itmayfind oneormore,lowerconfidencecandidates.InthiscaseitreturnsanRSPthatcontainsa listofthesecandidates.ItincludesallpertinentinformationinPID,NK1andPD1 segments.Ifthenumberofcandidatesisgreaterthanthemaximumnumberrequested bythequeryingsystemorgreaterthanthemaximumnumbertherespondingsystem allowstobereturned,thenanerroracknowledgmentwillbesent.(Seebelow) NotethatPID1,SetId,isrequiredwhenreturningalistofPID. ThefollowingexampleRSPmessageillustratesthecasewhen2candidateshavebeen foundbytherespondingsystem.Allknowninformationforeachcandidatethatcanbe includedinPID,NK1andPD1segmentsisreturned.Weassumethatthemedicalrecord numbersentinthequeryisnotknowntotherespondingsystem.Ifitwere,itisunlikely thattherespondingsystemwouldfindlowerconfidencecandidates. Theactuallogicusedtofindthecandidatesisnotspecifiedbythisdocument.Itmaybe assimpleasexactstringanddatematchingorascomplexasaprobabilisticsearch algorithm.
MSH|^~\&|SOME_SYSTEM|A_Clinic|MYIIS|MyStateIIS|20091105||RSP^K11^RSP_K11|37374859|P|2.5.1|||||||||Z31^CDC PHINVS<CR> MSA|AA|793543<CR> QAK|37374859|AA<CR> QPD| Z34^Request Immunization History^CDCPHINVS |37374859|123456^^^MYEHR^MR|Child^Bobbie^Q^^^^L|Que^Suzy^^^^^M|20050512|M|10 East Main St^^Myfaircity^GA^^^L<CR PID|1||99445566^^^MYStateIIS^SR||Child^Robert^^^^^L||20050512|M<CR> NK1||Child^Susan|MTH^Mother^HL70063|^^Myfaircity^GA<CR> Appendix B 30 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
PID|2||123456^^^MYStateIIS^SR||Child^Robert^^^^^L||20050512|M<CR>
This response includes 2 candidates that must be reviewed by the person requesting records. If they select a specific client and repeat the Request Immunization History query with the refined information, they should receive a response that includes the complete immunization history from the IIS. Note the use of PID-1, set id. ReturninganimmunizationhistoryinresponsetoaRequestforImmunizationHistory query WhentheRequestImmunizationHistoryqueryfindsonehighconfidencematch,the matchingclientsimmunizationhistoryisreturnedintheresponse.Thefollowing examplemessageshowsasimpleresponse.Notethatthisquerycouldhavebeena secondaryquerythatoccurredafterpreliminaryidentityresolutionoraprimaryquery withsufficientdemographicdatatopermitmatching.
MSH||MYIIS|MyStateIIS||MYEHR|20091130||RSP^K11^RSP_K11|7731029|P|2.5.1|||||||||Z32^CDCPHINVS<CR> MSA|AA|793543<CR> QAK|37374859|OK| Z34^Request Immunization History^CDCPHINVS <CR> QPD| Z34^Request Immunization History^CDCPHINVS |37374859|123456^^^MYEHR^MR|Child^Bobbie^Q^^^^L|Que^Suzy^^^^^M|20050512|M|10 East Main St^^Myfaircity^GA^^^L<CR PID|1||123456^^^MYEHR^MR||Child^Robert^Quenton^^^^L|Que^Suzy^^^^^M|||||10 East Main St^^Myfaircity^GA<CR> PD1||||||||||||N|20091130<CR> NK1|1|Child^Suzy^^^^^L|MTH^Mother^HL70063<CR> PV1||R||||||||||||||||||V03^20091130<CR> ORC|RE||142324567^YOUR_EHR|||||||^Shotgiver^Fred||^Orderwriter^Sally^^^^^^^^^^^^^^^^^^MD<CR> RXA|0|1|20050725||03^MMR^HL70292|0.5|ML^^ISO+||^New Immunization Record^NIP001<CR> RXR|SC^^HL70162<CR>
Appendix B 31 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
QAK2indicatesthatnodatawerefoundthatmatchedthequeryparameters.
MSA|AE|793543<CR> QAK|37374859|NF|Z343^request Immunization history^HL70471<CR> QPD| Z34^Request Immunization History^CDCPHINVS |37374859|123456^^^MYEHR^MR|Child^Bobbie^Q^^^^L|Que^Suzy^^^^^M|20050512|M|10 East Main St^^Myfaircity^GA^^^L<CR>
Acknowledgingaquerythatfindsmorecandidatesthanrequested Thesendingsystemsetsanupperlimitonthenumberofcandidatesitwillacceptin responsetoaqueryinRCP2.Itexpectsthatarespondingsystemwillsendnomore candidatesthatthisnumber.Inaddition,therespondingsystemmayhaveanupper limitonthenumberofcandidatesthatitwillreturn.Thisnumbermaybelowerthanthe requestingsystem.Itwilltrumptherequestingsystemupperlimit.Ineithercase,ifthe respondingsystemfindsmorecandidatesthantheupperlimit,thenitrespondswith andacknowledgementindicatingthattoomanycandidateswerefound.QAK2 indicatesthatthereweretoomanycandidatesfoundthatmatchedthequery parameters.
MSH||MYIIS|MyStateIIS||MYEHR|20091130||RSP^K11^RSP_K11|7731029|P|2.5.1|||||||||Z34^Request Immunization History^CDCPHINVS <CR> MSA|AE|793543<CR> QAK|37374859|TF|Z343^request Immunization history^CDCPHINVS<CR> QPD| Z34^Request Immunization History^CDCPHINVS |37374859|123456^^^MYEHR^MR|Child^Bobbie^Q^^^^L|Que^Suzy^^^^^M|20050512|M|10 East Main St^^Myfaircity^GA^^^L<CR>
Appendix B 32 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
UsingaTwostepprocesstorequestanimmunizationhistory TheIHEprofiledefines2queriesforobtaininganIDofinterest.Onequeryrequestsan idbasedonthedemographicinformationincludedinthequery(PDQ,usingthe PediatricDemographicprofile).Whenamatchisfound,itreturnstherelevantidand demographicinformation.Theotherqueryseeksanidforapersonfromoneregistered providerbasedontheidfromanotherregisteredprovider(PIX). TheuseoftheIHEPatientIdentificationCrossReferencing(PIX)and PatientDemographicQuery(PDQ)transactionsisanalternativeapproach whichseparatesretrieval/updateofapatientidentifierand retrieval/updateofimmunizationdataintotwomessagingtransactions. APatientDemographicSuppliermaybeaMasterPersonIndexorothersourceof patientdemographicandidentificationinformation.WhilewewillfocusonanMPI below,anyPatientDemographicSuppliermaybesubstituted. AMasterPersonIndexisadatabasethatcontainsdemographicandlocating informationofregisteredpersonsandassociateseachpersonwiththeidentifiersforthe personfromeachoftheparticipatingsystems.Thisallowsonesystemtorequestthe identifierforapersonthatwasassignedbyanothersystem.Thisidmaybeusedto requestdatafromthatsecondsystemandassuresapositivematch. SystemsthatparticipateinanMPIshouldregistereachpersontheyareinterestedin withtheMPI.AnexcellentprofileformaintainingandinteractingwithanMPIhasbeen publishedbythegroup,IntegratingtheHealthcareEnterprise(IHE).Thatprofilewillnot bereplicatedhere.However,theprocessforrequestingpersonalidentifieroutlined belowisbasedonthatprofile. AddingapatientrecordtoanMPIisdonebyaPIXtransactionusinganADT message.ThismethodmaybeusedbyanEHRorbyanIIS,orboth,toadda patientidentifiertoanMPI.ThePIXprofile,describedintheIHETechnicalFramework VolumeI,includesspecifictransactionsthatdescribethesegmentsandfieldstobe used.TheseADTbasedtransactionsaredescribedintheIHETechnicalFramework VolumeII.ThestandardtransactionusedbyPIXisITI8,whichusesanHL7V2.3.1ADT. ThePediatricDemographicsOption,describedatthiswritinginasupplementtoPIX andPDQ,ispreferredforinteractionswithMPIsmanagingIISdata.Theuseofthe PediatricDemographicsOptionaddsITI30,whichusesanHL7V2.5ADT. OnceapersonhasbeenregisteredwiththeMPI,aPIXQuerymaybeusedtoretrieve thecrossreferencedIISidentifier(ifany).
Appendix B 33 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
Notethatthisinteractionissimplified.Theinitiatingsystemsendsarequestfora patientidentifier.TherequestincludesoneidentifierinaPID3.Theidentitysupplier looksforamatchingidentifierofinterestandreturnsitalongwiththepatientname (PID5).Thisinformationisincludedintherequestimmunizationhistoryquery (QBP^Q11).Assumingthattheidentifierusedistheoneintheimmunizationhistory supplier,thereshouldbeaonetoonematch. IftheEHRwishestoretrievetheIISidwithoutpreviouslyregisteringthepatientwith theMPI,orifitwishestoquerytheMPIbydemographicsforsomeotherreason,itmay useaPatientDemographicsQuerytodoso. ThefollowingdiagramillustratestheuseofPDQtoobtainanidandhowthiswouldbe usedtorequestanimmunizationrecord.TherecordseekerusesaPatientDemographic Query(PDQ)toaMasterPersonIndex(MPI),requestingtheidentifiersforthepersonof interest.TheMPIfindsthepersonofinterestandreturnsthedemographicinformation andidentifiers.Therecordseekersystemusesthisinformationtocreatearequestfor immunizationhistory,whichitsendstotherecordsource.Therecordsourceusesthis informationtofindtheimmunizationhistoryforthepersonofinterest.
Appendix B 34 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
Notethatthisinteractionissimplified.Theclientofinterestwouldbeselectedandthat clientsinformationwouldpopulatethequeryrequestinganimmunizationhistory.To beassuredofsuccess,therecordsourcesystemwouldneedtohaveregisteredthe personintheMPI.Inthatwaythepersonidintherecordsourcewouldbeavailablein theMPI. ThediagramsillustratingthePIXQueryandPatientDemographicsQuery(PDQ) approachessharesimilarflowtotheoriginalVXQmessage.PIXQueryfollowedbya RequestImmunizationHistoryusingtheretrievedidentifierissimilartoaVXQ/VXR. PDQfollowedbyanRequestImmunizationHistoryreplicatesaVXQ/VXXand VXQ/VXR. 57 Thefollowingillustratesoneoftheabovedescribedmessages,thePatient DemographicsQuery.Forexamplesofothermessages,IHEdocumentationshouldbe consulted.
MSH|^~\&| MYIIS|MyStateIIS|SOME_SYSTEM|A_Clinic |20091105||QBP^Q22^ ||P|2.5.1||||||||| <CR> QPD|^IHE PDQ Query^ |37374859|@PID.3.1^123456~@PID.3.4^MYEHR~@PID.3.5^MR~@PID.5.1.1^Child~@PID.5.2^Bobbie~@PID.5.3^Q
57
It is possible that even with the two-step process, an exact match may not be found for the record of interest. This is especially true if the source of identity resolution is not exactly in synch with the source of the immunization history. Local rules should dictate the response to this situation.
Appendix B 35 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011
NotethattheintentoftheQuantityLimitedRequestdiffersfromitsuseintheRequest ImmunizationHistoryquery.Hereitmeanssendmebatchesof5recordsuntilyouhave sentthemall.IntheRequestImmunizationHistoryqueryitmeansreturnalistofupto fiveclients,butifyoufindmore,thensendmeanerrorindicatingtoomanyrecords found. ReturningalistofcandidateclientsinresponsetoPDQquery TheresponsetoaPDQqueryisverysimilartothatofaRequestforImmunization Historyquerywhichfindslowerconfidencematches.Themostsignificantdifferences include: NoNK1isreturned. MPIs implementing the Pediatric Demographics Option use Mother's Maiden name in the PID segment to provide equivalent value in patient record matching. Ifmorethanthemaximumrecordsarefoundtheyarereturnedinbatchesofup tothemaximumrecordsspecifiedinthequery PotentialuseofDSCsegmenttosupportreturnofbatchesofrecords Thefollowingexampleshowsareturnsimilartotheresponsemessagereturnedbythe requestforimmunizationhistoryquery(above).Notethatinbothcases,theresponse messagereturnsallinformationthatitknowsabouteachclientinthesegments requiredforeachresponse.
MSH|^~\&|SOME_SYSTEM|A_Clinic|MYIIS|MyStateIIS|20091105||RSP^K22^ |37374859|P|2.5.1||||||||| <CR> MSA|AA|793543<CR> QAK|37374859|AA<CR> QPD|^IHE PDQ Query^ |37374859|@PID.3^123456^^^MYEHR^MR~@PID.5^Child^Bobbie^Q^^^^L~PID.6^Que^Suzy^^^^^M~@PID.7^20050512 @PID.8^M~@PID.11^10 East Main St^^Myfaircity^GA^^^L~@PID.18^<CR> PID|1||99445566^^^MYStateIIS^SR||Child^Robert^^^^^L||20050512|M<CR> PID|2||123456^^^MYStateIIS^SR||Child^Robert^^^^^L||20050512|M<CR>
Ausermaybelievethatacandidatedoesexistandmaychoosetorefinethequery parametersandrequery. Receivingsystemdeterminesthatmessagehaserrors HL7MessageRuleErrors TherearetwoclassesoferrorrelatedtoHL7messagerules.Thefirstiswhenamessage iswellformed,butthequeryhaserrorsincontentorformat.Thesecondoccurswhen themessageismalformedandcannotbeparsedbytherecipient. Thefollowingexamplesillustratehoweachisreported. MalformedQuery: InitiatingQuery:
QPD|Z34^Request Immunization History^CDCPHINVS||123456^^^MYEHR^MR|Child^Bobbie^Q^^^^L|Que^Suzy^^^^^M|20050512|M|10 East Main St^^Myfaircity^GA^^^L<CR>
MSH|^~\&|||||||QBP^Q11^QBP_Q11|793543|P|2.5.1|||||||||Z34^CDCPHINVS. <CR>
MSH|^~\&|MYIIS|MyStateIIS||MYEHR|20091130||RSP^K11^RSP_K11|7731029|P|2.5.1||||||||| Z34^Request Immunization History^CDCPHINVS <CR> MSA|AE|7731029<CR> ERR||QPD^1^2|101^required field missing^HL70357|E<CR> QAK||AE|Z34^request Immunization history^CDCPHINVS<CR> QPD| Z34^Request Immunization History^CDCPHINVS ||123456^^^MYEHR^MR|Child^Bobbie^Q^^^^L|Que^Suzy^^^^^M|20050512|M|10 East Main St^^Myfaircity^GA^^^L<CR>
NotethatonlytheMSHandQPDsegmentswillbedisplayedabove.TheQPDdoesnot havedatainarequiredfield,theQueryTagfield(QPD2).
Appendix B 38 HL7 Version 2.5.1 Implementation Guide: Immunization Messaging (Release 1.2) Last Updated on 1/25/2011