Mediloop
HEALTHCARE SYSTEMS CONNECTORS

ADT & Patient Management

2 of 9

Synchronize patient demographics, admissions, transfers, discharges and encounter context between HIS/EHR systems and Mediloop using HL7 v2 ADT and FHIR.

HL7 v2 ADTPatientEncounterLocationPractitionerOrganizationMPIACK / NAK
End-to-End ADT Flow
1
HIS / Source System
Sends real-time HL7 v2 ADT patient events
2
Mediloop Connector
Receives, validates and acknowledges ADT messages
3
Identity Resolution (MPI)
Matches identifiers and detects duplicates
4
MSIS – Semantic Layer
Normalizes and validates patient/encounter data
5
Patient / Encounter
Creates or updates FHIR-aligned records
6
Downstream Services
Clinical apps, APIs, events and analytics
HL7 v2 ADT Events
EventCodeDescriptionDirection
Admit / Visit NotificationA01Patient admission / visitInbound
TransferA02Patient transfer to another locationInbound
DischargeA03Patient discharge / end of visitInbound
RegistrationA04Patient registrationInbound
Pre-admissionA05Pre-admission informationInbound
Update Patient InfoA08Demographic information updateInbound
Cancel AdmitA11Cancel admissionInbound
Cancel TransferA12Cancel transferInbound
Cancel DischargeA13Cancel dischargeInbound
Merge PatientA40Merge patient accountsInbound
Return ACK (accept) or NAK (reject) with correlation identifiers and validation details.
FHIR Resource Mapping
FHIR resourcePurposeKey fields
PatientPatient demographics and identifiersidentifier, name, gender, birthDate, telecom, address
EncounterEncounter / visit managementstatus, class, type, period, serviceProvider, location
LocationHospital and care locationsname, type, address, managingOrganization
PractitionerAttending / responsible professionalsidentifier, name, telecom, qualification
OrganizationHospitals / departmentsidentifier, name, type
RelatedPersonContacts / next of kinname, relationship, telecom
Identity Resolution & MPI
Deterministic matching
National / enterprise patient identifiers
MRN + assigning authority
Exact demographic combinations
Known cross-system identifier links
Probabilistic / review path
Name, birth date, address and contact similarity
Duplicate candidate scoring
Ambiguous matches routed to controlled review
Never auto-merge uncertain identities
Developer Integration Surface
How to read this section
FHIR resources and HL7/IHE operations are standards-based integration surfaces. Mediloop REST routes shown here are documentation contracts and must remain marked planned until the corresponding backend route is implemented and production-approved.
SurfaceOperation / resourceUseStatus
HL7 v2ADT A01/A02/A03/A04/A05/A08/A11/A12/A13/A40 + ACK/NAKReal-time patient and encounter eventsProtocol operation
FHIRPatient / Encounter / Location / Practitioner / Organization / RelatedPersonStandards-based patient/encounter read/write/searchFHIR surface
Eventspatient.updated, encounter.started, encounter.transferred, encounter.dischargedSubscribe downstream workflows to lifecycle changesPlanned contract
REST / SDKADT ingestion status, identity review, reconciliationOperational façade for modern apps and migration projectsPlanned contract
Reliability & Reconciliation
Idempotent processing using message control ID + source system
Ordering safeguards for out-of-order ADT events
Retry + DLQ for transient failures
Reconciliation reports for unmatched/failed messages
Merge/unmerge audit trail for patient identity changes
Preserve original HL7 payload and mapping provenance
Security & Best Practices
Use TLS/mTLS or protected network channels
Validate sending facility/application and tenant context
Apply least-privilege connector credentials
Do not silently overwrite conflicting demographics
Monitor ADT lag, rejected messages and duplicate rates
Test cancel/merge edge cases before production