azyware
Technology

Integrating AI with HIS, LIS and PACS

EZ
Eazyware
· 7 min read
Quick answer

What should a hospital know about hospital system integration AI before connecting agents to HIS, LIS and PACS?

Integrate through scoped wrappers over HIS, LIS and PACS, tested against real message flows, with strict permissions and logging. Each wrapper exposes only the calls a use case needs, speaks the native interface (HL7 v2, FHIR, DICOM or a vendor API) and logs every call; the AI never touches the system directly.

Hospital system integration AI is mostly not about the AI. It is about giving a model or an agent a safe, narrow, well-tested door into the hospital information system, the laboratory system and the imaging archive, and about never letting it use any other door. The pattern is a wrapper per system: a small service that exposes exactly the reads and writes a use case needs, translates to whatever the system speaks (HL7 v2 messages, FHIR resources, DICOM, a vendor's REST API, or a database view), enforces permissions, and logs every call. The AI components talk to the wrappers. They never talk to the HIS.

This article explains why wrappers rather than direct integration, what each of the three systems typically exposes in an Indian hospital, how to test against real message flows before anything touches production, and how permissions and logging are enforced. It is written for hospital CIOs, integration leads and IT vendors' delivery managers. The sector approach is on the healthcare industry page.

Why wrappers, not direct integration

An AI agent that connects straight to the HIS database or its full API has more access than it needs, is impossible to audit cleanly, and breaks when the vendor upgrades. A wrapper gives the agent a stable, minimal contract: "get appointments for this doctor on this date", "create an appointment", "get signed notes for this encounter", "get the result for this order". The wrapper owner can change the underlying integration without the AI noticing, deny a call the agent should not make, and produce a single log of everything the AI did. The same argument applies to legacy systems generally, covered in adding an API layer to a legacy monolith.

What each system exposes and what AI typically needs

SystemCommon interfaces in IndiaTypical AI readsTypical AI writesNever
HIS / EMRHL7 v2 (ADT, SIU, ORM), FHIR R4 on newer platforms, vendor REST, database viewsSchedules, appointments, demographics, signed notes for permitted patientsAppointments, call outcomes, draft documents to a draft areaSigned clinical records, orders, billing
LISHL7 v2 (ORM, ORU), vendor API, flat filesOrder status, result availability, reference rangesNothing in a first releaseResults themselves; result release to patients
PACS / RISDICOM (C-FIND, C-MOVE, WADO), DICOMweb, RIS HL7Study existence, modality, report statusWorklist entries in narrow casesImages to an external model; report text
ABDM gatewayFHIR bundles via the HIE-CM and gateway APIsConsent status, linked records with consentNothing without a consent artefactAny access outside a valid consent

HL7 v2 is still the language of the hospital

Most Indian HIS and LIS deployments speak HL7 v2 over MLLP, not FHIR. A wrapper for a scheduling agent subscribes to SIU messages for schedule changes and sends SIU or vendor API calls to create appointments; a wrapper for a results-notification use case listens for ORU messages. FHIR is arriving with newer platforms and with ABDM, and where it exists it is easier to work with, but a wrapper must handle whichever the site has. We build the wrapper contract once and implement the adapter per site, because a hospital network rarely has one HIS everywhere.

Message quirks are site-specific

Segment order, custom Z-segments, local code sets for departments and doctors, and date formats vary by site and by vendor version. There is no substitute for capturing real message traffic from the site and building the adapter against it.

Testing against real message flows

Before any wrapper touches production, it is tested in three stages. First, against a corpus of captured messages from the site, de-identified, covering the normal day and the awkward cases: cancelled appointments, rescheduled to a different doctor, duplicate patient records, results amended after release. Second, against the vendor's test environment where one exists, with the adapter pointed at it. Third, in a read-only shadow period in production, where the wrapper listens and reads but every write is logged as "would have written" and compared with what staff actually did. Only then are writes enabled, one at a time. This is the same discipline as shadow mode for AI agents, applied at the integration layer.

Permissions: the wrapper enforces, the AI requests

Each wrapper has its own service identity in the HIS with the minimum rights the contract needs, and the wrapper checks every request against the acting user's rights where a user is involved. A voice agent booking appointments acts as a scheduling identity that cannot read notes. A clinical assistant acts on behalf of the logged-in clinician and the wrapper filters by that clinician's patients. Requests outside scope are refused and logged, not silently narrowed. The retrieval side of this is described in permission-aware retrieval.

Logging that the quality team can use

Every call through a wrapper records the requesting component, the acting user if any, the operation, the patient or encounter reference, the result, and the correlation id linking it to the AI request that caused it. The log lives in the hospital's own platform with retention set by the compliance team. When a clinician asks why an appointment moved, or an auditor asks what the AI read for a patient, the answer is one query. The record requirements for patient data are covered in patient data and AI in India.

PACS: read metadata, leave the images alone

For most operational AI use cases the imaging archive is needed only for metadata: does a study exist, which modality, is the report signed. Sending images to an external model is a separate, regulated conversation about medical device software that most hospitals should not enter through a scheduling or documentation project. The wrapper for PACS therefore exposes study and report status, nothing more, and image access is out of scope unless the hospital has a specific, governed imaging AI programme.

Failure modes and the wrapper's job

The HIS goes down for maintenance. The LIS sends a malformed message. A vendor upgrade changes a segment. The wrapper's job is to fail loudly and safely: return a clear error to the AI component, which tells the user the truth ("I cannot reach the scheduling system right now"), alert the integration team, and never fabricate a result or retry a write blindly. Idempotency keys on writes prevent duplicate appointments when a retry does happen. These behaviours are in the wrapper's test suite from the first release.

A worked example

A hospital network with different HIS versions across sites wanted a voice agent for appointment calls and, later, a documentation assistant. We defined one scheduling wrapper contract and implemented adapters per site: HL7 v2 SIU on the older platform, a vendor REST API on the newer one. Captured message traffic from each site drove the adapter tests, and a read-only shadow period in production compared the agent's intended bookings with the desk's real ones. Writes were enabled site by site. The documentation assistant later reused the same pattern with a notes wrapper scoped to the clinician's patients. The qualitative outcomes were that the HIS vendor's upgrade at one site required a change in one adapter and nothing in the agent, the integration team could answer any "what did the AI do" question from one log, and the hospital's security review focused on the wrapper's rights rather than on the model. The multilingual voice agent case study describes the front-desk side of the work.

Team and timeline

Integration work is delivered under API development and integrations from $7,000 / ₹4.4L per wrapper, typically scoped alongside the AI build it serves, such as a voice agent or a clinical assistant. Your side provides an integration lead, HIS and LIS vendor contacts, access to test environments and captured message traffic, and an information security contact. We provide an integration engineer, an AI engineer and a lead who owns the test corpus. A first wrapper with a shadow period typically takes four to six weeks; subsequent adapters for other sites are faster because the contract is fixed. Care Plans cover adapter changes when vendors upgrade; tiers are on the pricing page.

Before you start: a checklist

  • List the systems per site with vendor, version and the interfaces actually enabled
  • Capture and de-identify a week of real message traffic per interface
  • Write the wrapper contract as the minimal set of reads and writes the use case needs
  • Create a service identity per wrapper with least-privilege rights in the HIS
  • Confirm test environments and vendor support for the integration
  • Agree log fields, retention and who can query the log
  • Plan the shadow period and the criteria for enabling each write
  • Decide now that PACS images are out of scope unless separately governed

Glossary

  • HIS / EMR: hospital information system and electronic medical record, often one product in India
  • LIS: laboratory information system
  • PACS / RIS: picture archiving and communication system and radiology information system
  • HL7 v2: the message standard most hospital systems exchange; ADT, SIU, ORM and ORU are common message types
  • FHIR: HL7's REST-based resource standard used by newer platforms and ABDM
  • DICOM: the standard for medical images and their metadata
  • Wrapper: a scoped service that exposes a minimal contract over a hospital system

The primary references are HL7's FHIR and v2 standards and the ABDM developer documentation for consent-based health data exchange in India. Related posts: AI voice agents for hospital front desks, private clinical assistants and the healthcare industry page.

Give the AI one narrow, tested, logged door into each hospital system and no other, and integration stops being the reason healthcare AI projects stall.

Frequently asked questions

Do we need FHIR to integrate AI with our HIS?

▾

No. Most Indian hospital systems still speak HL7 v2 or a vendor API, and the wrapper adapts to whichever the site has. FHIR makes it easier where it exists, and ABDM exchange requires it, but it is not a precondition.

Can the AI agent access lab results or images?

▾

In a first release it reads order and report status only. Results and images are never sent to an external model, and result release to patients stays with the hospital's existing process.

What happens when the HIS vendor upgrades?

▾

The adapter inside the wrapper changes; the AI components do not. The captured message corpus is re-run against the new version before the adapter goes live, and a Care Plan covers the work.