# The right-record check: it stops on look-alike records

> Before typing into a record, OpenAdapt confirms it matches the one it was asked for, and stops when it can't tell. On look-alike test records with the same name and birth date and near-identical record numbers, it stopped 5 of 5. It let the right patient through and stopped a plainly different one, though it also stops some right patients.

- Canonical: https://openadapt.ai/safety
- Updated: 2026-11-19

## The test cases

*Image: Real recording, still frame from our look-alike test set, 2026. The patients are synthetic.*

*The first 5 rows are look-alikes. The last 2 are control cases: the right patient was let through and the plainly different patient was stopped.*

| Case | Record numbers | Result |
| --- | --- | --- |
| A letter O for a zero | MG4408 and MG44O8 | Stopped |
| A lowercase l for a one | MG4118 and MG41l8 | Stopped |
| All digits, with letter O's | 100512 and 1OO512 | Stopped |
| A dash-formatted number | Look-alike characters with dashes | Stopped |
| Same name and birthday, a different clear number | MG5439 and MG7263 | Stopped |
| The right patient | A clear, matching number | Let through |
| A plainly different patient | Different name and number | Stopped |

## The limits

- On screens it can read only as pixels, it stops whenever the right patient's own record number has look-alike characters. Those are extra stops, and they don't cause wrong entries. In our record-list test, a confirmed list of the system's record numbers removed most of them. The measured rates are in the details at the end of this section.
- It checks only the steps that carry a patient's identity, so other clicks run without this check.
- These results come from test cases on rendered rows, and we haven't measured them on a real EMR.

Related: [How it works: the right record](https://openadapt.ai/product#right-patient) · [filing reports to the right chart](https://openadapt.ai/templates/document-filing)

### Technical details

The check is verify_target_identity in openadapt-flow. Look-alike identifiers make the OCR tier abstain (halt) rather than verify; a clear mismatch returns a mismatch verdict. The OCR runs locally and makes no network calls. On our test corpora, the extra stops came to 47 to 61 in 100 correct-patient checks. That range is the current matcher on the v1 and v2 string corpora, re-measured 17 Oct 2026 (docs/validation/IDENTITY_EVIDENCE.md in packages/flow). With a confirmed list of the system's record numbers, stops in a rendered record-list test fell from 176 to 3 in 280 clicks whose neighboring row wasn't a look-alike twin. The known-ID list (runtime.known_ids, openadapt-flow 2.2.0) lifts a look-alike stop only when exactly one listed record number fits both reads (benchmark/known_ids/KNOWN_IDS.md).

## Sources

1. OpenAdapt look-alike test set (synthetic rows), 2026: 5 of 5 look-alike patients stopped; of the 2 control cases, the right patient was let through and a plainly different patient was stopped. On pixel-only screens the check stops whenever the right patient's own record number has look-alike characters (O and 0, l and 1); on our test corpora that was 47 to 61 in 100 correct-patient checks, re-measured 17 Oct 2026 ([IDENTITY_EVIDENCE.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/validation/IDENTITY_EVIDENCE.md)). With a confirmed list of the system's record numbers (openadapt-flow 2.2.0), those stops on a rendered record list fell from 176 to 3 in 280 clicks whose neighboring row wasn't a look-alike twin ([KNOWN_IDS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/known_ids/KNOWN_IDS.md)).
