CorrectMED AI
How CorrectMED AI is measured
Five groups of evidence, kept apart because each one measures something different. Every group says how many documents or runs it covers, what it measures and what it says nothing about. Generated notes are labelled as generated, and the real documents are few.
The reader
Everything CorrectMED reads goes through the CorrectMED AI reader cm-reader-1. It copies printed values, marks each one clear, unclear or absent, and boxes where it came from. Fixed rules, not AI, compare the values, and people decide.
The exact model version is given to reviewers on request.
How it's measured
- Generated delivery notes. Our generator draws delivery notes with fictional suppliers and generic products, and writes down every printed value and where it sits on the page before CorrectMED AI sees the image. Some fields are made unreadable on purpose: cut off, faded or smudged. The scored notes use layouts and fonts that were never used while tuning, and 17 of the 30 get a phone photo look (a slight turn, blur and shading). They're generated fictional notes, not photos of real deliveries.
- Real documents. One real itemised receipt and four real pack photos, bought over the counter in Abuja, were read once each. Two people read the printed originals without seeing the app's answers, and the app's values were scored against them field by field. Fields the print cannot settle are left out of the counts and listed.
- Alert matching rules. Rule tests, not accuracy: lines built from real NAFDAC alert rows, each with the outcome the rules must give, and random lines with no connection to any alert are checked against the alert index, counting matches the rules should never make. No AI is involved.
What's counted
- Readable fields copied exactly, character for character.
- Unreadable fields wrongly marked clear. This is the number that matters most: a value marked clear reaches the rules.
- Lines missed, merged into another line, or read when they aren't on the page.
- Source boxes on the right text, and how much they overlap the true box.
- Time per read, as the median and the 95th percentile.
Counts come first, as k of n. Where a rate means something it shows the range we can be 95% sure of, so you can see how little a small sample can tell you. Groups with only a handful of documents show counts and no rate.
Five groups of evidence
Each group measures one thing. A number from one group is never added to another group's, and a count of correct fields never hides a wrong value that was marked clear. In each document group, wrong values marked clear come first, then the critical fields one by one, then the blank and easy fields apart.
The five critical fields are product, strength, batch, expiry, quantity. A field a document does not print is shown as not tested, never as read right.
| Group | Source | How many |
|---|---|---|
| 1. Reading of generated delivery notes | SourceGenerated | How many30 notes, 300 lines, 2,400 fields |
| 2. Reading of a real itemised receipt | SourceReal | How many1 receipt, 3 lines, 24 scored fields |
| 3. Reading of real medicine packs | SourceReal | How many4 photos, 3 products, 54 scored fields |
| 4. NAFDAC alert matching rules | SourceRule tests | How many121 rule tests, 260 lines (60 built, 200 random) |
| 5. Whole receiving checks, sign up to decision | SourceWorkflow runs | How many6 on the local test build, 0 on the hosted app |
1. Generated delivery notes
- Source
- Generated: fictional notes drawn by our own generator
- How many
- 30 notes, 300 lines, 2,400 fields
- What it measures
- Reading of printed notes in known layouts
- Not a claim about
- Real deliveries, handwriting or crumpled paper
Says nothing about: Real deliveries. These notes are fictional, printed in known layouts and never handwritten or crumpled. The numbers show how reading behaves on that kind of note and nothing wider.
Each of the 30 notes was read once the way the app reads a note, one at a time, with settings fixed before the run. The notes use layouts and fonts never used while tuning. 17 of the 30 have a phone photo look (a slight turn, blur and shading).
Wrong values marked clear, first
On readable fields: 1 of 2,238 values marked clear was wrong. A quantity of 41 was read as 40 and marked clear. It is the one value in the run that reaches the rules wrong.
On fields made unreadable on purpose: 0 of 120 was marked clear. That is 40 cut off, 40 faded and 40 smudged, none marked clear (range we can be 95% sure of: 0% to 3.1%).
The five critical fields, one by one
| Field | Printed and readable | Copied right | Wrong, marked clear | Marked unclear |
|---|---|---|---|---|
| Product | Printed and readable291 | Copied right291 | Wrong, marked clear0 | Marked unclear0 |
| Strength | Printed and readable285 | Copied right285 | Wrong, marked clear0 | Marked unclear0 |
| Batch | Printed and readable255 | Copied right255 | Wrong, marked clear0 | Marked unclear0 |
| Expiry | Printed and readable256 | Copied right256 | Wrong, marked clear0 | Marked unclear0 |
| Quantity | Printed and readable276 | Copied right274 | Wrong, marked clear1 | Marked unclear1 |
| Field | Faded but legible | Copied and clear | Marked unclear | Made unreadable | Marked clear |
|---|---|---|---|---|---|
| Product | Faded but legible0 | Copied and clear0 | Marked unclear0 | Made unreadable9 | Marked clear0 |
| Strength | Faded but legible2 | Copied and clear0 | Marked unclear2 | Made unreadable13 | Marked clear0 |
| Batch | Faded but legible5 | Copied and clear5 | Marked unclear0 | Made unreadable32 | Marked clear0 |
| Expiry | Faded but legible11 | Copied and clear5 | Marked unclear6 | Made unreadable30 | Marked clear0 |
| Quantity | Faded but legible7 | Copied and clear2 | Marked unclear5 | Made unreadable17 | Marked clear0 |
A field the note does not print is never counted as read right. The faded fields are the weak spot: only 16 of 30 faded but legible fields were copied and marked clear, and the rest were marked unclear, none read wrong.
Blank cells and easy fields, apart
- Blank cells marked blank: 27 of 27. None was filled in.
- Supplier, note number and date copied exactly: 84 of 90. On 6 notes the note number was copied without its "No." prefix. These fields are not used by the rules.
- Lines missed: 0 of 300. Lines merged: 0 of 300. Lines read that are not on the page: 0.
Generated
Generated delivery notes
30 generated fictional delivery notes, not photos of real deliveries, in layouts and fonts never used while tuning, each read once the way the app reads a note, with the settings fixed first. 120 fields were made unreadable on purpose (40 cut off, 40 faded, 40 smudged), 30 were faded but still legible and 27 cells were left blank. The box drawn around each value matched the true box by 0.83 on average (1 would be a perfect match).
- Readable fields copied exactly
- 2,220 of 2,223 (99.8%)95% range 99.6% to 100.0%
- Unreadable fields wrongly marked clear
- 0 of 120 (0%)95% range 0% to 3.1%
- Lines missed
- 0 of 300 (0%)95% range 0% to 1.3%
- Lines merged into another line
- 0 of 300 (0%)95% range 0% to 1.3%
- Lines read that aren't on the page
- 0 of 300 (0%)95% range 0% to 1.3%
- Source boxes centred on the right text
- 2,253 of 2,253 (100%)95% range 99.8% to 100.0%
- Values the rules parse the same as the printed value
- 2,221 of 2,222 (99.9%)95% range 99.7% to 100.0%
- Blank cells marked absent
- 27 of 27 (100%)95% range 87.5% to 100%
- Faded but legible fields copied and marked clear
- 16 of 30 (53.3%)95% range 36.1% to 69.8%
- Supplier, note number and date copied exactly
- 84 of 90 (93.3%)95% range 86.2% to 96.9%
- Seconds per read
- median 16.0, 95th percentile 20.5
Failures in this run
- One quantity was read as 40 where the note printed 41, and marked clear. It's the one value in the run that reaches the rules wrong; the staff count is compared against it.
- One quantity, 4, was read correctly but marked unclear, so it shows as Could not read.
- One pack size printed as "1 X 6" was copied as "1X6". The rules read the same pack size, but it isn't an exact copy.
- 14 of the 30 faded but legible fields were marked unclear: 13 with the right value beside them and 1 left empty. None was read wrong.
- On 6 notes the note number was copied without its "No." prefix.
- A second reader started on 26 of 30 reads, because the first answer took longer than 12 seconds. The first reader still answered first every time, so no read failed and none ran past 21 seconds.
2. A real itemised receipt
- Source
- Real: one itemised receipt from a pharmacy purchase in Abuja
- How many
- 1 receipt, 3 lines, 24 scored fields
- What it measures
- Reading of a real printed receipt, checked against the paper by two blind readings
- Not a claim about
- Delivery notes in general
Says nothing about: Delivery notes in general. This is one receipt, three lines, redacted for publication (store, date and supplier are covered and were not scored). It is a retail sales receipt, not a supplier delivery note, and it prints no strength, batch or expiry, so it cannot test those fields.
Wrong values marked clear, first
0 of 8 scored values marked clear was wrong. All 8 scored values marked clear matched the print. Two more values marked clear are left out because the print cannot settle them: the document type (the slip is a sales receipt that also prints the words Invoice Amount) and the pack size "*2" on the Zolat line.
This is one receipt: it shows the reading works on this one, and it cannot show a rate.
The five critical fields, one by one
| Field | Printed | Read right | Wrong, marked clear | Result |
|---|---|---|---|---|
| Product | Printed3 | Read right3 | Wrong, marked clear0 | ResultTested |
| Strength | Printed0 | Read right0 | Wrong, marked clear0 | ResultNot tested |
| Batch | Printed0 | Read right0 | Wrong, marked clear0 | ResultNot tested |
| Expiry | Printed0 | Read right0 | Wrong, marked clear0 | ResultNot tested |
| Quantity | Printed3 | Read right3 | Wrong, marked clear0 | ResultTested |
- Product. Every character matched. The print is partly faded or clipped on all three, yet each was marked clear.
- Strength. The receipt prints none of this, so this field is not tested here. The blank answers are correct but are not counted as correct readings.
- Batch. The receipt prints none of this, so this field is not tested here. The blank answers are correct but are not counted as correct readings.
- Expiry. The receipt prints none of this, so this field is not tested here. The blank answers are correct but are not counted as correct readings.
Blank fields and easy fields, apart
- Correctly left blank: 16 fields, none invented. They are not counted as correct readings, and a field the receipt does not print is listed as not tested.
- Receipt number copied exactly: 1 of 1.
- Read exactly: 8. Wrong or unclear: 0. Left out of the counts because the print cannot settle them: 2.
3. Real medicine packs
- Source
- Real: photos of packs bought over the counter in Abuja
- How many
- 4 photos, 3 products, 54 scored fields
- What it measures
- Reading of real packs against the printed originals
- Not a claim about
- Packs in general
Says nothing about: Packs in general. This is four photos of three products bought over the counter in Abuja. A fifth photo, a magnesium bottle, was never uploaded and is not scored. The Oral-B carton is toothpaste, not a medicine.
Wrong values marked clear, first
3 of 32 values marked clear were wrong. None of the three is a product, strength, batch or expiry. They are form, barcode and manufacturer fields, which is why they are listed first and separately.
- Form (Emzor ParaNight, side panel): printed Caplet, read capsule. The app's list of forms had no caplet entry, and it chose capsule.
- Barcode (Emzor ParaNight, side panel): printed 6154000034092, read 6134000034092. One digit wrong. The read barcode fails its own check digit, which the print passes.
- Manufacturer (Emzor ParaNight, front): printed No manufacturer statement, only the Emzor brand logo, read Emzor. The brand logo was taken as an explicit manufacturer.
The five critical fields, one by one
| Field | Printed | Read right | Wrong, marked clear | Wrong, marked unclear | Left out |
|---|---|---|---|---|---|
| Product (brand name and active ingredient names) | Printed7 | Read right6 | Wrong, marked clear0 | Wrong, marked unclear1 | Left out0 |
| Strength | Printed6 | Read right6 | Wrong, marked clear0 | Wrong, marked unclear0 | Left out0 |
| Batch | Printed1 | Read right0 | Wrong, marked clear0 | Wrong, marked unclear1 | Left out0 |
| Expiry | Printed1 | Read right0 | Wrong, marked clear0 | Wrong, marked unclear0 | Left out1 |
| Quantity | PrintedNot tested | Read right | Wrong, marked clear | Wrong, marked unclear | Left out |
- Product. One brand name and six active ingredient names are printed on the four faces. The unclear one is the first active name on the Emzor side panel, which the photo edge cuts off after two letters: the app marked it unclear and gave no text.
- Strength. Six strengths printed, all copied exactly.
- Batch. Only the Emzor front prints a batch, embossed. It came back as 846F, marked unclear. The first character is a single ring (0, O or Q), not an 8, so the text is wrong, but it was marked unclear and never clear.
- Expiry. Only the Emzor front prints an expiry, embossed and partly legible. The two blind readings could not settle it, so it is left out of the counts. The app marked it unclear.
- Quantity. Packs do not print a delivered quantity. Quantity is tested on the receipt group only.
Other fields, apart
| Field | Printed | Read right | Wrong, marked clear | Invented |
|---|---|---|---|---|
| Form (tablet, caplet and so on) | Printed4 | Read right3 | Wrong, marked clear1 | Invented0 |
| Barcode | Printed3 | Read right2 | Wrong, marked clear1 | Invented0 |
| Registration number (NRN) | Printed2 | Read right2 | Wrong, marked clear0 | Invented0 |
| Manufacturer | Printed1 | Read right1 | Wrong, marked clear0 | Invented1 |
| Pack size | Printed1 | Read right1 | Wrong, marked clear0 | Invented0 |
| Is a pack, and which face | Printed8 | Read right8 | Wrong, marked clear0 | Invented0 |
Blank fields, apart
20 fields were correctly left blank, and 1 was invented where nothing is printed: the brand logo taken as a maker. Totals: 29 read exactly, 2 wrong and marked clear, 1 invented and marked clear, 2 wrong but marked unclear, 2 left out of the counts (the embossed manufacture date and the embossed expiry on the Emzor front).
Failures in this run
- Form read as capsule where the carton says Caplet, marked clear.
- A barcode digit read as 3 where the print has 5, marked clear.
- The Emzor brand logo taken as an explicit manufacturer, marked clear.
- Embossed batch read as 846F where the first character is a ring, marked unclear.
- The Emzor embossed batch, manufacture date and expiry were all marked unclear, so that line stays Unable to assess.
After the real packs: fixes and a second read
CorrectMED AI read each photo once more with the current prompts, one read per photo, nothing cached. The values were then compared by eye with the full size photos, field by field. The first-run record in the case study is unchanged and is the before.
- Photos the fixes were made on
- 5 photos, 78 fields scored, 1 read each. These are the photos the fixes were made on.
- Kept apart
- 1 photo, 12 fields scored, 1 read. Never read while the fixes were made.
The sample is small
Five photos and one more is far too few to give a rate. These numbers show what changed on the photos that failed, and they do not show how often reading is right.
| Before (first run) | After (read again) | |
|---|---|---|
| Read exactly | Before (first run)37 | After (read again)37 |
| Correctly absent | Before (first run)36 | After (read again)37 |
| Marked clear but wrong | Before (first run)2 | After (read again)1 |
| Marked unclear and wrong | Before (first run)2 | After (read again)0 |
| Marked unclear, nothing guessed | Before (first run)0 | After (read again)1 |
| Marked unclear, right | Before (first run)0 | After (read again)1 |
| Printed but missed | Before (first run)0 | After (read again)1 |
| Invented where nothing is printed | Before (first run)1 | After (read again)0 |
After: 37 exact, 37 correctly absent, 1 misread, 1 missed, 1 unclear, nothing guessed, 1 unclear, right. The one value still clear but wrong is the Oral-B toothpaste strength, which came back as “1100 ppm” with the printed word Fluoride left off. The Oral-B form also came back blank. Neither was a target of a fix, so they read as differences from one run to the next on the same photo.
What each fix did on its own photo
- caplet kept as its own form. pack-emzor-side: before, capsule, clear. After, caplet, clear.
- a logo or brand is not a manufacturer. pack-emzor-front: before, Emzor, clear. After, no manufacturer; recorded as brand only.
- embossed batch is not a trusted fact. pack-emzor-front: before, 846F, unclear. After, unclear, no value; the check treats it as unresolved.
- a barcode that fails its check digit is never clear. pack-emzor-side: before, 6134000034092, clear. After, the read now gives 6154000034092, which adds up; the fix is shown on the recorded first run below. The live read no longer makes the mistake, so the gate was not exercised by it. It is tested on the first run's recorded number.
The barcode fix was checked by running the first run’s recorded number through the check: 6134000034092 is marked unclear, reason: check digit doesn't add up.
One photo kept apart
A magnesium supplement bottle, back label, never read while the fixes were developed. 7 fields read exactly and 5 correctly blank, with 0 clear but wrong, out of 12 scored. One more field was a judgement and is not counted. This is one photo with no caplet, no embossed print and no logo only brand, so it does not test those fixes.
What else the run showed
- Answers differ from run to run, even at the same settings on the same photo. Between the first run and this one, the Oral-B strength lost the word Fluoride and the Oral-B form came back absent; neither is something the fixes target.
- A first draft of the pack prompt asked for the form only from an English form word. On the development photos it left the French word for tablet unread, so the final prompt names forms in any language. The note prompt had a similar first draft that split CAPLET out of a product name, and the final one keeps the product text whole. The held-out photo was first read with the first draft of the pack prompt (it returned the same values) and is scored only from the final read.
- Several reads ran past the time limit and were tried again, one photo needing five tries before a read came back. That is service speed, not reading quality, and the app's Try again covers it. Every read that came back is scored.
- Two of the six final reads (the Zolat back panel and the Emzor side panel) were answered by a second reader after the first one was too slow; they are scored the same as the others.
4. Alert matching rule tests
- Source
- Rule tests on constructed lines and real NAFDAC rows. No AI is involved.
- How many
- 121 tests in 9 files, all passing; 260 lines (60 built, 200 random)
- What it measures
- That the matching rules give the outcome they must
- Not a claim about
- How often a real delivery meets a real alert
Says nothing about: How often a real delivery meets a real alert, or how many NAFDAC notices exist. The tests use constructed lines and a few real notices. No AI is involved in the rules. Whether the live NAFDAC copy is complete is shown by the status list, not by this group.
Exact matches that are not exact, first
0 of 260 lines got an exact match they should not have. 60 of 60 built lines got the outcome they were built for. These are rule tests, not accuracy.
Rule tests
Alert matching rules (rule tests, not accuracy)
260 lines checked against an index of 360 NAFDAC alert rows: 60 built from real rows, each with the outcome the rules must give (an exact copy, a look alike or one character batch change, another product, another strength, no batch, an unrelated batch), and 200 random lines from the sample generator with no connection to any alert. For this test every row counts as reviewed, so the exact match rules are exercised; in the app a row gives an exact match only once a person has reviewed it. No AI is involved.
- Exact matches the rules should never make
- 0 of 260 (0%)95% range 0% to 1.5%
- Built lines given the outcome they were built for
- 60 of 60 (100%)95% range 94.0% to 100.0%
- Exact copies of an alert row given an exact match
- 9 of 9 (100%)95% range 70.1% to 100%
- Random lines given an uncertain match
- 0 of 200 (0%)95% range 0% to 1.9%
The 121 tests, by file
src/lib/receiving/__tests__/alerts-match.test.ts (28 tests)
- Status outcomes for the constructed 042/2026 line: an exact match on a reviewed row, uncertain on a look alike batch (letter O for zero), uncertain against an unreviewed row, no match on another product, check incomplete with one notice waiting, check unavailable after 37 hours (36 hours is still fresh), and an earlier match standing when the copy goes stale (7)
- Rows that never match: rejected, retired and non medicine rows, and rows sharing no product word (1)
- Notices that cover all batches: exact on the same NAFDAC number and product when reviewed, uncertain when not or with no number to compare, no match on a different number, strength or partial product (3)
- Notices that name batches: exact on an equal batch, product and strength; uncertain on a different or unreadable strength, a folded batch, one character off, or an unclear or missing batch; foreign recalls labelled as such (5)
- Alert helpers: look alike character folding, index keys, ordering, freshness, check status order and the panel wording (6)
- Dosage forms: a tablet line never meets an all batches notice on the dry powder suspension, an equal batch on a different form is uncertain, loose forms rule nothing out (6)
src/lib/server/alerts/text-check.test.ts (30 tests)
- The automatic text check on the archived 042/2026 notice: a row passes only when product, strength, batch and NAFDAC number appear word for word, fails closed without the notice's rows, and never passes a look alike batch (6)
- Normalising: strength spacing, case, width and dash variants, never inside a longer word or number (3)
- A batch must be labelled as a batch or lot, so a phone number, year, postcode or date never counts; checked on real single product notices (3)
- Rows without batches pass only when the notice says all batches and the NAFDAC number is in the text (4)
- Notices naming several products: each row passes with its own batch and strength, a batch beside the other product fails, shared names tie to neither, real notices with two strengths cannot swap batches (8)
- Notices about original stock and comparison tables wait for a person instead of passing (4)
- Whole notice rules: a notice that withdraws an alert fails every row, and a row about a recall outside Nigeria waits for a person (2)
src/lib/server/alerts/alerts.test.ts (16 tests)
- The daily run: cron route refuses calls without the secret, sets the last complete update, finishes a burst of 10 notices inside its budget, stops starting reads before the budget at the slowest read speed (4)
- The daily smoke read and the status probes (2)
- Matching the constructed line through the whole path: uncertain until a person approves, incomplete with one notice waiting, unavailable at 37 hours, and the coverage note in the panel (3)
- The notice lifecycle: three failures mark a notice failed and the check incomplete, a changed notice goes back to waiting to be read and unreviewed, an unchanged one keeps its review, non medicine and foreign scope (4)
- Review routes allow platform reviewers only, bulk actions log one event per row, the index refuses to grow past its size limit (3)
src/lib/server/alerts/auto-check.test.ts (9 tests)
- The import route and the first pass of every run approve only rows that pass the text check and leave the rest for a person; a person's approve, reject or retire is never overwritten; text a notice only claims is confirmed by fetching it from NAFDAC by id; the status row turns Operational only with a fresh feed and a checked row (9)
src/lib/server/alerts/import.test.ts (5 tests)
- Export and import of the alert copy: rows rebuilt without calling CorrectMED AI, tampered text or readings refused, text NAFDAC never published never text checked; the real backfill file is complete and imports as the text check says (5)
src/lib/server/alerts/nafdac.test.ts (7 tests)
- Reading NAFDAC notice pages: tables kept as rows, entities and scripts handled, alert numbers as titled, anything not on nafdac.gov.ng dropped, polite paging, retry then a plain failure reason (7)
src/lib/server/alerts/incident.test.ts (17 tests)
- Long notices read in parts with every row kept, a part that comes back too big cut in two, and parts that answered kept for the next try (5)
- A failed notice tried again, a run that is not complete while one waits, the reason a run ended, and usable rows counted apart from the connection (4)
- A change to NAFDAC's contact lines does not reopen approved rows, a new batch in a line that also says report or line does, and a changed product or batch still does (3)
- A no match says what was and was not checked, and every check records the copy version and the time it was checked against (5)
tools/eval/c-rules.test.ts (4 tests)
- The rule test builder: lines built only from usable rows with the outcome each construction implies, no false exact match, and 200 random lines that never hit one (4)
tools/eval/c-alerts.test.ts (5 tests)
- The scoring tools for reading alert notices (plain text stripping, development and test split, blank sheet, field accuracy, agreement between two labellers) (5)
Beside these, 10 of the 22 tests in the status checks cover the alert feed: a fresh copy shows the alert clause, and a stale, incomplete or never completed copy, or three failed runs in a row, takes it away.
Whether the live NAFDAC copy is complete is shown by the Status list on the home page, not by this group.
5. Completed receiving workflows
- Source
- Workflow runs in a real browser, with live CorrectMED AI reading
- How many
- 6 whole workflows on the local test build
- On the hosted app
- 0
- With real documents
- 0
Says nothing about: The hosted app. Every run below is on the local test build (local passwords, a local store), with generated notes and sample pack panels marked SAMPLE. None used real delivery documents. No workflow has been completed on the hosted app, and none with a real authorised reviewer.
What is finished and what is not
3 scripted runs passed 12 of 12 steps, 3 failure runs passed 8 of 8, and 3 runs of the browser test suite passed 23 of 23. This is how many whole workflows ran: 3 scripted runs plus 3 runs of the 11 step workflow test, each from sign up to a completed receipt, a saved PDF report and a CSV export.
These earlier runs came before the six separate findings, the roles and the amendments were added, and the Playwright specs have been edited since the last of them was recorded. Their results are not in these numbers. The full sequence below is the run that covers the app as it is now.
The real receipt and packs from the case study were run through the app and the receipt was left waiting for a decision, because accept, quarantine and reject are a pharmacist’s job.
The full sequence with three test accounts
One further run used three separate test accounts (an admin, a receiver and a pharmacist), driven by a script in three browser sessions. 18 of 18 steps passed. Local test build with live CorrectMED AI reads; people, workspace and documents are test data drawn by the samples page. It is the run shown on the home page.
- Create the workspace (admin). Workspace created and the admin's email confirmed.
- Invite a receiver and a pharmacist (admin). Two single use join links were created, one per role.
- Join as the receiver (receiver). Joined the admin's workspace as receiver.
- Join as the pharmacist (pharmacist). Joined the admin's workspace as pharmacist.
- Create a receipt (receiver). Receipt created at the workspace's site.
- Upload the delivery note and read it (receiver). Delivery note read by CorrectMED AI: 3 lines.
- Upload a pack photo for each line and read them (receiver). 3 pack photos read and linked to their lines.
- Inspect the readings against the photos (receiver). Every value sits beside its photo; hovering a value lights its box.
- Confirm or correct an uncertain value (confirm one if none is uncertain) (receiver). 0 uncertain value(s) were listed; the receiver confirmed one value (no value was uncertain) (Batch). The history keeps who, when, why and the first reading.
- Enter physical counts (line 1 one pack short) (receiver). Counts entered for every line, each logged with name and time. Controlled condition: Line 1 was counted one pack fewer than the note on purpose, so the quantity finding and the decision reason have something to show. The short count is a test condition, not a real shortage.
- Run the checks (receiver). Six findings on every line; workflow status ready for decision.
- Decision refused on the page and by the server (receiver). The page offers no decision to the receiver and the server answers 403; nothing is recorded.
- Record a decision on every line (pharmacist). Every line decided with a reason; the receipt is completed and read only.
- The receiver cannot change the completed record (receiver). Counting and re-checking are refused (409, read only) and amending is refused (403) for the receiver.
- Export the CSV and save the printable report as PDF (pharmacist). CSV downloaded (one row per line, with workflow status and decisions) and the report saved as a PDF.
- Sign out, sign in again and find the receipt with its evidence and decision intact (pharmacist). After signing back in the photos, readings, correction history, counts, check results and decisions are identical to before.
- Amend a decision with a reason (pharmacist). The first decision is unchanged and the amendment is listed after it with who, role, reason and time; the evidence is unchanged.
- Export again: the report and the CSV carry the history (pharmacist). Report and CSV list the first decision and the amendment.
The attempts, as they happened
- Attempt 1, fail. Nine of ten tests passed. The amend test failed: the page showed a load error after the amendment was saved, because the script's screenshot masking had rewritten text the page owns. A script fault, not an app fault.
- Attempt 2, fail. Same failure, repeated with a failure screenshot to find the cause.
- Attempt 3, pass. All ten tests passed after the script reloaded the page after each screenshot, but the screenshots were not masked (a script bug), so they were replaced.
- Attempt 4, pass. All ten tests passed, screenshots masked. This is the run recorded here.
In the three earlier scripted runs the receiver view was the admin account's View as receiver switch, not a second signed in person. The full sequence above used a separately invited receiver account that signed in on its own.
Limits
- The scored notes are generated fictional notes, not photos of real deliveries. They show how reading behaves on printed notes in known layouts, not on a month of real deliveries, handwriting or crumpled paper.
- The real documents are few: one receipt and four pack photos. They show what went wrong and what changed, and they cannot give a rate.
- Every completed workflow ran on a local test build with generated notes and sample packs. None has run on the hosted app or with real delivery documents, and none with a real authorised reviewer.
- The reading fixes were made on the photos that failed and checked on the same photos plus one photo kept apart, so the fixes are not proven on unseen packs.
- Each scored set is read once, with prompts and settings fixed first. A new comparison uses a newly generated set.
- Labels for generated notes are written by the generator before any reading.
- One run is one sample: answers can vary between runs even at the same settings.
- Timings come from the machine that ran the evaluation, one read at a time. The live app runs elsewhere, so its times differ.
What this doesn't measure
There's no detection rate here. CorrectMED reads documents and packs, applies fixed rules and shows published NAFDAC alerts. It doesn't judge any medicine, so there's no rate of that kind to report.
You can try the reader yourself on a fresh note from the samples page, and read how CorrectMED AI is used.