Medication Tracker

How the app works

Back to project README

This page explains the thinking behind what the app shows you: how it picks a refill date, why it keeps a small backup, how it guesses what your insurance will allow, and what it keeps private. It is for families who want to trust the dates they see, and for anyone curious about the rules. The user guide shows the screens, and Words to know explains the terms.

What the app is for

Families who manage several long-term medicines face the same problems again and again. Medicines run out at awkward times. The insurance plan refuses a refill that is “too soon”. A prescription runs out of refills right when you need it. And an insurance approval ends without warning.

Medication Tracker keeps a record of every fill and works out what comes next. It aims for a middle path: refill early enough to keep a few days of medicine on hand, but not so early that the plan refuses to pay or the medicine piles up at home.

The two dates on every medicine

For each medicine, the app works out two dates from the fills you recorded.

Lasts until is the day your recorded medicine would run out. Each fill adds its days supply. If you refill early, the new supply starts when the old one ends, so early fills add up. If you refill late, the days in between are lost. The app doesn’t assume you had medicine you never recorded.

Next fill date is the day the app suggests you refill. It is worked out in two steps:

  1. Keep a backup. The app counts back from “lasts until” to leave a backup supply. The backup is 15 percent of the last fill’s days supply, but never less than 7 days, or 10 days for a specialty medicine. Specialty medicines often come by mail and take longer.
  2. Wait for the plan. If your plan wouldn’t pay yet on that day, the app moves the date later, to the first day it expects the plan to pay.

So the next fill date is never before your plan will pay, and it never asks you to refill while you still have much more than the backup.

An example

Say you picked up a 90-day supply on August 25, and you still had some medicine left from earlier fills. Your recorded medicine now lasts until December 28.

From December 12 the refill shows as due, 3 days ahead. Once December 15 has passed, the row reads “Fill now. Runs out in 12 days”, and it counts down. It only becomes overdue after December 28, when the medicine is gone.

How the app estimates your insurance rules

Most plans pay for a refill only once most of the last fill is used. The app copies the way plans usually count:

You can change these numbers for each plan, or for the whole household, in Setup. Set the early fill percent to 0 for cash or over-the-counter purchases. The app then waits until the medicine runs out.

These dates are estimates. Your plan’s real rules may differ, and a pharmacy may still refuse a claim. When a refill is refused, write down the date your pharmacy gives you, and adjust the plan’s numbers if it keeps happening.

Controlled medicines follow stricter rules, because the law limits how early they can be filled. The app counts every fill, whoever paid, with no time window. By default it allows no days early.

There is no reset on January 1. The time window carries the history from one year into the next.

Reminders and the Refills page

Only medicines with the status Taking regularly raise refill reminders. Medicines taken as needed, on hold or not started still show their dates, but quietly, further down the page.

A new fill can bring a medicine back. If the medicine was Not started or No longer taking, and the fill still lasts today, its status becomes Taking regularly. An old fill, added for the record, changes nothing.

Status on the Refills page When
Overdue The recorded medicine has run out.
Due The next fill date is 3 days away or fewer, or has passed. For a specialty medicine, 5 days.
Due soon The next fill date is 4 to 7 days away. For a specialty medicine, 6 to 10.
Not due The next fill date is further away.

The page also lists two kinds of paperwork that take time:

If a fill has no days supply, the app counts it as one day so it can still show a date. The medicine stays under Missing information until you add the number.

Medicines and their names

One medicine can have many names. A label may print the brand, a bill the generic name, and your family may use a nickname. The app keeps one catalog entry for each product, with any number of other names.

When you search, the app compares what you typed with every name, ignoring capital letters and punctuation. If nothing matches exactly, it offers close names under Did you mean one of these? It never picks a close match by itself. Some different medicines have names that look alike, and a wrong guess could be dangerous.

When you copy fills from a portal, the app picks a medicine for you only in two cases. It picks one when it has seen that exact name before. It also picks one when the portal’s name starts with the brand or generic name of exactly one product and includes its exact strength. Even then, the review page shows the choice before anything is saved.

Where the catalog comes from

The app comes with about 2,850 common products, plus 619 other names for them. They include:

The strengths, forms and brand names come from RxTerms, a public list of the United States National Library of Medicine. The catalog also suggests which products are specialty or controlled. Plans differ, so check these marks and change them if your plan says otherwise.

The catalog names products. It is not medical advice, and it says nothing about doses. Some brand names in it are no longer sold. They stay because older labels still use them. Always check the label in your hand.

When a medicine isn’t in the catalog, the app can look it up online, in your browser. It asks three public references in turn and stops at the first that answers: RxTerms, the openFDA product list of the Food and Drug Administration, and RxNorm. You pick one result, check what it filled in, and save. Nothing is added until you save.

Your privacy

Where your records live. Everything you type stays on the computer that runs Privatium, as plain text files. There is no account and no cloud service. To back up the app, you copy a folder.

What leaves your computer. Only one thing: when you search the online drug references, your browser sends the name you typed in the search box to those public services. It sends no person’s name, no record and no cookie. The services may see your internet address. If you never use the online search, nothing leaves your computer.

What you should protect. Privatium doesn’t encrypt its files. Anyone who can open them can read your family’s medicines. So:

What removing does. Removing a record hides it in the app. Privatium keeps the original line in its history on your computer. To destroy the records for good, delete Privatium’s data folder and every copy of it.

Using more than one device. If two devices change the same record before they connect, one of the two changes is kept.

This app makes no claim to meet any health privacy law. The compliance page lists what has been checked and what hasn’t.

Conclusion

You now know how the app picks its dates, why it keeps a backup, how it treats insurance rules as estimates, and what stays private. The user guide puts this to work, screen by screen.

Additional resources

Back to project README


Copyright © 2026 Gabriel Mongefranco