Skip to content
Vestcodes
All insights

ABDM

ABDM Integration for Hospitals: M1, M2 and M3 Explained

ABDM integration for hospitals and clinics: what milestones M1, M2 and M3 cover, which one your software needs, and how the HIP and HIU roles work.

Author
Vestcodes team
Published
On this page

If you run a hospital, a clinic or a lab, or you build the software one of them uses, ABDM integration is the work of making that software speak to the Ayushman Bharat Digital Mission. Patients get an ABHA, your system links their records to it, and records move between providers only when the patient agrees. ABDM splits this into three levels called milestones: M1, M2 and M3.

This article explains what each milestone involves, which ones a hospital, lab, clinic or app needs, and how the Health Information Provider (HIP) and Health Information User (HIU) roles work in practice. It is based on ABDM's own guidelines for HIPs, HRPs, HIUs and PHR apps (the October 2022 version), the FHIR implementation guide and ABDM's published FAQs. ABDM changes its sandbox documentation over time, so treat the sandbox as the final word on endpoints and payloads, which this article deliberately does not reproduce.

What ABDM integration means for a hospital or clinic

ABDM does not store medical records. The mission's own FAQ says records stay with the provider that created them, and ABDM only carries the exchange after the patient consents. What the National Health Authority (NHA) runs are shared building blocks:

  • ABHA: the patient identity, as a number and an address.
  • Health Facility Registry (HFR) and Healthcare Professionals Registry (HPR): the directories of facilities and clinicians.
  • The health information exchange and consent manager (HIE-CM), which holds the links between patients and the providers that have their records, and records consent.
  • The gateway, which routes requests between the consent manager and providers. The guidelines group its APIs into discovery, link, consent flow, data flow and monitoring.
  • The sandbox, where software is built and tested before it touches real patients.

See ABHA number vs ABHA address for the identity side and HFR and HPR explained for the registries.

Your software connects to these through APIs. The guidelines state that a provider's hospital, lab or EMR software must be upgraded to be ABDM compliant, and that providers should check with their vendor or in-house team that they are using compliant software. In other words, ABDM integration is mostly a software project, even though the facility also has its own paperwork (a registry entry, covered below).

If you are weighing this for a product, our ABDM integration service page describes what we build, and the ABDM overview shows the flow. Vestcodes does not hold any ABDM certification or approval; certification belongs to each software product and goes through ABDM's process.

The three milestones at a glance

The guidelines define the milestones in one line each. The table adds what they mean for a build.

MilestoneABDM's definitionIn practice
M1ABHA number creation, capture and verification for seamless patient registrationRegistration screens that create, capture and verify ABHA
M2Health Information Provider (HIP) services to share digital records through the patient's ABHA appLinking care contexts, answering consent-approved data requests, sending FHIR records
M3Health Information User (HIU) services to show a patient's history to authorised health workers, with consentConsent requests, receiving and decrypting records, showing them to clinicians

Third-party guides sometimes add a fourth milestone, for insurance claims. The ABDM guidelines read for this article list three, so this article does too.

M1: ABHA creation and verification

M1 is the front door. Your registration flow must let a patient create an ABHA if they want one, or capture and verify an existing one. The guidelines are clear that this is voluntary: a provider must not force a patient to give an ABHA, and normal registration continues for patients who decline.

A system integrated at M1 can both create and link ABHA in its own records. It cannot yet share any health records, which is why M1 alone is not the destination.

M2: acting as a Health Information Provider

M2 is where hospital and lab software earns its keep. Any entity that creates health information and agrees to share it digitally, under ABDM's consent framework, is a HIP. As a HIP your system has to:

  1. Link a "care context" for each patient encounter. A care context is the unit the HIE-CM tracks, and one can hold several records such as a diagnostic report, a discharge summary and a prescription.
  2. Notify ABDM when a new record exists. If you hold a verified ABHA address for the patient, you link the care context through the HIP-initiated linking method. If you hold only a mobile number, the guidelines tell you to call the SMS notification API so the patient gets a link.
  3. Run a HIP service that answers data requests from the consent manager, and shares nothing until consent is validated.
  4. Produce the records themselves as FHIR bundles, following the NRCeS implementation guide.

Developer threads on the ABDM forum describe the data transfer request as carrying a data-push URL and key material for encrypted transfer, and older threads name ECDH on Curve25519. Read the current sandbox specification before you build this part; it is the piece most likely to have changed since those threads were written (example thread).

M3: acting as a Health Information User

M3 flips the direction. A HIU is any permitted entity that wants to see a person's records with informed consent: a hospital or doctor viewing history, a mobile app that shows records to patients, a PHR app. As a HIU your system raises a consent request, waits for the patient's decision, then receives and reads the records.

Two rules matter for design. A consent artefact states the purpose, the period for which data may be used and the documents covered, and anything you receive is bound by it, including how long you may keep it. And consent can be revoked at any time, so your retention logic cannot assume permission is permanent.

Who needs which milestone

ABDM's guidelines answer this by role:

  • Hospital and lab software (HMIS, LIMS, EMR) acts as an HRP, and the guidelines say it shall be compliant with at least M2. It acts as a HIU as well if the facility wants to read records from elsewhere, which is M3.
  • A clinic or small lab usually adopts a compliant product from a vendor. The vendor does the integration; the clinic registers in the HFR and uses the product.
  • Health Repository Providers (HRPs), meaning vendors who supply compliant software and long-term storage to many facilities, must meet all the HIP obligations.
  • PHR apps behave as HIU, HRP and HIP at once, and the guidelines add extra rules for them, including implementing a HIP service.

The ABDM developer forum is less tidy. Replies there say a team needs at least two milestones to apply for the exit from the sandbox, and give different answers on whether M3 can be built without M2 depending on the product type. Because these are forum replies, not guidelines, confirm with the integration team for your exact product before you plan around a shortcut. (milestone test-case thread, M1-only exit thread.)

How the HIP and HIU roles work together

The two roles are two halves of one consent-driven exchange. Here is the flow in plain terms:

  1. A patient registers at a facility and shares an ABHA address, or the facility creates an ABHA with them.
  2. After the visit, the facility's software (the HIP) links a care context to that address through the consent manager.
  3. Later, a doctor at another facility (a HIU) asks the patient's permission to see their records. The HIE-CM passes the request to the individual, who can give or deny it.
  4. If consent is granted, a consent artefact is created, and the HIP is asked to send the records to the HIU.
  5. The HIU receives them and shows them to the clinician, for the period and purpose the artefact allows.

NHA stores no record data; the data is at the HIP. Consent is granular: the patient can approve only selected records, so a HIU must be able to work with a partial set.

Obligations teams underestimate

The HIP section of the guidelines lists duties that surprise teams who thought the work was only API calls:

  • Uptime. ABDM measures a HIP service with heartbeats and expects high availability. A facility that runs on-premises software and wants to be a HIP needs reliable connectivity, a static public IP and a certified HIP service.
  • Structured data. Records may start as PDFs and simple documents, but HIPs must start sharing fully structured data within one year of obtaining ABDM certification.
  • Retention and migration. Records must be kept and made available under ABDM's data policies, and a HIP that closes or changes vendor must migrate them.
  • Security policy. Software must meet NHA's information security policy for external ecosystem partners.
  • Voluntary ABHA. Never block care on a missing ABHA.

India's new data protection law touches the same ground; see our notes on the DPDP Act for health apps.

Where to start

  1. Decide your role: HIP only, HIP and HIU, or a PHR app. That sets the milestones.
  2. Get the facility side moving in parallel. Facilities register in the HFR, and clinicians in the HPR (see HFR and HPR).
  3. Apply for sandbox access and build M1 first, then M2, then M3 if you need it.
  4. Map your records to the FHIR profiles early, because the data model is the slow part.
  5. Plan the review: functional testing, a security audit and the exit form. From sandbox to production walks through it.

If your product is a hospital system, HMIS, LIS and EMR integration is usually part of the same project, because ABDM records are built from data that already lives in those systems. If you want to talk it through, contact us.

Sources

Questions

What are M1, M2 and M3 in ABDM?

They are ABDM's three levels of integration. M1 covers ABHA number creation and verification at registration. M2 builds the Health Information Provider (HIP) services that share records. M3 builds the Health Information User (HIU) services that request and show a patient's records with consent.

Does a hospital need all three milestones?

ABDM's guidelines say hospital and lab management software must reach at least M2. M3 is needed only if the hospital wants to view records created elsewhere. M1 is part of the path, since a HIP has to capture and verify ABHA at registration.

What is the difference between a HIP and a HIU?

A HIP creates health records and shares them, with consent. A HIU asks for records about a patient, with that patient's consent. One system can be both, and a hospital often is.

Is ABDM integration mandatory for hospitals?

ABDM's guidelines say that a provider creating digital records should participate, and that patients are never forced to give an ABHA. Whether a particular scheme or state makes it a condition is a separate question to check with that scheme.

Building something in healthcare?

Tell us what you need and which systems it has to work with.

Let's talk