ABDM integration guide: ABHA, HIP, HIU, consent and FHIR for health tech teams

A developer's guide to ABDM integration: ABHA, HIP and HIU milestones, consent artefacts, FHIR R4 bundles, encryption, the WASA audit and go-live.

INDI TECHNOLOGYUpdated 7 min read

India's Ayushman Bharat Digital Mission (ABDM), run by the National Health Authority (NHA), connects patients, hospitals, clinics, labs, pharmacies, insurers and health apps through shared registries and consent-based record exchange. By May 2026, NHA reported more than 100 crore health records linked to patients' ABHA accounts, and hundreds of public and private health software products integrated.

For hospital software (HMIS, EMR), lab systems, telemedicine apps, pharmacy platforms and insurers, ABDM integration is increasingly expected by government programmes, large hospital groups and patients. This guide explains the pieces and how integration works from sandbox to production.

Last reviewed: 21 November 2026. Always build against NHA's current sandbox documentation; APIs and versions change.

The building blocks

Component What it is You'll use it to
ABHA number A 14-digit health ID for each person Identify patients across providers
ABHA address A human-friendly handle, such as name@abdm Let patients share records and receive consent requests
Health Facility Registry (HFR) Registry of verified health facilities Identify your facility in exchanges
Healthcare Professionals Registry (HPR) Registry of verified doctors, nurses and other professionals Verify and identify clinicians
Health Information Exchange and Consent Manager (HIE-CM) The gateway that routes consent requests and data Request and grant access to records
HIP (Health Information Provider) A system that holds records and shares them with consent Hospitals, clinics, labs, pharmacies
HIU (Health Information User) A system that requests records with consent Doctors, hospitals, insurers, health apps
PHR app Personal health record app for patients Manage ABHA, consents and records

A key design point: ABDM doesn't store health records centrally. Records stay with the HIPs that created them. ABDM routes requests and consent, and records move directly from HIP to HIU, encrypted end to end, when a patient consents.

The integration milestones

NHA organises integration into milestones, each tested in the sandbox:

Milestone Capability Typical products
M1: ABHA Create and verify ABHA numbers and addresses; ABHA login; scanning a patient's ABHA QR Every product that registers patients
M2: HIP Link patients' records (care contexts) to their ABHA; respond to consent-based requests by sending records as FHIR bundles HMIS, EMR, lab, pharmacy, telemedicine
M3: HIU Request a patient's consent; receive and decrypt records from other providers; display them Doctors' apps, hospitals viewing outside records, insurers
Further integrations Registries (HFR, HPR), claims exchange and other programme integrations Larger platforms

Many products go live with M1 and M2 first, then add M3.

M1: ABHA in your registration flow

  • Create ABHA for patients who don't have one, typically with Aadhaar OTP or other supported methods, or verify an existing ABHA number or address
  • Scan and Share: a patient scans your facility's QR code with their ABHA app and shares their profile, which speeds up OPD registration
  • store the ABHA number and address against the patient record, with the patient's consent

Design notes:

  • don't store Aadhaar numbers unless a law permits it; use ABHA
  • rate-limit OTP flows and don't reveal in error messages whether an ABHA exists. Auditors test for enumeration
  • keep gateway client secrets on your servers, never in mobile or browser code

M2: be a Health Information Provider

Care contexts

A care context is a set of records from one episode of care, such as an OPD visit, an admission or a lab order. As a HIP you:

  1. link care contexts to the patient's ABHA, either when the patient is at your facility (HIP-initiated linking) or when they discover and link records from their PHR app (patient-initiated linking)
  2. notify the gateway that new records are available, so the patient's app can show them

Responding to data requests

When a patient grants consent to an HIU:

  1. the HIE-CM sends you a consent artefact: who may access which care contexts, for what purpose, which health information types and which date range, and until when
  2. you receive a health information request referencing that consent
  3. you build FHIR R4 bundles for the requested records
  4. you encrypt them for the requesting HIU and push them to the HIU's data endpoint
  5. you notify the gateway of the transfer status

Everything must respect the artefact exactly: no records outside the date range, types or care contexts, and none after expiry.

M3: be a Health Information User

  • create consent requests with a clear purpose (such as care management), the information types needed and the date range
  • handle the consent notification when the patient grants or denies it
  • request data, receive encrypted bundles from each HIP, decrypt them and show them to the clinician
  • enforce expiry: when consent expires or is revoked, stop displaying the data and delete it if the consent requires that

FHIR R4 profiles

Records are exchanged as HL7 FHIR R4 bundles, using the ABDM implementation guide published by NRCeS (National Resource Centre for EHR Standards, C-DAC Pune). Health information types include:

  • OPConsultation: outpatient consultation notes
  • Prescription
  • DiagnosticReport: lab and imaging reports
  • DischargeSummary
  • ImmunizationRecord
  • WellnessRecord: vitals and lifestyle data
  • HealthDocumentRecord: documents such as scanned reports
  • Invoice

Each is a FHIR document bundle with a Composition and the referenced resources (Patient, Practitioner, Organization, Encounter, Condition, MedicationRequest, Observation and so on), conforming to the NRCeS profiles.

Practical advice:

  • Validate every bundle against the profiles before sending. Run a FHIR validator in CI and in production
  • use standard terminologies: SNOMED CT for clinical terms (India has a national SNOMED CT licence), LOINC for lab tests
  • if your system holds only PDFs for older records, wrap them in a document bundle with proper metadata as a first step, then add structured data over time
  • keep a mapping layer between your internal model and FHIR, so changes to the profiles don't ripple through your codebase. This is the same advice as in our HL7 vs FHIR guide

Encryption

Data from HIP to HIU is encrypted using an ECDH key exchange (on Curve25519) to derive a shared key, then AES-GCM to encrypt the bundle, with fresh keys per transfer for forward secrecy. The HIU publishes its public key and a nonce in the data request; the HIP generates its own key pair for the transfer. Open-source implementations exist, such as the Fidelius libraries. Test interoperability carefully with the sandbox, because small differences in key derivation break decryption.

Security audit and going live

To move from the sandbox to production:

  1. register on the ABDM sandbox and get credentials
  2. implement the milestones and pass NHA's functional test cases for each
  3. complete a WASA (Web Application Security Assessment) by a CERT-In empanelled auditor, covering every milestone you implement, and fix critical and high findings
  4. submit the documents and get production credentials

Common findings in ABDM security audits:

  • insecure direct object references: changing a patient or care context ID returns someone else's data
  • consent not enforced on the server: records returned without checking a valid, unexpired artefact
  • weak OTP handling and ABHA enumeration
  • secrets embedded in mobile apps or front-end code
  • unauthenticated or unsafe callback endpoints (SSRF, replay)
  • unsafe parsing of FHIR or XML payloads
  • health data in logs

Plan two to four weeks for the audit and fixes, longer for large platforms.

ABDM and the DPDP Act

ABDM has its own consent framework, but your product still has duties under the DPDP Act from May 2027: notices, security safeguards, breach reporting within 72 hours, retention and erasure. Design one consent model that handles both ABDM consent artefacts and DPDP consent, as described in our consent system guide.

Incentives

NHA's Digital Health Incentive Scheme (DHIS) has paid incentives to facilities and digital solution providers based on the number of ABHA-linked records and transactions, with the rules updated by corrigenda over time. Check the current scheme terms on abdm.gov.in before including incentives in a business case.

Checklist

  • Role decided: HIP, HIU, PHR or several; milestones planned
  • Facility in HFR and clinicians in HPR, where relevant
  • M1: ABHA create, verify and login; Scan and Share at registration
  • No Aadhaar storage without legal basis; OTP rate limits and no enumeration
  • M2: care context linking (HIP- and patient-initiated) and new-record notifications
  • Consent artefacts enforced exactly: care contexts, types, dates, expiry
  • FHIR R4 bundles built through a mapping layer and validated against NRCeS profiles
  • SNOMED CT and LOINC coding
  • ECDH and AES-GCM encryption tested end to end in the sandbox
  • M3: consent requests, decryption, display and expiry handling
  • Secrets kept server-side; callbacks authenticated
  • No health data in logs
  • WASA by a CERT-In empanelled auditor, with findings fixed
  • DPDP duties covered alongside ABDM consent

We build ABDM-integrated hospital, lab and telemedicine software for MedTech companies, from ABHA registration to FHIR exchange, and prepare it for the WASA audit with our quality engineering team. If you're planning ABDM integration, let's scope it together.

Related services

Related industries

Any idea in mind? Let's make it real.

Tell us what you're building. You'll hear back from an engineer, not a sales team, usually within one working day.

Book a 30-min call