Sidhanshu MongaContribution
GitHub↗
/ Engineering contribution — C.03HISP India
← All contributions

Biometric patient enrollment on DHIS2

A biometric patient enrollment and identification integration with DHIS2, built by two engineers for Nepal's national HIV care and treatment program.

Organization
HISP India
Dates
Program launched 2017
Status
In national use · my own role not independently confirmed

The problem

Recognising a returning patient is the quiet prerequisite for everything else a health program does. Treatment history, adherence, follow-up, continuity of care — all of it depends on matching the person in front of you to a record created some time ago, often at a different facility, by somebody else.

Nepal’s HIV treatment registers were on paper, and they did this badly in a way that is documented rather than remembered: unique identifiers were managed inefficiently, which produced duplicate records and over-estimated coverage. A patient who transferred between treatment sites was sometimes enrolled again as a new case, because searching a paper register for an existing record was hard enough that starting a fresh one was easier. Reports as simple as how many people are currently on treatment took weeks.

A duplicate is not an untidy database row. It is a treatment history cut in half, a patient who appears to be newly diagnosed, and a national coverage figure that is wrong in the optimistic direction.

Underneath sits a problem that identification systems usually make worse. To recognise someone by their details, you have to hold their details — and here the details are the sensitive part. The program treats that exposure as a first-class risk: even its SMS reminders substitute neutral wording for clinical terms so that a message on a phone screen gives nothing away. Against that, the obvious fix — collect more identifying information, more carefully — strengthens identification by increasing exactly the exposure the program works to minimise.

My role

One of two engineers who built the biometric enrollment and identification integration with DHIS2. I took part in the implementation and pilot work in Nepal.

To be exact about what is and is not corroborated: DHIS2’s account of the program credits the two-part biometric app to HISP India, and describes its structure and use. It does not name individuals. So the existence, design and deployment of the work are independently documented; my own part in it rests on my word until someone at HISP India or NCASC confirms it, and I would rather say so than imply the source covers more than it does.

The approach

Let a fingerprint stand in for the identifying details, and the third problem dissolves into the solution to the first two.

A fingerprint identifies without describing. It carries no name, no address and no diagnosis, and nothing a health worker has to ask for across a counter within earshot of a waiting room. Less demographic detail has to be collected and held in order to recognise someone, which is a real reduction in what a register exposes.

The gain is narrower than it first sounds, and worth stating precisely. A fingerprint template is itself a sensitive biometric identifier, not a neutral token. If one leaks it cannot be reissued the way a patient number can, and it stays linkable to the person permanently. So this trades a broad set of identifying details for a single durable one, and the trade is only worth making if that one is protected properly. It does not remove the obligation to protect patient identity; it changes what there is to protect.

The practical gains compounded on top. Enrollment got faster. Identification became one action instead of a search through near-duplicate names, which matters most to the person doing it for the fortieth time that day — and a workflow people can complete under pressure is the one that actually gets used, which does more for data quality than any amount of validation.

Architecture

The integration was a two-part custom app, and the split is the whole design. The client-side half was incorporated into the DHIS2 installation itself; the server-side half ran on a dedicated fingerprint server. Readers capture a patient’s fingerprint, it is verified and stored on that server, and the result authenticates the record in DHIS2.

Keeping matching off the DHIS2 instance is what let a biometric layer be added to a national health information system without becoming part of it: DHIS2 continues to hold health records and the fingerprint server holds biometrics. A separation like that supports a boundary — it makes the two stores separately reasonable about — but drawing a boundary is not the same as securing what sits either side of it.

It also put capture and matching on infrastructure sitting in the facility rather than somewhere a health worker has to reach over the internet. That mattered then and still does: NCASC notes that internet speed at some sites continues to affect how fully the system functions.

The decision I would defend hardest, though, was accepting the error rate instead of assuming it away. We designed against a target of roughly 90% identification accuracy. Stated flatly that sounds poor, since commercial matching quotes far better. It is realistic for the conditions: fingerprints worn down by manual work, field-grade readers rather than laboratory ones, dust and moisture, devices shared between many health workers, capture done quickly in a queue. Benchmark accuracy is measured in none of those circumstances.

Which means roughly one identification in ten was expected to fail. A system that treats that as an exception strands a patient one visit in ten, and leaves the health worker with only the paper-register search the whole exercise was meant to replace.

So the fallback went into enrollment rather than onto failure: we enrolled multiple fingers per patient, not one. A failed match on the first finger is then not a failed identification — the health worker has somewhere to go that is not the paper register — and the cost is paid once at enrollment by the person who has time, rather than at every visit by someone in a queue.

How much that improved things I cannot tell you, and I would rather not imply arithmetic that does not hold. Several fingers from one person, captured on one reader by one operator, are not independent samples: whatever made the first finger hard to read — wear, moisture, technique — tends to apply to the next. The attempts correlate, so the improvement is smaller than multiplying the odds would suggest, and we did not measure it. What I can say is that the design treated the error rate as something to accommodate rather than something to assume away, and that is the decision I would defend.

Implementation

Capture ran on ZK-7500 readers with ZKTeco’s own SDK doing the comparison, rather than anything hand-rolled. Fingerprint matching is a solved problem with decades of work behind it and real consequences for getting subtly wrong; the engineering worth doing was the integration, the enrollment workflow and the failure handling, not a worse implementation of the comparison itself.

The client half was a desktop application health workers drove at the facility — capture, enrollment, identification — talking to a server application that wrapped the SDK behind two operations, enroll and identify. The DHIS2 side was extended in JavaScript and AngularJS so the biometric step appeared inside the Tracker workflow rather than beside it, which is the difference between a feature health workers use and one they work around.

What crossed that boundary was a template, never an image — a derived representation the matcher consumes rather than a photograph of anyone’s finger. That is a meaningful difference and it is less than a guarantee: how far a template can be reconstructed, and what it can be misused for, depend on the algorithm, the representation and the controls around the store. I am not in a position to make a claim about any of those for this system, and would not want the page read as making one.

Adoption

The system is Nepal’s HIV Care and ART Tracking System, launched in 2017 by the National Centre for AIDS & STD Control at the Ministry of Health and Population. It was piloted in three HIV treatment centres in Kathmandu and then rolled out nationally, with implementation support from NCASC, AIDS Healthcare Foundation, FHI360, Save the Children International and HISP India, and funding through Global Fund programs.

NCASC’s own description of the system is the one I would point at, because it is the operator speaking in the present tense. It says the system is operational across all HIV program sites in Nepal, and that it consists of three interconnected components: DHIS2 Tracker, mHealth, and Biometrics. The biometric component is named as what streamlines duplication checks and client transfers — which is the problem the work was built to solve, described by the people running it, years later.

DHIS2 reports the proportion of people receiving antiretroviral therapy rising from 65% in 2017 to 84% by 2021. That figure belongs to the national program and its interventions as a whole, not to this integration. Nobody has measured what the biometric component contributed separately, and I am not going to borrow a number I cannot attribute. What the sources do establish is that the work went into real, national, long-running use, and that is the claim worth checking.

One caveat on all of it. The system running today is not necessarily the implementation we built. HISP India’s repository for the biometric component shows continued development by other engineers through 2024, so NCASC describing an operational biometric component now is evidence that the component endured — not evidence that our code is what is running. Those are different claims and only the first one is supported.

Recognition

At the 2020 DHIS2 Annual Conference, in the Tracker and Android session’s public Q&A thread, a participant working on Nepal’s HIV information system wrote: “We’re very thankful to HISP India that we were able to integrate fingerprint scanner for HIV Care Tracker,” and went on to ask for palm and fingerprint support on Android handhelds for community workers.

That is somebody on the receiving end of the work saying it mattered, unprompted, three years after it was built — and asking for more of it. It credits HISP India rather than any individual, which is the honest shape of the evidence here and is noted as such above.

Sources