SwasthyaSetu: consent, prescriptions and shared verification

A healthcare application under development, supported through two funded stages of the Blockchain India Challenge.

SwasthyaSetu: a shared healthcare workflow

SwasthyaSetu connects patient consent, consultations, prescriptions and pharmacy dispensing. Blockchain was part of the brief. Our contribution was deciding where a shared ledger added value, what belonged on it and how each participant would use the application.

The implementation uses Hyperledger Fabric alongside application services and separate document storage. A pharmacy workflow must handle partial dispensing and return visits while preventing quantities above the prescription. Patient, doctor and pharmacy permissions have to remain consistent across the interface, APIs and ledger operations.

SwasthyaSetu has progressed through two stages and received two rounds of funding under the Blockchain India Challenge, implemented by C-DAC with support from MeitY.

Handle partial prescriptions and return visits

A prescription can be collected in parts, on different days or from different pharmacies. The workflow needs to track what remains and reject excess dispensing without blocking a legitimate return visit. These are application rules that must hold at the ledger boundary, not just in the screen.

SwasthyaSetu also distinguishes consent to anchor a record from consent to share health data through ABDM. Those permissions serve different purposes. Treating one as a substitute for the other would make the integration incorrect.

Test changes against existing records

Ledger applications need tests for the allowed path and for actions that must be refused. SwasthyaSetu includes tests for partial dispensing, quantity limits and verification of records created under an earlier format.

Integration tests submit transactions through the API, read them back from the ledger and verify their fingerprints. They also check permissions and repeated requests.

  1. Patient consent
  2. Consultation and prescription
  3. Pharmacy dispensing