← Reference system

What this is

Why the reference system exists, and what it is trying not to become.

Building a reference system is not the hard part. Keeping one alive is.

The problem

Setting up a realistic Open mSupply system takes real work, and four different jobs keep needing one:

Datasets like this have been built before, here and elsewhere. Keeping one current as the product moves on is the part that has proved difficult.

What is actually being built

A reference system that is still trusted and still in use in five years, achieved by getting the process right rather than the dataset alone. The dataset is the well-understood part. The harder problem is making it survive new releases, new master data and the passage of time.

So the design target is a specific one: the dates roll forward on their own, the database rebuilds from its source rather than by hand, and keeping it current is a scheduled job rather than something somebody has to remember.

Who it is for

Demos, training, and testing pull in different directions. A demo wants a polished dataset; training wants deliberate rough edges to work through; testing wants something frozen and predictable. One database will not satisfy all three, so the first one is built for client demos in English, and the others follow once the process is proven.

What you can do with it today

Open the live instance and look around; request a private copy to write into; or download the database and run it yourself. All three serve the same release, and the live one is reset every night so whatever the last person did to it is gone by morning.

21stores, five levels deep
170items in the catalogue
37months of history
458,209transactions behind it

What is in it

Everything the dataset covers, counted from the database itself, and the things it deliberately does not.

33 things covered5 deliberately not

The country

Where the stock moves, and what it moves through.

143Health facilities
21Stores, five levels deep
246Storage locations
43Cold chain equipment
61Temperature sensors
49Suppliers

The catalogue

What can be ordered, held and issued.

170Items
374Item variants, by manufacturer
24Master lists
10Programmes
9Vaccine courses
2VVM stages
4Population groups for forecasting
102Reporting periods

Moving stock

Three years of it, between every level of the chain.

760Internal orders raised
2,242Orders received by a supplying store
2,223Outbound shipments
913Inbound shipments
193Purchase orders to outside suppliers
883,043Shipment lines

Counting stock

What is on the shelf, and how it got to be that number.

55,725Stock lines on hand
770Stocktakes
4,875Inventory adjustments

Patients and dispensing

At the facilities that dispense, not the warehouses.

98,905Registered patients
27Prescribers
450,185Prescriptions dispensed
50,711Programme enrolments
236,847Programme encounters

Immunisation

Doses recorded against the child who received them.

393,533Doses on a vaccination card
41,142Children with a card

Cold chain

Six months of monitoring behind the current readings.

131,827Temperature readings
177Temperature breaches
4Breaches still unacknowledged

Not included

Listed because a demo is more useful when its edges are known.

Returns to a supplier
The chain only runs one way in this dataset. Returning expired or damaged stock back up it is a real part of the work and is not built yet.
Returns from a customer
The other half of the same gap.
Programme requisitions
Ordinary internal orders carry the whole three years. The programme variant, with its own order types and periods, is configured but nothing has been raised through it.
R&R forms
Needs programme requisitions behind it.
Records waiting to sync
This is a single central server with nothing to sync to. Stock still moves between stores; it simply all happens in one place.
Read the full document: Project overview →What the reference system is, who it is for, and every decision behind it.
Making it relevantHow the contents were decided — and why relevance is the easiest thing to fake.Making it reproducibleHow the database is built, and how two people get the same one.