Está en la página 1de 15

MENSAJERIA HL7

Docente: Mgr. Jorge A. Arnez Martínez


Materia: Bioinformatica y Sistemas Médicos
Gestión:2019
Mensajería HL7
• El HL7 codifica varios tipos de mensajes, cada
uno de ellos referido a un proceso especifico del
conjunto de los que forman el proceso general de
la atención de la salud.
• - adt admisión, transferencia y alta (admission,
discharge, transfer)
• - dft detalle de transacción financiera (detail
financial transaction)
• - rrg informe histórico de entregas de farmacia
(Pharmacy/treatment give acknowledgment)
Tipos más comunes de mensajes ADT
• ADT-A01 – patient admit
• ADT-A02 – patient transfer
• ADT-A03 – patient discharge
• ADT-A04 – patient registration
• ADT-A05 – patient pre-admission
• ADT-A08 – patient information update
• ADT-A11 – cancel patient admit
• ADT-A12 – cancel patient transfer
• ADT-A13 – cancel patient discharge
Caracteres Delimitadores
Character Purpose
0x0D Marks the end of each segment.

| Composite delimiter.

^ Sub-composite delimiter.

& Sub-sub-composite delimiter.

~ Separates repeating fields.

\ Escape character.
Mensajes ADT: ADT A01
• Se usa un mensaje de "admisión de paciente" (A01
"evento") solo para pacientes de "Admisión". Estos
mensajes se envían como un ejemplo de mensaje
HL7 ADT A01 como resultado de pacientes que
comienzan su estadía en el centro de salud.
Normalmente, esta información se ingresa en el
sistema de información del hospital y se transmite a
las unidades de enfermería y sistemas auxiliares. Se
debe utilizar un mensaje de admisión (evento A01)
para notificar a la base de datos de la farmacia la
llegada de un paciente al centro de atención médica.
Estructura del mensaje ADT^A01
Segmento Descripción MSH|^~\&|AccMgr|1|||20050110045504||ADT^A01|599102|P|2.3|||
EVN|A01|20050110045502|||||
PID|1||10006579^^^1^MRN^1||DUCK^DONALD^D||19241010|M||1|111 DUCK
ST^^FOWL^CA^999990000^^M|1|8885551212|8885551212|1|2||40007716^^^Acc
MSH Message Header Mgr^VN^1|123121234|||||||||||NO
NK1|1|DUCK^HUEY|SO|3583 DUCK
EVN Event Type RD^^FOWL^CA^999990000|8885552222||Y||||||||||||||
PV1|1|I|PREOP^101^1^1^^^S|3|||37^DISNEY^WALT^^^^^^AccMgr^^^^CI|||01||||1|||
PID Patient Identification 37^DISNEY^WALT^^^^^^AccMgr^^^^CI|2|40007716^^^AccMgr^VN|4||||||||||||||
|||||1||G|||20050110045253||||||
NK1 Acompañante GT1|1|8291|DUCK^DONALD^D||111^DUCK
ST^^FOWL^CA^999990000|8885551212||19241010|M||1|123121234||||#Cartoon
PV1 Patient Visit Ducks Inc|111^DUCK ST^^FOWL^CA^999990000|8885551212||PT|
DG1|1|I9|71596^OSTEOARTHROS NOS-L/LEG ^I9|OSTEOARTHROS NOS-L/LEG ||A|
GT1 Guarantor IN1|1|MEDICARE|3|MEDICARE|||||||Cartoon Ducks
Inc|19891001|||4|DUCK^DONALD^D|1|19241010|111^DUCK
IN1 Insurance ST^^FOWL^CA^999990000|||||||||||||||||123121234A||||||PT|M|111 DUCK
ST^^FOWL^CA^999990000|||||8291
IN2 Additional Insurance Info. IN2|1||123121234|Cartoon Ducks
Inc|||123121234A|||||||||||||||||||||||||||||||||||||||||||||||||||||||||88
[{OBX}] Observation / Result 85551212 IN1|2|NON-PRIMARY|9|MEDICAL MUTUAL CALIF.|PO BOX
94776^^HOLLYWOOD^CA^441414776||8003621279|PUBSUMB|||Cartoon Ducks
Inc||||7|DUCK^DONALD^D|1|19241010|111 DUCK
[{AL1}] Patient Allergy ST^^FOWL^CA^999990000|||||||||||||||||056269770||||||PT|M|111^DUCK
Information ST^^FOWL^CA^999990000|||||8291
IN2|2||123121234|Cartoon Ducks
[{DG1}] Diagnosis Information Inc||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||8885551212
IN1|3|SELF PAY|1|SELF PAY|||||||||||5||1
HL7 ADT^A02 Patient Transfer Message
El evento A02 se puede usar para notificar a: laboratorio, radiología, patología que el paciente ha cambiado de
ubicación y que los resultados de las pruebas deben redirigirse; farmacia que las drogas deben ser
redirigidas para el paciente; Dieta que las comidas deben ser entregadas a un lugar diferente; El
repositorio clínico que ha tenido lugar una transferencia para el EMR.
Si el paciente va a una ubicación temporal (como OR, XRAY, LIMBO, HALLWAY), se recomienda usar los
eventos A09 (seguimiento de salida del paciente) y A10 (seguimiento de llegada del paciente) en lugar de
A02.
SEQ OPT RPT NAME

1 R 1 MSH - Message header segment


MSH|^~\&|AccMgr|1|||20050110114442||ADT^A02|5991
2 R 1 EVN - Event type segment 0287|P|2.3|||
EVN|A02|20050110114442|||||
PID - Patient identification
3 R 1 PID|1||10006579^^^1^MRN^1||DUCK^DONALD^D||19241
segment
010|M||1|111^DUCK
PD1 - Patient Additional
4 O 1
Demographic
ST^^FOWL^CA^999990000^^M|1|8885551212|8885551212
|1|2||40007716^^^AccMgr^VN^1|123121234|||||||||||
5 R 1 PV1 - Patient visit segment NO
PV1|1|I|IN1^214^1^1^^^S|3||PREOP^101^|37^DISNEY^W
6 O 1
PV2 - Patient visit - additional ALT^^^^^^AccMgr^^^^CI|||01||||1|||37^DISNEY^WALT^^
information segment
^^^^AccMgr^^^^CI|2|40007716^^^AccMgr^VN|4|||||||||
7 O * DB1 - Disability segment
||||||||||1||I|||20050110045253||||||

8 O * OBX - Observation/result segment


SEQ LENGTH DT OPT RPT / # TBL # NAME

MSH MSH.1
MSH.2
MSH.3
4
1

180
ST
ST
HD
R
R
O
1
1
1 Field Separator
Encoding Characters
0361 Sending Application
MSH.4 180 HD O 1 0362 Sending Facility
MSH.5 180 HD O 1 0361 Receiving Application
MSH.6 180 HD O 1 0362 Receiving Facility
MSH.7 26 TS O 1 Date/Time Of Message
MSH.8 40 ST O 1 Security
MSH.9 7 MSG R 1 Message Type
MSH.10 20 ST R 1 Message Control ID
MSH.11 3 PT R 1 Processing ID
MSH.12 60 VID R 1 Version ID
MSH.13 15 NM O 1 Sequence Number
MSH.14 180 ST O 1 Continuation Pointer
MSH.15 2 ID O 1 0155 Accept Acknowledgment Type

MSH.16 2 ID O 1 0155 Application Acknowledgment Type

MSH.17 2 ID O 1 Country Code


MSH.18 16 ID O * 0211 Character Set

MSH.19 60 CE O 1 Principal Language Of Message

MSH.20 20 ID O 1 0356 Alternate Character Set Handling Scheme


ENV
RPT /
EQ LENGTH DT OPT TBL # NAME
#

EVN.1 3 ID B 1 0003 Event Type Code

EVN.2 26 TS R 1 Recorded Date/Time

EVN.3 26 TS O 1 Date/Time Planned Event

EVN.4 3 IS O 1 0062 Event Reason Code

EVN.5 60 XCN O * Operator ID

EVN.6 26 TS O 1 Event Occurred


SEQ LENGTH DT OPT RPT / # TBL # NAME
PID.1 4 SI O 1 Set ID - PID
PID.2 20 CX B 1 Patient ID
PID.3 20 CX R * Patient Identifier List
PID.4 20 CX B * Alternate Patient ID - PID
PID.5 48 XPN R * Patient Name
PID.6 48 XPN O * Mother s Maiden Name

PID PID.7
PID.8
PID.9
26
1
48
TS
IS
XPN
O
O
O
1
1
*
Date/Time Of Birth
0001 Sex
Patient Alias
PID.10 80 CE O * Race
PID.11 106 XAD O * Patient Address
PID.12 4 IS B 1 0289 County Code
PID.13 40 XTN O * Phone Number - Home

PID.14 40 XTN O * Phone Number - Business

PID.15 60 CE O 1 Primary Language


PID.16 80 CE O 1 Marital Status
PID.17 80 CE O 1 Religion
PID.18 20 CX O 1 Patient Account Number

PID.19 16 ST B 1 SSN Number - Patient

PID.20 25 DLN O 1 Driver's License Number - Patient

PID.21 20 CX O * Mother's Identifier


PID.22 80 CE O * Ethnic Group
PID.23 60 ST O 1 Birth Place
PID.24 1 ID O 1 0136 Multiple Birth Indicator
PID.25 2 NM O 1 Birth Order
PID.26 80 CE O * Citizenship
PID.27 60 CE O 1 Veterans Military Status
PID.28 80 CE O 1 Nationality
PID.29 26 TS O 1 Patient Death Date and Time

PID.30 1 ID O 1 0136 Patient Death Indicator


SEQ LENGTH DT OPT RPT / # TBL # NAME
PV1.1 4 SI O 1 Set ID - PV1
PV1.2 1 IS R 1 0004 Patient Class
PV1.3 80 PL O 1 Assigned Patient Location
PV1.4 2 IS O 1 0007 Admission Type
PV1.5 20 CX O 1 Preadmit Number
PV1.6 80 PL O 1 Prior Patient Location
PV1.7 60 XCN O * Attending Doctor
PV1.8 60 XCN O * Referring Doctor

PV1
PV1.9 60 XCN O * Consulting Doctor
PV1.10 3 IS O 1 0069 Hospital Service
PV1.11 80 PL O 1 Temporary Location
PV1.12 2 IS O 1 0087 Preadmit Test Indicator
PV1.13 2 IS O 1 0092 Re-admission Indicator
PV1.14 3 IS O 1 0023 Admit Source
PV1.15 2 IS O * 0009 Ambulatory Status
PV1.16 2 IS O 1 0099 VIP Indicator
PV1.17 60 XCN O * Admitting Doctor
PV1.18 2 IS O 1 0018 Patient Type
PV1.19 20 CX O 1 Visit Number
PV1.20 50 FC O * Financial Class
PV1.21 2 IS O 1 0032 Charge Price Indicator
PV1.22 2 IS O 1 0045 Courtesy Code
PV1.23 2 IS O 1 0046 Credit Rating
PV1.24 2 IS O * 0044 Contract Code
PV1.25 8 DT O * Contract Effective Date
PV1.26 12 NM O * Contract Amount
PV1.27 3 NM O * Contract Period
PV1.28 2 IS O 1 0073 Interest Code
PV1.29 1 IS O 1 0110 Transfer to Bad Debt Code
PV1.30 8 DT O 1 Transfer to Bad Debt Date
PV1.31 10 IS O 1 0021 Bad Debt Agency Code
PV1.32 12 NM O 1 Bad Debt Transfer Amount
PV1.33 12 NM O 1 Bad Debt Recovery Amount
PV1.34 1 IS O 1 0111 Delete Account Indicator
PV1.35 8 DT O 1 Delete Account Date
PV1.36 3 IS O 1 0112 Discharge Disposition
PV1.37 25 DLD O 1 Discharged to Location
PV1.38 80 CE O 1 Diet Type
PV1.39 2 IS O 1 0115 Servicing Facility
PV1.40 1 IS B 1 0116 Bed Status
PV1.41 2 IS O 1 0117 Account Status
PV1.42 80 PL O 1 Pending Location
PV1.43 80 PL O 1 Prior Temporary Location
Anatomía Mensaje ACK
Ejemplo de un mensaje ACK de HL7:

MSH|^~\&|APPLICATION|HOSPITAL|Catalyze|INC|201513112402||ACK|
MSGID5183033|P|2.4| MSA|AA|MSGID5183033

Está claro que este mensaje consta de dos segmentos: encabezado de


mensaje (MSH) y confirmación de mensaje (MSA). Los segmentos
de MSH indican qué aplicación o instalación generó el mensaje, la
ID única para enviar el mensaje e indica qué versión de HL7 cumple
el mensaje. Los segmentos de MSA determinan qué mensaje se
reconoce y si se procesó y recibió con éxito. Dentro de un segmento
de MSA hay dos tipos de información relevante: el código de
confirmación, que indica si el mensaje se procesó y recibió con éxito,
y la identificación de control de mensaje, que denota la
identificación única del mensaje confirmado.
Valores del mensaje ACK/NACK
SEQ OPT RPT / # GROUP NAME

1 R 1 MSH - Message Header

2 O * SFT - Software Segment

3 O 1 UAC - User Authentication Credential Segment

4 R 1 MSA - Message Acknowledgment

5 O * ERR - Error

• MSA-1
▫ AA - Application Accept (used for ACK)
▫ AE - Application Error (used for NACK)
▫ AR - Application Reject (used for NACK)
Referencias
• http://hl7-
definition.caristix.com:9010/HL7%20v2.3.1/segment/Default.aspx?
version=HL7

• http://healthcareitsystems.com/category/hl7/hl7-messages/
• GRACIAS…

También podría gustarte