emsdocs

This document is commercial-in-confidence. The recipient of this document agrees to hold all information presented within as confidential and agree not to use or disclose, or allow to use or disclosure of the said information to unauthorized parties, directly or indirectly, irrespective of the acceptance or rejection of the presentation or at any time before, during or after an agreement has been reached, without prior written consent.

EMS ADT Message Handling

Document History

Version Date Who Comments
v0.1 - Draft 5th Dec 2017 Lee Dyson First draft
v0.2 - Draft 6th Dec 2017 Lee Dyson Minor corrections
v0.3 - Draft 10th May 2021 Lee Dyson Standardised format
v1.0 - Release 28th June 2021 Robert McNaught Consistency updates
v1.1 - Release 30th June 2021 Robert McNaught Consolidated PID and PD1 into standard segment definitions doc
v1.2 - Release 16th Jul 2021 Robert McNaught Disclaimer
v1.3 - Release 29th Sept 2021 Robert McNaught Formatting and fixes

Message Flow

Message flow diagram

ADT messages

EMS supports inbound demographics via ADT messages. Only basic demographic messages and merges are required.

Messages Supported

Message Type Default Action
ADT^A28, A31 update patient record
ADT^A40 merge patient records

EMS will accept other ADT message types, and can be configured to either:

Message Structure

[] - Optional

{} - Repeating

A28, A31

MSH
[EVN]
PID
[PD1]
[PV1]

Sample ADT message

MSH|^~\&|PAS|RJ7|EMS|RJ7|20180409204839||ADT^A31|15893A1096|P|2.4|
EVN|A31|20180409204839
PID|1||28099^^^RJ7^MRN~9876543210^^^NHS^NH||Dyson^Lee^^^Mr^^CURRENT||19690204|1||""|12 Somewhere Avenue^Ipswich^""^^IP6 3SP^GBR^HOME^^IPSWICH^^^^^^^^""~^^sales@medilogik.co.uk^""^""^""^EMAIL^^""^^^^^^^^""|IPSWICH|01309666666^HOME^^~07777777777^Mobile||""|""|OTHER|7602||||A||""||""|""|""||""
PD1|||^^S123456|G1234567^SMITH^JOHN|

A40

MSH
[EVN]
PID
MRG

ACK Message

EMS will return an ACK message in the following format

MSH
MSA

Note:

Segment Definitions

MSH

Please Refer to EMS Standard Segment Definitions

EVN

Please Refer to EMS Standard Segment Definitions

PID

Please Refer to EMS Standard Segment Definitions

PD1

Please Refer to EMS Standard Segment Definitions

PV1

By default, PV1 segment is not processed on inbound ADT demographic update messages.

MRG

This segment is only present in ADT^A40 messages

Field Name Required Example Notes
1 Prior Patient Identifier Y MRG  
1.4 Assigning Authority Y   as per PID:3.4
1.5 Identifier Type Code Y MRN as per PID:3.5

Note: