Architecture

Building Real-Time Cashless Claims APIs on India's NHCX Rail

Meeting IRDAI's 3-hour cashless discharge mandate using real-time API integrations, HL7 FHIR R4 schemas, and end-to-end encrypted routing over the NHCX network.

Nexa Engineering Team

Platform Architecture

7 min read
Real-Time Cashless Claims API Architecture on NHCX

The Insurance Regulatory and Development Authority of India (IRDAI) issued a landmark directive requiring insurers and Third Party Administrators (TPAs) to decide on cashless claim authorizations within three hours of a hospital's discharge request. For hospitals relying on physical courier services, emailed scans, or fragmented portal uploads, achieving compliance is mathematically impossible without automated API integrations.

The National Health Claims Exchange (NHCX) is the nationwide rail that makes real-time cashless settlement technically viable. By providing a unified protocol switch, hospitals can replace manual document handoffs with direct machine-to-machine data exchanges.

Understanding NHCX: A Router, Not a Repository

One of the most critical architecture insights when integrating with NHCX is understanding its exact operational boundary. NHCX is strictly an intelligent routing switch—it is NOT a database or centralized repository of patient health records.

NHCX inspects only the routing envelope headers (sender code, recipient code, message action, timestamp). It never decrypts, reads, or persists patient medical data or financial bundles.

Because the switch does not touch the payload, the connecting systems (the hospital gateway and the insurance adjudication engine) bear full responsibility for end-to-end encryption. Clinical and financial data must be encrypted before entering the wire and decrypted only after leaving the destination network.

The Real-Time Cashless Claims Stack

To meet the 3-hour SLA, the engineering requirements stack comprises three complementary tiers:

  • Structured FHIR R4 Payloads: Clinical summaries, pharmacy invoices, implant barcodes, and lab reports bundled into conformant FHIR resources.
  • ABDM Interoperability Alignment: Validating ABHA numbers at registration and linking patient consent records before transmission.
  • High-Grade Encryption: AES-256-GCM symmetric encryption for payloads and RSA-OAEP-256 / ECDH for key exchanges, secured by TLS 1.3 in transit.

Adapter Role: The Security and Protocol Heavy-Lifter

Building these encryption pipelines, certificate rotations, and payload mappings from scratch inside an existing HIS can take months of complex development. A dedicated bidirectional gateway adapter abstracts this entire security envelope, exposing simple internal REST or JSON APIs to the hospital while delivering fully conformant, encrypted FHIR payloads to NHCX.

Continue reading

Ready to connect your systems to NHCX?

Talk to our integration team about sandbox access, compliance mapping, and production rollout.

Request a Demo