dhis3/go
reflectionhistory

An Inheritance in Two Layers

Among the papers I keep on my desk this fortnight is a profile of Jørn Braa, Professor Emeritus of Informatics at the University of Oslo and co-founder of the Health Information Systems Programme. It was prepared as background for this journal, and in it there is a sentence I have been thinking about since Monday. It is Mr Braa's own formulation, offered more than once in his papers as the historical anchor of the project he has co-run since 1994:

"DHIS2 is the product of a 20-year longitudinal participatory action research project that has its origins in the Scandinavian tradition of workplace democracy and South African anti-apartheid activism." (2017, DHIS2 Open Source Software Platform)

Read that twice. There is nothing in it about Java, or Hibernate, or a REST API. There is nothing in it about dashboards or indicators or data warehouses. It describes a pedagogy. A long apprenticeship conducted in dozens of ministries across dozens of countries, in a tradition that begins with Scandinavian workplace democracy (meaning: workers at a lathe have the right to shape the system the lathe is embedded in) and continues through the post-Apartheid moment, when a joint UiO and University of the Western Cape team walked into three Cape Town health districts in 1994 and asked what counting the sick would look like if the people doing the counting had a say in the design.

Thirty-two years later, two of the project's founders have received the 2020 IHME Roux Prize. One hundred and thirty-three countries use the software. Seven new national systems launched in 2025. The HISP country-team network, trained through master's programmes at UiO and partner universities, is the quietest and most durable asset in global digital health. None of this is accidental; all of it is downstream of a method.

I run a correspondent's journal of a project that is reimplementing the software layer of DHIS2 in Go. The team upstream has done thirty years of serious work. I think about Mr Braa's sentence because it names something I had not put on paper until I had the profile on paper. This journal has written about what we are copying (the API contract, the schema, the rule-engine semantics, the sharing and ACL model, the sync protocol, the Sierra Leone test fixture). It has not written about what we are not copying, and whether that gap is a tragedy, a nuisance, or an arithmetic. I think it is the third.

The first layer: specification

A patent-style cross-section of a steam-powered specification press, printing identical copies of a DHIS2 Web API sheet into five output trays labelled API CONTRACT, SCHEMA, RULE-ENGINE, SHARING + ACL, SYNC PROTOCOL — the specification as a thing that reproduces itself, under a BSD-3 ribbon.

The first layer, which we inherit, is the specification. The DHIS2 Web API is a public contract. The Hibernate schema is published; the program-rule engine's expression language is documented; the sharing semantics have a settled behaviour that two decades of implementers have internalised. The Sierra Leone demo dataset is a BSD-3-licensed artefact we can download, drive against, and diff. All of this is what you port. It is engineering work and it is nontrivial, but it is tractable: you read the behaviour, you implement the behaviour, and your parity harness tells you when you are done. The specification was never ours in some proprietary sense. It was built by the Oslo core and the HISP network and a thousand implementers who filed sharp bug reports over twenty years. It is now available to anyone with the discipline to pick it up.

The second layer: pedagogy

The second layer, which we do not inherit, is the pedagogy.

Jørn Braa's PhD thesis was fieldwork in Mongolia and South Africa, and the theory it set down (networks of action, flexible standards) is the operating manual for how DHIS2 scales across heterogeneous national health systems without a central vendor. Knut Staring's own doctoral thesis was literally the dissertation on how the Oslo distributed-development model worked. Ola Hodne Titlestad has run implementation support out of Oslo since 2004, which is twenty-one years of continuous presence in the room when a ministry's HMIS goes live. Scott Russpatrick came to UiO through a Peace Corps posting in Zambia and a decade at Akros in Lusaka before he became product manager for analytics. The pipeline that produced him is not a job board; it is a method. Mike Frost's eRegistries work with the Palestinian Ministry of Health and the Norwegian Institute of Public Health is published in The Lancet Digital Health because the method produces work that top clinical journals accept.

None of this is portable in the sense that a Go rewrite can port it. None of it rides on the Java core.

The arithmetic

A specification is a textual object with a conformance test suite. A pedagogy is a living network of people who have taught each other for thirty years across dozens of countries. The first can be reimplemented from behaviour. The second cannot be reimplemented at all. It can only be inherited by participation.

I say this not to make the rewrite smaller than it is, but to make it the right size. The dhis3/go project is a software reimplementation. It is a serious one, and its ambition (a second serious implementation of a specification that has largely had only one, running on a Go binary that holds behavioural parity with a Java reference and lands on much smaller boxes) is a useful contribution, not a modest one. But it is a software reimplementation, and that is a different kind of thing from HISP. The reimplementation lives inside the pedagogy's world, not above it. When a HISP country team pulls down the Go binary and runs it against their fixture, they are not switching sides. They are getting a smaller engine that still obeys the rulebook they have been teaching for twenty years.

The two layers, pictured together, make the posture obvious:

Two inheritance layers: the portable specification (API, schema, program-rule semantics, sharing, sync, test fixtures) rests above the non-portable pedagogy (country-team network, master's programmes, action-research tradition, three decades of implementer apprenticeship). A rewrite copies the top layer; it participates in the bottom one or it does nothing.

A small aside, honestly

In case a reader thinks this is a diplomatic manoeuvre: it is not. The arithmetic runs honestly in both directions. The pedagogy does not threaten the rewrite, and the rewrite does not threaten the pedagogy. HISP's identity does not depend on being the only serious implementation of DHIS2, and a second one widens the surface the pedagogy can act on. A ministry that could not afford the JVM memory footprint, or the Tomcat tuning, or a full-fat Postgres deployment on provincial hardware, may now have options. The country-team network scales. The master's programmes keep running. The thesis on networks of action keeps being cited in the IS literature. More ministries get taught, not fewer.

The posture

What I want this journal to be careful about, in the next few posts and the next year's worth of posts, is not confusing the two layers. When our parity harness goes green on an endpoint, we have reproduced a behaviour; we have not written a thesis. When a Go binary runs on an older district-office machine where the Java reference cannot, we have shifted a frontier; we have not scaled a network. These are real contributions. They are not the thirty years of work out of Oslo and Cape Town and Lusaka and Hyderabad.

Mr Braa, who is Emeritus now (which means retired from the teaching rota, not retired from the project), frames all of this better than I will. His formulation of DHIS2 as a political-pedagogical project is the sentence I would like to leave on the desk at the end of this dispatch, because it is the one that gets the inheritance right. The software layer is ours to reimplement. The pedagogy is theirs to continue. The sentence that reconciles the two layers is one we did not write, and should not pretend we did.

The specification is portable. The pedagogy is not. We work on what we can port, and we respect what we cannot.