How it works, and how well
Pipeline
- Clocked Extract copies problems, allergies and medication lines from each record, with exact character positions.
- Fixed rules (signed by a physician) normalise shorthand and Spanish, then label each medication: same, dose differs, missing from newest, new, stopped; and each allergy state: recorded, conflicting, none known, no information. No model decides a label.
- Clocked Fill drafts one sentence per discrepancy, quoting the records.
- Clocked Verify checks every sentence against the original records. Unsupported sentences are removed and shown. Absences are established by comparison, because a text checker cannot prove that something is missing. A rules safety net adds any discrepancy the draft left out.
Two independent cross-checks run on every patient: Clocked Protect scans each record for names, contact details, birth dates and ID numbers before anything else runs, and Clocked Compare looks for conflicts across the raw records on its own, so its findings can be matched against the rules.
Measured results on realistic wording (20 synthetic patients, shorthand + Spanish)
- Allergy state correct: 20/20
- Allergy conflicts flagged: 5/5
- Medication labels correct: 100/100
- Medication discrepancies flagged (any non-consistent label): 65/65
- Problems found: 53/57
- Invented medications: 0; invented problems: 0; missed problems: 4
The same records without shorthand and Spanish normalisation (baseline)
- Allergy state correct: 20/20
- Allergy conflicts flagged: 5/5
- Medication labels correct: 54/100
- Medication discrepancies flagged (any non-consistent label): 61/65
- Problems found: 42/57
- Invented medications: 47; invented problems: 35; missed problems: 15
Written handoff
- Discrepancies named in the final text: 70/70
- Discrepancies named by Fill sentences that Verify supported (before rules R7a/R7b): 55/70
- Generated sentences kept on text evidence (Clocked Verify): 57
- Sentences kept on record comparison (rule R7a): 6
- Sentences added by the rules safety net (R7b): 9 (Verify supported 9 of them)
- Generated sentences removed as unsupported: 9
- Medicines named in the final text that are not in the records: 0
Cross-checks
- Privacy gate (Clocked Protect) passed: 20/20 packets
- Rule-found dose/stop/allergy conflicts also flagged by Clocked Compare: 25/39
- Compare conflicts that no rule explained (shown to the clinician for review): 0
Numbers come from eval/score.py and eval/score_summary.py in the repository. Synthetic data: they describe this test set, not real-world accuracy.