All features Health System Compliance
Health System Compliance

ABDM, ABHA & FHIR compliance — technical details

MindFlow is designed to meet India's ABDM (Ayushman Bharat Digital Mission) requirements as both a Health Information Provider (HIP) and Health Information User (HIU). All health record sharing requires patient-initiated consent and is logged immutably.

ABDM v3 ABHA 14-digit spec FHIR R4 HL7 FHIR India IG ICD-11 DPDP Act 2023

ABHA (Ayushman Bharat Health Account)

ABHA creation

Patients (from the portal) or staff (from the patient record) can create a new 14-digit ABHA number using Aadhaar-based or mobile-OTP verification. The flow calls the official NHA ABDM v3 API via api/abha_auth.php.

ABHA linking

Patients with an existing ABHA number can link it to their clinic record. The link is stored in the patients table (abha_id column) and in abha_health_records for the fetched profile data.

OTP sessions

abha_otp_sessions tracks in-progress ABHA verification sessions (transaction ID, mobile, expiry) — required because the ABDM API is multi-step and the session state must be maintained server-side between steps.

Audit log

abha_audit_log records every ABDM API call made on behalf of a patient (action, transaction ID, ABHA address, timestamp, staff user ID). Queryable by clinic admins for compliance review.

FHIR export

FHIR version

FHIR R4 (4.0.1) — the version required by ABDM's HL7 FHIR Implementation Guide for India.

Supported resources

includes/fhir_builder.php can generate: Patient, Practitioner, Organization, Encounter, Condition (with ICD-11 coding), Observation (vitals, assessment scores), MedicationRequest, DiagnosticReport (lab), AllergyIntolerance, and Bundle. The export page (pages/fhir_export.php) lets admins download a full patient record as a FHIR Bundle JSON.

ICD-11 → FHIR mapping

Diagnoses stored with WHO ICD-11 codes are exported as FHIR Condition resources with coding.system set to the official WHO linearisation URI, as required by the ABDM IG.

HIP credentials & security

HIP key management

abha_hip_keys stores the facility's HIP certificate and private key issued by NHA, encrypted at rest. These are loaded at runtime for signing ABDM API calls. Key rotation is handled via the admin UI without downtime.

ABDM sandbox vs. production

includes/abdm_client.php reads ABDM_ENV from .env to switch between sandbox (sbx.abdm.gov.in) and production (abdm.gov.in) base URLs. No code changes are needed to promote from sandbox to production.

Ready to see it in action?

The demo has real sample data — appointments, patients, prescriptions — so you can explore freely.

Try the demo ← All features