Why the app is not available for download
Software that converts a medicine amount can be a medical device. Why the app stays on my phone only, why a warning is not enough and why the brief is a different matter.
Treatment decisions are made by a doctor. This describes building an app, not advice.
I do not give the finished app, the install file (APK) or the code to anyone. It is a personal tool, only on my phone. The brief from which an AI can build a similar app I publish in part twelve. This part is about why there is a difference between the two.
The question came right after the first install
When the app first ran on the phone, the question also came up whether it could be given to others. I had the AI analyse what publishing it would mean. This is not legal advice; it is a summary of what the analysis found and what I based my decision on.
Medical device
Software that converts a medicine amount can fall under the EU Medical Device Regulation. What decides is the declared purpose, that is, what the author offers the app for. For an app on my own phone it does not apply. For an app I make available to everyone, it does.
The analysis estimated that such an app would probably be in a class that requires assessment by a notified body and a quality management system. That means months of work and tens of thousands of euros. Not something for one person with an app built in his spare time.
App stores
The iPhone app store has a rule that allows medicine dose calculators only from the drug maker, a hospital, a university, an insurer, a pharmacy, or with approval from a regulator. An individual is not among them.
Google Play would not take my app for a technical reason as well. The reminders use the system’s exact alarms, and the permission the app uses for that is not accepted by the store for this type of app. The app is built to be installed from my own computer, not for a store. And an iPhone version would be entirely new code.
Why a warning is not enough
The app already shows a notice that it is only a calculator, on first launch and in Settings. But the analysis showed that warnings do not reduce the risk much. If I make the app available to everyone, the declared purpose is defined by what the app does, not only by a sentence on the opening screen. On top of that there is liability when something goes wrong.
If I ever wanted to go further, the first step would not be an app store but an enquiry to the state institute for drug control.
And there is the bug from part five. The app calculated precisely, the tests were green, and it still showed double, because the stored value was wrong. In my case it was caught. With a stranger I would never even know.
What I decided
There were three options:
- keep the app personal, only for my phone,
- a public version without the calculator, only the injection log, reminders and what is left in the pen, with a regulatory adviser before starting,
- a full version through a pharmacy and certification.
I chose the first. The second stayed only written down in the ideas list, undecided. After the analysis I closed the project as finished and personal. The same rule applies to this blog: no app to download, no install file and no code.
Why the brief is different
An app I give to others is a product. I am responsible for it, including when something goes wrong, and it can fall under the rules for medical devices. A brief is different: from it, everyone builds the app themselves, for themselves and at their own risk.
The brief has no name of a medicine or pen and no values of a real pen. The examples in it are made up. Everyone enters the pen values themselves, and a doctor or pharmacist has to confirm them. The brief, including the formula the app uses with the values the user enters, is in part twelve.
What it cost
Time: the first version from idea to install on the phone in one day. Improvements from version 0.2 to 0.5 in one evening a week later.
Money: Android Studio is free. Claude Code runs as part of a Claude subscription.
What next
Three things are left in the ideas list for the app: a calendar in the history with dots for injections, a home screen widget with what is left in the pen and the date of the next injection, and an iPhone version, which would be new code. None of them is decided.
What I take away
You will not find my app or my numbers here. Anyone in a similar situation with a pen has to start with a doctor or pharmacist, not with an app.
What carries over to any app is the process:
- one sentence of the problem and a limit on what the app does not do, before any code,
- a brief with a goal, constraints, what not to do and a definition of done that can be run,
- tests for everything that calculates, and a rule that the meaning of a calculation is never changed to make a test pass,
- checking on a real device after every version,
- every decision written down with its reason.
I show the whole process, including the brief, first on a different app that calculates nothing about medicines. Then comes the brief for the pen calculator (part twelve) and how an AI built the app from it (part thirteen). And the story that is the reason the app exists at all.