Duplicate Medicine Detection — Stop Double-Entries in Your Medicine Cabinet
You pick up another box of ibuprofen at the pharmacy. You get home, scan it into the app — and discover it is the third package in the cabinet. The other two were hiding behind the vitamins, forgotten since last winter.
Sound familiar? This is one of the most common problems with home medicine management: we buy what we think we are out of, because we have no clear picture of what we already have. The result is duplicate entries, inflated stock counts, and a false sense of organisation that masks the real mess underneath.
That is why mojApteczka includes intelligent duplicate medicine detection — a feature that recognises when the medicine you are scanning already exists in your cabinet, and instead of silently creating another entry, asks: do you want to restock?
Why Duplicate Entries in Your Medicine Cabinet Actually Matter
You buy what you already have
The average household keeps between 15 and 30 different medicines at home. Without a reliable inventory, it is easy to buy the same item two or even three times. Studies suggest that 30–40% of medicines in home cabinets are either expired or surplus — bought without awareness that an identical or very similar product was already on the shelf.
Inaccurate stock awareness
When two separate entries exist for the same medicine, you might believe you have 10 ibuprofen 200 mg tablets when you actually have two packs of five, registered separately. Low stock alerts are based on actual inventory figures — so duplicate entries reduce their accuracy and may trigger false alerts or, worse, hide genuine shortages.
The family cabinet problem
In a shared household where different family members add medicines independently, duplicates multiply fast. Dad scans a new pack of paracetamol. The next day, Mum scans her purchase — same medicine, different packaging. Without a detection mechanism, the cabinet quickly accumulates dozens of entries, each technically “real” but collectively unmanageable.
How Duplicate Detection Works in mojApteczka
When it triggers: immediately after scanning
The feature activates automatically the moment you scan a medicine package with your phone camera. AI recognition reads the package data — name, dosage, pharmaceutical form, and EAN barcode — and the app immediately checks whether a matching entry already exists in the current cabinet.
If there is no match, the medicine is added normally. If a match is found, you see a prompt asking for your decision.
Three-layer matching
The duplicate detection engine checks for a match at three levels:
- EAN barcode — the most precise identifier. Same barcode = same product, with no ambiguity.
- Dosage + pharmaceutical form — ibuprofen 200 mg tablets is different from ibuprofen 400 mg tablets and from ibuprofen 200 mg capsules.
- Medicine name — including spelling variants and alternative trade names. “Nurofen” and “ibuprofen” share the same active ingredient, and the app understands that.
A single match at any level is enough to show the duplicate prompt.
Two paths forward
When a duplicate is detected, the app does not make the decision for you — it presents two options:
| Option | When to choose it | What happens |
|---|---|---|
| Restock | You bought another pack of the same medicine | The quantity is added to the existing entry; only one entry remains |
| Add as new entry | The new pack has a different expiry date | A new, separate entry is created — you track expiry dates independently |
The choice is yours. The app simply flags that this moment requires a decision.
Real-Life Scenarios
Scenario 1: The weekly pharmacy run
Sarah manages the medicine cabinet for a family with three children. On Friday she picks up a new bottle of children’s ibuprofen syrup — the same product already in the cabinet, but from a new batch with a later expiry date. She scans the bottle. The app detects a duplicate and asks: restock or add new?
Sarah checks the dates: the old bottle expires in March, the new one in November. She chooses “Add as new entry” — she wants to know which bottle runs out first so she can use it as a priority. Two entries, two different expiry dates, no confusion.
Scenario 2: Two people buying the same thing
Mark leaves for the pharmacy on Wednesday and buys ibuprofen 400 mg. He does not check the app first. That same day, his partner returns from a different pharmacy — with the same medicine. They both scan their purchases.
His partner scans first. Mark scans a moment later — the app immediately detects a duplicate. Instead of two entries of ten tablets each, Mark chooses “Restock” — and they have one entry with 20 tablets, everything in one place.
Scenario 3: Getting a chaotic cabinet under control
James has been putting off scanning his medicine cabinet for months. He finally sets aside a Saturday morning — scanning packages one by one. On the fourth medicine, the app detects a duplicate: two packs of the same painkiller, bought months apart. Both have the same EAN code. James chooses “Restock” — they merge into one entry with the combined quantity.
In an hour, a cabinet with 35 entries (12 of which are duplicates) becomes 23 clean, unique records.
Duplicate Detection and Other mojApteczka Features
Duplicate detection does not operate in isolation — it is part of a broader ecosystem of features that work together.
Connection with medicine grouping
Medicine grouping lets you assign entries to specific people or cabinets. Duplicate detection works within the current cabinet — if the same medicine appears in both your “Bathroom” cabinet and your “Travel kit” cabinet, the app does not flag it as a duplicate, because those are two separate usage contexts.
Connection with low stock alerts
When you choose to restock an existing entry, low stock alerts automatically reflect the new total. If you previously had 3 tablets and added 10, the app removes the low stock alert — because you now have 13.
Connection with medicine substitutes
If the app detects that the medicine you are scanning contains the same active ingredient as an existing entry but under a different brand name, the system may suggest linking it to the existing entry or show medicine substitutes — because it is the same therapy, different manufacturer.
Connection with the shared cabinet
When a cabinet is shared among several family members, duplicate detection works across all users together. Regardless of who scans a new medicine, the app checks the full shared inventory and flags any match.
Why This Matters for Household Budgets
Over-purchasing medicines is a real and measurable cost. Households that lack an accurate medicine inventory consistently report buying duplicates, discovering expired medicines that were purchased to replace items that were not actually gone, and maintaining parallel stocks across different rooms.
Duplicate detection is not just an organisational feature — it translates directly into savings. Every merge instead of a duplicate entry is potentially a package you will not buy unnecessarily.
The calculation is simple: if a household avoids even one unnecessary medicine purchase per month, that is a saving of £3–£15 per purchase depending on the product. Over a year, this adds up to a meaningful amount — and for families managing chronic conditions with multiple regular prescriptions, the effect compounds.
Availability and Roadmap
Duplicate detection is currently available on Android only in the mojApteczka app. The feature is tied to the camera scanning engine, which is why it runs on mobile devices with a camera.
Planned expansion:
- iOS version — in development
- Web panel — manual medicine entry with duplicate suggestion based on name and dosage
If you use the Android app, the feature is already active with no setup required — it triggers automatically on every scan.
Getting Started
If you are not yet using mojApteczka, here is how to get started and take advantage of duplicate detection straight away:
- Download the app from Google Play or open mojapteczka.pl in your browser.
- Create a free account — no credit card required.
- Start scanning medicines with your Android phone camera.
- Every time a scan matches an existing entry, the app will ask what to do.
If you already have an account with a backlog of unscanned medicines — scan your cabinet from scratch. You may be surprised how many duplicates are waiting to be merged.
Related mojApteczka features: AI Recognition · Medicine Grouping · Low Stock Alerts · Shared Cabinet · Medicine Substitutes
Questions about duplicate detection or medicine management? Write to us at kontakt@mojapteczka.pl — we are happy to help!