Examples
1459 hand-curated, engine-verified worked examples across 376 forms — each a realistic
scenario with the scoring/grading engine's exact expected output, used as the fleet's regression oracle
(bin/test-personas). Forms without a card here have no scoring engine by design (pure
documentation or notice forms).
376 of 376 forms shown
A documentation and result-classification form for the UK NHS Abdominal Aortic Aneurysm (AAA) Screening Programme. It records a single abdominal ultrasound of the aorta: eligibility, consent, and the maximum antero-posterior aortic diameter measured in centimetres. From that diameter a validated engine classifies the aorta into one of four categories — normal, small aneurysm, medium aneurysm, or large aneurysm — and sets the corresponding surveillance or referral action. It checks completeness and raises clinical flags (large aneurysm requiring vascular referral, rapid growth, a non-visualized aorta requiring re-scan, or a symptomatic patient requiring emergency assessment).
- normal-discharge — Aorta 2.4 cm — below 3.0 cm, normal category; discharge from screening.
- medium-surveillance — Aorta 4.8 cm — in the 4.5-5.4 cm band, medium category; three-monthly surveillance.
- large-refer — Aorta 6.2 cm — at or above 5.5 cm, large category; refer to vascular surgery.
A practitioner-completed administrative card that places a patient on a accident and emergency medicine waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 accident and emergency medicine referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 accident and emergency medicine referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 accident and emergency medicine referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Legal document allowing patients to record treatment refusal decisions in advance, assessed for legal validity per Mental Capacity Act 2005.
- valid-general-refusal-only — Refuses tube feeding under specific circumstances (no life-sustaining-treatment refusal), full capacity declaration, all signatures, witness, NHS number, GP details, and HCP review present — expect valid, no fired rules.
- complete-missing-recommended — All required capacity/signature/personal-information fields present, but NHS number, GP details, and healthcare-professional review are not recorded (recommended, not required) — expect complete, not valid.
- invalid-life-sustaining-missing-statutory-formalities — Refuses CPR and artificial nutrition/hydration even if life is at risk, but the MCA s25(5) statutory formalities for a life-sustaining refusal — the written statement, the life-sustaining-section patient signature, and its witness signature — were never completed, and CPR's own even-if-life-at-risk box was left unticked — expect invalid (not draft, since the patient's name and signature ARE present) via multiple critical rules.
Document for recording a patient's wishes and preferences about future care, including values, beliefs, care preferences, medical treatment wishes, communication preferences, people important to them, and practical matters, with signature and witness capture. Assessed for completeness.
- partial-content-no-signatures — Every substantive section thoughtfully filled in (values, care preferences, treatment wishes, practical matters) but the statement was never signed or witnessed — expect partial, not complete, since signature is a required section.
- complete-witnessed-not-professionally-acknowledged — Fully signed and witnessed, but no healthcare professional has acknowledged it yet — expect complete, one level short of verified.
- verified-fully-acknowledged — Signed, witnessed, AND acknowledged by the GP with a review date — the engine's top tier — expect verified.
A team / organization self-assessment that audits 57 concrete behaviours of an agile way-of-working across three sections — Teams, Stakeholders, and Practices — and produces a composite agility maturity level (Ad-hoc / Initial / Developing / Mature / Optimizing), a per-section sub-score, weak-section flags, and a coaching action plan.
- High-maturity team - every item confirmed — All 57 items answered 'yes'. Expect all three sections at 100% (band 'high'), overallPercent 100, maturity 'optimising', three fired rules (R-TEAMS-HIGH, R-STAKEHOLDERS-HIGH, R-PRACTICES-HIGH), and no flags (every flag-triggering item is 'yes', so none of the negative-signal checks fire).
- Mixed maturity - imbalanced sections with four negative-signal flags — Non-critical edge case built to exercise the flag logic precisely. Teams 13/25 yes (52%, band mid); stakeholders 6/14 yes (42.86%, band low); practices 16/18 yes (88.89%, band high) - a 46-point spread between the weakest and strongest section. t08 and p12 are both 'no' (finished-work risk); t17 and t18 are both 'no' (learning stalled); t22 is 'no' (psychological safety, alone sufficient to trigger the flag - s08 and p14 are left 'yes'). All 57 items answered (answeredCount 57). Expect overallPercent round2((52+42.857142857142854+88.88888888888889)/3) = 61.25, maturity 'developing', fired rules R-TEAMS-MID / R-STAKEHOLDERS-LOW / R-PRACTICES-HIGH, and five flags in push order: F-STAKEHOLDERS-TRUST (stakeholders <50%), F-SECTION-IMBALANCE (spread 46.03 > 30), F-FINISHED-WORK, F-LEARNING-STALLED, F-PSYCHOLOGICAL-SAFETY. F-TEAMS-AUTONOMY does NOT fire (teams is 52%, not <50%); F-EXPERIMENTATION-BLOCKED does NOT fire (s09 is 'no' but s10 is 'yes', and the rule needs BOTH no); F-INSUFFICIENT-DATA does NOT fire (57 >= 30).
- Barely-started checklist - insufficient data despite three genuinely low sections — Critical/highest persona for THIS engine's specific failure mode: only 20 of 57 items answered (10 teams: 2 yes/8 no; 5 stakeholders: 1 yes/4 no; 5 practices: 2 yes/3 no), the rest left blank. Every touched section is genuinely poor (20%, 20%, 40%), yet overallPercent is null and maturity is 'insufficient-data' rather than 'ad-hoc' because answeredCount (20) is below the 30-item reportability floor - demonstrating that the floor gates on TOTAL items touched, not on whether every section already has a defined (if bad) percentage. t08 and p12 are both 'no'; s09 and s10 are both 'no'; t22 is 'no' (s08 and p14 are left blank, not 'no', so they do not additionally contribute to the psychological-safety trigger, but t22 alone is sufficient). Expect firedRules R-TEAMS-LOW / R-STAKEHOLDERS-LOW / R-PRACTICES-LOW (each section's own percent is genuinely <50 even though the composite can't be reported), and seven flags in push order: F-TEAMS-AUTONOMY, F-STAKEHOLDERS-TRUST, F-PRACTICES-DISCIPLINE (all three sections are <50%), F-FINISHED-WORK, F-EXPERIMENTATION-BLOCKED, F-PSYCHOLOGICAL-SAFETY, F-INSUFFICIENT-DATA. F-SECTION-IMBALANCE does NOT fire (max spread is only 20 points, under the 30-point threshold).
A self-assessment scorecard that helps an organization decide whether it is ready to hire agile consulting help. The respondent walks through a single-page, step-by-step questionnaire of sixteen yes/no checklist items drawn from the four points of the Agile Manifesto and the twelve Principles behind the Agile Manifesto, scores one point per "yes", and receives a banded readiness verdict (Low / Medium / High) with rationale and recommended next actions.
- Ready to hire - all 16 items confirmed — Every manifesto and principle item is 'done: true'. scoreTotal 16 (4 manifesto + 12 principles), band 'high', recommendation 'Likely ready'. All six flag conditions require a FALSE answer, so none fire.
- Borderline - score exactly 5, five gaps flagged — manifesto m1=true, m3=true (m2, m4 false); principles p2, p9, p12=true (the other 9 false, including p1, p7, p8, p11). manifestoSubtotal 2 + principlesSubtotal 3 = scoreTotal 5, which lands exactly on the 'borderline' band (the single-point band between low and medium). Expect five flags in check order: no-senior-leadership-buyin (m4 false), no-customer-contact (p1 false triggers the OR even though m1 is true), no-working-software (m2 AND p7 both false), no-sustainable-budget (p8 false), no-self-organization (p11 false). no-reflection-culture does NOT fire (p12 is true).
- Not ready - every item unconfirmed — All 16 items 'done: false'. scoreTotal 0, band 'low', recommendation 'Don't hire agile help yet' - the band name is not a safety label here, just this organisation's own readiness verdict. All six flags fire, in check order: no-senior-leadership-buyin, no-customer-contact, no-working-software, no-sustainable-budget, no-self-organization, no-reflection-culture (the maximum possible flag count for this engine).
A team / organization self-assessment that scores adoption of the 12 principles of the Agile Manifesto (Beck et al., 2001) and produces a composite agility maturity level (Ad-hoc / Initial / Developing / Mature / Optimizing), a list of weak-principle flags, and a coaching action plan.
- Optimising organisation - every principle scored 5/5 — All 12 principles scored 5 with the default weight 1.0 (weightsCustomised false). Expect answeredCount 12, meanScore 5, weightedMeanScore 5, maturity 'optimising' (>=4.5), twelve R-Pxx-HIGH fired rules in principle order, and no flags at all (no score <= 2 anywhere).
- Partially answered with custom weights - developing, three non-critical flags — Non-critical edge case exercising weight clamping and the answered-floor arithmetic together. Only principles 1-8 are scored (9-12 left null); weights of 0.3 and 2.5 are supplied on P4 and P6 to demonstrate clamping to [0.5, 2.0]. Scores: P1=4(w1.5) P2=2(w1) P3=5(w1) P4=2(w0.3->0.5) P5=3(w1) P6=4(w2.5->2.0) P7=3(w1) P8=2(w1). sum=25, answeredCount=8 (>=6, reportable). meanScore = round2(25/8) = 3.13. weightedSum = 4x1.5 + 2x1 + 5x1 + 2x0.5 + 3x1 + 4x2 + 3x1 + 2x1 = 30; weightSum = 1.5+1+1+0.5+1+2+1+1 = 9; weightedMeanScore = round2(30/9) = 3.33 -> maturity 'developing' (>=3.0, <3.75). weightsCustomised true. Fired rules: R-P01-HIGH, R-P02-LOW, R-P03-HIGH, R-P04-LOW, R-P05-MID, R-P06-HIGH, R-P07-MID, R-P08-LOW, then R-P09..R-P12-UNANSWERED. Flags in principle order: F-CHANGE-RESISTANCE (P2, score 2), F-SILO-COLLABORATION (P4, score 2), F-BURNOUT-RISK (P8, score 2) - no F-CRITICAL-Pxx (no score is exactly 1), no F-INSUFFICIENT-DATA (8 >= 6).
- Critical - every principle scored 1 or 2, seven at the critical floor — Critical/highest-severity persona. All 12 principles answered, alternating score 1 and 2 (P1,P2,P4,P6,P8,P10,P12 = 1; P3,P5,P7,P9,P11 = 2), default weight throughout (weightsCustomised false). sum = 7x1 + 5x2 = 17; meanScore = weightedMeanScore = round2(17/12) = 1.42 -> maturity 'ad-hoc' (<2.0). All twelve perPrincipleBands are 'low' (both 1 and 2 fall below the mid threshold of exactly 3), so firedRules is R-P01-LOW through R-P12-LOW. Every principle's own FLAG_SPECS flag fires (all scores <=2): F-CUSTOMER-DISCONNECT, F-CHANGE-RESISTANCE, F-SLOW-DELIVERY, F-SILO-COLLABORATION, F-MORALE-RISK, F-COMMUNICATION-GAP, F-OUTPUT-NOT-OUTCOME, F-BURNOUT-RISK, F-TECHNICAL-DEBT, F-OVER-ENGINEERING, F-COMMAND-AND-CONTROL, F-NO-RETROSPECTIVE - and the seven principles scored exactly 1 each additionally raise F-CRITICAL-P<NN> immediately after their own flag (interleaved by principle, not grouped): F-CRITICAL-P01, F-CRITICAL-P02, F-CRITICAL-P04, F-CRITICAL-P06, F-CRITICAL-P08, F-CRITICAL-P10, F-CRITICAL-P12 - 19 flags total. No F-INSUFFICIENT-DATA (12 >= 6).
A brief, three-item alcohol screening questionnaire for adults. It records the three consumption items of the World Health Organization's Alcohol Use Disorders Identification Test — frequency of drinking, typical quantity (in UK units), and frequency of heavy episodic drinking — scores each 0–4, and sums a total of 0–12. A total of ≥ 5 indicates increasing- or higher-risk drinking and prompts a full 10-item AUDIT and a brief intervention.
- lower-risk — Occasional light drinker: Q1 1, Q2 0, Q3 0 — AUDIT-C 1, lower-risk band, negative screen.
- increasing-risk — Regular midweek drinker with occasional heavy sessions: Q1 2, Q2 2, Q3 2 — AUDIT-C 6, increasing-risk band, positive screen prompting brief advice and full AUDIT.
- possible-dependence — Daily heavy drinker: Q1 4, Q2 3, Q3 4 — AUDIT-C 11, possible-dependence band, positive screen warranting full AUDIT and likely specialist referral.
A practitioner-completed administrative card that places a patient on a allergist waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 allergist referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 allergist referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 allergist referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Comprehensive allergy evaluation covering drug, food, and environmental allergies with anaphylaxis risk assessment.
- mild-seasonal — Seasonal pollen and dust-mite allergic rhinitis only, no systemic reactions: mild severity.
- moderate-food-and-asthma — IgE-mediated food allergy with asthma comorbidity but no anaphylaxis: moderate severity.
- severe-anaphylaxis — Recurrent anaphylaxis (multiple episodes) with severe asthma: severe severity.
A UK NHS–aligned allergy testing request (referral) that a clinician completes to request allergy diagnostic testing — skin-prick testing, intradermal testing, patch testing, specific-IgE blood testing, or a drug-provocation challenge — for a patient with suspected allergic disease. It records the requested test type, the allergen panels of interest, the clinical indication and specific question, the relevant clinical history, and the validity-and-safety history (antihistamines, beta-blockers, active skin disease, prior anaphylaxis) — then computes a four-axis grading (appropriateness, validity and safety, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the allergy service's triage and booking decision.
- routine-rhinitis-aeroallergen-skin-prick-complete — Well-formed routine GP referral: perennial rhinitis, aeroallergen skin-prick testing requested (first-line), no antihistamines / skin disease / beta-blocker concerns, every completeness field present — expect usually-appropriate + ok + routine + accept.
- urgent-venom-allergy-beta-blocker-anaphylaxis-caution — Systemic reaction to a wasp sting with a background of previous anaphylaxis and current beta-blocker therapy — venom skin-prick testing is first-line and the indication itself auto-escalates triage to urgent, but the beta-blocker + anaphylaxis-history combination forces a safety caution (adrenaline may be less effective if a systemic reaction occurs during testing) — expect usually-appropriate + caution + urgent + accept (this engine only redirects on the contraindicated band, not caution).
- invalidated-food-allergy-antihistamines-incomplete — Suspected peanut allergy referred from primary care: skin-prick testing is first-line, but the patient is still taking daily antihistamines, which invalidates the weal-and-flare response — the test cannot proceed until an appropriate washout — and several administrative fields were left blank on the referral form — expect usually-appropriate + contraindicated + routine + redirect (not reject — this engine redirects patients to a washout / alternative test rather than rejecting outright), completeness below 100.
A UK NHS–aligned allergy skin test result (report) that a reporting clinician completes after an allergy test has been performed. It is the result/report counterpart to Allergy Skin Test Request (a referral): where the request captures why testing should be done and whether it is safe, this form records what the test found and a structured interpretation. It records the performed test type, the clinical history, the pre-analytic validity controls (antihistamine washout and positive histamine control), the allergens tested and their measured weal sizes or specific-IgE (sIgE) results, the sensitized allergens and a structured reaction summary, the clinical interpretation and impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured allergy report.
- anaphylaxis-during-skin-prick-test-critical-alert-uncommunicated — Systemic anaphylactic reaction during skin-prick testing to peanut extract, not yet communicated to the referrer -- the textbook critical-escalation invariant firing all three critical flags.
- anaphylaxis-critical-result-already-communicated — Same systemic reaction during intradermal testing, but the critical result has already been phoned through to the referring GP -- confirms F-CRITICAL-RESULT-002 (not-yet-communicated) does not fire once criticalResultCommunicated is true.
- clinically-relevant-sensitisation-confirmed-moderate-with-follow-up-plan — Confirmed clinically relevant sensitisation to grass pollen correlating with seasonal rhinoconjunctivitis, with a documented follow-up plan and only the antihistamine washout satisfied (not the positive control) -- checks the validity-controls completeness rule accepts either control on its own.
- sensitisation-confirmed-missing-follow-up-plan-urgent-referral-flag — Confirmed egg sensitisation in a child but the recommended-follow-up field was left blank at sign-off -- exercises the (misleadingly named) urgent-referral flag, which actually fires only for a missing follow-up plan on a moderate sensitisation, not for any acute urgency.
- positive-reaction-not-confirmed-sensitisation-minor-missing-measurement — A positive weal reaction to house dust mite is recorded but clinical relevance has not yet been confirmed against history, and no weal sizes were transcribed into the report -- exercises the minor-severity / abnormal-requiring-action path together with the missing-measurement flag.
- all-negative-flag-not-required-for-normal-classification — Fully reassuring, complete drug-allergy work-up with no positive reactions -- but the clinician never ticked the 'all allergens negative' checkbox, demonstrating that the engine's normal/none/routine bands are reached purely by the absence of positive findings and do not actually require allNegative to be set.
- all-negative-ticked-but-positive-reaction-recorded-gap — Contradictory report -- the clinician ticked 'all allergens negative' at the summary step but a positive shellfish reaction was also recorded -- demonstrates the engine grades purely on positiveReactions/sensitisationConfirmed with no cross-check against allNegative, silently ignoring the inconsistency rather than raising a discrepancy flag.
- invalid-test-antihistamines-not-withheld-inconclusive — Patient continued taking daily antihistamines up to the test, invalidating weal interpretation -- the invalid-test inconclusive path with a repeat-testing recommendation.
- anaphylaxis-during-invalid-test-critical-overrides-inconclusive — A systemic reaction occurred during a test that was also technically invalid (positive control failed) -- confirms classifyResult()'s critical check is evaluated before the invalid-test check, so classification stays critical rather than inconclusive, while the invalid-test flag is still raised but at a downgraded medium priority alongside the high-priority critical flags.
- incomplete-report-missing-history-interpretation-impression — A hurriedly filed preliminary report: no clinical history, no interpretation, and no impression recorded, though the allergen panel and validity controls are documented -- exercises the report-completeness percentage and the missing-impression flag together.
A UK NHS–aligned ambulatory blood pressure monitoring (ABPM) request (referral) that a clinician completes to request 24-hour ambulatory blood pressure monitoring (or home blood pressure monitoring) for a patient. It records the most recent clinic blood pressure, the clinical indication and specific question, current antihypertensive medication, symptoms and accuracy-affecting factors, and the requested urgency — then computes a four-axis grading (appropriateness, suitability, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the monitoring service's triage and booking decision.
- routine-diagnose-hypertension-stage1-complete — Well-formed routine GP referral: raised clinic BP confirming a new hypertension diagnosis, 24-hour ABPM requested (NICE NG136 first-line confirmation), no oscillometric accuracy concerns, every completeness field present — expect usually-appropriate + ok + routine + accept.
- white-coat-hypertension-atrial-fibrillation-limited-redirect — Suspected white-coat hypertension with markedly variable clinic readings: out-of-office monitoring is usually appropriate for this indication, but the patient has known atrial fibrillation, which reduces oscillometric ABPM accuracy — suitability is 'limited' and the recommendation redirects to an auscultatory alternative regardless of how appropriate the test choice was — expect usually-appropriate + limited + routine + redirect.
- urgent-severe-hypertension-priority-review-incomplete — Clinic BP well into the severe/accelerated range: NICE NG136 makes same-day specialist review the priority over routine ABPM confirmation, so appropriateness is only may-be-appropriate (score 4) even though the request itself is otherwise reasonable, and the severe reading independently forces urgent triage; several administrative fields are not yet captured — expect may-be-appropriate + ok + urgent + accept, completeness below 100.
A UK NHS–aligned ambulatory blood pressure monitoring (ABPM) result (report) that a reporting clinician completes after a 24-hour ABPM (or home blood pressure monitoring) period has been performed. It is the result/report counterpart to Ambulatory Blood Pressure Test Request (a referral): where the request captures why monitoring should be done, this form records what the monitoring found and a structured interpretation. It records the monitoring modality and recording adequacy, the clinical history, the daytime / nighttime / 24-hour averaged blood pressures, the nocturnal dip and dipper status, the narrative and structured findings, the impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured ABPM report.
- normal-adequate-study — Fully normal 24-hour ABPM, adequate recording, complete report: every axis at its baseline — normal / none / routine, 100% complete.
- stage1-minor-raised-24h-average — 24-hour average 132/81 crosses the 130/80 threshold, but the daytime average stays below 135/85 and no structured hypertension boolean is confirmed — abnormal, minor severity, stage-1 category.
- stage2-moderate-confirmed-hypertension — Confirmed hypertension documented by the reporting clinician, daytime average 140/88 — below the 150/95 stage-2 numeric cutoff but the confirmed-hypertension boolean alone is sufficient to grade moderate/stage-2 severity.
- critical-severe-hypertension — Daytime average 155/98 crosses the severe 150/95 threshold (ABPM-equivalent to clinic >= 180/120): auto-escalates classification to critical, severity to major, and follow-up to same-day critical-alert regardless of the other axes.
- masked-hypertension — Masked hypertension confirmed by the clinician while every averaged measurement stays below its own threshold (normal clinic readings, raised ambulatory pattern is the whole point of masked hypertension) — the structured boolean alone grades moderate/stage-2.
- isolated-nocturnal-hypertension-non-dipper — Nighttime average 122/72 crosses the 120/70 nocturnal threshold with a non-dipping pattern (2% dip), while daytime and 24-hour averages stay normal — isolated nocturnal hypertension, minor severity.
- white-coat-effect — Raised clinic blood pressure but every ambulatory average is within normal limits — the white-coat-effect boolean is what makes this abnormal (not a normal study) rather than the numbers themselves.
- inconclusive-inadequate-recording — Only 45% of readings were valid — below the 70% adequacy threshold — and no impression was recorded: the study is inconclusive rather than assumed normal or abnormal.
The intra-operative anaesthesia chart: the contemporaneous clinical record of an anaesthetic from pre-induction checks through emergence and recovery handover. It captures who was present, the pre-operative checks and WHO Safer Surgery Checklist status, ASA physical status and airway assessment, every drug and dose given (induction, maintenance, reversal, analgesia, antiemetics, vasoactive), the airway-management technique and findings, the monitoring modalities in use, the timed physiological observations (blood pressure, heart rate, SpO₂, end-tidal CO₂, temperature), fluids and estimated blood loss, any regional or neuraxial technique, intra-operative events and complications, and the recovery handover.
- Complete elective GA - laparoscopic cholecystectomy — Fully documented elective ASA II general anaesthetic with every mandatory item present: identifier, anaesthetist, ASA, technique, airway, WHO Sign In + Time Out both 'yes', two observation rows, signature, weight, five monitoring modalities, fluids and recovery destination. Consent 'yes', no allergies, Cormack-Lehane 1 with one attempt, observations within limits, no events. Expect status 'complete', completenessPercent 100, criticalMissing 0, noncriticalMissing 0, all 12 firedRules satisfied, and an empty flaggedIssues array.
- Partial - boundary observations, penicillin allergy missed by co-amoxiclav — Urgent appendicectomy where every critical item is present but the fluids summary was never entered (all six volumes null). Exercises three boundaries: a documented 'Penicillin' allergy with co-amoxiclav administered - the substring matcher does NOT flag it because 'co-amoxiclav' does not contain 'penicillin'; an observation at exactly SpO2 92 and systolic 90, both non-breaching under strict <; Cormack-Lehane 2 with 2 attempts, both below the >= 3 triggers. WHO 'yes'/'yes', consent 'yes'. Expect status 'partial', completenessPercent round(100 x 11/12) = 92, criticalMissing 0, noncriticalMissing 1 (M-FLUIDS unsatisfied), and exactly one flag: F-INCOMPLETE-001 (low).
- Incomplete - emergency laparotomy with anaphylaxis, unsigned — Immediate-priority emergency laparotomy for a ruptured AAA in an unconscious ASA V patient: consent could not be confirmed (''), Time Out recorded as 'no' (non-empty, so M-WHO-CHECKLIST is still satisfied), documented allergy 'Penicillin, latex' with benzylpenicillin given, anticipated difficult airway 'yes' with Cormack-Lehane 3 and 3 attempts, an anaphylaxis event, one observation breaching both limits (SpO2 86, systolic 62) plus one non-breaching, weight never recorded, and the record not yet signed. Expect status 'incomplete', completenessPercent round(100 x 10/12) = 83, criticalMissing 1 (M-SIGNATURE), noncriticalMissing 1 (M-WEIGHT), and seven flags in this order: F-WHO-CHECKLIST-001, F-ALLERGY-CONFLICT-001 ('Benzylpenicillin'), F-DIFFICULT-AIRWAY-001 (all three reasons), F-ANAPHYLAXIS-001 (1 event), F-UNLOGGED-CONSENT-001 (all high), F-PHYSIOLOGICAL-DERANGEMENT-001 (medium, 1 observation), F-INCOMPLETE-001 (low).
A practitioner-completed administrative card that places a patient on a anaesthetics waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 anaesthetics referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 anaesthetics referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 anaesthetics referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
UK NHS-aligned pre-operative anesthesiology assessment combining four validated scoring systems — ASA Physical Status Classification, Mallampati / Airway Score, Revised Cardiac Risk Index (RCRI / Lee Index), and STOP-BANG (OSA screening) — into a composite perioperative risk level, with flagged safety-critical issues and an anaesthetic plan.
- low-risk — Fit ASA I patient, class I airway, no cardiac risk factors, negative STOP-BANG: overall low perioperative risk.
- moderate-risk — ASA III with hypertension and ischaemic heart disease, class III airway, one RCRI factor: overall medium perioperative risk.
- high-risk — ASA IV major vascular surgery, class IV airway, and positive STOP-BANG: overall high perioperative risk.
A UK NHS–aligned vascular angiography request (referral) that a clinician completes to request a CT, MR, or catheter angiographic examination of an arterial territory. It records the requested modality and body region, the clinical indication and specific question, contrast and renal safety, bleeding and anticoagulation status, pregnancy / radiation considerations, and the requested urgency — then computes a four-axis grading (appropriateness, contrast / radiation safety, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the imaging or vascular department's triage and booking decision.
- routine-suspected-cad-complete — Well-formed routine GP referral: suspected coronary artery disease, CT angiography requested (the recommended first-line examination), no contrast/radiation safety concerns, every completeness field present — expect usually-appropriate + ok + routine.
- urgent-aneurysm-plausible-metformin-caution — Known abdominal aortic aneurysm under surveillance now tender on examination — catheter/DSA requested (plausible but not first-line for aneurysm), on metformin with iodinated contrast. Acuity escalation from routine to urgent via the aneurysm rule; safety caution from metformin + contrast — expect may-be-appropriate + caution + urgent + query-referrer.
- emergency-suspected-pe-renal-impairment-incomplete — Acute suspected pulmonary embolism, CT pulmonary angiography requested (ideal) but severe renal impairment with iodinated contrast required, and several administrative fields not yet captured because the referral was phoned through from ED — expect usually-appropriate + contraindicated + emergency + reject, completeness below 100.
A UK NHS–aligned angiography result (report) that a reporting clinician completes after a vascular angiographic examination has been performed. It is the result/report counterpart to Angiography Test Request (a referral): where the request captures why an angiogram should be done and whether it is safe, this form records what the angiogram found and a structured interpretation. It records the performed examination, modality and contrast, the clinical history, the narrative and structured vascular findings, the maximum stenosis percentage and whether an intervention was performed, the impression and a reporting category, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured vascular-imaging report.
- normal-adequate-carotid-study — Adequate carotid Doppler-confirmed CT angiogram with no structured abnormal findings and a fully completed report; classifies as normal with routine follow-up and no flags.
- critical-active-extravasation-uncommunicated — CT angiogram of the aorta shows active contrast extravasation from a traumatic splenic artery injury, not yet communicated to the referrer; auto-escalates to critical/critical-alert with both critical-result flags firing.
- critical-dissection-communicated — Cerebral angiogram shows an internal carotid artery dissection, already telephoned to the stroke team; critical/critical-alert fires but the second (uncommunicated) critical flag does not.
- critical-occlusion-reporting-category-override — Peripheral CT angiogram shows a complete superficial femoral artery occlusion; demonstrates that stenosisSeverityCategory reports 'occluded' rather than a stenosis percentage band even though a (now moot) percentage happens to be recorded.
- inconclusive-non-diagnostic-technique — Renal MR angiogram degraded by motion artefact is non-diagnostic; classifies as inconclusive with recommended repeat imaging and a high-priority inadequate-technique flag, ahead of any stenosis assessment.
- inconclusive-limited-no-impression — Limited-quality mesenteric catheter angiogram with findings noted but no impression yet dictated; classifies as inconclusive via the limited-plus-no-impression rule and raises both a medium inadequate-technique flag and a missing-impression flag.
- abnormal-high-grade-stenosis-not-yet-critical — Coronary angiogram shows an 85% proximal LAD stenosis (below the 99% near-occlusion critical threshold): major severity and urgent follow-up, but not the critical-alert escalation, with both abnormal-requiring-action and urgent-referral flags firing together.
- incidental-finding-only-abdominal-aorta — CT angiogram performed for a peripheral indication incidentally shows a small, sub-threshold abdominal aortic aneurysm with no other abnormal finding; classifies as abnormal (not normal) with minor severity and recommended surveillance follow-up.
- significant-stenosis-percentage-not-recorded — Carotid duplex-correlated CT angiogram documents a haemodynamically significant stenosis narratively but the sonographer/reporter never entered a numeric percentage; moderate severity via the actionable-finding path, plus a low-priority missing-measurement flag alongside the high-priority abnormal-requiring-action flag.
- minimal-documentation-aneurysm-no-request-link — Sparsely documented aortic aneurysm report with only clinical history recorded (20% completeness), no impression, and no originating request reference — the finding is unlinked to any referral and is flagged unexpected-finding rather than the documented-but-unimplemented discrepancy-with-request category.
A point-of-care calculator that derives the serum anion gap from a routine electrolyte panel, corrects it for the patient's serum albumin, and classifies the result as low, normal, or high. A high anion gap is the key laboratory signature of a high anion gap metabolic acidosis (HAGMA) and prompts a structured search for the underlying cause. The calculator does not diagnose; it turns four or five numbers into a computed gap, a corrected gap, a classification band, and a set of flagged issues that direct further investigation.
- normal-without-potassium — Routine ward panel, potassium not entered: anion gap 10 mmol/L, within the potassium-exclusive reference range (8-12) — normal.
- high-hagma-with-potassium — Early diabetic ketoacidosis on the acute medical unit: potassium-inclusive anion gap 17.5 mmol/L, above the potassium-inclusive upper limit (16) but below the very-high threshold (20) — high, prompting the GOLDMARK/MUDPILES differential.
- very-high-severe-acidosis — Intensive-care sepsis with severe lactic acidosis: anion gap 29 mmol/L, at or above the very-high threshold (20) — marked elevation, urgent flag.
- hypoalbuminaemia-masking — Critically ill patient with severe hypoalbuminaemia: the raw anion gap (10 mmol/L) looks normal, but the albumin correction (albumin 15 g/L) raises it to 16.25 mmol/L — above the potassium-exclusive upper limit. The uncorrected value would falsely reassure.
- low-anion-gap — Multiple myeloma with a paraprotein gammopathy: anion gap 5 mmol/L, below the lower reference limit (8) — low, prompting consideration of paraproteinaemia, lithium toxicity, or laboratory error.
- incomplete-missing-bicarbonate — Laboratory result still pending: sodium and chloride entered but bicarbonate not yet back — the anion gap cannot be computed and the calculation is unknown, not zero.
A rapid, structured assessment of a newborn's condition in the first minutes after birth. It records five clinical signs — Appearance (skin colour), Pulse (heart rate), Grimace (reflex irritability), Activity (muscle tone), and Respiration — each scored 0, 1, or 2, summed to a total of 0–10 at each timepoint. The assessment is repeated at 1 minute and 5 minutes after birth, and again at 10 minutes (and, where indicated, at subsequent 5-minute intervals) whenever the 5-minute score is below 7. The score summarizes the newborn's transition to extrauterine life and the response to any resuscitation given; it is a description of condition and trend, not a prediction of long-term outcome.
- reassuring — Vigorous term newborn: 1-minute Apgar 8, 5-minute Apgar 10 — reassuring throughout.
- moderately-low-improving — Depressed at birth then improving: 1-minute Apgar 4 (moderately low), 5-minute Apgar 9 (reassuring) after stimulation.
- low-persistent — Severely depressed and not recovering: 1-minute Apgar 2, 5-minute Apgar 3 — low at both, escalation required.
A structured documentation wizard for [arc42](https://arc42.org/overview), the pragmatic template for software architecture communication. One form instance captures one architecture's documentation across arc42's twelve canonical sections; the form computes a per-section completeness grade, a composite maturity band (Draft / Reviewable / Ready / Mature), and a set of fired flags for architecturally critical omissions. Output is a signed arc42 document in HTML, PDF, AsciiDoc, FHIR R5 Bundle, and XML.
- draft-early-stage-architecture — A brand-new microservice architecture document with only the introduction and a single business goal written so far — no quality goals, stakeholders, context, strategy, structure, runtime, deployment, crosscutting concepts, ADRs, quality scenarios, risks, or glossary yet: any one empty section forces the whole document to 'draft' regardless of how developed the others are — expect computedMaturity draft, finalMaturity draft (no override), section 1 partial and sections 2-12 empty, with most of the high-priority missing-section flags firing.
- ready-all-sections-complete-mature-drivers-not-met — A payments-gateway architecture with all 12 sections individually meeting their own completeness threshold (3 quality goals, 2 stakeholders, both business and technical context with partners, a solution strategy with a technology decision, 3 building blocks, a runtime scenario, a deployment node, a crosscutting concept, 3 non-draft ADRs, 3 fully-populated quality scenarios, 1 risk with mitigation, and 5 glossary terms) — every section is 'complete' and no medium-priority flag fires, but only 3 non-draft ADRs (mature needs >= 5) and only 1 risk with mitigation (mature needs >= 3) fall short of the mature drivers: expect computedMaturity ready (not mature), finalMaturity ready.
- mature-all-drivers-met-no-flags — The same payments-gateway architecture, further matured: 5 non-draft ADRs (was 3), and 3 risk items each carrying a mitigation, one of them technical debt (was 1 risk with mitigation), plus a documented coding convention — every section remains complete, all four mature drivers are now met (nonDraftAdrs >= 5, fullyPopulatedQualityScenarios >= 3, risksWithMitigation >= 3, no medium-priority flag), and the added convention/technical-debt entries also clear the two low-priority flags the previous revision carried: expect computedMaturity mature, finalMaturity mature (no override), and zero fired flags.
Asthma control evaluation using the ACT (Asthma Control Test) scoring instrument.
- well-controlled — No daytime or night-time symptoms, no rescue-inhaler use, no activity limitation: ACT 25, well controlled.
- not-well-controlled — Weekly night waking, several days of symptoms and rescue use: ACT 17, not well controlled.
- very-poorly-controlled — Daily symptoms, frequent night waking and daily rescue use with four exacerbations: ACT 10, very poorly controlled.
ADHD screening using the ASRS (Adult ADHD Self-Report Scale) v1.1 screener.
- unlikely — Rare inattentive or hyperactive symptoms, Part A screener negative: ADHD unlikely.
- possible — Part A screener positive (shaded items) with a moderate total and childhood onset: ADHD possible.
- highly-likely — Very frequent symptoms across all items with childhood onset and functional impairment: ADHD highly likely, combined presentation.
Combined audiology and vestibular (balance) assessment capturing presenting symptoms, otoscopic and audiometric findings, tympanometry, vestibular screening tests, and the Dizziness Handicap Inventory (DHI) to classify hearing loss severity and quantify vestibular handicap.
- normal-no-handicap — Air-conduction thresholds ~15 dB (PTA <20) and DHI 0: normal hearing, no vestibular handicap.
- moderate-loss-mild-handicap — Better-ear PTA ~42 dB (moderate loss) with DHI in the 18-36 range: moderate hearing loss, mild handicap.
- severe-loss-severe-handicap — Better-ear PTA ~72 dB (severe loss) with DHI above 52: severe hearing loss, severe vestibular handicap.
Comprehensive hearing evaluation covering audiometric testing, tinnitus, vestibular function, and communication impact.
- normal-hearing — Pure-tone averages 15/20 dB HL — both ears within 25 dB: normal hearing.
- moderate-loss — Pure-tone averages 50/45 dB HL in the 41-60 dB range: moderate hearing loss.
- severe-loss — Pure-tone averages 72/78 dB HL in the 61-80 dB range: severe hearing loss.
Autism spectrum screening using the AQ-10 questionnaire with sensory and developmental profiling.
- Adult self-referral - AQ-10 2, no concerns — A 34-year-old woman self-referring after reading about autism online; only two AQ-10 items score (item 1 noticing small sounds, item 8 collecting information), all social-communication ratings 'often', sensory profile none/mild, no repetitive movements, 'sometimes' resistance to change, typical milestones with no trigger words, no family history and no previous assessment. Expect aq10Score 2, aq10CategoryLabel 'Below threshold', firedRules [AQ10-01, AQ10-08] and an empty additionalFlags array.
- Adolescent at cut-off boundary - AQ-10 5, one item unanswered — A 15-year-old boy referred by school; nine of ten AQ-10 items answered (item 3 skipped) scoring exactly 5, the top of 'Below threshold', so FLAG-AQ10-HIGH-001 does not fire. Exercises the engine's text quirks: languageMilestones is an explicit negative 'No delay...' which still fires FLAG-DEV-001 on the substring 'delay', and motorMilestones contains 'related' which fires FLAG-DEV-002 on the substring 'late'. Exactly one severe sensory modality (auditory) fires FLAG-SENSORY-002 (medium) rather than -001. Maternal depression gives the low-priority FLAG-FAMILY-MH-001. Expect aq10Score 5, 'Below threshold', firedRules [AQ10-01, AQ10-04, AQ10-07, AQ10-08, AQ10-10], and four flags in order: FLAG-SENSORY-002, FLAG-DEV-001, FLAG-DEV-002 (medium), FLAG-FAMILY-MH-001 (low).
- Child with maximal AQ-10 and every flag - urgent referral — A 7-year-old boy referred by his GP with parent-completed AQ-10 scoring 10/10, severe sensitivity in all five modalities, eye contact 'never', reciprocity 'rarely', conversation 'never', hand-flapping, routine adherence and resistance to change both 'always', delayed language and late walking, positive family history for autism, ADHD, learning disability and mental health, and a previous incomplete assessment. Expect aq10Score 10, 'At or above threshold', firedRules all ten AQ10-01..AQ10-10 in order, and 15 flags: high = FLAG-AQ10-HIGH-001, FLAG-SENSORY-001 (5 severe), FLAG-REPETITIVE-003, FLAG-FAMILY-ASD-001; medium = FLAG-SOCIAL-001, -002, -003, FLAG-REPETITIVE-001, -002, FLAG-DEV-001, FLAG-DEV-002, FLAG-FAMILY-ADHD-001, FLAG-PREV-001; low = FLAG-FAMILY-LD-001, FLAG-FAMILY-MH-001.
A predictive risk-stratification tool for neonatal hyperbilirubinaemia. It plots a newborn infant's total serum bilirubin (TSB) against the infant's age in hours on the hour-specific Bhutani nomogram to assign a percentile risk zone — low, low-intermediate, high-intermediate, or high — that predicts the likelihood of subsequent significant hyperbilirubinaemia. The same TSB and age are compared with the age- and gestation-specific treatment-threshold graphs (UK NICE) to indicate whether the infant is at or above the phototherapy or exchange-transfusion threshold.
- low-zone-reassuring — Term infant, 24 h old, TSB 80 µmol/L (below the 40th percentile) — low risk zone, below both treatment thresholds.
- high-intermediate-zone — Term infant, 24 h old, TSB 150 µmol/L (between the 75th and 95th percentiles) — high-intermediate risk zone with feeding and sibling-jaundice risk factors.
- high-zone-urgent — Term infant, 24 h old, TSB 210 µmol/L (at or above the 95th percentile and above the phototherapy threshold) — high risk zone, phototherapy indicated.
A UK NHS–aligned tissue-biopsy procedure / pathology request (referral) that a clinician completes to request a diagnostic biopsy for a patient. It records the requested procedure (biopsy site, method, laterality), the clinical indication and specific question, the lesion description, the patient's bleeding and coagulation status (anticoagulants, antiplatelets, INR, platelet count, bleeding disorder, immunosuppression), and the requested urgency — then computes a four-axis grading (appropriateness, periprocedural bleeding risk, request completeness, and urgency / cancer-pathway triage) plus a set of safety-critical flags. The output is a vetting report that supports the pathology / interventional department's triage and booking decision.
- two-week-wait-suspected-malignancy-skin-punch-complete — Well-formed dermatology referral: a suspicious pigmented lesion, punch biopsy of skin requested (first-line), no bleeding-risk factors, every completeness field present — the suspected-malignancy indication itself meets NICE NG12 two-week-wait eligibility and escalates triage regardless of the requested urgency — expect usually-appropriate + low bleeding risk + two-week-wait + accept.
- two-week-wait-cancer-staging-liver-core-needle-anticoagulant-high-risk — Known lymphoma requiring liver biopsy for staging: core-needle liver biopsy is first-line, cancer-staging also meets two-week-wait eligibility, but the patient is on warfarin — a high periprocedural bleeding risk overrides an otherwise appropriate, complete request and the recommendation is to query the referrer (anticoagulation must be addressed before proceeding) — expect usually-appropriate + high bleeding risk + two-week-wait + query-referrer.
- characterise-lesion-thyroid-fna-borderline-platelets-incomplete — Fine-needle aspiration of an indeterminate thyroid nodule found incidentally: FNA of thyroid is first-line to characterise the lesion, borderline thrombocytopenia gives a moderate (not high) bleeding-risk band — which alone does not block acceptance — and a few administrative fields were left blank on the referral form — expect usually-appropriate + moderate bleeding risk + routine + accept, completeness below 100.
A UK NHS–aligned biopsy histopathology result (report) that a reporting pathologist completes after a tissue or cytology specimen has been examined. It is the result/report counterpart to Biopsy Test Request (a referral): where the request captures why a biopsy should be done and how to triage it, this form records what the specimen showed and a structured interpretation. It records the specimen and procedure, the clinical history, the macroscopic and microscopic descriptions, the definitive diagnosis with malignancy status, tumour type, histological grade, resection-margin status and lymphovascular invasion, immunohistochemistry and molecular results, the impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured histopathology report.
- benign-complete-normal — A benign skin lesion, clear margins, adequate specimen, complete report — every axis at baseline.
- high-grade-malignancy-linked-request-major-not-critical — A poorly-differentiated malignancy with clear resection margins and a properly linked originating request — a real, verified gotcha in hasCriticalFinding(): a critical finding requires EITHER an involved margin OR an 'unexpected' malignancy specifically defined as malignancyPresent with no originating request reference. Because the request reference IS linked here, this high-grade cancer is graded severity 'major' (R-SEV-MAJOR-02, the high-grade-malignancy path, not the critical-finding path) but classification stays 'abnormal' and follow-up is 'urgent' (within 1 week) rather than 'critical-alert' (immediate) — the exact same tumour grade produces a different classification and urgency purely based on whether the referral was linked, confirmed by direct contrast with the next persona.
- high-grade-malignancy-unlinked-request-critical — The identical poorly-differentiated malignancy and clear margins as the previous persona, but with no originating request reference recorded — this alone flips hasCriticalFinding() to true (an 'unexpected malignancy'), so classification becomes 'critical' via R-SEV-MAJOR-01 (the critical-finding severity path, not R-SEV-MAJOR-02), and follow-up escalates to 'critical-alert' / immediate. Also raises F-DISCREPANCY-001 (malignancy with no linked request) alongside the two universal critical-result flags — the direct, verified contrast with the persona above.
- involved-margin-low-grade-tumour-critical — A well-differentiated (low-grade) malignancy with an INVOLVED resection margin and a properly linked request — demonstrates that an involved margin overrides even the lowest tumour grade: hasInvolvedMargin() alone makes hasCriticalFinding() true regardless of malignancyPresent's grade weight, so severity resolves to major via R-SEV-MAJOR-01 (critical-finding) rather than R-SEV-MINOR-01 (which a well-differentiated tumour would otherwise reach). Raises F-ABNORMAL-ACTION-001, the margin-specific flag, alongside the two universal critical-result flags.
- moderate-grade-malignancy-clear-margin-moderate — A moderately-differentiated malignancy with clear margins and a linked request — moderate severity via the intermediate-grade-malignancy rule (R-SEV-MODERATE-01), classification abnormal, follow-up recommended; no flags raised (no LVI, no discrepancy, grade recorded, impression present).
- close-margin-lymphovascular-invasion-overrides-low-grade — A well-differentiated (low-grade) malignancy that would normally grade minor, but with BOTH a close resection margin and lymphovascular invasion present — the actionable-finding rule (R-SEV-MODERATE-02) takes precedence over the low-grade weight in the severity ladder's evaluation order, so severity resolves to moderate rather than minor. Raises F-URGENT-REFERRAL-001 (malignancy with lymphovascular invasion).
- well-differentiated-malignancy-minor — An isolated well-differentiated malignancy with clear margins, no lymphovascular invasion, and a linked request — minor severity via the low-grade-malignancy rule (R-SEV-MINOR-01); no flags raised.
- malignancy-present-ungraded-minor-missing-measurement — Malignancy is confirmed but no histological differentiation grade has been recorded yet (pending further work-up) — reaches minor severity via a distinct rule (R-SEV-MINOR-02, 'malignancy-ungraded') rather than the graded low-grade rule the previous persona used, and correctly raises the missing-measurement flag prompting the grade to be recorded.
- inadequate-specimen-inconclusive — An inadequate specimen (insufficient tissue for diagnosis) — classified inconclusive regardless of whatever partial diagnosis was possible; raises a high-priority inadequate-technique flag.
Contraceptive suitability evaluation using UK Medical Eligibility Criteria (UK MEC) categories with comprehensive risk profiling for DVT, cardiovascular disease, BMI, smoking, and migraine with aura.
- no-restriction-low — Healthy 24-year-old non-smoker with no medical, cardiovascular, or thromboembolic risk factors — UK MEC 1, low risk.
- family-vte-high — 38-year-old with a first-degree family history of venous thromboembolism — combined oral contraceptive reaches UK MEC 3, high risk.
- migraine-aura-critical — 32-year-old with migraine with aura — combined oral contraceptive is UK MEC 4 (unacceptable risk), critical.
A UK NHS–aligned blood cross-match / transfusion compatibility request (referral) that a clinician completes to request group-and-save, antibody screen, crossmatch, or emergency blood for a patient. It records the requested test type and blood component, the clinical indication, the patient's ABO/Rh blood group, antibody and transfusion history, pre-transfusion sample collection and two-sample (group-check) status, and the requested urgency — then computes a four-axis grading (appropriateness, identity / sample safety, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the transfusion laboratory's acceptance, query, and prioritization decision.
- routine-surgery-group-and-save-complete — Well-formed routine pre-operative request: group and save for elective surgery (first-line), positive patient ID confirmed, sample correctly labelled with the two-sample rule already satisfied from a prior admission, every completeness field present — expect usually-appropriate + ok + routine + accept.
- emergency-obstetric-haemorrhage-two-sample-not-met-reject — Postpartum haemorrhage: crossmatch is first-line and the obstetric-haemorrhage indication itself forces emergency triage, but this is the patient's only sample on file — the BSH/SHOT two-sample rule is not satisfied, so non-emergency red cells cannot be safely issued and the recommendation is to reject pending a second independent sample, regardless of how appropriate and complete the request otherwise is — expect usually-appropriate + reject-risk + emergency + reject.
- stat-massive-haemorrhage-emergency-o-negative-bypass-incomplete — Major trauma with massive haemorrhage phoned through from the emergency department: emergency O-negative is requested before the group is known, which is exactly the situation this test type exists for, so it bypasses the pre-transfusion compatibility safety gating entirely (issued immediately, band 'ok' by design) and both the emergency-O-negative request type and the declared massive haemorrhage independently force stat triage; several administrative fields are not yet captured — expect usually-appropriate + ok + stat + accept, completeness below 100.
A UK NHS–aligned blood cross-match / transfusion compatibility result (report) that a reporting clinician completes after pre-transfusion testing has been performed in the transfusion laboratory. It is the result/report counterpart to Blood Cross-Match Test Request (a referral): where the request captures why testing should be done and whether it is safe to proceed, this form records what the testing found and a structured interpretation. It records the ABO/RhD group, the antibody screen and any antibodies identified, the crossmatch / compatibility outcome and component availability, the identity-safety checks (two-sample group-check rule, historical-group concordance), special component requirements, the overall result status, narrative findings, the impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured transfusion-compatibility report.
- normal-compatible-group-o-negative-complete — A straightforward compatible crossmatch: group O RhD-negative, historical group concordant, antibody screen negative, two-sample rule met, exactly as many compatible units available as crossmatched, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-insufficient-units-moderate-complete — A compatible crossmatch with no antibodies and no identity-safety concerns, but only 2 of the 4 requested units are currently available: insufficient units is the one moderate-severity path that is NOT bundled into the critical-result predicate, so this stays at 'recommended' follow-up rather than escalating to critical-alert — expect abnormal classification + moderate severity + 100% completeness + recommended follow-up + further-testing.
- critical-abo-discrepancy-identity-safety-incomplete — A new sample groups as A-positive, but the historical record does not concordantly match it — a possible Wrong-Blood-in-Tube identity event per SHOT: this ABO discrepancy auto-escalates classification to critical and follow-up to critical-alert regardless of the other axes, independently of the crossmatch (withheld pending resolution) and the two-sample rule (met); the critical result has not yet been communicated, and several report sections are not yet completed while the discrepancy is investigated — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
Blood donation eligibility screening aligned with the JPAC Donor Selection Guidelines used by UK NHSBT, covering donor demographics, health status, medications, recent illness, travel history, lifestyle risk, and vital signs to determine donation eligibility.
- eligible — Fit repeat donor, normal vitals, no medical, travel, or lifestyle risk factors: eligible to donate.
- temporarily-deferred — Otherwise-fit donor with a tattoo in the past four months: temporarily deferred.
- permanently-deferred — Donor with a history of hepatitis B or C: permanently deferred.
A UK NHS–aligned pathology / phlebotomy blood-test order (request) that a clinician completes to order one or more blood-test panels for a patient. It records the requested panels, the clinical indication and details, pre-analytical and specimen-handling information (fasting, collection, tubes), patient-safety factors, and the requested urgency — then computes a four-axis grading (appropriateness, pre-analytical / specimen safety, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the laboratory's triage and accept / query / reject decision.
- routine-diabetes-monitoring-complete — Well-formed routine GP request: HbA1c monitoring for known type 2 diabetes, every completeness field present, no pre-analytical concerns — expect usually-appropriate + ok + routine + accept.
- urgent-lipid-profile-fasting-violation — Cardiovascular-risk lipid profile requested urgently but collected non-fasting — the panel requires fasting, so this forces a fasting violation and a reject-risk pre-analytical band even though the test choice itself is appropriate — expect usually-appropriate + reject-risk + urgent + query-referrer.
- stat-suspected-sepsis-blood-culture-incomplete — Suspected sepsis phoned through from the emergency department: full blood count + blood culture ordered (blood culture is a critical test, forcing stat triage regardless of requested urgency), but several administrative fields not yet captured — expect usually-appropriate + ok + stat + accept, completeness below 100.
A UK NHS–aligned blood / pathology test result (report) that a reporting clinician completes after a blood specimen has been analysed. It is the result/report counterpart to Blood Test Request (a referral / test order): where the request captures which tests should be done, this form records the quantitative result values the laboratory measured and a structured interpretation. It records the specimen and its condition, the clinical history, the analyte result values across the common panels (full blood count, urea & electrolytes / renal, liver function, inflammation, glycaemic, endocrine, haematinics, and coagulation), the overall result status with abnormal- and critical-value flags, the narrative and impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result (panic-value) alert. The output is a structured pathology report.
- normal-annual-health-check-complete — A normal routine annual-health-check panel: every measured analyte is within its reference range, eGFR is CKD G1, no abnormal or critical flags, all five mandatory report sections present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-ckd-progression-moderate-complete — Routine CKD monitoring bloods showing further renal decline: eGFR has fallen to 25 mL/min/1.73m2 (CKD G4), abnormalResultsPresent is flagged, report complete — expect abnormal classification + moderate severity + 100% completeness + recommended follow-up + repeat-test, with an abnormal-action flag and a separate urgent-referral flag from eGFR < 30 (two independently-triggered flags from the same low eGFR value).
- critical-severe-hyperkalaemia-uncommunicated-incomplete — Severe hyperkalaemia (potassium 7.2 mmol/L) phoned through from the on-call lab: a critical (panic) value auto-escalates classification to critical and follow-up to critical-alert regardless of the other axes; the result has not yet been recorded as communicated and no critical-value detail was recorded, each independently raising its own flag, alongside a missing impression and several other report sections left blank — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
An anthropometric calculator that converts a patient's height and weight into two derived measurements used throughout clinical practice:
- normal-weight — Routine primary-care screening: height 170 cm, weight 65 kg — BMI 22.5, WHO normal category.
- underweight — Nutritional assessment referral: height 175 cm, weight 50 kg — BMI 16.3, below the 18.5 underweight threshold.
- overweight — Annual health check: height 170 cm, weight 80 kg — BMI 27.7, WHO overweight category.
- obese-class-1 — Weight-management clinic review: height 165 cm, weight 90 kg — BMI 33.1, obese class I.
- obese-class-3-severe — Pre-operative bariatric assessment: height 165 cm, weight 120 kg — BMI 44.1, obese class III, specialist referral flag.
- asian-ancestry-increased-risk — Diabetes screening clinic: height 165 cm, weight 65 kg — BMI 23.9, WHO 'normal' but within the Asian increased-risk action point (23-27.5).
- chemotherapy-dosing-bsa — Oncology day unit, chemotherapy dose calculation — the actual purpose BSA exists for: height 160 cm, weight 55 kg, Du Bois formula selected for comparison against Mosteller.
- extreme-value-data-entry-error — Implausible weight entered (typo — an extra digit): height 170 cm, weight 450 kg — BSA would be unsafe to use for dosing without re-measurement; the extreme-value flag exists precisely for this.
- incomplete-missing-weight — Height recorded but weight not yet measured — BMI and BSA cannot be computed; both stay null rather than assuming a value.
Haematopoietic stem cell donor evaluation assessing HLA typing, health screening, anaesthetic fitness, and collection method suitability (peripheral blood stem cells vs bone marrow harvest).
- suitable-low-ideal-match — Healthy 36-year-old sibling, full 10/10 HLA match, ASA I, all screening negative: suitable donor, low overall risk.
- conditionally-suitable-moderate — 9/10 single-antigen mismatch donor with ASA II mild systemic disease (two grade-2 findings, no grade 3/4): conditionally suitable, moderate overall risk.
- unsuitable-critical-hepatitis-b — Otherwise ideal 10/10 match but hepatitis B surface antigen positive on screening (grade-4 transmissible-infection contraindication): unsuitable donor, critical overall risk.
A documentation and result-classification form for the NHS Bowel Cancer Screening Programme (BCSP). It records the outcome of a home faecal immunochemical test (FIT) kit: the participant's screening eligibility, whether the kit was returned and adequate, and the measured faecal haemoglobin concentration in micrograms of haemoglobin per gram of faeces (µg Hb/g). A result-classification engine compares the concentration against the programme threshold, assigns a result class (negative / positive / spoilt), sets the management action (routine recall / colonoscopy referral / repeat kit), validates completeness, and raises flagged issues.
- negative-routine-recall — Returned, adequate kit with faecal Hb 15 ug Hb/g (below the 120 threshold) and no red-flag symptoms: negative screen, routine two-yearly recall.
- positive-refer-colonoscopy — Returned, adequate kit with faecal Hb 240 ug Hb/g (at or above the 120 threshold): positive screen, refer for colonoscopy.
- spoilt-repeat-kit — Returned kit that leaked in transit and could not be analysed: sample spoilt, no numeric result, repeat kit issued.
A documentation and result-classification record for a mammography breast screening encounter within the NHS Breast Screening Programme (NHSBSP). It captures the screening episode end to end — eligibility, consent, the mammogram views taken, the radiological reporting outcome of film reading, and, where the woman is recalled, the assessment result expressed with a breast imaging classification. From these inputs the engine classifies the screening outcome and next action, validates completeness, and raises safety flags.
- normal-routine-recall — Eligible 58-year-old, adequate standard four-view mammogram read as normal: outcome routine 3-yearly recall (routine band).
- recall-indeterminate-followup — Recalled for assessment, imaged and classified 3 (indeterminate): outcome short-interval follow-up (assessment band).
- recall-malignant-urgent — Recalled, assessed and classified 5 (malignant): outcome urgent breast-clinic referral (urgent band).
A UK NHS–aligned airway endoscopy request (referral) that a clinician completes to request a bronchoscopy for a patient. It records the requested procedure, the clinical indication and specific question, relevant history, respiratory symptoms, imaging findings, bleeding / anticoagulation risk, and procedural risk — then computes a four-axis grading (appropriateness, cancer-pathway urgency, request completeness, and pre-procedure risk) plus a set of safety-critical flags. The output is a vetting report that supports the bronchoscopy service's triage and booking decision.
- routine-persistent-cough-flexible-bronchoscopy-complete — Well-formed routine referral: persistent cough despite treatment, flexible bronchoscopy requested (first-line), no haemoptysis or bleeding-risk factors, every completeness field present — expect usually-appropriate + routine + low risk + accept.
- two-week-wait-suspected-lung-cancer-ebus-antiplatelet-moderate-risk — Suspected lung cancer with a mediastinal mass on CT and unintentional weight loss: EBUS is the recommended (ideal) procedure for the suspected-lung-cancer indication, and the indication itself auto-escalates triage onto the NICE NG12 two-week-wait pathway regardless of the routine urgency requested; the weight loss independently would only escalate to urgent, so the more severe two-week-wait wins; clopidogrel forces moderate bleeding risk — expect usually-appropriate + two-week-wait + moderate risk + accept.
- query-referrer-massive-haemoptysis-other-procedure-mismatch-anticoagulant-incomplete — Massive haemoptysis on warfarin, phoned through from the emergency department: an 'other' procedure was requested even though flexible bronchoscopy is the recommended (and rigid/EBUS the plausible) procedure for the haemoptysis indication, a clear mismatch that forces appropriateness to usually-not-appropriate and the recommendation to query-referrer regardless of the massive haemoptysis independently forcing emergency triage; the anticoagulant forces high pre-procedure risk, and several administrative fields are not yet captured — expect usually-not-appropriate + emergency + high risk + query-referrer, completeness below 100.
A UK NHS–aligned bronchoscopy (airway endoscopy) result (procedure report) that an operating clinician completes after a bronchoscopy has been performed. It is the result/report counterpart to Bronchoscopy Test Request (a referral): where the request captures why a bronchoscopy should be done and whether it is safe, this form records what the procedure found and a structured interpretation. It records the performed procedure and sedation, the extent of the airway examined, the clinical history, the narrative and structured findings, the samples taken, any procedural complication, the impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured bronchoscopy report.
- normal-diagnostic-bronchoscopy-complete — A normal diagnostic flexible bronchoscopy for persistent cough: airways patent throughout, no abnormal structured findings, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-extrinsic-compression-major-urgent-not-critical — EBUS for CT-demonstrated subcarinal lymphadenopathy: significant extrinsic compression of the left main bronchus is confirmed, grading major severity via the dedicated extrinsic-compression rule — but extrinsic compression is deliberately not one of the three triggers in `hasCriticalFinding` (endobronchial lesion, bleeding, pneumothorax), so it escalates only to 'urgent' follow-up, not 'critical-alert'; report complete — expect abnormal classification + major severity + 100% completeness + urgent follow-up + specialist-referral.
- critical-suspected-endobronchial-tumour-uncommunicated-incomplete — A friable, partially obstructing endobronchial mass seen in the right main bronchus: the suspected endobronchial tumour auto-escalates classification to critical and follow-up to critical-alert, with the recommended action specifically naming an urgent lung-cancer MDT referral; the result has not yet been recorded as communicated, no lesion location was recorded despite the lesion being present, and several report sections (history, extent examined, impression) are not yet completed while the patient is worked up — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
A brief four-item screening questionnaire for alcohol misuse and dependence in adults. It asks four lifetime yes/no questions — remembered by the mnemonic CAGE (Cut down, Annoyed, Guilty, Eye-opener) — scores each answer 0 or 1, sums a total of 0–4, and flags a clinically significant result when the score is ≥ 2. A positive screen is a prompt for further assessment of drinking, not a diagnosis of an alcohol-use disorder.
- screen-negative — Adult who answers no to all four items: CAGE 0 of 4 — negative screen, below the positive cut-off.
- positive-screen — Two lifetime positive items (cut down, guilty): CAGE 2 of 4 — positive screen, clinically significant, warrants fuller assessment.
- high-positive-dependence — All four items positive including an eye-opener: CAGE 4 of 4 — strongly positive screen with a physical-dependence marker.
A structured venous thromboembolism (VTE) risk-stratification tool for surgical and medical inpatients. It records a checklist of weighted individual risk factors — each worth 1, 2, 3, or 5 points — sums them into a total Caprini score, maps the total to a risk band (very low, low, moderate, high), and recommends a prophylaxis strategy (early ambulation, mechanical, or pharmacological). A high score is a prompt to prescribe thromboprophylaxis after a bleeding-risk check; it is not a substitute for clinical judgement.
- low-mechanical — 52-year-old having minor day-case surgery, no other risk factors: Caprini 2 (age 41-60 + minor surgery) — low risk, mechanical prophylaxis.
- moderate-pharmacological-or-mechanical — 55-year-old with active malignancy undergoing surgery: Caprini 3 (age 41-60 + malignancy) — moderate risk, pharmacological or mechanical prophylaxis.
- high-pharmacological-plus-mechanical — 80-year-old with a hip fracture, active malignancy, and prior VTE: Caprini 13 (age 75+ 3 + hip/pelvis/leg fracture 5 + prior VTE 3 + malignancy 2) — high risk, pharmacological plus mechanical prophylaxis.
A UK NHS–aligned cardiac stress / exercise test request (referral) that a clinician completes to request a stress test for a patient with suspected or known cardiac disease. It records the requested test modality, the clinical indication and specific question, relevant history, presenting symptoms, ability to exercise, and the cardiac safety factors (known CAD, recent acute coronary syndrome, aortic stenosis, uncontrolled hypertension, beta-blocker use) — then computes a four-axis grading (appropriateness, safety / contraindication, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the cardiac investigations department's triage and booking decision.
- urgent-suspected-angina-chest-pain-treadmill-complete — Well-formed GP referral: suspected stable angina with chest pain, exercise treadmill ECG requested (first-line), patient able to exercise, no contraindications, every completeness field present. Chest pain plus a suspected-angina indication auto-escalates the rapid-access chest-pain pathway to urgent regardless of the routine urgency requested — expect usually-appropriate + ok + urgent + accept.
- exercise-tolerance-treadmill-unable-to-exercise-redirect — Exercise tolerance assessment ahead of a pulmonary rehabilitation programme: exercise treadmill ECG is the only listed ideal test for exercise-tolerance, so appropriateness scores well, but severe osteoarthritis means the patient cannot exercise on a treadmill — the exercise-safety rule redirects to a pharmacological/imaging alternative regardless of how appropriate the test choice was on paper — expect usually-appropriate + caution + routine + redirect.
- emergency-recent-acs-contraindicated-incomplete — Chest pain referral phoned through from the emergency department: exercise treadmill ECG would be first-line for suspected angina, but the patient had an NSTEMI four days ago — recent acute coronary syndrome is an absolute contraindication to stress testing until stabilised, and also forces emergency same-day cardiology review, overriding the routine-looking test request; several administrative fields are not yet captured — expect usually-appropriate + contraindicated + emergency + reject, completeness below 100.
A UK NHS–aligned cardiac stress / exercise test result (report) that a reporting clinician completes after a stress test has been performed. It is the result/report counterpart to Cardiac Stress Test Request (a referral): where the request captures why a stress test should be done and whether it is safe, this form records what the test found and a structured interpretation. It records the performed test type and protocol, the clinical history, the haemodynamic and exercise response (peak heart rate, percent-predicted heart rate, exercise duration, METs, blood-pressure response), the structured ECG / symptom / arrhythmia findings, the overall positive / negative / inconclusive conclusion, the Duke treadmill prognostic score, the impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured cardiology report.
- normal-negative-treadmill-low-risk-duke — Negative exercise treadmill ECG with excellent functional capacity and a low-risk Duke treadmill score (+11, above the +5 low-risk threshold) — every axis at baseline.
- actionable-chest-pain-no-critical-trigger — Typical exertional chest pain reproduced at a submaximal workload without diagnostic ST-segment change — an actionable finding graded moderate, short of the critical threshold; an intermediate-risk Duke score.
- strongly-positive-ischaemia-critical — Positive test with induced ischaemic ST changes at a low workload and a high-risk Duke treadmill score (-14) — a strongly positive result that auto-escalates to critical; already communicated to the on-call cardiologist.
- exertional-hypotension-critical — Test terminated early due to a hypotensive blood-pressure response to exercise — a critical trigger on its own with no ischaemic ECG change; not yet communicated to the referrer.
- ischaemia-at-low-workload-critical — ST-segment depression induced at only 4 METs — a high-risk finding on its own even though the overall conclusion was not marked positive; auto-escalates to critical via the low-workload-ischaemia trigger rather than the strongly-positive trigger.
- high-risk-duke-score-discordant-critical — A high-risk Duke treadmill score exactly at the -11 threshold with no other abnormal structured finding recorded and the conclusion not marked positive — the Duke score alone drives the critical escalation, surfacing the discordance for the reporting clinician to reconcile.
- inconclusive-submaximal-test — Study terminated early at only 78% of predicted maximum heart rate with no diagnostic ST change or symptoms — non-diagnostic due to submaximal effort, correctly marked inconclusive rather than assumed negative.
- terminated-early-no-impression-inconclusive — Test terminated early for a non-cardiac reason (leg fatigue) with no structured findings recorded and no impression written yet — inconclusive on the terminated-with-no-impression rule, distinct from the submaximal-effort persona above.
- positive-ecg-missing-duke-score — Overall conclusion marked positive by symptom/clinical criteria with no corroborating ST-segment change, chest pain, or arrhythmia, and no Duke treadmill score calculated — an edge case where the classification is abnormal but the independently-graded severity lands at none, surfacing the missing-measurement flag for the reporting clinician to resolve.
Cardiovascular evaluation using CCS Angina Classification and NYHA Heart Failure Classification with comprehensive cardiac risk profiling.
- low-stable-angina — CCS Class I exertional angina only, no other findings: overall cardiovascular risk low.
- moderate-angina-diabetes — CCS Class II angina with diabetes mellitus and peripheral oedema: overall cardiovascular risk moderate.
- critical-acs — CCS Class IV rest angina with unstable angina and a recent MI within 12 weeks: overall cardiovascular risk critical.
A UK NHS–aligned cardiology referral / consult request that a clinician completes to refer a patient into a cardiology service. It records the requested cardiology service and the primary reason for referral, the specific clinical question, presenting symptoms and functional class, acute red flags, investigations already performed (resting ECG, troponin, BNP), the patient's cardiac history and risk factors, and triage details — then computes a four-axis vetting grade (referral appropriateness, safety / red-flag, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the cardiology department's triage and booking decision.
- routine-palpitations-complete — Well-formed routine GP referral: intermittent palpitations, normal ECG done, no red flags, sent to the arrhythmia/EP clinic — every completeness field present, expect appropriate + routine triage.
- urgent-typical-angina — Urgent rapid-access chest-pain referral: exertional typical angina in a diabetic ex-smoker, normal troponin, ECG done — expect red-flag caution and urgent (2-week) triage with the typical-angina escalation fired.
- suspected-acs-escalated-incomplete — Out-of-hours call handler's sparse note: suspected ACS with elevated troponin but requested as routine and missing NHS number, urgency, and clinical question — expect emergency escalation overriding the request, red-flag safety band, missing-field rules, and the ACS flag.
A UK NHS–aligned cardiology response (consult reply) that a cardiology clinician completes in answer to a cardiology referral. It is the response/report counterpart to [`cardiology-request`](../cardiology-request): where the request captures why a patient should be seen and how urgently, this form records what the cardiology assessment found and what should happen next. It records the consultation type, the clinical summary and examination, the investigations performed, the structured findings, the diagnosis, the key left-ventricular ejection fraction measurement, the management plan and follow-up, and critical-result communication — then computes a four-axis interpretation grade (response classification, condition severity / structured findings, response completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured cardiology response letter.
- final-no-abnormality — Complete final clinic-review reply: normal examination and echo, non-cardiac musculoskeletal cause, discharged back to the GP — expect no-abnormality, severity none, full completeness, routine follow-up.
- heart-failure-reduced-ef — Final reply diagnosing heart failure with reduced ejection fraction (EF 32%): full sections, medication changes started, urgent HF-nurse follow-up — expect cardiac-condition, major severity, urgent follow-up.
- critical-uncommunicated-preliminary — Preliminary inpatient reply with a critical finding (severe aortic stenosis with syncope) marked critical but NOT yet communicated, management sections still empty — expect critical classification, critical-alert follow-up, and the uncommunicated-critical-result / incompleteness rules to fire.
A practitioner-completed administrative card that places a patient on a cardiology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 cardiology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 cardiology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 cardiology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Basic Life Support (BLS) cardiopulmonary resuscitation competency assessment aligned with AHA/Resuscitation Council (UK) guidelines, used to certify rescuers on adult BLS and AED skills with pass/fail criteria and critical-action review.
- pass-all-criteria-met — Every step performed correctly, compression rate 110/min and depth 5.5 cm both within AHA range — expect pass, zero critical failures, zero deficiencies.
- fail-three-non-critical-deficiencies — No critical steps missed, but three non-critical items fail (hazard scan, breath timing, closed-loop orders) — exceeds the engine's 2-deficiency limit — expect fail via accumulated non-critical deficiencies, not a critical failure.
- fail-critical-compressions-and-breaths — Compression rate 140/min (too fast) and depth 3.5 cm (too shallow) both derived out-of-range from the numeric measurements, plus no visible chest rise on rescue breaths — three of the engine's four critical rules fail — expect fail via critical failures.
Read-and-acknowledge privacy notice form based on the BMA GDPR template for GP practices.
- complete-acknowledged-signed-dated — The patient has read the notice, ticked the acknowledgement box, and given their name and the date — expect overallStatus complete with no fired rules.
- incomplete-signed-but-box-unticked — Name and date are filled in but the acknowledgement box was left unticked — the one check that fails is the tick, so expect overallStatus incomplete with exactly one fired rule (acknowledgment-not-checked).
- incomplete-nothing-acknowledged — The notice was opened (practice details configured) but the acknowledgement step was never completed — box unticked, name and date blank, with the date field holding whitespace only, which the trim-based check correctly treats as blank — expect overallStatus incomplete with all three rules fired.
A clinical document used in Emergency Departments (ED) and Minor Injury Units (MIU). Captures patient information from arrival through triage, assessment, treatment, and disposition.
- Minor injury walk-in - inversion ankle sprain, NEWS2 0 — A 24-year-old woman walks in with a twisted ankle after netball; all seven NEWS2 parameters in the zero band (RR 16, SpO2 98, SBP 122, HR 74, alert, 36.8 C, no oxygen), GCS 15, reactive pupils, haemorrhage recorded as exactly 'none', airway patent, no anticoagulant, penicillin allergy graded mild, pregnancy test negative, no safeguarding concern, MHA status blank. Discharged with RICE advice. Expect totalScore 0, clinicalResponse 'low', hasAnySingleScore3 false, all seven parameterScores 0, and an empty flaggedIssues array.
- Elderly hypothermia - boundary values, low-medium via single 3 — An 84-year-old man found on his kitchen floor overnight; tympanic temperature exactly 35.0 C (upper edge of the score-3 band), HR exactly 50 (upper edge of the score-1 band), SpO2 unmeasurable through cold peripheries (null, scores 0 as N/A), RR 12, SBP 111 and 'alert' all at the bottom of their zero bands. Total 4 is below the medium threshold but the single 3 gives 'low-medium'. Also exercises two text-quirks: haemorrhage 'None visible, skin tear dressed' (an explicit negative that still fires the haemorrhage flag because it is not exactly 'none') and mentalHealthActStatus 'Informal' (any non-empty value fires mha-section). Penicillin allergy graded moderate (no anaphylaxis flag), aspirin only (no anticoagulant flag), GCS 14. Expect totalScore 4, clinicalResponse 'low-medium', hasAnySingleScore3 true, parameterScores [0, 0 (N/A), 0, 1, 0, 3, 0], and three flags: news2-single-3 ('Temperature'), haemorrhage (high), mha-section (medium).
- Pedestrian vs car - major trauma, NEWS2 18, every flag — A 32-year-old pregnant woman on rivaroxaban for a prior DVT, struck by a car driven by her partner; paramedics disclose a domestic-abuse concern. RR 28 (3), SpO2 89 (3), SBP 78 (3), HR 134 (3), responds to pain only (3), 35.4 C (1), on 15 L oxygen (2) = 18. GCS 6 (E1 V2 M3), left pupil unreactive, airway compromised, active haemorrhage from an open femoral fracture, anaphylaxis to penicillin, pregnancy test positive. Expect totalScore 18, clinicalResponse 'high', hasAnySingleScore3 true, and ten flags in order: news2-critical, news2-single-3 (Respiratory Rate, SpO2 (Scale 1), Systolic BP, Pulse, Consciousness), safeguarding, anaphylaxis-history (Penicillin), anticoagulant, gcs-low (6), pupil-unreactive, haemorrhage, airway-compromised (all high), then pregnancy (medium). No mha-section flag because the status is blank.
A comprehensive cataract diagnostic evaluation: the ophthalmic assessment used to confirm the presence of a cataract, grade its severity against the validated LOCS III (Lens Opacities Classification System III) instrument, assess its functional impact on the patient's daily life, rule out competing posterior-segment pathology (glaucoma, age-related macular degeneration, diabetic retinopathy), and determine surgical candidacy. Performed by an optometrist or ophthalmologist. The output is a signed evaluation report with a computed surgical-candidacy recommendation suitable for the clinical record and for referral into a cataract-surgery pathway.
- Early bilateral nuclear sclerosis - monitor — A 68-year-old woman with mild early nuclear sclerosis in both eyes (LOCS III NO 2.0, NC 2.0, C 1.0, P 0.5 bilaterally), best-corrected LogMAR 0.10 both eyes, mild glare impact, IOP 16/17, dilated fundus normal, no competing pathology, plan to monitor with no biometry. Functional difficulty reading 1, driving 0, daily 1. Expect locsIIISeverityRight and Left 'mild', computedSurgicalCandidacy and finalSurgicalCandidacy 'not-indicated', overrideReason '', functionalImpactScore 2, firedRules [R-LOCS-SEVERITY-RIGHT-MILD, R-LOCS-SEVERITY-LEFT-MILD] and an empty flags array.
- Threshold values, pseudophakic fellow eye, low flag escalates then overridden — A 74-year-old man whose left eye is pseudophakic (LOCS III not graded, severity '') and whose right eye sits on every boundary: NC exactly 3.0 (moderate), BCVA LogMAR exactly 0.30 (NOT worse than 6/12 under the strict > test), IOP exactly 21 (not raised), symptom duration 2 months with no severe eye (no rapid-progression flag). A routine surgical referral is made without biometry, so the LOW-priority F-BIOMETRY-INCOMPLETE flag fires and, because the engine escalates on flags.length rather than priority, the computed candidacy jumps to 'urgent-referral'; the optometrist overrides to 'consider' with a reason. Driving difficulty left unanswered (null counts as 0). Expect locsIIISeverityRight 'moderate', locsIIISeverityLeft '', computedSurgicalCandidacy 'urgent-referral', finalSurgicalCandidacy 'consider', overrideReason set, functionalImpactScore 3, firedRules [R-LOCS-SEVERITY-RIGHT-MODERATE, R-CANDIDACY-MODERATE-LOCS, R-CANDIDACY-URGENT-FLAG ('1 safety flag(s)')] and flags [F-BIOMETRY-INCOMPLETE-FOR-SURGICAL-PLANNING-001].
- Paediatric steroid-induced posterior subcapsular cataract - urgent, six flags — A 14-year-old on long-term oral prednisolone for nephrotic syndrome with a two-month history of rapidly worsening right vision: right eye P 5.5 (severe), left eye NC 3.5 (moderate), BCVA right LogMAR 1.0 and left 0.40, severe glare impact, IOP 28/24 (steroid response), glaucoma suspected, right fundus view obscured with no dilated exam, urgent surgical referral without biometry, no override. Driving not applicable (null). Expect locsIIISeverityRight 'severe', locsIIISeverityLeft 'moderate', computed and final candidacy 'urgent-referral', overrideReason '', functionalImpactScore 8, eight firedRules in order [R-LOCS-SEVERITY-RIGHT-SEVERE, R-LOCS-SEVERITY-LEFT-MODERATE, R-CANDIDACY-MODERATE-LOCS, R-CANDIDACY-ACUITY-6-12, R-CANDIDACY-SEVERE-LOCS, R-CANDIDACY-ACUITY-6-18, R-CANDIDACY-GLARE-SEVERE, R-CANDIDACY-URGENT-FLAG ('6 safety flag(s)')] and six flags in detection order: F-COMPETING-PATHOLOGY-SUSPECTED-001 (glaucoma), F-RAISED-IOP-001 (right 28, left 24), F-VIEW-OBSCURED-FUNDUS-NOT-ASSESSED-001, F-RAPID-PROGRESSION-001 (2 months), F-BIOMETRY-INCOMPLETE-FOR-SURGICAL-PLANNING-001, F-PAEDIATRIC-001 (age 14 at 2026-09-01).
A clinical prediction tool that estimates the likelihood that an acute sore throat is caused by group A beta-haemolytic streptococcus (GABHS, "strep") and therefore the likelihood that antibiotics would help. It records four objective Centor criteria, each scoring 1 point when present — tonsillar exudate, tender anterior cervical lymphadenopathy, fever (temperature > 38 °C or a history of fever), and absence of cough — for a Centor total of 0–4. The McIsaac modification adds an age modifier (+1 for ages 3–14, 0 for 15–44, −1 for ≥ 45) to give a modified score of −1 to 5 that adjusts for the age-related probability of streptococcal infection.
- low-viral — 50-year-old with a cough and no fever, exudate, or tender nodes: Centor 0, McIsaac -1 (age >= 45) — low probability of strep, avoid antibiotics.
- moderate-consider-testing — 30-year-old with tonsillar exudate and tender anterior cervical nodes but a cough and no fever: Centor 2, McIsaac 2 (age 15-44 modifier 0) — moderate probability, consider a rapid antigen test or swab.
- high-antibiotic-consideration — 8-year-old with tonsillar exudate, tender nodes, fever above 38 C, and no cough: Centor 4, McIsaac 5 (age 3-14 modifier +1) — high probability of strep, consider testing or empirical antibiotics.
A structured record of a cervical screening (smear) encounter under the UK NHS Cervical Screening Programme (NHS CSP). It documents the sample-taking consultation and the laboratory result, then classifies the result and the management outcome so that the correct next action — routine recall, early repeat, colposcopy referral, or cease — is recorded and communicated.
- hpv-negative-routine-recall — Adequate sample, high-risk HPV not detected: result class hpv-negative — return to routine recall at the age-appropriate interval.
- hpv-positive-cytology-normal-early-repeat — Adequate sample, high-risk HPV detected with reflex cytology negative: result class hpv-positive-cytology-normal — early repeat HPV test at 12 months.
- hpv-positive-high-grade-urgent-colposcopy — Adequate sample, high-risk HPV detected with high-grade dyskaryosis: result class hpv-positive-cytology-abnormal-high — urgent colposcopy referral.
A clinical prediction tool that estimates the annual risk of ischaemic stroke and systemic thromboembolism in adults with non-valvular atrial fibrillation (AF), and guides the decision to start oral anticoagulation. It records eight weighted risk factors — Congestive heart failure, Hypertension, Age ≥ 75, Diabetes, prior Stroke/TIA/thromboembolism, Vascular disease, Age 65–74, and Sex category (female) — sums a total of 0–9, and maps the total to a risk band with anticoagulation guidance and an estimated annual stroke rate.
- low-male — 55-year-old man with lone paroxysmal AF and no risk factors: CHA2DS2-VASc 0 — low risk, no antithrombotic therapy indicated.
- intermediate-male — 68-year-old man, single age point only: CHA2DS2-VASc 1 — intermediate risk, consider oral anticoagulation.
- high-female — 79-year-old woman with heart failure, hypertension, diabetes, vascular disease and prior stroke: CHA2DS2-VASc 9 — high risk, anticoagulation recommended.
A practitioner-completed administrative card that places a patient on a child psychiatry waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 child psychiatry referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 child psychiatry referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 child psychiatry referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A prognostic score for the severity of chronic liver disease, principally cirrhosis. It grades five parameters — total bilirubin, serum albumin, INR (or prothrombin time), ascites, and hepatic encephalopathy — on a 1-to-3 scale, sums a total of 5-15, and assigns a class (A, B, or C) that maps to estimated one- and two-year survival and to peri-operative mortality risk. The score guides prognosis, transplant assessment, and surgical-risk stratification.
- class-a-compensated — Well-compensated cirrhosis with near-normal synthetic function: Child-Pugh total 5 — Class A, low peri-operative risk.
- class-b-significant-compromise — Significant functional compromise with jaundice, hypoalbuminaemia and prolonged INR: Child-Pugh total 8 — Class B, moderate surgical risk.
- class-c-decompensated — Decompensated cirrhosis with deep jaundice, severe hypoalbuminaemia, coagulopathy, refractory ascites and encephalopathy: Child-Pugh total 14 — Class C, prohibitive surgical risk.
A structured referral to children's social care when a professional believes a child may be at risk of harm. It captures the child and family details, the concern or allegation, the category of abuse, the presenting evidence, the immediate risk and safety picture, the consent and information-sharing basis, who else has been informed, and the action requested. A rules engine then grades the completeness and validity of the referral, classifies its urgency (emergency / urgent under Children Act 1989 s47, or standard under s17), and raises safeguarding flags (for example immediate danger, a disclosure of abuse, or a missing consent basis).
- neglect-standard-with-consent — Teacher-referred neglect concern with parental consent given and no immediate danger — expect standard urgency with the mandatory rules satisfied.
- disclosure-urgent-consent-not-sought — Same-day sexual-abuse disclosure with the alleged person in weekly contact; consent deliberately not sought on the seeking-consent-increases-risk basis — expect urgent classification with the consent-basis rule satisfied.
- immediate-danger-incomplete-referral — Emergency: facial bruising, child removed from school mid-day, immediate danger yes — but the rushed referral is missing referrer contact, child DOB/age, and a lawful sharing basis — expect emergency urgency with an incomplete status and mandatory rules failing.
A UK primary-care structured review that documents the annual (or interval) monitoring of an adult with chronic kidney disease (CKD) and classifies the patient on the KDIGO GFR × albuminuria risk heat-map. It records the two staging measurements — estimated glomerular filtration rate (eGFR) with its G-stage (G1–G5) and urine albumin-to-creatinine ratio (ACR) with its albuminuria stage (A1–A3) — derives the KDIGO risk zone (low / moderate / high / very high), grades how complete the review is against the recommended monitoring bundle, and raises flags that map to NICE NG203 referral and safety criteria.
- low-risk-complete-review — Stable G2/A1 CKD, complete annual review bundle, blood pressure at the standard 140/90 target (no diabetes, ACR under 70) — KDIGO low risk zone.
- moderate-risk-g3a-a1 — G3a with normal albuminuria (A1) — KDIGO moderate risk zone, the top-left step into the heat-map's moderate band.
- high-risk-diabetic-above-target — G3a/A2 with type 2 diabetes — KDIGO high risk zone; the tighter 130/80 target applies because of diabetes, and the recorded blood pressure (135/85) is above it — uncontrolled blood pressure flag.
- very-high-risk-g4-nephrology-referral — G4 (eGFR 20) — KDIGO very-high risk zone regardless of albuminuria stage, and eGFR below 30 fires the nephrology-referral flag on its own.
- high-risk-heavy-proteinuria-acr-referral — G2/A3 (eGFR 70, ACR 80 mg/mmol) — KDIGO high risk zone on the heat-map, and the ACR-≥70 threshold fires the nephrology-referral flag independently of the risk zone, plus pulls the blood-pressure target to 130/80 regardless of diabetes status.
- rapid-egfr-decline — eGFR fell from 60 (G2) to 40 (G3b) over the past year — a 33% fall with a G-stage change, meeting the rapid-decline rule and firing that flag independently of the (unchanged) risk-zone logic.
- hyperkalaemia-severe — Potassium 6.5 mmol/L — at or above the 6.0 severe hyperkalaemia threshold (high priority), distinct from the 5.5-5.9 medium-priority band.
- partial-review-acr-not-measured — eGFR and blood pressure recorded, but ACR was not measured this visit — reviewStatus 'partial' (eGFR and BP present, one bundle item missing), and kdigoRiskZone stays null since the A-stage cannot be determined.
- incomplete-review-missing-egfr — eGFR was not recorded at all this visit — the review is 'incomplete' per spec §4 (eGFR missing overrides everything else), and no G-stage or KDIGO risk zone can be derived even though other data was collected.
A UK primary-care annual review for adults with a confirmed diagnosis of chronic obstructive pulmonary disease (COPD). It records the objective and patient-reported findings that a structured COPD review should capture — spirometry, symptom burden, exacerbation history, smoking status, inhaler technique and adherence, vaccinations, pulmonary rehabilitation, oxygen, comorbidities, and the self-management / rescue-pack plan — then derives a GOLD airflow-limitation grade (1–4), a combined ABE assessment group, a review completeness grade, and a set of clinical flags that prompt action.
- well-controlled-group-a — Mild airflow limitation, low symptom burden and no exacerbations: GOLD 1, ABE group A — well-controlled, complete review.
- symptomatic-group-b — Moderate airflow limitation with high symptom burden but low exacerbation risk: GOLD 2, ABE group B — symptomatic, complete review.
- high-risk-group-e — Very severe airflow limitation with frequent and hospitalised exacerbations: GOLD 4, ABE group E — high-risk, poorly controlled, complete review.
A practitioner-completed administrative card that places a patient on a clinical biology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 clinical biology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 clinical biology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 clinical biology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A practitioner-completed administrative card that places a patient on a clinical chemistry waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 clinical chemistry referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 clinical chemistry referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 clinical chemistry referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A practitioner-completed administrative card that places a patient on a clinical microbiology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 clinical microbiology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 clinical microbiology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 clinical microbiology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A practitioner-completed administrative card that places a patient on a clinical neurophysiology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 clinical neurophysiology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 clinical neurophysiology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 clinical neurophysiology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A UK NHS–aligned coagulation / haemostasis blood-test request (referral) that a clinician completes to order one or more coagulation tests for a patient. It records the requested tests, the clinical indication and details, the patient's anticoagulant and bleeding / thrombosis history, pre-analytical specimen handling, and the requested urgency — then computes a four-axis grading (appropriateness, pre-analytical specimen safety, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the laboratory's and haematology team's triage and processing decision.
- routine-warfarin-monitoring-complete — Well-formed routine anticoagulation clinic request: PT/INR for warfarin monitoring, specimen correctly collected with adequate citrate fill and confirmed 9:1 ratio, every completeness field present — expect usually-appropriate + ok + routine + accept.
- urgent-bleeding-disorder-citrate-underfilled-reject-risk — Factor assay work-up for a suspected bleeding disorder is appropriate, but the citrate tube was under-filled — a reject-risk specimen overrides everything else and the recommendation is to reject the specimen and recollect, independent of how appropriate the test choice was — expect usually-appropriate + reject-risk + urgent + reject.
- stat-suspected-dic-active-bleeding-incomplete — Suspected DIC with active major bleeding, phoned through from the emergency department: full DIC panel ordered (first-line), activeBleeding and suspectedDic both independently force STAT triage, specimen not yet collected, and several administrative fields are not yet captured — expect usually-appropriate + caution (uncollected specimen) + stat + accept, completeness below 100.
A UK NHS–aligned coagulation / haemostasis test result (report) that a reporting clinician completes after a coagulation test has been performed. It is the result/report counterpart to Coagulation Test Request (a referral): where the request captures why the tests should be done and is it safe, this form records the reported result values and a structured interpretation. It records the performed analysis and specimen condition, the clinical history and anticoagulant status, the coagulation result values (prothrombin time / INR, activated partial thromboplastin time / ratio, fibrinogen, D-dimer, thrombin time, and factor assays), the narrative and impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured haematology report.
- normal-pre-operative-screen-complete — A normal pre-operative coagulation screen: PT, INR, APTT, fibrinogen, D-dimer, and thrombin time all within the adult reference range, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-isolated-aptt-prolongation-moderate-complete — Pre-operative screening reveals an isolated APTT prolongation (55 seconds, ratio 1.5) with a normal PT/INR and no bleeding history: this grades moderate severity via the dedicated isolated-APTT rule, not a critical value, so follow-up stays at 'recommended' rather than escalating — and, since the 2026-09-06 fix, follow-up now correctly fires the dedicated R-FU-RECOMMENDED-03 mixing-studies recommendation rather than the generic moderate-abnormality message — report complete — expect abnormal classification + moderate severity + 100% completeness + recommended follow-up + further-testing.
- critical-warfarin-inr-9-2-uncommunicated-incomplete — INR 9.2 on warfarin — above the BSH reversal threshold of 8 — auto-escalates classification to critical and follow-up to critical-alert regardless of the other axes; the critical result has not yet been recorded as communicated, and the clinical history, comparison, and impression sections are not yet completed while reversal is arranged — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
Read-and-acknowledge code of conduct notice presenting the twelve core principles that medical-service providers and supporting staff must uphold, with signature capture to record acknowledgement.
- Fully acknowledged - all six fields complete — Every required field filled and the checkbox agreed. Expect completeness 100, status 'Complete', no fired rules, no flags.
- Declined - typed name and date present but the checkbox is unchecked — Non-critical edge case demonstrating the false-counts-as-empty behaviour: recipient details are complete and the recipient typed their full name and today's date, but explicitly left the acknowledgement checkbox unchecked (agreed: false). Expect completeness 83 (5 of 6 required fields count as filled; REQ-AK-001 alone fires), status 'Incomplete', and exactly one flag: FLAG-NOACK-001 (high).
- Critical - blank recipient details with an implausibly short typed name — Critical/highest-severity persona for this completeness form: recipient details are entirely blank, the checkbox is unchecked, the typed date is blank, and the typed name is 'Al' (2 characters - non-blank, so it does NOT fire REQ-AK-002, but IS short enough to fire the independent FLAG-NAME-001 check). Expect completeness 17 (1 of 6 fields counts as filled - the non-blank typed name), status 'Incomplete', five fired rules (REQ-RD-001, REQ-RD-002, REQ-RD-003, REQ-AK-001, REQ-AK-003 - REQ-AK-002 does not fire), and three flags in priority order: FLAG-NOACK-001 (high), FLAG-CONFIG-001 (high, listing all three missing recipient-detail fields), FLAG-NAME-001 (medium).
Cognitive function screening using the MMSE (Mini-Mental State Examination) with functional impact assessment.
- Normal cognition - all 30 items correct — Every one of the 30 MMSE items scored 1. Expect mmseScore 30, category 'Normal cognition', all 30 fired rules (one per item, in domain order), and no flags.
- Mild impairment with isolated registration and naming deficits — Non-critical edge case: scattered misses across several domains (orientation 4/5 time + 4/5 place, registration 1/3, attention 3/5, recall 2/3) combine with a language score of 5/8 that still clears the language-impairment floor of 3, EXCEPT that both naming items (repetitionCommands.naming1/naming2) are explicitly 0. Expect mmseScore 20 ('Mild cognitive impairment', the 18-23 band), 20 fired rules (one per item scored exactly 1), and exactly two flags in check order: FLAG-MEMORY-002 (registration 1/3, medium) and FLAG-LANGUAGE-002 (both naming items failed, medium) - FLAG-LANGUAGE-001 does NOT fire because the total language score (5) is above its <=3 floor.
- Critical - every item scored 0, nine high-priority safety flags — Critical/highest-severity persona: all 30 items explicitly scored 0 (not left unanswered) across every domain, a documented safety concern (stove left unattended), four ADLs fully dependent, living alone, no carers available, and a date of birth giving an age of 58 (under 65). Verified quirk: mmseScore is 0 and firedRules is an EMPTY array - not one item scored 1, so nothing qualifies for the audit trail, even though every domain was genuinely answered (as 0, not null) and every domain-specific flag still fires because each domain's 'answered' check only requires a non-null response. Expect mmseScore 0, category 'Severe cognitive impairment', firedRules [], and fourteen flags in priority order: nine high (FLAG-SEVERE-001, FLAG-ORIENT-TIME-001, FLAG-ORIENT-PLACE-001, FLAG-MEMORY-001, FLAG-ATTENTION-001, FLAG-SAFETY-001, FLAG-FUNCTIONAL-001, FLAG-LIVING-001, FLAG-YOUNG-001) then five medium (FLAG-MEMORY-002, FLAG-LANGUAGE-001, FLAG-LANGUAGE-002, FLAG-CARER-001, FLAG-VISUOSPATIAL-001).
A UK NHS–aligned lower-GI endoscopy procedure request (referral) that a clinician completes to request a colonoscopy (or flexible sigmoidoscopy / CT colonography) for a patient. It records the requested procedure, the clinical indication and specific question, lower-GI red-flag symptoms, the FIT and haemoglobin results, anticoagulant / antiplatelet medication, bowel-preparation fitness and renal function, ASA physical status, and the requested urgency — then computes a four-axis grading (appropriateness, cancer-pathway urgency, request completeness, and pre-procedure risk) plus a set of safety-critical flags. The output is a vetting report that supports the endoscopy unit's triage and booking decision.
- routine-polyp-surveillance-colonoscopy-low-risk-complete — Well-formed routine surveillance referral: colonoscopy is first-line for polyp-surveillance, the FIT recorded for completeness is negative (4 ug Hb/g, below the NICE DG56 threshold of 10, so it does not itself trigger the suspected-cancer pathway), no anticoagulation or fitness concerns, every completeness field present — expect usually-appropriate + low risk + routine + accept.
- two-week-wait-positive-fit-colonoscopy-anticoagulant-high-risk-redirect — Symptomatic patient with a strongly positive FIT test: colonoscopy is first-line and the FIT result alone (45 ug Hb/g, well above the NICE DG56 threshold of 10) meets two-week-wait suspected-cancer eligibility regardless of requested urgency, but the patient is on rivaroxaban — anticoagulation is a high bleeding risk for this high-risk procedure and the recommendation is to redirect for periprocedural anticoagulant planning before booking, even though the request is otherwise appropriate and complete — expect usually-appropriate + high risk + two-week-wait + redirect.
- emergency-active-rectal-bleeding-incomplete — Active rectal bleeding phoned through from the emergency department: colonoscopy is first-line for rectal-bleeding, and the combination of the emergency setting with active bleeding auto-escalates triage to emergency regardless of the requested urgency; the patient is on no anticoagulation and otherwise low risk, but several administrative fields are not yet captured — expect usually-appropriate + low risk + emergency + accept, completeness below 100.
A UK NHS–aligned colonoscopy procedure result (report) that a reporting clinician (endoscopist) completes after a lower-GI endoscopy has been performed. It is the result/report counterpart to Colonoscopy Test Request (a referral): where the request captures why a procedure should be done, this form records what the procedure found and a structured interpretation. It records the performed procedure and extent reached, bowel-preparation quality and sedation, the clinical history, the narrative and structured findings, the polyp count and largest-polyp size, biopsy / polypectomy and any complication, the impression and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured endoscopy report.
- normal-screening-colonoscopy-to-caecum-complete — A normal diagnostic colonoscopy to the caecum with good bowel preparation: no polyps, mass, diverticulosis, inflammation, angiodysplasia, or bleeding source, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-multiple-polyps-high-risk-surveillance-moderate-complete — A positive-FIT screening colonoscopy finds and removes four adenomatous polyps, the largest 12mm: the polyp count (>= 3) and size (>= 10mm) together place this in the high-risk surveillance band, grading moderate severity; report complete — expect abnormal classification + moderate severity (high-risk-surveillance) + 100% completeness + recommended follow-up + further-imaging.
- critical-suspected-malignant-mass-uncommunicated-incomplete — A large, irregular, friable mass seen at the hepatic flexure, highly suspicious for malignancy and partially obstructing the lumen: the mass lesion auto-escalates classification to critical and follow-up to critical-alert, with the recommended action naming an urgent MDT / colorectal-surgical referral; the result has not yet been recorded as communicated and no originating request is linked, and the clinical history, impression, and recommended follow-up sections are not yet completed while staging is arranged — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
A structured, evidence-based instrument for assessing suicide risk. It records the severity of suicidal ideation on a five-point ordinal scale, the presence of distinct categories of suicidal behaviour, and the lethality of any actual attempt, then classifies the patient into a Low / Moderate / High risk tier that drives a proportionate management response. The C-SSRS is a status- and severity-classification instrument: it is not a summed questionnaire score, and its output is a risk stratification, not a diagnosis.
- low-passive-ideation — Passive wish to be dead only (ideation level 1), no active ideation and no suicidal behaviour — Low risk tier.
- moderate-active-ideation-no-plan — Active suicidal ideation with a method in mind but no specific plan or intent (ideation level 3), no suicidal behaviour — Moderate risk tier.
- high-plan-intent-recent-attempt — Active ideation with a specific plan and intent (ideation level 5) plus a recent high-lethality actual attempt within 3 months — High risk tier, immediate escalation.
A structured, bedside delirium screening instrument that records four observational features of an acute confusional state and applies the validated CAM diagnostic algorithm to classify delirium as present or absent. The Confusion Assessment Method is not a numeric sum: the output is a boolean status derived from a fixed pattern of positive features, together with the list of which features were positive and any safety-critical flags.
- delirium-present — Acute fluctuating onset, inattention, disorganised thinking and drowsiness — CAM algorithm 1 AND 2 AND (3 OR 4) satisfied: delirium present (hyperactive subtype).
- delirium-absent — Alert, attentive, coherent, no acute change from baseline — CAM algorithm not satisfied: delirium absent.
- unable-to-assess — Ventilated CAM-ICU patient, unrousable at RASS -5 — arousal gate blocks the algorithm: unable to assess.
Informed consent form for medical procedures, validated for completeness of required sections.
- complete-all-26-required — Every one of the engine's 26 required fields present across all eight sections — expect Complete at 100%.
- incomplete-missing-identification-and-scheduling — Patient name, NHS number, emergency contact, and the scheduled date all left blank — 6 of 26 required fields missing — expect Incomplete, well under 100%.
- incomplete-missing-witness-only — Everything else complete; only the witness name and role were never recorded — expect Incomplete despite being 24/26, since the engine's status is binary (100% or nothing).
Contraceptive method eligibility screening using UKMEC (UK Medical Eligibility Criteria) categories for 11 contraceptive methods.
- no-restriction — Healthy 24-year-old non-smoker with no medical risk factors: every contraceptive method scores UKMEC 1 (no restriction).
- chc-risks-outweigh — Stage-1 hypertension (systolic 148) with type-2 diabetes: combined oral contraception reaches UKMEC 3 (risks outweigh advantages) while progestogen-only and intrauterine methods stay UKMEC 1.
- chc-contraindicated — Migraine with aura plus prior deep-vein thrombosis: all combined hormonal methods (pill, patch, ring) are UKMEC 4 (unacceptable health risk / contraindicated).
An albumin-adjusted (corrected) calcium calculator for adults. It takes a measured total calcium result and the patient's serum albumin, applies the standard albumin-correction formula, and reports a corrected calcium value in millimoles per litre (mmol/L). The corrected value is then classified against the adult reference range as hypocalcaemia, normal, or hypercalcaemia, and severe results are flagged for urgent action.
- normal-with-normal-albumin — Routine general-practice bloods, albumin within normal range: total calcium 2.30 mmol/L, albumin 40 g/L — no correction needed, corrected calcium 2.30 mmol/L, normal.
- hypocalcaemia-mild — Post-thyroidectomy ward review with low albumin: total calcium 1.95 mmol/L, albumin 30 g/L — corrected calcium 2.15 mmol/L, below the 2.20 lower limit but not severe.
- severe-hypocalcaemia-symptomatic — Emergency department presentation with perioral tingling and carpopedal spasm: total calcium 1.60 mmol/L, normal albumin — corrected calcium 1.60 mmol/L, below the 1.9 severe threshold, urgent.
- hypercalcaemia-mild-asymptomatic — Incidental finding on routine outpatient bloods: total calcium 2.70 mmol/L, normal albumin — corrected calcium 2.70 mmol/L, above the 2.60 upper limit but asymptomatic and not severe.
- severe-hypercalcaemia-crisis — Malignancy-associated hypercalcaemia on the oncology ward: total calcium 3.20 mmol/L, normal albumin — corrected calcium 3.20 mmol/L, at or above the 3.0 severe threshold, hypercalcaemic crisis risk.
- incomplete-missing-albumin — Laboratory result pending: total calcium back but albumin not yet resulted — the correction cannot be applied and the classification is unknown, not assumed normal.
A practitioner-completed administrative card that places a patient on a craniofacial surgery waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 craniofacial surgery referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 craniofacial surgery referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 craniofacial surgery referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A UK NHS–aligned CT (computed tomography) scan request (referral) that a clinician completes to request a CT examination for a patient. It records the requested body region, the clinical indication and specific question, relevant history, the contrast and radiation-safety factors (renal function, allergy, metformin, pregnancy), the IR(ME)R radiation justification, and the requested urgency — then computes a four-axis grading (appropriateness, radiation / contrast safety, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the imaging department's triage and protocolling decision.
- routine-cancer-staging-abdomen-pelvis-complete — Well-formed routine oncology referral: CT chest/abdomen/pelvis for staging (first-line), normal renal function, no contrast-safety concerns, every completeness field present — expect usually-appropriate + safe contrast + routine + accept.
- emergency-pulmonary-embolism-ctpa-metformin-borderline-egfr-caution — Suspected pulmonary embolism: CT pulmonary angiogram is first-line and the indication itself auto-escalates triage to emergency, but the patient is on metformin with borderline renal function (eGFR 40, the 30-44 caution band) — contrast safety is 'caution' pending renal-protective precautions, not blocking, so the request is still accepted — expect usually-appropriate + caution + emergency + accept.
- urgent-renal-colic-severe-contrast-allergy-contraindicated-incomplete — Acute loin-to-groin pain with suspected ureteric colic: CT abdomen/pelvis is first-line and the renal-colic indication itself auto-escalates triage to urgent, but the patient has a documented severe iodinated-contrast reaction, forcing the contrast-safety band to contraindicated — redirect to a non-contrast or alternative-modality protocol — and several administrative fields are not yet captured — expect usually-appropriate + contraindicated + urgent + redirect, completeness below 100.
A UK NHS–aligned CT (computed tomography) scan result (report) that a reporting clinician completes after a CT examination has been performed. It is the result/report counterpart to CT Scan Test Request (a referral): where the request captures why a scan should be done, this form records what the scan found and a structured interpretation. It records the performed examination and technique, the clinical history, the narrative and structured findings, key measurements and radiation dose (dose-length product, DLP), the impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured radiology report.
- normal-ct-chest-complete — A normal contrast-enhanced CT chest for chronic cough and weight loss: lungs clear, no acute, mass, infection, or obstructive finding, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-incidental-renal-cyst-minor-complete — A CT abdomen/pelvis for non-specific abdominal pain finds no acute pathology to account for the pain, but notes an incidental simple renal cyst: this is the one severity path not yet covered elsewhere in this backlog — an incidental-only finding grades 'minor' (below 'moderate', above 'none'), classified as abnormal (not normal, since an incidental finding is still a positive finding) — report complete — expect abnormal classification + minor severity + 100% completeness + recommended follow-up (per incidental-findings guidance).
- critical-acute-intracranial-haemorrhage-uncommunicated-incomplete — An acute intraparenchymal haemorrhage in the right basal ganglia with surrounding oedema and mass effect, phoned through from the on-call radiologist: the haemorrhage auto-escalates classification to critical and follow-up to critical-alert regardless of the other axes; the result has not yet been recorded as communicated, and the clinical history, comparison, and impression sections are not yet completed while the stroke team responds — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
A clinician-facing severity assessment for adults with community-acquired pneumonia (CAP). The form records the five CURB-65 criteria, computes a 0–5 severity score (one point per criterion), assigns a mortality-risk band, and generates a signed report with a recommended disposition (home / outpatient, short-stay / supervised, or hospital admission with possible intensive-care review).
- low-outpatient — Fit 40-year-old with mild community-acquired pneumonia: CURB-65 0 — low mortality risk, suitable for outpatient management.
- intermediate-shortstay — 70-year-old with raised urea: CURB-65 2 (age + urea) — intermediate risk, consider short-stay supervised care.
- high-admit — Confused, hypotensive, tachypnoeic 82-year-old: CURB-65 5 — high risk severe pneumonia, hospitalise and assess for HDU/ICU.
A UK NHS–aligned cystoscopy (bladder endoscopy) request (referral) that a clinician completes to request a cystoscopic examination of the lower urinary tract. It records the requested procedure, the clinical indication and specific question, relevant history, symptoms and red flags, bleeding-risk factors, and the requested urgency — then computes a four-axis grading (appropriateness, cancer-pathway urgency, request completeness, and pre-procedure risk) plus a set of safety-critical flags. The output is a vetting report that supports the urology department's triage and booking decision.
- routine-lower-urinary-tract-symptoms-flexible-cystoscopy-complete — Well-formed routine referral: worsening lower urinary tract symptoms, flexible cystoscopy requested (first-line), no haematuria or bleeding-risk factors, every completeness field present — expect usually-appropriate + routine + low risk + accept.
- two-week-wait-visible-haematuria-flexible-cystoscopy-antiplatelet-moderate-risk — Painless visible haematuria aged 45 or over: flexible cystoscopy is the recommended examination for the visible-haematuria indication, and the haematuria itself independently auto-escalates triage onto the suspected-cancer two-week-wait pathway via both the red-flag rule and the NICE NG12 age/haematuria threshold, regardless of the routine urgency requested; an antiplatelet agent forces moderate bleeding risk — expect usually-appropriate + two-week-wait + moderate risk + accept.
- query-referrer-catheter-problems-other-procedure-mismatch-active-uti-incomplete — Recurrent catheter blockages with a febrile, suspected active UTI: an 'other' procedure was requested even though flexible cystoscopy is the recommended examination for the catheter-problems indication, a clear mismatch that forces appropriateness to usually-not-appropriate and the recommendation to query-referrer regardless of completeness; the active UTI independently forces high pre-procedure risk (instrumentation should be deferred until treated), and several administrative fields are not yet captured — expect usually-not-appropriate + routine + high risk + query-referrer, completeness below 100.
A UK NHS–aligned cystoscopy (bladder endoscopy) result (report) that an operating clinician completes after a cystoscopic examination of the lower urinary tract has been performed. It is the result/report counterpart to Cystoscopy Test Request (a referral): where the request captures why a cystoscopy should be done, this form records what the procedure found and a structured interpretation. It records the performed procedure and anaesthesia, the clinical history, the narrative and structured endoscopic findings, tumour / lesion detail, any complication, the impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert when a bladder tumour or suspicious lesion is seen. The output is a structured cystoscopy report.
- normal-flexible-cystoscopy-complete — A normal flexible cystoscopy for recurrent UTIs: bladder mucosa normal throughout, no tumour, inflammation, stones, stricture, or benign structural finding, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-benign-trabeculation-prostatic-enlargement-minor-complete — Flexible cystoscopy for lower urinary tract symptoms in an elderly male finds mild bladder wall trabeculation and prostatic enlargement, both benign structural findings: no tumour, inflammation, stones, or stricture — this grades minor severity via the dedicated benign-structural rule, classified as abnormal (not normal) since these are genuine structured findings; report complete — expect abnormal classification + minor severity + 100% completeness + recommended follow-up (per local surveillance guidance) + routine-follow-up.
- critical-suspected-bladder-tumour-uncommunicated-incomplete — A 15mm papillary lesion on the right lateral bladder wall, suspicious for a bladder tumour: this critical finding auto-escalates classification to critical and follow-up to critical-alert, with the recommended action specifically naming an urgent TURBT booking and MDT referral; the result has not yet been recorded as communicated, no originating request is linked, and the clinical history, impression, and recommended follow-up sections are not yet completed — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
A UK NHS–aligned cytology specimen request (referral) that a clinician completes to request a cytology examination of a specimen — cervical smear, urine, sputum, serous-cavity effusion (pleural / ascitic), fine-needle aspiration (thyroid or breast), or cerebrospinal fluid. It records the requested specimen type and site, the clinical indication and specific question, the cervical-screening / cytology context, the specimen-collection (pre-analytical) details, and the requested urgency — then computes a four-axis grading (appropriateness, pre-analytical specimen adequacy, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the cytology / pathology laboratory's triage and acceptance decision.
- routine-cervical-screening-smear-not-yet-collected-complete — Well-formed routine cervical screening recall: cervical smear requested (first-line, the only appropriate specimen type for this indication), specimen not yet collected so pre-analytical adequacy is deterministically 'ok' pending collection, every completeness field present — expect usually-appropriate + ok + routine + accept.
- two-week-wait-breast-lump-fna-timing-unconfirmed — New palpable breast lump: FNA of breast is first-line for breast-lump, and the indication itself meets NICE NG12 two-week-wait eligibility regardless of requested urgency; the specimen was collected but its date-time was never recorded, forcing a deterministic pre-analytical caution (verify timing/fixation) rather than the fresh 'ok' band — expect usually-appropriate + caution + two-week-wait + accept.
- suspected-malignancy-sputum-stale-specimen-incomplete — Suspected lung malignancy: sputum cytology is first-line, and the indication meets NICE NG12 two-week-wait eligibility, but the specimen was collected long before the request was submitted — well past the pre-analytical window — forcing a reject-risk band (redirect / recollect), and several administrative fields are not yet captured — expect usually-appropriate + reject-risk + two-week-wait + redirect, completeness below 100.
A UK NHS–aligned cytology test result (report) that a reporting clinician completes after a cytology specimen has been examined microscopically. It is the result/report counterpart to Cytology Test Request (a referral): where the request captures why a specimen should be examined, this form records what the specimen showed and a structured interpretation. It records the examined specimen and its adequacy, the clinical history, the cytology result category and HPV status, the microscopic description and diagnosis, the impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured cytopathology report.
- normal-routine-cervical-screening-complete — A normal routine cervical smear: negative for intraepithelial lesion or malignancy (NILM), HPV negative, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-isolated-hpv-positive-minor-complete — Negative cytology (NILM) but HPV primary screening positive: an isolated HPV-positive result on otherwise normal cytology classifies as abnormal via the dedicated HPV-surveillance rule and grades minor severity, distinct from dysplasia-driven moderate severity; report complete — expect abnormal classification + minor severity + 100% completeness + recommended follow-up (early recall at 12 months).
- critical-high-grade-dyskaryosis-suspected-carcinoma-uncommunicated-incomplete — High-grade dyskaryosis, suspicious for invasive squamous cell carcinoma, with malignant cells confirmed on microscopy: this critical finding auto-escalates classification to critical and follow-up to critical-alert, with the recommended action naming urgent colposcopy / MDT review; the result has not yet been recorded as communicated, no originating request is linked, and the clinical history, diagnosis, and impression sections are not yet completed while the referral is arranged — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
Oral health evaluation using the DMFT (Decayed, Missing, Filled Teeth) Index with periodontal and radiographic assessment.
- very-low-caries — Well-maintained dentition with one small cavity and two old fillings (DMFT 3): very-low caries experience.
- moderate-caries — Multiple decayed and filled teeth with gingival bleeding (DMFT 12): moderate caries experience.
- very-high-caries — Extensive decay, several missing teeth and periodontal breakdown with poorly-controlled diabetes (DMFT 25): very-high caries experience.
Dermatological quality of life evaluation using the DLQI (Dermatology Life Quality Index) with lesion characterization.
- small-effect — Mild hand eczema with limited day-to-day impact (DLQI 4): small effect on quality of life.
- very-large-effect — Moderate-to-severe plaque psoriasis affecting work and social life (DLQI 16): very large effect on quality of life.
- extremely-large-effect — Severe, widespread erythrodermic-tending psoriasis with major impact on every domain (DLQI 26): extremely large effect on quality of life.
A practitioner-completed administrative card that places a patient on a dermatology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 dermatology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 dermatology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 dermatology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A UK NHS–aligned DEXA / DXA bone-densitometry (osteoporosis) scan request (referral) that a clinician completes to request a dual-energy X-ray absorptiometry examination to measure bone mineral density (BMD). It records the requested scan region, the clinical indication and specific question, fracture-risk factors (FRAX inputs), previous DEXA history, and the requested urgency — then computes a four-axis grading (appropriateness, radiation safety, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the imaging department's triage and booking decision.
- routine-early-menopause-hip-and-spine-complete — Well-formed routine GP referral: early menopause, hip-and-spine DEXA requested (first-line), a moderate FRAX score that doesn't itself adjust appropriateness, not pregnant, every completeness field present — expect usually-appropriate + low radiation dose + routine + accept.
- urgent-fragility-fracture-hip-high-frax-boosted — Recent low-trauma wrist fracture with a high FRAX score: hip DEXA is first-line for fragility-fracture, and the fracture itself auto-escalates triage to urgent; the FRAX major-fracture probability (35%) is above both the NOGG intervention threshold and the very-high-risk threshold, so it boosts appropriateness by one point (capped at 9) and independently triggers the high-FRAX urgent rule too — expect usually-appropriate (score 9) + low radiation dose + urgent + accept.
- deferred-pregnancy-hip-and-spine-secondary-osteoporosis-incomplete — Secondary osteoporosis work-up in a patient who is currently pregnant: hip-and-spine DEXA is first-line for secondary-osteoporosis, but pregnancy — even at DEXA's very low dose — means the scan should be deferred, forcing the radiation-safety band to high (the pregnancy check overrides the site-specific dose banding entirely) and the recommendation to redirect; several administrative fields are not yet captured — expect usually-appropriate + high radiation dose + redirect, completeness below 100.
A UK NHS–aligned DEXA / DXA (dual-energy X-ray absorptiometry) bone-density result (report) that a reporting clinician completes after a DEXA examination has been performed. It is the result/report counterpart to DEXA Bone Density Test Request (a referral): where the request captures why a scan should be done, this form records what the scan found and a structured interpretation.
- normal-bone-density — Lowest T-score -0.5 (>= -1.0): WHO normal, complete report, every axis at baseline.
- osteopenia-moderate — Lowest T-score -1.8 (between -1.0 and -2.5): WHO osteopenia, abnormal classification, moderate severity.
- osteoporosis-major-no-request-linked — Lowest T-score -2.8 (<= -2.5, no fracture): WHO osteoporosis, major severity — and no originating request reference was recorded, which fires the discrepancy-with-request flag alongside the treatment-review flags.
- severe-osteoporosis-critical-fragility-fracture — Lowest T-score -3.2 with an identified vertebral fragility fracture: severe (established) osteoporosis — auto-escalates to critical classification and critical-alert follow-up regardless of the other axes.
- unexpected-vertebral-fracture-without-osteoporosis — A vertebral fracture was identified incidentally, but the lowest T-score (-1.6) is only in the osteopenia range, not osteoporotic — the unexpected-finding flag exists precisely because a fragility fracture can occur, and itself warrant treatment, even without a T-score in the osteoporosis range.
- non-diagnostic-inconclusive — Examination was non-diagnostic (patient unable to tolerate positioning) — classified inconclusive regardless of whatever partial T-score data exists.
- no-quantitative-finding-inconclusive — No lowest T-score was ever recorded — the WHO classification cannot be derived, so the study is inconclusive rather than assumed normal, and the missing-measurement flag fires.
Structured diabetes review aligned with NICE NG28 (type 2) / NG17 (type 1) and the Diabetes UK 15 Healthcare Essentials, capturing diabetes history, glycaemic control, medications, complications screening, cardiovascular risk, self-care, psychological wellbeing, and foot assessment.
- Well-controlled type 2, engaged and physically active — HbA1c 48 mmol/mol (exactly at the <=48 band, hba1cScore 100), no complications, good medication and diet adherence (5/5 each), 85% time-in-range, regular physical activity, low distress and good coping. Composite: base 100 (weight 4) folded with adherence 100 (weight 1) -> (100*4+100)/5=100, diet 100 (weight 1) -> (100*5+100)/6=100, TIR 85 (weight 1) -> (100*6+85)/7=97.857142... -> round 98; no complications so no penalty. Expect controlLevel 'wellControlled', controlScore 98, and low-concern rules DM-016 (HbA1c at target), DM-017 (no complications), DM-018 (good diet), DM-019 (active), DM-020 (good psych) in registry order; no medium/high rules. Flags: none (no threshold in flagged-issues.js is crossed; hba1cTarget 53 >= hba1cValue 48 so FLAG-HBA1C-002 does not fire).
- Pre-proliferative retinopathy - now correctly flagged for urgent eye referral — FIXED 2026-09-06 (was 'the invisible-eye-finding edge case', built to demonstrate a real, verified rule-coverage gap): retinopathyStatus 'preProliferative' (R2) matched neither DM-004 ('proliferative' only) nor DM-008 ('background' only), and flagged-issues.js checked only 'proliferative' for FLAG-EYE-001 - so this persona used to fire NO eye-category rule or flag despite a real, sight-threatening finding. Fixed by adding DM-021 (high concern, matching DM-004/proliferative's urgency per the National Diabetic Eye Screening Programme's R1/R2/R3 grading and NICE NG28) and FLAG-EYE-003 (high priority). It still counts toward countComplications() (so it still depresses the score) and correctly blocks DM-017 ('no complications', which only tests for '' or 'none'). HbA1c 64 mmol/mol (hba1cScore 60, weight 4) folded with adherence 3/5->50 (weight 1) -> (60*4+50)/5=58, diet 3/5->50 (weight 1) -> (58*5+50)/6=56.333, TIR 55 (weight 1) -> (56.333*6+55)/7 -> 56.142857... -> round 56; one complication (the retinopathy) -> penalty 5 -> score 51. Expect controlLevel 'suboptimal' (score < 65), controlScore 51, fired rules DM-006 (HbA1c 64-85 suboptimal) AND DM-021 (pre-proliferative retinopathy, high) - previously DM-006 only. Flags: FLAG-HBA1C-002 (medium, hba1cValue 64 > hba1cTarget 53 with a non-blank unit) AND FLAG-EYE-003 (high) - previously FLAG-HBA1C-002 only.
- Diabetic maculopathy - correctly flagged for urgent eye referral — Companion persona to the pre-proliferative one above, isolating the other newly-covered retinopathyStatus value: 'maculopathy' (central-vision-threatening, distinct from the peripheral R1/R2/R3 staging). Same HbA1c/adherence/diet/TIR inputs, so the same composite arithmetic applies: score 51, controlLevel 'suboptimal'. Expect fired rules DM-006 (HbA1c 64-85 suboptimal) AND DM-022 (diabetic maculopathy, high) rather than DM-021. Flags: FLAG-HBA1C-002 (medium) AND FLAG-EYE-004 (high) rather than FLAG-EYE-003.
- Critical - very poor control with active foot ulcer and unrecognised severe hypoglycaemia — Critical-highest persona. HbA1c 97 mmol/mol (>=97 crosses both DM-001's >=86 threshold and FLAG-HBA1C-001's own >=97 threshold; hba1cScore 0, weight 4) folded with adherence 1/5->0 (weight 1) -> 0, diet 1/5->0 (weight 1) -> 0, TIR 8 (weight 1) -> (0*6+8)/7 = 1.142857 -> round 1; five complications counted (retinopathy proliferative, neuropathy symptoms, eGFR<60, ulcer present, previous CVD event) -> penalty min(25,30)=25 -> score max(1-25,0)=0. Expect controlLevel 'veryPoor', controlScore 0. Fired rules in registry order: DM-001 (HbA1c>=86), DM-002 (severe hypo), DM-003 (foot ulcer), DM-004 (proliferative retinopathy), DM-005 (eGFR<30), DM-007 (recurrent hypo, daily), DM-009 is skipped (eGFR 28 fails the 30-59 band, DM-005 already covers <30), DM-010 (microalbuminuria, ACR 22 > 3), DM-011 (neuropathy symptoms), DM-012 (poor adherence 1/5), DM-013 is skipped (BMI 33.8 < 35), DM-014 (poor diet 1/5), DM-015 (high distress 5/5) - 11 rules total. Flags after the stable priority sort: urgent FLAG-HBA1C-001, FLAG-HYPO-002 (daily frequency + severe hypo -> unawareness), FLAG-FOOT-001, FLAG-EYE-001; high FLAG-HYPO-001, FLAG-RENAL-001, FLAG-CVD-001 (previous CVD, on statin but NOT on antihypertensive), FLAG-PSYCH-001 (distress = 5), FLAG-CVD-002 (current smoker); medium FLAG-HBA1C-002 (97 > target 58), FLAG-FOOT-002 (footRiskCategory 'high'), FLAG-SELF-001 (poor diet + sedentary + poor adherence = 3 of 3 poor domains), FLAG-CVD-003 (systolic 168 >= 140) - 13 flags total. FLAG-MED-001 does NOT fire (on insulin, but hypoglycaemiaFrequency is 'daily' not '', so the 'without documented hypoglycaemia assessment' condition is false). FLAG-RENAL-002 does not fire (ACR 22 is between 3 and 30, i.e. microalbuminuria not macroalbuminuria - only DM-010, a fired rule, not FLAG-RENAL-002).
A structured record of a diabetic retinal screening episode for the UK NHS Diabetic Eye Screening Programme (DESP). For each eye it captures the grade assigned to retinal photographs using the programme's retinopathy (R) and maculopathy (M) classification, together with the photocoagulation (P) and ungradable (U) markers. From the two graded eyes it classifies the worst-eye result, derives the recall interval or referral pathway, validates completeness, and raises flagged issues (urgent ophthalmology, routine hospital eye service referral, re-screen / slit-lamp biomicroscopy, patient overdue).
- low-risk-24-month — Both eyes R0/M0 with a prior R0/M0 screen — worst-eye R0, low-risk eligible: routine 24-monthly (extended) recall, no referral.
- pre-proliferative-surveillance — Worst-eye R2 (pre-proliferative) with no maculopathy or proliferative disease — 6-monthly digital surveillance, no referral.
- active-proliferative-urgent — Right eye R3A (active proliferative) with M1 maculopathy — worst-eye R3A: urgent fast-track referral to ophthalmology (HES).
A structured diabetic foot risk-screening record aligned with NICE NG19 (Diabetic foot problems: prevention and management). For each foot it captures sensory neuropathy status, pedal pulses, structural deformity, callus, skin breakdown, active ulceration (and its severity), ulceration and amputation history, and a suspected-Charcot-foot marker, together with patient-wide risk factors (renal replacement therapy, visual acuity impairment, self-care ability, footwear). From the two examined feet it classifies each foot's risk, applies the patient-wide high-risk overrides, derives an overall risk category, review pathway, and review interval, and raises flagged issues.
- low-risk-annual-review — Routine annual diabetes review: type 2 diabetes 5 years, both feet sensate with normal pulses, no deformity, callus, or ulceration history — no risk factors on either foot.
- moderate-risk-single-factor — Foot protection clinic follow-up: type 1 diabetes 22 years, right foot has isolated insensate neuropathy (10g monofilament), otherwise clean on both feet — a single risk factor routes to 6-monthly review.
- high-risk-combined-factors — Type 2 diabetes 15 years, left foot has both insensate neuropathy and diminished pulses plus callus — two combined risk factors with no ulcer/amputation history routes to high risk on the looser 3-monthly interval.
- high-risk-previous-ulcer-history — Type 2 diabetes 18 years, right foot currently clean on examination but has a documented previous ulcer — history alone forces high risk on the tighter 1-monthly interval regardless of today's findings.
- active-urgent-infected-ulcer — Type 1 diabetes 30 years, on renal replacement therapy, left foot has an active infected ulcer — forces active-urgent classification and an urgent multidisciplinary foot team referral regardless of the right foot's findings.
- active-urgent-suspected-charcot — Type 2 diabetes 12 years, right foot unexplained hot, red, swollen with no clear precipitant — suspected acute Charcot foot forces the same active-urgent, urgent-referral pathway as an active ulcer, even with no ulceration present.
A UK-aligned, dietitian-driven dietetic assessment: a comprehensive evaluation of a patient's nutritional status, eating patterns, medical history, and food environment, conducted by a registered dietitian. The form records objective findings and patient-reported intake, computes a MUST (Malnutrition Universal Screening Tool) score with a GLIM malnutrition diagnosis, a composite nutrition risk level, and a set of safety-critical flags. The output is a signed dietetic report with a nutrition care plan suitable for the clinical record.
- Well-nourished routine review - MUST 0, no findings — BMI 22.0 (usual weight equals current weight, so 0% loss), not acutely ill, oral intake 95% of usual. Expect mustScore 0 ('low'), bmi 22, glimDiagnosis 'none', refeedingRisk 'none', computedCompositeRisk and finalCompositeRisk both 'low', recommendation 'routine-care', two fired rules (R-MUST-BMI-0, R-MUST-WL-0 - both genuine zero-score audit rows, not omitted), and no flags.
- Declined weighing - MUAC fallback, subjective weight loss, isolated GLIM diagnosis — Non-critical edge case: the patient declined weighing, so height/weight are both blank and mid-upper-arm circumference (21 cm, between 20 and 23.5) drives the MUST BMI score via the MUAC fallback (R-MUST-MUAC-1) rather than a computed bmi - bmi itself stays null throughout the whole result, not an estimated number. No baseline weight exists, so the subjective MUST criterion applies instead (clothes/jewellery looser -> R-MUST-WL-SUBJECTIVE). Moderate muscle wasting at 2 of 3 sites satisfies the GLIM reduced-muscle-mass phenotypic criterion (moderate severity), and oral intake at 45% of usual (at or below the 50% GLIM threshold) satisfies the reduced-intake etiologic criterion - both lists are non-empty, so glimDiagnosis is 'moderate' (R-GLIM-DX). Expect mustScore 2 ('high', from BMI 1 + weight-loss 1), bmi null, refeedingRisk 'none' (every refeeding threshold is bmi- or weight-loss-percent-gated and both are null here), computedCompositeRisk and finalCompositeRisk both 'high', recommendation 'dietetic-treatment-plan', six fired rules (R-MUST-MUAC-1, R-MUST-WL-SUBJECTIVE, R-GLIM-P-MM, R-GLIM-E-INTAKE, R-GLIM-DX, R-COMPOSITE-INTAKE), and two flags: F-HIGH-MALNUTRITION-RISK-001, F-INADEQUATE-ORAL-INTAKE-001 (both high).
- Critical - refeeding-highest risk with an unsafe swallow and fourteen safety flags — Critical/highest-severity persona layering nearly every instrument at once: bmi 12.9 (below both the refeeding-highest threshold of 14 and the composite critical threshold of 16), 17.5% unintentional weight loss against the usual weight of 40 kg (exceeds the composite 15% critical threshold), acutely ill with no intake for over 5 days (MUST acute score 2, giving mustScore 6), oral intake at 20% of usual, dysphagia reported with no speech-and-language-therapy assessment AND a failed swallow screen (both dysphagia flags plus the composite unsafe-swallow rule), an NRS-2002 score of 5, a SARC-F score of 10 (maximum, at-risk), a positive SCOFF score of 3, low potassium (3.2, below 3.5), HbA1c 90 (poorly controlled diabetes), eGFR 25 with an oral-nutritional-supplement plan (a renal/high-protein conflict), and a recorded safeguarding concern. Verified quirk: because bmi<14 makes scoreRefeedingRisk return 'highest' immediately, none of the separate major/minor refeeding criteria (several of which - the low potassium, the >15% weight loss, the >10-day negligible intake - would independently qualify) are evaluated or recorded as their own rule rows; only the single R-REFEED-HIGHEST rule fires for refeeding. GLIM diagnosis is 'severe' (both a severe weight-loss and a severe low-bmi phenotypic criterion, plus reduced-intake and inflammation etiologic criteria). Expect mustScore 6 ('high' MUST band), bmi 12.9, glimDiagnosis 'severe', refeedingRisk 'highest', computedCompositeRisk and finalCompositeRisk both 'critical', recommendation 'urgent-referral', sixteen fired rules, and fourteen flags spanning high and medium priority.
Specific learning difficulty evaluation using standardized scores for reading, writing, spelling, phonological processing, working memory, and processing speed with severity classification.
- no-dyslexia — Year 5 pupil referred for a precautionary check: every standardised score is within average limits (lowest 92) — no dyslexia.
- moderate-dyslexia — Year 7 pupil with a consistent phonological profile: phonological awareness 62 and rapid naming 60 (lowest 60) — moderate dyslexia.
- severe-dyslexia — Year 4 pupil with pervasive, significantly-below-average scores: reading fluency 48 and spelling 50 (lowest 48) — severe dyslexia.
A UK NHS–aligned cardiac echocardiogram request (referral) that a clinician completes to request an echocardiogram (echo) examination for a patient. It records the requested echo type, the clinical indication and specific question, relevant cardiac history, symptoms and NYHA functional class, ECG and natriuretic-peptide findings, any previous echo, cardiotoxic-chemotherapy status, and the requested urgency — then computes a four-axis grading (appropriateness, urgency, request completeness, and clinical priority) plus a set of safety-critical flags. The output is a vetting report that supports the echo / cardiac-physiology department's triage and booking decision.
- routine-heart-failure-tte-low-priority-complete — Well-formed routine GP referral: suspected heart failure, transthoracic echo requested (first-line), NT-proBNP 250 ng/L (below the NICE NG106 routine threshold), NYHA class I, every completeness field present — expect appropriate + routine + low priority + accept.
- urgent-palpitations-tte-syncope-moderate-priority — Palpitations with a single syncopal episode: transthoracic echo is first-line for palpitations, and syncope itself auto-escalates urgency to urgent (to exclude a structural cause) and raises clinical priority to moderate, regardless of the routine urgency requested — expect appropriate + urgent + moderate priority + accept.
- emergency-suspected-endocarditis-toe-incomplete — Fever and a new murmur in a patient with a prosthetic valve, phoned through from the acute medical unit: transoesophageal echo is first-line for suspected endocarditis, and the red flag itself forces emergency/inpatient triage and high clinical priority; several administrative fields are not yet captured — expect appropriate + emergency + high priority + accept, completeness below 100.
A UK NHS–aligned echocardiogram (echo) result (report) that a reporting clinician completes after an echocardiogram study has been performed. It is the result/report counterpart to Echocardiogram Test Request (a referral): where the request captures why an echo should be done, this form records what the study found and a structured interpretation. It records the performed study type and image quality, the clinical history, left-ventricular function (ejection fraction, qualitative function, LV internal diameter), valvular stenosis and regurgitation grades, estimated pulmonary artery systolic pressure, structured findings, the narrative and impression, a structured reporting category, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured echocardiography report.
- normal-complete-study — Fully normal transthoracic echo with normal LV function, no valve disease, and no structured findings — every axis at baseline on a complete report.
- moderate-aortic-stenosis-surveillance — Moderate aortic stenosis on an otherwise normal study — severity moderate via the moderate-valve-disease path, with a surveillance referral flag but short of the critical/severe threshold.
- regional-wall-motion-abnormality-ischaemic — An isolated regional wall-motion abnormality with no valve disease and preserved overall LV function — severity moderate via the separate RWMA rule rather than the valve/LV-impairment path, raising an ischaemia-work-up flag.
- severe-aortic-stenosis-critical — Severe aortic stenosis, the classic severe-valve-disease critical trigger — auto-escalates to critical-alert; not yet communicated to the referrer.
- vegetation-endocarditis-critical-communicated — A valvular vegetation raising suspicion of infective endocarditis — a critical trigger independent of valve-severity grading, already communicated to the admitting team so the not-yet-communicated flag correctly does not fire.
- pericardial-effusion-tamponade-critical — A moderate-to-large pericardial effusion with tamponade risk — a critical trigger on its own with no valve or LV abnormality; not yet communicated.
- severe-lv-impairment-thrombus-composite — A composite worst-case report: severely impaired LV function described qualitatively with no ejection fraction recorded (triggering the missing-measurement flag), plus an intracardiac thrombus, and no originating request reference linked (triggering the unexpected-finding discrepancy flag) — exercises severe-LV-impairment as an independent critical trigger from valve disease, and stacks four simultaneous safety flags on one report.
- poor-quality-inconclusive — A technically poor-quality study (obese body habitus, poor acoustic windows) — classified inconclusive regardless of whatever findings could be glimpsed, with a high-priority limited-study-quality flag.
- limited-quality-no-impression-inconclusive — A limited-quality study with no impression yet recorded — classified inconclusive on the limited-with-no-impression rule, distinct from the poor-quality persona above (which is inconclusive regardless of the impression); a medium-priority limited-quality flag alongside the missing-impression flag.
A 10-item self-report screening questionnaire for perinatal depression — covering both the antenatal (during pregnancy) and postnatal (after birth) periods. The person completing it rates how they have felt in the past seven days across ten statements. Each item scores 0–3, giving a total of 0–30. A higher total indicates a greater likelihood of depression. A total of ≥ 10 suggests possible depression and ≥ 13 is a more specific threshold for likely depressive illness; either prompts further clinical assessment, not a diagnosis. Separately, any positive response to item 10 (thoughts of self-harm) is a mandatory safety flag that requires immediate risk assessment regardless of the total score.
- lower-likelihood — Postnatal mother coping well: EPDS total 5 (< 10, lower-likelihood band) with item 10 answered 'Never' — no self-harm flag.
- possible-depression — Antenatal woman with mild low mood and anxiety: EPDS total 11 (10-12, possible-depression band) with item 10 'Never' — no self-harm flag.
- likely-depression-self-harm — Postnatal mother with pervasive depressive symptoms: EPDS total 25 (>= 13, likely-depression band) with item 10 answered 'Sometimes' — mandatory self-harm safety flag.
A UK NHS–aligned electrocardiogram (ECG) test request (referral) that a clinician completes to request a cardiac ECG examination for a patient. It records the requested ECG type, the clinical indication and specific question, relevant cardiac history and medications, symptoms and red flags, and the requested urgency — then computes a four-axis grading (appropriateness, urgency, request completeness, and clinical priority) plus a set of safety-critical flags. The output is a vetting report that supports the cardiac physiology department's triage and booking decision.
- routine-palpitations-holter-complete — Well-formed routine GP referral: intermittent palpitations, 24-hour ambulatory Holter monitor requested (first-line to capture an infrequent event), no red-flag symptoms, every completeness field present — expect usually-appropriate + routine + low priority + accept.
- urgent-syncope-resting-ecg-complete — Unheralded collapse while standing at a bus stop: resting 12-lead ECG requested (first-line to exclude an arrhythmic cause), and syncope itself auto-escalates triage to urgent regardless of the requested urgency — expect usually-appropriate + urgent + moderate priority + accept.
- emergency-suspected-acs-active-chest-pain-incomplete — Active crushing chest pain phoned through from the emergency department with suspected ACS: resting 12-lead ECG is first-line, and both the suspected-ACS flag and active symptomatic chest pain independently force emergency same-hour triage, but several administrative fields are not yet captured — expect usually-appropriate + emergency + high priority + accept, completeness below 100.
A UK NHS–aligned electrocardiogram (ECG) test result (report) that a reporting clinician completes after an ECG examination has been recorded. It is the result/report counterpart to Electrocardiogram Test Request (a referral): where the request captures why an ECG should be done, this form records what the ECG found and a structured interpretation. It records the recorded ECG type and trace quality, the clinical history, the ventricular rate, the dominant rhythm and the PR / QRS / QT / QTc intervals and cardiac axis, the structured electrophysiological findings (ST elevation / depression, T-wave inversion, pathological Q waves, LVH, bundle branch block, ischaemia, normal), the narrative interpretation and impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured cardiology report.
- normal-complete-study — Normal sinus-rhythm 12-lead ECG with normal intervals and no structured findings — every axis at baseline on a complete report.
- minor-t-wave-inversion-with-borderline-qtc — Isolated T-wave inversion with a borderline-prolonged QTc (485 ms — above the 480 ms surveillance threshold but below the 500 ms critical threshold) — minor severity from the T-wave finding, plus the separate borderline-QTc informational flag.
- pathological-q-waves-bundle-branch-block-unexpected-finding — Pathological Q waves and a bundle branch block on an otherwise unremarkable trace — two independent routes into the moderate/actionable severity bucket, with no originating request reference linked so the unexpected-finding discrepancy flag correctly fires (pathological Q waves is one of the three triggers for that flag).
- atrial-fibrillation-abnormal-rhythm-moderate — New atrial fibrillation with no other structured findings — moderate severity via the abnormal-rhythm route (a different code path from the structured-finding actionable triggers), raising the urgent-cardiology-referral flag.
- acute-ischaemia-major-urgent-not-critical — An ischaemic ST-depression pattern without ST elevation, ventricular tachycardia, heart block, or a markedly prolonged QTc — severity is graded major (the same severity band as a critical finding), but hasCriticalFinding() is specifically false for isolated ischaemia, so the classification stays 'abnormal' (not 'critical') and follow-up is 'urgent' (within 24 hours) rather than 'critical-alert' (same hour) — a real, non-obvious distinction verified directly against rules.js rather than assumed from the AGENTS.md summary of 'a critical finding'. No originating request reference is linked, so the unexpected-finding flag also fires (ischaemia is one of its three triggers) alongside the abnormal-requiring-action flag.
- stemi-st-elevation-critical — ST-segment elevation, the classic STEMI critical trigger — auto-escalates to critical-alert with a same-hour communication requirement; not yet communicated to the responsible team.
- ventricular-tachycardia-critical-communicated — Sustained ventricular tachycardia — the rhythm-based critical trigger, independent of ST elevation — already communicated to the resuscitation team so the not-yet-communicated flag correctly does not fire, a deliberate contrast with the other critical personas.
- complete-heart-block-critical — Complete (third-degree) atrioventricular heart block — the third rhythm-based critical trigger; not yet communicated.
- markedly-prolonged-qtc-critical — A markedly prolonged QTc of 520 ms (at/above the 500 ms critical threshold), the fourth and only purely-numeric critical trigger — otherwise unremarkable, confirming the threshold is independent of the three structural/rhythm triggers.
A UK NHS–aligned electroencephalogram (EEG) request (referral) that a clinician completes to request a recording of the brain's electrical activity, most often to support the diagnosis and classification of epilepsy and seizures. It records the requested EEG type, the clinical indication and specific question, the seizure / epilepsy context, current antiepileptic therapy, and the requested urgency — then computes a four-axis grading (appropriateness, urgency, request completeness, and clinical priority) plus a set of safety-critical flags. The output is a vetting report that supports the neurophysiology department's triage and booking decision.
- routine-suspected-epilepsy-routine-awake-complete — Well-formed routine referral: transient loss of awareness with post-ictal confusion, routine awake EEG requested (first-line for suspected-epilepsy), no red flags, clinical question free of NICE NG217 exclude-epilepsy language, every completeness field present — expect usually-appropriate + routine + low priority + accept.
- urgent-recent-first-seizure-routine-awake-moderate-priority — First unprovoked seizure 3 days ago: routine awake EEG is the recommended study for the first-seizure indication, and the recency of the seizure itself auto-escalates triage to urgent via the first-seizure-clinic rule, regardless of the routine urgency requested, and independently raises clinical priority to moderate from two separate first-seizure rules — expect usually-appropriate + urgent + moderate priority + accept.
- query-referrer-exclude-epilepsy-guideline-misuse-incomplete — The clinical question asks the EEG to confirm this is not epilepsy — NICE NG217 is explicit that EEG must not be used to exclude a diagnosis of epilepsy, so the guideline-misuse flag forces query-referrer even though the requested study (routine awake EEG for suspected-epilepsy) is itself usually-appropriate and carries no red flags; several administrative fields are not yet captured — expect usually-appropriate + routine + low priority + query-referrer, completeness below 100.
A UK NHS–aligned electroencephalogram (EEG) result (report) that a reporting clinician completes after an EEG recording has been performed. It is the result/report counterpart to Electroencephalogram Test Request (a referral): where the request captures why a recording should be done, this form records what the recording found and a structured interpretation. It records the performed recording (EEG type, duration, technical quality), the clinical history, the background rhythm and structured neurophysiological findings, the narrative interpretation and clinical correlation, the impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured neurophysiology report.
- normal-complete-study — Normal awake EEG with a normal background rhythm and no structured findings — every axis at baseline on a complete report.
- minor-excess-slow-background-incidental — An isolated excess-slow background rhythm with no other structured findings — minor severity from the background abnormality alone, reported as an incidental finding rather than an actionable one (the incidental-finding flag requires no focal/generalised slowing alongside it).
- moderate-focal-slowing-actionable-no-flag — Isolated focal slowing with no other structured findings — moderate severity via the actionable-finding rule, but notably raises no dedicated safety flag of its own (unlike the seizure/status-epilepticus triggers below), since focal slowing sits outside every flags.js condition; a real, verified gap between the severity grading and the flag set.
- moderate-photoparoxysmal-response-urgent-referral — A photoparoxysmal response to photic stimulation with no other structured findings — moderate severity via the actionable-finding rule, and raises the urgent-referral flag (photoparoxysmal response is one of its two triggers).
- moderate-abnormal-background-rhythm — An abnormal background rhythm (neither simply excess-slow nor asymmetric, but qualitatively disorganised) with no other structured findings — moderate severity via the abnormal-background branch of the actionable rule, and raises no dedicated flag (a second real gap between the moderate-severity grading and the flag set, distinct from the focal-slowing persona above).
- epileptiform-discharges-critical-composite — Frequent epileptiform discharges with no recording duration documented and no originating request reference linked — the third critical trigger, stacking the missing-measurement and unexpected-finding flags alongside the two universal critical-result flags; not yet communicated.
- seizure-recorded-critical-communicated — An electrographic seizure captured during the recording, already communicated to the on-call neurology team — a real, verified contrast with the ECG/echocardiogram engines' pattern: here F-URGENT-REFERRAL-001 has no `!hasCriticalFinding` guard in flags.js, so it correctly co-fires alongside F-CRITICAL-RESULT-001 for the same recorded-seizure finding rather than being suppressed once the report is already critical.
- status-epilepticus-critical — Non-convulsive status epilepticus — the most acute of the three critical triggers, with its own dedicated abnormal-requiring-action flag (F-ABNORMAL-ACTION-001) distinct from the seizure/epileptiform-discharge triggers; not yet communicated.
- limited-quality-no-impression-inconclusive — A technically limited recording (excessive muscle and movement artefact) with no impression yet recorded — classified inconclusive on the combined limited-quality-and-no-impression rule; raises both the inadequate-technique and missing-impression flags.
A first-contact assessment that a triage nurse completes when a patient arrives at the emergency department (ED). It records the mode and time of arrival, the presenting complaint, a brief relevant history, a set of triage vital signs, and a pain score, then assigns a triage category that determines how soon the patient must be seen by a clinician.
- non-urgent-dressing-check — Walk-in dressing check: NEWS2 0 across every parameter and an explicit pain score of 0 — the only presentation the engine grades Level 5 (Non-urgent).
- cardiac-chest-pain-very-urgent — 65+ arrival with central crushing chest pain and severe pain 8/10 but stable observations — expect Level 2 (Very urgent) via the cardiac-chest-pain and severe-pain discriminators.
- shocked-gi-bleed-immediate — Variceal haematemesis in shock: SBP 82, pulse 128, RR 28, SpO2 91 on oxygen, V on ACVPU — expect Level 1 (Immediate) via the shock and major-haemorrhage discriminators with a high NEWS2 aggregate.
NREMT-style psychomotor skills examination for Emergency Medical Technicians, scored against a point-based checklist for scene size-up, primary survey, history taking, secondary assessment, and reassessment, with explicit critical-criteria failure conditions.
- clear-pass — Competent candidate performs every checklist step correctly with no critical omissions — 40/40 points (100%), well above the 80% threshold: outcome Pass.
- marginal-pass — All critical criteria met but several non-critical items missed (incomplete OPQRST, partial focused exam, gaps in reassessment) — 33/40 points (82.5%), just above the 80% threshold: outcome Pass.
- critical-failure-fail — Otherwise strong performance but candidate fails to provide oxygen to a hypoxic patient — a critical-criterion failure that forces an automatic Fail regardless of points earned: outcome Fail.
Structured offboarding checklist ensuring every departing employee completes the administrative, operational, and knowledge-transfer steps required to protect patient safety, organizational data, and service continuity.
- Complete - planned resignation, every item signed off — Staff nurse resigning with full notice: every checklist item answered 'yes', mobile phone / uniform / parking pass 'na', data-download audit performed with nothing detected, reference consent given, forwarding address confirmed, HR + line manager + IT signed off and employee acknowledged. Expect outcome 'complete', completionPercent 100, mandatoryTotal 27, mandatorySatisfied 27, no blockers, no fired rules, and zero additional flags.
- Partial - retirement, interview declined, P45 pending — Retiring consultant who was offered but declined an exit interview, explicitly declined reference consent ('no'), whose P45 is still with payroll, and who has not yet confirmed forwarding details or acknowledged the checklist. Every blocker item is satisfied. Expect outcome 'partial' with fired rules EXI-002 (optional), PAY-003 (mandatory, non-blocker), FWD-002, SO-004 in that catalogue order; EXI-003 does NOT fire (gated on interviewCompleted === 'yes') and REF-001 does NOT fire because 'no' is an explicit answer. mandatorySatisfied 26/27 -> completionPercent 96.3, no blockers. Flags: FLAG-EXI-001 then FLAG-PAY-001 ('Payroll items outstanding (1)'), both medium, insertion order preserved by the stable sort.
- Incomplete - summary dismissal, access live, data exfiltration detected — Pharmacy technician summarily dismissed for gross misconduct; the audit found unauthorised downloads. Laptop and ID badge unreturned, VPN / building / cloud access still live, no exit interview, no successor or handover, payroll untouched, NDA not reaffirmed, data not returned, no sign-offs, forwarding address blank. Expect outcome 'incomplete', 27 fired rules (EXI-001, EXI-002, KT-001, KT-002, KT-003, EQ-001, EQ-003, EQ-005, AC-003, AC-005, AC-006, PAY-001..004, REF-001, REF-002, NDA-001..004, FWD-001, FWD-002, SO-001..004), 11 blockers (EQ-001, EQ-003, AC-003, AC-005, AC-006, PAY-001, NDA-001, NDA-004, SO-001, SO-002, SO-003), mandatorySatisfied 9/27 -> completionPercent 33.3. Flags (10, sorted high > medium > low): FLAG-AC-001, FLAG-AC-002 ('3 access channel(s)... VPN, Building access, Cloud apps'), FLAG-EQ-001 ('2 item(s)... Laptop, ID badge'), FLAG-NDA-001, FLAG-NDA-002, then FLAG-KT-001 (3 outstanding), FLAG-EXI-001, FLAG-PAY-001 (3), then FLAG-FWD-001, FLAG-REF-001. FLAG-AC-003 does not fire because the audit WAS performed.
Employee onboarding checklist for healthcare staff. Tracks completion of mandatory requirements: occupational health clearance, DBS checks, professional registration, mandatory training, IT access, uniform/ID. Completion scoring: 0-100%. Risk flags for overdue items.
- complete-low-risk — Full 6-month probation onboarding: DBS cleared, all mandatory training, IT access, induction, and sign-off complete — expect complete status and low risk, zero fired rules.
- critical-dbs-not-started — A new starter whose DBS check was never started (grade-4 DBS-001) and whose references remain incomplete (grade-2 REF-002) despite most other items being in hand — expect critical risk regardless of the 71% completion, since any grade-4 rule alone forces critical.
- high-risk-references-and-dbs-pending — References came back unsatisfactory (grade-3 REF-001) and DBS is only applied-for, not cleared (grade-2 DBS-002); registration not required for this non-clinical role — expect high risk via the grade-3 rule.
Employee satisfaction survey measuring workplace experience quality using Likert-scale scoring across multiple employment domains with normalized composite scoring to inform retention, engagement, and culture programmes.
- excellent — Highly engaged employee rating every domain top marks (all items 5) with a promoter eNPS of 10: composite 100 — excellent.
- satisfactory — Adequate but unremarkable experience with neutral responses (all items 3) and a passive eNPS of 7: composite 60 — satisfactory.
- very-poor — Deeply dissatisfied employee rating every domain lowest (all items 1) with a detractor eNPS of 1: composite 20 — very-poor.
Patient encounter satisfaction survey for collecting feedback on healthcare experiences.
- Excellent - routine follow-up, all 19 answered — Returning patient at a rheumatology follow-up, every item 4 or 5. Sum 92 over 19 items -> compositeScore 4.84, category 'Excellent', answeredCount 19. Domain means: Access & Scheduling 4.33 (5,4,4), Communication 5, Staff & Professionalism 5, Care Quality 5, Environment 4.67 (5,4,5), Overall Satisfaction 5. No item rated 1 or 2, composite above every flag threshold, not a first visit -> zero flags.
- Fair - first-visit walk-in, partially answered, 3.47 misses the Fair flag — First-time urgent-care walk-in who skipped the two scheduling items (no appointment), treatment-plan explanation and privacy (not applicable), leaving 15 answers summing to 52 -> compositeScore 3.47, category 'Fair', answeredCount 15. Domain means: Access & Scheduling 2 (only the waiting-room item), Communication 3.5, Staff & Professionalism 4, Care Quality 3.5, Environment 3, Overall Satisfaction 3.67. Flags: exactly one - FLAG-DIS-waitInWaitingRoom (medium, rated 2, not a communication field). FLAG-FIRST-VISIT-FAIR does NOT fire even though firstVisit is 'yes' and the category is Fair, because 3.47 > 3.4 (the flag/category threshold gap).
- Poor - failed specialist referral, complaint pending — First-visit specialist referral that went badly: eight items rated 1, three communication items rated 2, five other items rated 2. Sum 33 over 19 -> compositeScore 1.74, category 'Poor', answeredCount 19. Domain means: Access 1.33, Communication 1.75, Staff 2, Care Quality 1.67, Environment 2.67, Overall 1. Flags (17): high FLAG-VDIS for easeOfScheduling, waitInWaitingRoom, explainingCondition, respectShown, treatmentPlanExplanation, overallRating, likelyToRecommend, likelyToReturn (SECTIONS order), then high FLAG-COMM for listening, answeringQuestions, timeSpent; then medium FLAG-DIS for waitForAppointment, nursingCourtesy, involvementInDecisions, confidenceInCare, privacy (communication 2s excluded), then FLAG-POOR-OVERALL ('1.7/5.0'). No low flag: firstVisit is 'yes' but the composite is far below the 2.5 Fair floor.
General endocrinology consultation assessment covering the thyroid, adrenal, glucose, reproductive, pituitary, and bone/calcium axes, integrating symptom review, clinical examination, and laboratory findings to characterize endocrine disturbance and guide management.
- euthyroid-normal — Screening review with thyroid and glucose indices within reference range and no symptoms — every assessed axis normal: overall status Normal.
- type2-diabetes-moderate — Sub-optimally controlled type 2 diabetes (HbA1c 62 mmol/mol, fasting glucose 8.4 mmol/L) with normal thyroid — worst axis is glucose at moderate: overall status Moderate.
- overt-hypothyroid-severe — Overt autoimmune hypothyroidism (TSH 48 mIU/L, low FT4, positive antibodies, goitre) with classic symptoms — thyroid axis severe: overall status Severe.
A practitioner-completed administrative card that places a patient on a endocrinology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 endocrinology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 endocrinology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 endocrinology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Endometriosis evaluation using revised ASRM (American Society for Reproductive Medicine) staging and EHP-30 quality of life scoring, with comprehensive pelvic pain profiling and fertility assessment.
- minimal-mild — Irregular cycles and mild cyclical bloating only; no significant pain or organ involvement — ASRM Stage I, mild severity.
- moderate-stage-two — Moderate dysmenorrhoea with painful defecation and a documented endometrioma; worst rule grade 2 — ASRM Stage II, moderate severity.
- critical-deep-disease — Severe constant pelvic pain (VAS 9), unable to work, and cyclical bowel-obstruction symptoms; worst rule grade 4 — ASRM Stage IV, critical severity.
A UK NHS–aligned GI endoscopy procedure request (referral) that a clinician completes to request a gastrointestinal endoscopy for a patient. It records the requested procedure, the clinical indication and specific question, ALARM red-flag symptoms, FIT and haematinic results, anticoagulant / antiplatelet medication, comorbidities, infection-control flags, the bowel-preparation and sedation plan, and the requested urgency — then computes a four-axis grading (appropriateness, cancer-pathway urgency, request completeness, and pre-procedure risk) plus a set of safety-critical flags. The output is a vetting report that supports the endoscopy unit's triage and booking decision.
- routine-dyspepsia-ogd-low-risk-complete — Well-formed routine GP referral: uninvestigated dyspepsia, OGD requested (first-line), no anticoagulation or comorbidity risk factors, every completeness field present — expect usually-appropriate + routine + low risk + accept.
- two-week-wait-suspected-malignancy-eus-doac-high-risk — Suspected pancreatic malignancy on staging CT: EUS is first-line and ideal for suspected-malignancy, and the indication itself meets NICE NG12 two-week-wait eligibility regardless of the requested urgency; the patient is on apixaban and EUS is a BSG/ESGE high-bleeding-risk procedure, so the anticoagulant/high-risk-procedure rule forces the risk band to high with an explicit DOAC peri-procedure plan — expect usually-appropriate + two-week-wait + high risk + accept.
- emergency-upper-gi-bleeding-high-gbs-incomplete — Acute haematemesis phoned through from the emergency department: OGD is first-line for upper-GI bleeding and active bleeding is itself an acute red flag forcing emergency triage; a low haemoglobin, active GI bleeding, anaemia, and chronic kidney disease combine into a Glasgow-Blatchford score of 11 (>=7), forcing the risk band to high, and several administrative fields are not yet captured — expect usually-appropriate + emergency + high risk + accept, completeness below 100.
A UK primary-care structured annual review for adults with epilepsy, aligned with NICE NG217 (Epilepsies in children, young people and adults, 2022). It is a documentation-completeness and control-classification instrument rather than a numeric score: the clinician records what has happened since the last review — seizure type and frequency, seizure-free status, anti-seizure medication (ASM) and adherence and side effects, triggers, injuries and status epilepticus events, safety (driving, bathing, occupation), Sudden Unexpected Death in Epilepsy (SUDEP) risk discussion, valproate and pregnancy-prevention arrangements for women of childbearing potential, mental health, and the agreed care plan — and the engine classifies seizure control, grades review completeness, and raises safety flags.
- seizure-free — No seizures since the last review with a seizure-free trend: classified seizure-free.
- controlled — Infrequent (less-than-monthly) seizures on a stable trend with no status epilepticus: classified controlled.
- uncontrolled — Weekly seizures on an increasing trend with status epilepticus since the last review: classified uncontrolled.
Workplace ergonomic evaluation using the REBA (Rapid Entire Body Assessment) for musculoskeletal risk.
- low-risk — Largely neutral posture — mild neck flexion with an upright trunk: REBA 2 — low risk, change may be needed.
- medium-risk — Marked neck flexion, moderate trunk flexion and raised shoulders: REBA 7 — medium risk, investigate and change soon.
- very-high-risk — Twisted neck, deep trunk flexion, flexed shoulders, ulnar-deviated wrist, heavy lifting and severe pain: REBA 15 — very high risk, change immediately.
A formula calculator that estimates the glomerular filtration rate (GFR) — the volume of blood the kidneys filter each minute — from a single serum creatinine measurement together with the patient's age and sex. It returns an eGFR in mL/min/1.73 m² and classifies the result into a chronic kidney disease (CKD) G-stage (G1–G5). The calculator does not diagnose kidney disease; it standardizes a laboratory result into a staged estimate that prompts monitoring, medication-dose review, or referral.
- g1-normal-young-adult — Healthy young adult, routine occupational-health bloods: low-normal creatinine, steady state — G1, normal or high eGFR.
- g2-mildly-decreased-middle-aged — Middle-aged man, annual health check, mildly raised creatinine — G2, mildly decreased eGFR, no action needed beyond routine monitoring.
- g3a-mildly-to-moderately-decreased — Known early CKD on annual review: eGFR in the G3a band — reduced function, monitor and manage per CKD guidance.
- g3b-moderately-to-severely-decreased — Elderly woman with progressive CKD: eGFR in the G3b band — drug-dosing review required for renally-cleared medicines.
- g4-severely-decreased-referral — Advanced CKD under nephrology follow-up: eGFR in the G4 band — severely decreased, referral per NICE NG203.
- g5-kidney-failure — Established kidney failure on the renal ward: eGFR in the G5 band — kidney failure, renal replacement therapy.
- non-steady-state-possible-aki — Acutely unwell inpatient with a rapidly rising creatinine: steady state is explicitly 'no', so the numeric eGFR still computes but should not be relied on for staging — a possible acute kidney injury, not chronic disease.
- incomplete-missing-creatinine — Age and sex recorded but the creatinine result has not come back yet — eGFR cannot be computed and the stage is unknown, not assumed normal.
A workplace expense reimbursement claim that a worker (for example a clinician) completes after spending their own money on a work-related expense and wanting to be repaid. It records who is claiming and who approves, each expense line (date, category, merchant, amount, VAT, how it was paid, receipt), the business purpose, how the worker wants to be repaid, and the worker's declarations — then computes a three-axis grade (policy compliance, claim completeness, and the approval tier the claim needs) plus a set of fraud-prevention and policy flags. The output is a structured claim that an approver can accept, query, escalate or reject.
- compliant-train-fare-approve — A nurse claims a £42.50 train fare to a mandatory course, with receipt: compliant, complete, line-manager tier, approve.
- equipment-over-50-without-approval-escalate — A registrar buys a £142 stethoscope without prior approval: needs-review, budget-holder tier, escalate.
- conference-over-500-finance-review — A physiotherapist pays £620 for a pre-approved conference: compliant but over £500, so finance review and escalate.
- team-dinner-with-wine-reject — A pharmacist claims a team dinner including wine: alcohol is never reimbursable, so likely-ineligible and reject.
- stale-no-receipt-incomplete-request-more-information — A healthcare assistant submits a four-month-old, receiptless claim with no repayment method or declaration: incomplete, so request more information.
- duplicate-parking-lines-escalate — A midwife lists the same car-park charge twice: duplicate suspected (high flag) forces finance review and escalate.
- euro-course-with-exchange-rate-and-advance-approve — A surgeon pays €90 for a course (rate 0.85) after a £20 advance: converted total £76.50, repay £56.50, approve.
A UK General Optical Council (GOC) aligned spectacle prescription as issued by a registered optometrist or dispensing optician following a sight test. Captures refractive correction for each eye (sphere, cylinder, axis, addition, prism, base), pupillary distance, visual acuity, optional ocular health findings, and lens recommendations. Computes a per-eye refractive classification (emmetropia / myopia / hyperopia / astigmatism, each by severity), a composite prescription complexity (simple / moderate / complex), and a set of safety flags (high myopia, high astigmatism, significant anisometropia, prism present, presbyopia, expired prescription, paediatric, ocular pathology). Output is a signed prescription document with validity dates suitable for handing to a lens dispenser, exporting as a FHIR R5 `VisionPrescription` resource, or archiving as XML.
- Simple - low myopia, stable, 2-year expiry — 31-year-old office worker, routine test, R -1.25/-0.50x180, L -1.00 DS (cyl -0.25 classifies 'none' so no left cyl rule), no add, no prism, prior R -1.00 / L -0.75 (0.25 D shifts), expiry 2028. Expect complexity 'simple', anisometropia 0.25 (no R-ANISO-01), presbyopiaClass 'none', firedRules R-SPH-LOW-MYOPIA (right), R-SPH-LOW-MYOPIA (left), R-CYL-MILD-ASTIGMATISM (right) and zero flags.
- Moderate - emmetropic early presbyope, expiry dated today, exact 1.00 D shift, override ignored — 54-year-old re-presenting for dispensing on a prescription issued 2024-09-03 that expires 2026-09-03 (the oracle's frozen 'today'). Spheres +0.25 both (emmetropia), cylinders null (class '' -> no cyl rules), add +1.50 both -> 'early-presbyopia' (upper bound inclusive). Prior right sphere -0.75 gives an exact +1.00 D change (NOT > 1.00, so no change flag). Prescriber override to 'simple' is recorded but the engine ignores it. Expect complexity 'moderate', anisometropia 0, firedRules R-SPH-EMMETROPIA (right), R-SPH-EMMETROPIA (left), R-ADD-EARLY-PRESBYOPIA; flags F-PRESBYOPIA-001 (low) then F-PRESCRIPTION-EXPIRED-002 (high) - expired because new Date('2026-09-03') is midnight UTC, before 12:00Z.
- Complex - high myope with lattice degeneration, prism, referral — 58-year-old: R -7.50/-3.00x10 with 1 prism dioptre base-up, L -4.25/-1.25x170, add +2.25 both, prior R -6.00 (shift -1.50 D), prior L -4.00 (-0.25). Pathology flagged (lattice degeneration with atrophic holes) and ophthalmology referral requested. Expiry 2027 (not expired). Expect right sphere 'high-myopia', left 'moderate-myopia', right cyl 'high-astigmatism', left cyl 'moderate-astigmatism', presbyopiaClass 'established-presbyopia', anisometropia 3.25, prismPresent true, complexity 'complex'. firedRules (7): R-SPH-HIGH-MYOPIA, R-SPH-MODERATE-MYOPIA, R-CYL-HIGH-ASTIGMATISM, R-CYL-MODERATE-ASTIGMATISM, R-ADD-ESTABLISHED-PRESBYOPIA, R-ANISO-01, R-PRISM-01. Flags (8, insertion order, running counter): F-HIGH-MYOPIA-001 (right, medium), F-HIGH-ASTIGMATISM-002 (right, medium), F-ANISOMETROPIA-003 (medium), F-PRISM-PRESENT-004 (medium), F-PRESBYOPIA-005 (low), F-SIGNIFICANT-CHANGE-FROM-PRIOR-006 (right, low, '-1.50 D'), F-OCULAR-PATHOLOGY-007 (high), F-REFER-OPHTHALMOLOGY-008 (high, suggestedAction = referral reason). No paediatric, no expired, no left-eye flags.
A UK NHS–aligned ophthalmic / optometric eye examination request (referral) that a clinician completes to request an eye vision test for a patient. It records the requested test, the eye(s) to be examined, the clinical indication and specific question, relevant history, symptoms and red flags, and the requested urgency — then computes a four-axis grading (appropriateness, urgency / triage priority, request completeness, and clinical priority) plus a set of safety-critical flags. The output is a vetting report that supports the eye-care service's triage and booking decision.
- routine-cataract-assessment-visual-acuity-complete — Well-formed routine pre-operative referral: longstanding cataract listed for elective surgery, visual acuity assessment requested (first-line for cataract-assessment), no acute symptoms or risk factors, every completeness field present — expect usually-appropriate + routine + low priority + accept.
- urgent-diabetic-retinopathy-screening-fundus-examination-moderate-priority — Diabetic patient with new blurred vision: fundus examination is the recommended (ideal) test for the diabetic-retinopathy-screening indication, and the reduced vision itself auto-escalates triage to urgent regardless of the routine urgency requested; the reduced vision plus the diabetes risk factor together raise clinical priority to moderate — expect usually-appropriate + urgent + moderate priority + accept.
- query-referrer-suspected-glaucoma-other-test-mismatch-acute-painful-red-eye-incomplete — Sudden severe eye pain and redness with headache and nausea, phoned through from the emergency department — a presentation consistent with acute angle-closure glaucoma: an 'other' test was requested even though tonometry is the recommended examination for the suspected-glaucoma indication, a clear mismatch that forces appropriateness to usually-not-appropriate and the recommendation to query-referrer regardless of the acute painful red eye independently forcing emergency triage and high clinical priority; several administrative fields are not yet captured — expect usually-not-appropriate + emergency + high priority + query-referrer, completeness below 100.
A UK NHS–aligned ophthalmic / optometric eye examination result (report) that a reporting clinician completes after an eye vision test has been performed. It is the result/report counterpart to Eye Vision Test Request (a referral): where the request captures why an eye examination should be done, this form records what the examination found and a structured interpretation. It records the performed test type, the clinical history, the visual-acuity, intraocular-pressure and visual-field measurements, the narrative and structured findings (including diabetic-retinopathy grading), the impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured ophthalmic report.
- normal-fundus-examination-complete — A normal routine fundus examination: healthy optic discs, normal macula and periphery, no diabetic retinopathy, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-background-diabetic-retinopathy-minor-complete — Annual diabetic eye screening finds scattered microaneurysms and dot-blot haemorrhages, consistent with background diabetic retinopathy (R1): this grade is deliberately not 'referable' (only pre-proliferative, proliferative, or maculopathy are), so it grades minor severity rather than major; report complete — expect abnormal classification + minor severity (reportingCategory R1) + 100% completeness + recommended follow-up (routine monitoring within 3 months).
- critical-acute-angle-closure-glaucoma-uncommunicated-incomplete — Acutely painful red right eye with a fixed, mid-dilated pupil and an intraocular pressure of 52 mmHg (above the 40 mmHg acute threshold): this auto-escalates classification to critical and follow-up to critical-alert regardless of the other axes, with the recommended action naming a same-day ophthalmology review; the result has not yet been recorded as communicated, and the clinical history, impression, and recommended follow-up sections are not yet completed while treatment is arranged — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
Fall risk evaluation using the Morse Fall Scale (MFS) with comprehensive environmental, medication, mobility, cognitive, and sensory assessments for fall prevention planning.
- low-risk — Independent inpatient with a secondary diagnosis only, oriented and steady gait: MFS 15 — low fall risk.
- moderate-risk — Patient who has fallen recently and carries multiple diagnoses: MFS 40 — moderate fall risk.
- high-risk — Patient with a recent fall, multiple diagnoses and an impaired gait: MFS 60 — high fall risk.
A practitioner-completed administrative card that places a patient on a family and general medicine waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 family and general medicine referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 family and general medicine referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 family and general medicine referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Fertility (sub-fertility) assessment aligned with NICE CG156, capturing reproductive history, menstrual and hormonal profile, lifestyle factors, and partner/semen analysis to guide investigation and treatment referral decisions.
- low-concern — Woman aged 30 trying for 8 months with regular cycles and a healthy BMI: concern score 0 — low concern.
- moderate-concern — Woman aged 38 trying for 14 months with PCOS: concern score 5 — moderate concern, investigation indicated.
- high-concern — Woman aged 42 trying for 30 months with irregular cycles and low AMH (3.0 pmol/L): concern score 13 — high concern, prompt specialist referral.
First Aid at Work (FAW) competency assessment aligned with UK HSE guidance and the St John Ambulance syllabus, covering scene assessment, primary survey, life-threatening emergencies, and injury management with a pass / fail / needs-development outcome.
- pass-all-criteria-met — Every scenario across all 9 categories performed correctly — expect pass, zero critical failures, zero deficiencies.
- needs-development-two-deficiencies — Two non-critical deficiencies (a burn treated with cream instead of cooling/cling film; a sprain not managed with RICE) with no critical steps missed — expect needs-development, exercising the tier between pass and fail, and right at the 2-deficiency boundary before it would flip to fail.
- fail-critical-tourniquet-and-anaphylaxis — Failed to apply a tourniquet for catastrophic limb haemorrhage and did not recognise anaphylaxis — two of the engine's eight critical rules fail — expect fail via critical failures, regardless of everything else being correct.
First responder fitness and competency evaluation for paramedics, EMTs, and first aiders. Covers physical fitness, clinical skills, equipment competency, and psychological readiness.
- fit-for-duty-expert — Experienced paramedic, expert across every competency domain, all checks passed and no rules fired — fit for duty, expert competency, low risk.
- fit-with-restrictions-developing — Competent EMT with developing cardiovascular fitness and a low VO2 max (grade-2 findings) — fit with restrictions, developing competency, moderate risk.
- permanently-unfit-substance-screen — Community responder with clinical skills intact but a positive substance-misuse screen (grade-4 finding) plus poor sleep, high burnout and developing psychological readiness — permanently unfit, developing overall competency, critical risk.
A bedside record of a patient's fluid intake and output over a charting period (typically 24 hours), used to monitor hydration, renal function, and the response to fluid therapy. The chart captures each timed volume — oral drinks, intravenous (IV) fluids, enteral (tube) feeds, blood and blood products on the intake side; urine, drain losses, vomit or nasogastric (NG) aspirate, stool, and insensible or other losses on the output side — and computes a running and cumulative net balance (intake minus output).
- balanced — 24-hour chart with intake (2000 mL) close to output (1800 mL): net +200 mL, well within the +/-1000 mL threshold, adequate urine output — balanced.
- positive — 24-hour chart with heavy IV and oral intake (3500 mL) far exceeding output (1300 mL): net +2200 mL beyond the +1000 mL threshold — positive (fluid-overload risk).
- negative — 24-hour chart with low intake (1000 mL) and high output (2600 mL): net -1600 mL beyond the -1000 mL threshold, urine output well above the oliguria cut-off — negative (dehydration risk).
A UK NHS–aligned fluoroscopy / contrast-study request (referral) that a clinician completes to request a fluoroscopic examination — barium studies (swallow, meal, follow-through, enema), water-soluble contrast studies, defecating proctogram, hysterosalpingogram, micturating cystourethrogram, arthrogram, or a fluoroscopy-guided procedure. It records the requested study, the clinical indication and specific question, relevant history, pregnancy and radiation-safety context, and the requested urgency — then computes a four-axis grading (appropriateness, safety + radiation dose, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the imaging department's triage and booking decision.
- routine-dysphagia-barium-swallow-complete — Well-formed routine referral: progressive dysphagia, barium swallow requested (first-line), no pregnancy or contrast-risk factors, every completeness field including the IR(ME)R justification present — expect usually-appropriate + ok safety + low dose + routine + accept.
- urgent-suspected-obstruction-water-soluble-aspiration-caution — Suspected small bowel obstruction with a documented aspiration risk: a water-soluble contrast swallow is the recommended (ideal) study for the suspected-obstruction indication, and the indication itself auto-escalates triage to urgent regardless of the routine urgency requested; the aspiration risk independently forces a safety caution band (favouring water-soluble contrast over barium, which this request already correctly does) — expect usually-appropriate + caution safety + low dose + urgent + accept.
- redirect-suspected-perforation-barium-contraindicated-incomplete — Suspected oesophageal perforation (Boerhaave syndrome) after forceful vomiting, phoned through from the emergency department: barium swallow was requested, but water-soluble contrast is the recommended study for suspected-perforation and barium is contraindicated when perforation is suspected (peritonitis / mediastinitis risk) — this forces the safety band to contraindicated and, uniquely for this engine, the recommendation to redirect (not query-referrer) since barium-for-perforation has a clear safe redirect target; the indication independently forces emergency triage; several administrative fields are not yet captured — expect contraindicated safety + emergency + redirect, completeness below 100.
A UK NHS–aligned fluoroscopy / contrast-study result (report) that a reporting clinician completes after a fluoroscopic examination has been performed — barium studies (swallow, meal, follow-through, enema), a water-soluble contrast swallow, defecating proctogram, hysterosalpingogram, micturating cystourethrogram, arthrogram, or a fluoroscopy-guided procedure. It is the result/report counterpart to Fluoroscopy Test Request (a referral): where the request captures why a study should be done, this form records what the study found and a structured interpretation. It records the performed examination and contrast used, screening time, the clinical history, the narrative and structured findings, the impression and structured-reporting category, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured radiology report.
- normal-barium-swallow-complete — A normal barium swallow for intermittent dysphagia: normal peristalsis, no stricture, filling defect, reflux, fistula, or obstruction, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-enterocutaneous-fistula-major-not-critical-complete — A barium follow-through for known Crohn's disease demonstrates a fistulous tract between the terminal ileum and the skin of the right iliac fossa: the fistula grades major severity via its own dedicated rule, but a fistula is deliberately not one of the two triggers in `hasCriticalFinding` (perforation/leak, obstruction), so it escalates only to 'urgent' follow-up, not 'critical-alert'; report complete — expect abnormal classification + major severity + 100% completeness + urgent follow-up + specialist-referral.
- critical-anastomotic-leak-uncommunicated-incomplete — A water-soluble contrast swallow shows contrast extravasation at the oesophago-gastric anastomosis, in keeping with an anastomotic leak: this critical finding (perforation / leak) auto-escalates classification to critical and follow-up to critical-alert regardless of the other axes; the result has not yet been recorded as communicated, no originating request is linked, and the clinical history and impression sections are not yet completed while the surgical team responds — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
The 4AT is a validated, rapid bedside screening instrument for delirium and possible cognitive impairment. It is designed to be completed in under two minutes by any registered health or social care professional, with no special training and no equipment. It combines a brief test of alertness, a four-item abbreviated mental test (AMT4), a test of attention (reciting the months of the year backwards), and an assessment of acute change or fluctuating course.
- delirium-unlikely — Fully alert, no AMT4 mistakes, months backwards correct, no acute change: 4AT 0 — delirium or severe cognitive impairment unlikely.
- possible-cognitive-impairment — Alert but one AMT4 mistake and falters on months backwards, no acute change: 4AT 2 — possible cognitive impairment, warrants further cognitive testing.
- possible-delirium — Inattentive and untestable on AMT4 with a documented acute fluctuating change over 2 weeks: 4AT 8 — possible delirium, prompt full delirium work-up.
Estimates 10-year risk of heart attack (myocardial infarction or coronary death) in patients aged 30-79 years with no history of CHD or diabetes, using the Wilson/D'Agostino 1998 Cox regression model.
- low-risk — 45-year-old non-smoking man with optimal BP and cholesterol who exercises: 10-year hard-CHD risk < 10% — low risk.
- intermediate-risk — 60-year-old non-smoking man with stage-2 hypertension and elevated cholesterol: 10-year hard-CHD risk 10-19.9% — intermediate risk.
- high-risk — 66-year-old male current smoker with hypertension, elevated total cholesterol and low HDL: 10-year hard-CHD risk >= 20% — high risk.
A practitioner-completed administrative card that places a patient on a gastroenterologic surgery waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 gastroenterologic surgery referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 gastroenterologic surgery referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 gastroenterologic surgery referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Gastrointestinal symptom evaluation covering upper and lower GI, abdominal pain, liver/pancreas function with red flag detection.
- minimal-severity — Moderate reflux symptoms with heartburn and nausea: GI severity 7 — minimal severity.
- moderate-severity — Severe symptoms with dysphagia, rectal bleeding, constant pain and unexplained weight loss: GI severity 24 — moderate severity with red flags.
- severe-severity — Very severe multi-system disease — dysphagia, odynophagia, vomiting, rectal bleeding, jaundice, weight loss, constant pain and known IBD: GI severity 43 — very severe.
A practitioner-completed administrative card that places a patient on a gastroenterology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 gastroenterology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 gastroenterology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 gastroenterology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A practitioner-completed administrative card that places a patient on a general practice waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 general practice referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 general practice referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 general practice referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A structured referral letter from primary care to a specialist or service. It records who is being referred, who is referring, where and why, and how urgently, then applies a documentation engine that grades the referral's completeness (Complete / Incomplete), classifies its urgency (routine / urgent / two-week-wait suspected cancer / emergency), and raises flags for safety-critical conditions.
- routine-orthopaedic-complete — Routine knee-OA referral with every mandatory field, consent, and safety-netting present — expect Complete at 100%.
- two-week-wait-colorectal — NG12-criteria lower-GI two-week-wait referral: the three urgency-conditional mandatory fields (urgency reason, cancer criterion, pathway) are all present — expect Complete with the suspected-cancer pathway flag.
- urgent-dysphagia-missing-reason — Urgent dysphagia referral dashed off without the urgency reason, relevant history, allergies, or consent — expect Incomplete with the mandatory- and urgency-information flags.
A practitioner-completed administrative card that places a patient on a general surgery waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 general surgery referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 general surgery referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 general surgery referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Genetic counselling referral assessment using weighted risk factor scoring across cancer genetics, cardiovascular genetics, neurogenetics, and reproductive genetics.
- low-risk-isolated-birth-defect — A baby with an isolated, surgically-repaired unilateral cleft lip and no other anomalies, no cancer or family history, referred routinely before further family planning: the single birth-defects factor (weight 2) sits exactly at the Low/Moderate boundary — expect riskScore 2, riskLevel Low.
- moderate-risk-known-lynch-variant-and-miscarriages — A known carrier of a pathogenic MLH1 variant (Lynch syndrome, confirmed via cascade testing after a sibling's colorectal cancer diagnosis at 41) with recurrent early pregnancy loss, referred for reproductive genetic counselling: known-genetic-condition (weight 3) plus recurrent-miscarriages (weight 2) sit exactly at the Moderate band's upper boundary — expect riskScore 5, riskLevel Moderate.
- high-risk-early-onset-cancer-family-cluster-cardiac-death — Early-onset colorectal cancer at 38, a three-generation maternal family cancer cluster (mother, maternal grandmother, and paternal grandmother all with cancer — enough to fire both the >=2 family-cancer-history score rule and the stricter >=3 family-cancer-cluster flag), and a maternal uncle's sudden cardiac death at 34: personal cancer history (2) + early-onset cancer under 50 (3) + family cancer history (2) + sudden cardiac death (3) sum well past the High threshold — expect riskScore 10, riskLevel High.
A UK NHS–aligned clinical genetics / genomic test request (referral) that a clinician completes to request a genomic test for a patient or family. It records the requested test type, the clinical indication and specific question, the clinical details and phenotype, the family history, and the consent and pre-test counselling status — then computes a four-axis grading (appropriateness, consent & counselling, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the Genomic Laboratory Hub's triage and test-selection decision.
- routine-familial-cancer-panel-consented-complete — Well-formed routine oncology referral: strong family history of breast/ovarian cancer, a BRCA gene panel requested (National Genomic Test Directory eligible for familial-cancer), consent and pre-test counselling both documented, every completeness field present — expect usually-appropriate + ok + routine + accept.
- urgent-prenatal-diagnosis-time-critical-consented — Abnormal nuchal translucency on the 12-week scan: prenatal testing on a CVS sample is first-line for prenatal-diagnosis, consent and counselling both documented, and the prenatal specimen type itself auto-escalates triage to urgent with a time-critical decision window regardless of the requested urgency — expect usually-appropriate + ok + urgent (time-critical) + accept.
- predictive-huntingtons-no-counselling-not-met-incomplete — Predictive testing requested for a patient with an affected parent with Huntington's disease: predictive/presymptomatic testing is eligible for this indication, but pre-test genetic counselling was never recorded as offered — predictive testing mandatorily requires BOTH documented consent and counselling, so the consent axis is 'not-met' even though consent itself was obtained — and several administrative fields are incomplete — expect usually-appropriate + not-met + reject, completeness below 100.
A UK NHS–aligned genetic / genomic test result (report) that a reporting clinician completes after a genomic test has been performed and analysed. It is the result/report counterpart to Genetic Test Request (a referral): where the request captures why a genomic test should be done and is it appropriate, this form records what the test found and a structured interpretation. It records the performed test and the genes analysed, the clinical history and inheritance pattern, the detected variants and their ACMG/AMP (ACGS) five-tier classification and zygosity, the structured findings, the interpretation and impression, the ACMG reporting category, recommended cascade testing and follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured genomic report.
- pathogenic-variant-major-critical — A confirmed pathogenic variant (ACMG Class 5) — the ONLY path that reaches severity 'major' (R-SEV-MAJOR-01 checks the exact string variantClassification === 'pathogenic'); classification critical, follow-up critical-alert, cascade testing recommended.
- likely-pathogenic-critical-but-moderate-severity — A likely-pathogenic variant (ACMG Class 4) — a real, verified discordance opposite to every other four-axis engine this session: classification is 'critical' (hasPathogenicVariant() includes 'likely-pathogenic') and follow-up escalates to 'critical-alert', but abnormalitySeverity is only 'moderate' (R-SEV-MODERATE-01), not 'major' — severity 'major' is reserved exclusively for the exact string 'pathogenic'. Every prior test-result engine this session paired 'critical' classification with 'major' severity; this one does not.
- pathogenic-flag-boolean-only-critical-moderate-severity — The pathogenicVariantFound boolean is set true but the variantClassification string field itself was left unset (a real-world documentation gap) — hasPathogenicVariant() is still true via the boolean alone, so classification is critical and follow-up critical-alert, but severity resolves to 'moderate' (via the same R-SEV-MODERATE-01 rule, since it OR's in hasPathogenicVariant()) rather than 'major' — confirming 'major' severity is reachable ONLY through the literal string 'pathogenic' on variantClassification, never through the boolean flag alone, a distinct code path from the likely-pathogenic persona above reaching the identical moderate outcome.
- secondary-finding-abnormal-urgent — An actionable secondary (incidental) finding unrelated to the primary indication, with no pathogenic variant for the primary indication itself — classification abnormal (not critical, since hasPathogenicVariant() is false), severity moderate, but follow-up is 'urgent' (R-FU-URGENT-01) rather than 'critical-alert', a distinct urgency tier from every pathogenic-variant persona above.
- carrier-status-positive-abnormal-recommended-not-urgent — Positive carrier status for a recessive condition, with no top-level ACMG classification tier recorded for this carrier-screening report (a real, plausible documentation gap distinct from the diagnostic-variant reports above) and no secondary finding — classification abnormal, the same moderate-severity bucket as the secondary-finding persona above (R-SEV-MODERATE-02, shared rule ID), but follow-up is only 'recommended' (within 6 weeks, R-FU-RECOMMENDED-01) rather than 'urgent' — a real, verified divergence in Axis D between two findings that share the identical Axis B severity bucket. Note the deliberate contrast with the pathogenic-classified personas above: setting variantClassification to the literal string 'pathogenic' or 'likely-pathogenic' on a carrier report would instead trip hasPathogenicVariant() and sweep it into the critical/major path regardless of carrierStatusPositive, since classifyResult() checks pathogenicity before carrier status — the engine does not distinguish a variant causing disease in this patient from the same tier of variant carried in a single copy. Leaving the field unpopulated here (as this report genuinely does) is what keeps this persona on the carrier-status path, and correctly raises the missing-classification flag alongside it.
- vus-inconclusive-minor-severity — A variant of uncertain significance (VUS, ACMG Class 3) — classification inconclusive, but abnormalitySeverity is 'minor' (R-SEV-MINOR-01), NOT 'none' — a real, verified break from the pattern established by every other test-result engine this session, where an inconclusive classification always pairs with severity 'none'. Follow-up is 'recommended' with a periodic-reclassification-review timeframe rather than a fixed window, and raises the dedicated VUS flag.
- negative-result-normal — A negative result with no clinically significant variant identified — classification normal, severity none, follow-up routine; no flags raised.
- variants-detected-no-classification-defaults-normal-missing-classification-flag — A real, verified and arguably risky default: variants are described in free text but no structured ACMG classification was recorded and none of the interpretation booleans (pathogenicVariantFound, vusFound, carrierStatusPositive, secondaryFinding, noClinicallySignificantVariant) were set — classifyResult() has no catch-all for this state and falls all the way through to R-CLASS-NORMAL-02 ('No actionable variant or finding recorded'), classifying the report 'normal' even though a variant WAS described. The only safety net is F-MISSING-CLASSIFICATION-001, a flag rather than a classification change, confirmed to fire here (variantsDetected non-empty, variantClassification empty, noClinicallySignificantVariant false).
- pathogenic-no-request-reference-explicit-category-override — A pathogenic variant with no originating request reference linked (raising the discrepancy flag) and an explicitly entered free-text reportingCategory — confirms that when the clinician has typed their own category label, gradeSeverity() preserves it verbatim (`explicit || 'Class 5 — pathogenic'`) rather than overwriting it with the default ACMG-class string.
Clinical genetics assessment capturing proband medical history, detailed three-generation family pedigree, ancestry, and targeted risk scoring (e.g. Manchester Score for BRCA, Bethesda criteria for Lynch syndrome) to stratify genetic risk and guide testing and referral.
- Low - reassurance referral, single late-onset relative — 34-year-old woman referred after her maternal grandmother's breast cancer at 72. No Manchester points (no cancers under the age bands), Bethesda 0/5, no PREMM5 supplied (null), external Tyrer-Cuzick lifetime 11% (< 17), zero affected first-degree relatives, no early-onset or paediatric cancers, no ancestry modifiers, no syndrome suspected, prior counselling 'yes', consent 'yes', no reproductive concerns. Two unaffected paternal uncles are listed so the paternal line is not 'under-represented'. Expect riskLevel 'low' with NO fired rules, manchesterScore 0, bethesdaMet 0, premm5Score null, tyrerCuzickLifetime 11, and zero flags.
- Moderate - Tyrer-Cuzick exactly 17%, maternal-only line, 'Female breast' substring bug — 45-year-old woman: mother breast cancer at 52 (typed 'Female breast cancer'), maternal aunt ovarian at 58, no paternal relatives listed beyond the father and grandparents, dense breasts, external Tyrer-Cuzick lifetime exactly 17%, no PREMM5, no prior counselling recorded (''). Manchester 8 (aunt ovarian < 60 only; mother at 52 is outside every band) -> no MAN rule; Bethesda 0; affectedFirstDegree 1 -> no FAM rule; earlyOnset 0. Expect riskLevel 'moderate' with firedRules GEN-TC-001 (17 is inclusive), GEN-TUM-001 (spurious - 'female breast cancer'.includes('male breast') is true) and GEN-TUM-002 (ovarian), in that order. Flags: FLAG-TC-002 (medium), FLAG-LINE-001 (medium: maternal affected 2, paternal 0, 0 paternal aunts/uncles/cousins listed), FLAG-TC-MOD-002 (medium, dense), FLAG-COUN-001 (low, counselling ''). No FLAG-PAT-001 (paternal affected 0).
- High - bilateral breast + endometrial proband, Lynch and BRCA signals, Ashkenazi, paediatric Wilms — 41-year-old Ashkenazi Jewish woman with bilateral breast cancer at 38 and endometrial cancer at 41 (multiple primaries), dense breasts, previous VUS on a 2023 panel, insurance and reproductive concerns, no prior counselling, syndrome suspected by referrer. Pedigree: mother breast 44, sister ovarian 47, brother colorectal 45 (3 affected FDRs), maternal grandmother breast 49, maternal aunt ovarian 51, paternal uncle pancreatic 57, paternal grandfather prostate 59, paternal cousin Wilms tumour at 3. Manchester: proband 30-39 x2 (bilateral) = 8, relatives 40-49 x2 = 6, ovarian < 60 x2 = 16, pancreatic 1, prostate 1 -> 32 -> GEN-MAN-003. Bethesda 2 (FDR Lynch tumour, multiple relatives) -> GEN-BET-001 + GEN-BET-002. PREMM5 12.4 -> GEN-PREMM5-001. Tyrer-Cuzick 38 -> GEN-TC-002. affectedFirstDegree 3 -> GEN-FAM-001 (not FAM-002). earlyOnset <= 50: mother, sister, brother, grandmother, cousin + proband x2 = 7 -> GEN-FAM-003; paediatric 1 -> GEN-FAM-004. Ovarian -> GEN-TUM-002, pancreatic -> GEN-TUM-003, bilateral -> GEN-TUM-004, multiple primaries -> GEN-TUM-005, Ashkenazi + proband breast -> GEN-ANC-001, suspected syndrome -> GEN-SYN-001, reproductive -> GEN-COUN-001. 15 rules, riskLevel 'high'. Flags (15): high FLAG-BRCA-001, FLAG-LYNCH-001 ('2 Revised Bethesda criteria'), FLAG-LYNCH-002, FLAG-TC-001, FLAG-EARLY-001 ('7 cancers'), FLAG-PAEDS-001, FLAG-MPRIM-001; medium FLAG-PAT-001, FLAG-ANC-001, FLAG-TC-MOD-002, FLAG-SYN-001, FLAG-VUS-001, FLAG-PSYCH-001; low FLAG-REPRO-001, FLAG-COUN-001. No LINE flag (both sides affected), no consent flag.
A practitioner-completed administrative card that places a patient on a geriatrics waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 geriatrics referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 geriatrics referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 geriatrics referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Elderly patient assessment using the Clinical Frailty Scale (CFS) with functional, cognitive, mobility, nutrition, and polypharmacy evaluation.
- Very fit older adult, fully independent — 68-year-old living independently, all ADLs and IADLs independent, normal cognition, normal gait/balance with Timed Up and Go 8s, no falls, MNA 26 (well-nourished), 2 medications, no comorbidities, no depression or isolation. No CFS rule fires (all thresholds are for impairment, not normal function), so the score defaults to CFS 1 - Very Fit with an empty fired-rules audit trail. No flags fire either.
- Vulnerable older adult, early frailty markers — 78-year-old living with family: one ADL (bathing) needs assistance and two IADLs (cooking, cleaning) need assistance, unsteady gait with no fall history, mild cognitive impairment, well-nourished (MNA 25), 7 medications with good adherence, controlled hypertension. Three rules fire at score 4 (CFS-006 1-2 ADLs needing assistance, CFS-007 unsteady gait without falls, CFS-008 mild cognitive impairment), giving CFS 4 - Vulnerable. Exactly one medium flag fires for the 7-medication polypharmacy count.
- Terminally ill, nursing-home resident — 92-year-old nursing-home resident: all 5 ADLs and IADLs dependent, severe cognitive impairment (MMSE 5) with delirium risk, unable to walk with severely impaired balance, 5 falls in the past year, poor appetite with swallowing difficulties and 12kg weight loss (MNA 10), 14 medications with poor adherence and both Beers-criteria and high-risk-medication flags, poorly-controlled diabetes with heart failure and renal disease, severe depression and severe social isolation with advance directives (DNACPR) in place, continuous urinary and faecal incontinence, Braden 8 with a Stage 4 pressure injury. Sixteen rules fire; the highest is CFS-027 (severe malnutrition with inability to eat, all ADLs dependent) at score 9, so CFS 9 - Terminally Ill. Nineteen flags fire: ten high, eight medium, one low (advance directives).
A pre-endoscopy risk-stratification score for adults presenting with suspected acute upper gastrointestinal bleeding. It combines eight weighted parameters — blood urea, haemoglobin, systolic blood pressure, pulse, melaena, syncope, hepatic disease, and cardiac failure — into a single total of 0–23. The score predicts the likelihood that a patient will need a clinical intervention (blood transfusion, endoscopic therapy, interventional radiology, or surgery) or die. Crucially, a score of 0 (some services use ≤ 1) identifies very-low-risk patients who may be considered for outpatient management or early discharge without inpatient endoscopy; higher scores prompt admission and endoscopy.
- very-low-risk — Haemodynamically stable young man, normal urea/haemoglobin/BP and no clinical markers: GBS 0 — very-low risk, consider outpatient management.
- low-moderate-risk — Man with mild azotaemia, borderline anaemia, low-normal BP and melaena: GBS 5 — low-moderate risk, admit for inpatient endoscopy.
- high-risk — Shocked woman with marked uraemia, severe anaemia, hypotension, tachycardia, melaena, syncope, hepatic disease and cardiac failure: GBS 23 — high risk, urgent endoscopy and resuscitation.
A structured, clinician-driven assessment of impaired consciousness. The observer scores three independent responses — Eye opening (E, 1–4), Verbal response (V, 1–5), and Motor response (M, 1–6) — and the engine computes the total GCS (3–15), the E/V/M breakdown, and a severity band (mild / moderate / severe). It supports a "not testable" (NT) result per component (for example a swollen-shut eye, an intubated airway, or a paralysed limb) and, as a secondary instrument, the pupil-augmented GCS-Pupils (GCS-P) score.
- mild-e4v5m6 — Fully alert, orientated, obeying commands with reactive pupils: GCS 15 (E4 V5 M6) — mild band, GCS-Pupils 15.
- moderate-e3v4m5 — Opens eyes to sound, confused speech, localising to pain with reactive pupils: GCS 12 (E3 V4 M5) — moderate band, GCS-Pupils 12.
- severe-e1v1m2 — No eye opening, no verbal response, extensor posturing with one unreactive pupil: GCS 4 (E1 V1 M2) — severe band, airway at risk, GCS-Pupils 3.
The GRACE (Global Registry of Acute Coronary Events) score is a validated risk-stratification tool for adults presenting with an acute coronary syndrome (ACS), used above all in non-ST-elevation ACS (NSTEMI and unstable angina). It combines eight admission variables — age, heart rate, systolic blood pressure, serum creatinine, Killip class, cardiac arrest at admission, ST-segment deviation, and elevated cardiac enzymes / troponin — into a weighted point total that maps to an estimated in-hospital and 6-month all-cause mortality risk, and to a Low / Intermediate / High risk category.
- low-risk — 45-year-old with normal haemodynamics, normal creatinine, Killip I and no high-risk features: GRACE 75 — low in-hospital and 6-month mortality risk.
- intermediate-risk — 65-year-old with mild tachycardia, borderline BP and mildly raised creatinine, Killip I: GRACE 117 — intermediate risk, invasive strategy within 72 hours.
- high-risk — 82-year-old with tachycardia, hypotension, renal impairment, Killip III, cardiac arrest, ST-deviation and elevated enzymes: GRACE >300 — high risk, early invasive strategy.
Gynaecological symptom assessment covering menstrual history, cervical screening, obstetric history, and sexual health.
- minimal-isolated-mild-period-pain — A young, regular cycle with only mild period pain (rated 1/3), no other menstrual or gynaecological symptoms: the derived impact score rounds down to 0, so only the single pain-severity rating contributes — expect symptomScore 1, category Minimal.
- moderate-worsening-heavy-painful-periods — Increasingly heavy, painful periods with intermenstrual spotting and suspected fibroids on a previous ultrasound, worsening over 8 months despite tranexamic acid: pain (3), flow (very-heavy, 3), pelvic pain (2), and abnormal bleeding (1) sum to a physical burden of 9, deriving an impact score of round(9/6)=2 applied to all four impact items — expect symptomScore 17, category Moderate.
- severe-fibroids-anaemia-worsening-multi-domain — Severe pelvic pain, very heavy irregular periods with intermenstrual bleeding, discharge, and urinary frequency on a background of known 6cm fibroids and iron-deficiency anaemia, worsening over a year despite a Mirena coil trial: near-maximal physical scores (pain 3, flow 3, pelvic pain 3, abnormal bleeding 3, discharge 2, urinary 1 — physical burden 15) derive an impact score of round(15/6)=3 (the ceiling) applied to all four impact items — expect symptomScore 27 (15 physical + 4x3 impact), category Severe.
A bedside bleeding-risk score for adults with atrial fibrillation (AF) who are receiving, or being considered for, oral anticoagulation. It records nine clinical criteria — Hypertension, Abnormal renal and liver function, Stroke, Bleeding history or predisposition, Labile INR, Elderly, and Drugs or alcohol — scores each present criterion, sums a total of 0–9, and flags the patient as being at higher risk of major bleeding when the score is ≥ 3.
- low-risk — 60-year-old man with controlled BP, no organ dysfunction, no bleeding history and minimal alcohol: HAS-BLED 0 — low bleeding risk.
- moderate-risk — 70-year-old with uncontrolled hypertension (age > 65 plus SBP > 160): HAS-BLED 2 — moderate bleeding risk, address modifiable factors.
- high-risk — 80-year-old with uncontrolled hypertension, renal and liver impairment, prior stroke, bleeding history, labile INR, antiplatelet use and excess alcohol: HAS-BLED 9 — high bleeding risk.
A generic, purpose-flexible baseline health and lifestyle screen used by employers, gyms and fitness professionals, and primary-care / preventive-health services to establish a person's medical history, uncover hidden risk factors, and flag whether they need further medical review before starting an activity (an exercise programme, a new job role) or as a routine wellness check. The form wraps two real, validated instruments — PAR-Q+ for physical-activity readiness and AUDIT-C for alcohol use — inside a wider occupational and wellness screening questionnaire, and computes a composite risk band with a referral recommendation and a set of safety flags.
- Baseline adult, gym pre-participation screen — 30-year-old, never smoked, AUDIT-C all-zero (score 0, low band), all 7 PAR-Q+ items no (cleared), no chronic conditions, no red-flag symptoms, no family history, vaccinations up to date. No composite rule raises the band above low, so R-COMPOSITE-LOW fires as the fallback alongside the PAR-Q+ and AUDIT-C audit entries (3 fired rules total). Clear to proceed, no flags.
- Occupational pre-placement, single condition with a positive PAR-Q+ item — 44-year-old warehouse-operative candidate: PAR-Q+ bone-or-joint item is yes (further assessment required), well-controlled asthma is the sole chronic condition with no red-flag symptom, AUDIT-C 2 (low band), and a sedentary activity level against a heavy physical role. Two moderate composite rules fire (PAR-Q+ and the single-condition rule), landing on Moderate / routine review. Flags: the PAR-Q+ medical-clearance-needed flag (medium) and the occupational-restriction-indicated flag (low, heavy role against sedentary activity, screening purpose occupational-pre-placement).
- Refer urgently, unexplained chest pain with fainting — 55-year-old reporting unexplained chest pain and dizzy spells/fainting (immediate refer-urgently trigger), plus a persistent cough and unexplained weight loss (a second, independent high-severity symptom rule), AUDIT-C 12 of 12 (higher-risk band), known heart disease with a family history of a premature cardiac event, a positive PAR-Q+ heart-condition item, and vaccinations not up to date. Five composite rules fire (urgent, high-symptom, high-AUDIT-C, high-family-history, moderate-PAR-Q+); the worst is refer-urgently regardless of the lower-ranked ones. Six flags fire: two high (urgent cardiac symptom, alcohol higher-risk), three medium (PAR-Q+ clearance needed, family history, unexplained weight loss), one low (vaccination gap).
Hearing aid candidacy evaluation using the HHIE-S (Hearing Handicap Inventory for the Elderly - Screening) questionnaire.
- no-handicap — Mild high-frequency loss with minimal self-perceived handicap: HHIE-S total 4 — No handicap.
- mild-to-moderate-handicap — Moderate bilateral loss affecting conversation and telephone: HHIE-S total 16 — Mild to moderate handicap.
- significant-handicap — Severe bilateral loss with pervasive daily-life impact: HHIE-S total 34 — Significant handicap.
A UK NHS–aligned audiology / hearing-assessment request (referral) that a clinician completes to request a hearing test for a patient. It records the requested test, the affected side, the clinical indication and specific question, relevant history, symptoms and red flags, and the requested urgency — then computes a four-axis grading (appropriateness, urgency, request completeness, and clinical priority) plus a set of safety-critical flags. The output is a vetting report that supports the audiology department's triage and booking decision.
- routine-hearing-loss-pure-tone-audiometry-complete — Well-formed routine referral: gradual bilateral hearing difficulty, pure-tone audiometry requested (first-line), no red flags, every completeness field present — expect usually-appropriate + routine + low priority + accept.
- emergency-sudden-hearing-loss-within-30-days-high-priority — Sudden bilateral hearing loss 3 days ago: pure-tone audiometry is the recommended test for the sudden-hearing-loss indication, and the sudden onset within the past 30 days itself auto-escalates triage to an otological emergency (be seen within 24 hours, per NICE QS185 / ENT-UK) regardless of the routine urgency requested, which independently sets clinical priority to high — expect usually-appropriate + emergency + high priority + accept.
- query-referrer-suspected-otosclerosis-other-test-mismatch-unilateral-discharge-incomplete — Progressive left-sided hearing loss with intermittent ear discharge: an 'other' test was requested even though tympanometry (with pure-tone audiometry also ideal) is the recommended examination for the suspected-otosclerosis indication, a clear mismatch that forces appropriateness to usually-not-appropriate and the recommendation to query-referrer regardless of completeness; the unilateral symptoms and the ear discharge each independently force urgent triage and moderate clinical priority, and several administrative fields are not yet captured — expect usually-not-appropriate + urgent + moderate priority + query-referrer, completeness below 100.
A UK NHS–aligned hearing test result (report) that a reporting clinician completes after an audiological examination has been performed. It is the result/report counterpart to Hearing Test Request (a referral): where the request captures why a hearing test should be done, this form records what the test found and a structured interpretation. It records the performed test and its reliability, the clinical history, the pure-tone averages and the per-ear interpretation (loss type and severity), tympanometry types, the narrative and structured findings, the impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured audiology report.
- normal-pure-tone-audiometry-complete — A routine pure-tone audiometry check: normal thresholds bilaterally, type A tympanograms, no hearing loss, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-bilateral-conductive-otosclerosis-moderate-complete — Progressive bilateral mild conductive hearing loss with an air-bone gap and type As tympanograms, consistent with otosclerosis: the conductive component is an actionable finding graded moderate severity via its own dedicated rule (not the PTA-severity ladder, since the worst PTA of 38 dB HL stays under the 41 dB moderate threshold), and is deliberately not in `hasCriticalFinding`, so it never escalates past 'recommended' follow-up; report complete — expect abnormal classification + moderate severity (reportingCategory conductive-component) + 100% completeness + recommended follow-up + specialist-referral.
- critical-sudden-sensorineural-loss-uncommunicated-incomplete — Sudden-onset right-sided sensorineural hearing loss over 48 hours, a 30 dB or greater drop across three contiguous frequencies versus the unaffected left ear: this critical finding (sudden SNHL, an otological emergency, plus the marked asymmetry it produces) auto-escalates classification to critical and follow-up to critical-alert regardless of the other axes; the result has not yet been recorded as communicated, no originating request is linked, and the clinical history and impression sections are not yet completed while urgent treatment is arranged — expect critical classification + major severity + 60% completeness + critical-alert follow-up + urgent-review.
A UK primary-care structured annual review for adults with an established diagnosis of chronic heart failure. It records the objective and self-reported findings needed to confirm functional status, review fluid balance, verify monitoring bloods, and check that guideline-directed medical therapy has been optimized. The engine derives an NYHA functional status, a medication- optimization status against the "four pillars" of heart-failure therapy, grades the completeness of the review, and raises safety flags (urgent review, optimization gaps, deranged renal function or potassium, fluid overload, missing monitoring bloods).
- stable-nyha-2 — Well-optimised HFrEF on four-pillar therapy, mild exertional symptoms only: NYHA II — stable functional status.
- symptomatic-nyha-3 — Marked limitation on ordinary activity with orthopnoea and early congestion: NYHA III — symptomatic functional status.
- advanced-nyha-4 — Symptoms at rest with recent decompensation and refractory congestion: NYHA IV — advanced functional status.
NHS Heart Health Check for cardiovascular risk assessment using simplified QRISK3-based scoring with 10-year CVD risk estimation and heart age calculation.
- low-risk — Fit 45-year-old woman, non-smoker, normal blood pressure and healthy cholesterol, no comorbidities: 10-year CVD risk under 10% — low.
- moderate-risk — 55-year-old man with borderline-high blood pressure and mildly raised cholesterol ratio, non-smoker: 10-year CVD risk in the 10-19.9% band — moderate.
- high-risk — 58-year-old man with hypertension and a high total-to-HDL cholesterol ratio: 10-year CVD risk at or above 20% — high.
Haematological evaluation covering complete blood count, coagulation studies, peripheral blood film, iron studies, haemoglobinopathy screening, bone-marrow review, transfusion history, and current treatment, producing a composite haematological risk classification.
- Normal complete blood count and coagulation panel — All 18 scored values (blood count, coagulation, iron studies) fall within their reference ranges, so every deviation is 0 and the composite abnormalityScore is 0 - Normal. Three low-concern audit rules fire to record that each panel (blood count, coagulation, iron studies) was checked and found normal (HEM-016, HEM-017, HEM-018); no flags fire.
- Iron-deficiency anaemia, moderate abnormality — Moderate anaemia (haemoglobin 8.0 g/dL) with microcytosis (MCV 65 fL) and severely depleted ferritin (8 ng/mL) with low transferrin saturation (10%) - a classic iron-deficiency picture. White cells and platelets are normal, and the full coagulation panel is normal. The composite abnormalityScore lands at 25 (Moderate Abnormality). Five rules fire: three medium (moderate anaemia, microcytosis, depleted ferritin) and two low (coagulation panel normal, elevated RDW/anisocytosis). One medium flag fires for the iron-deficiency pattern (low ferritin with low transferrin saturation).
- Pancytopenia with suspected DIC and blast cells, critical — Severe anaemia (haemoglobin 5.5 g/dL), severe thrombocytopenia (platelets 15) and leukopenia (WBC 2.0) together meet the pancytopenia pattern; a critically elevated INR (4.5) with severely low fibrinogen (80 mg/dL) and a severely elevated D-dimer (6.0 mg/L) indicates suspected DIC, compounded by a markedly prolonged aPTT (70s); ferritin is markedly elevated (1200 ng/mL); the blood film shows blasts suspicious for acute leukaemia; both the sickle cell and thalassaemia screens are positive; a prior transfusion reaction is documented; and the clinician has flagged urgency level 5. The composite abnormalityScore is 77 - Critical. Ten rules fire (four high, five medium, one low) and ten flags fire (six high, four medium).
A practitioner-completed administrative card that places a patient on a hematology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 hematology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 hematology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 hematology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A hernia diagnostic evaluation is the clinical assessment used to detect, classify, and grade the urgency of an abdominal-wall or groin hernia, performed by a GP, surgical registrar, or general surgeon. Most uncomplicated hernias are identified during a standard physical examination — visual inspection, palpation, cough impulse, and a reducibility check — without needing advanced imaging. This form records that examination, applies the European Hernia Society (EHS) groin-hernia classification and a red-flag urgency screen, and produces a hernia classification plus an urgency band suitable for the clinical record and for a referral letter.
- routine-reducible-indirect-inguinal-hernia — A gradually-enlarging, freely reducible left indirect inguinal hernia in a warehouse worker, low pain (2/10), EHS grade 1, no red flags, confirmed by a positive cough impulse: expect computedUrgency routine, finalUrgency routine, recommendation watchful-waiting, and no safety flags.
- urgent-irreducible-umbilical-hernia-no-red-flags — A long-standing, previously-always-reducible umbilical hernia now persistently irreducible for 2 days but otherwise systemically well, with the negative red-flag screen safety-netted: irreducibility alone (with no red flags) drives urgency to 'urgent' via the reducibility branch, not 'emergency'. The absent cough impulse (because it no longer reduces) does NOT raise occult-hernia-suspected — since the 2026-09-06 fix, an irreducible/incarcerated reducibility status is excluded from `examInconclusive`, because the mass here is already clinically confirmed, not occult — expect computedUrgency urgent, finalUrgency urgent, recommendation urgent-referral, and only F-INCARCERATION-RISK-001 (not F-STRANGULATION-SUSPECTED-001, which needs a positive red flag too).
- emergency-strangulated-inguinal-hernia-red-flags-positive — A previously-easily-reducible right inguinal hernia now irreducible with sudden severe pain, vomiting, fever, erythema, and tachycardia: six of the seven red flags are positive, forcing computedUrgency to 'emergency' ahead of (and instead of) the reducibility branch's own 'urgent' rule, since the red-flag check runs first and returns immediately; the co-occurring irreducibility plus positive red flags fires the strangulation-suspected flag (not the incarceration-risk flag, which needs a clean red-flag screen) alongside the emergency-referral flag — expect computedUrgency emergency, finalUrgency emergency, recommendation emergency-referral.
A hip-replacement surgery evaluation is the orthopaedic assessment used to determine whether a patient is a suitable candidate for total hip arthroplasty. It is performed by an orthopaedic surgeon or extended-scope physiotherapist in a joint-replacement clinic. The form quantifies hip pain and functional decline with the validated Oxford Hip Score (OHS), records the physical examination and imaging findings, audits which conservative treatments have already been tried, screens general surgical fitness, and produces a surgical-candidacy recommendation together with a set of safety-critical flags.
- continue-conservative-gate-overrides-candidate — Moderate hip osteoarthritis (OHS 26, moderate band; Kellgren-Lawrence grade 2) that would satisfy the 'candidate' rule on score and imaging alone, but physiotherapy has only just started and no injection or analgesic trial has been given, so conservative measures are recorded as not exhausted — the first-checked conservative gate overrides everything else: expect computedCandidacy continue-conservative, finalCandidacy continue-conservative (no override), BMI 27, with the conservative-not-exhausted and pre-op-bloods-incomplete flags (nothing has been ordered because the patient is not being listed).
- mdt-review-severe-imaging-mild-symptoms-mismatch — Kellgren-Lawrence grade 3 radiographic disease but only mild-to-moderate symptoms (OHS 34), conservative measures exhausted: the 'strong-candidate' rule needs OHS <= 19 and the 'candidate' rule OHS <= 29, so a 34 with severe imaging is the mixed picture that falls through to the multidisciplinary-team fallback; BMI 41.1 (165 cm, 112 kg) crosses the >= 40 surgical-risk threshold, three baseline tests are still outstanding, and the Trendelenburg sign is positive — expect computedCandidacy mdt-review, finalCandidacy mdt-review, with high-BMI and pre-op-bloods flags (medium) and the Trendelenburg flag (low).
- strong-candidate-overridden-to-mdt-review — Severe bilateral hip disease (OHS 14, severe band; Kellgren-Lawrence grade 4) with conservative measures exhausted and all pre-operative baseline tests done: the engine computes strong-candidate, but the surgeon overrides to mdt-review with a recorded reason (cardiac disease plus anticoagulant use need anaesthetic MDT input before listing) — the override changes only the candidacy, never the flags: a 2.5 cm leg-length discrepancy (> 2 cm, medium) and bilateral symptoms (low) still report — expect computedCandidacy strong-candidate, finalCandidacy mdt-review, overrideReason populated.
A UK NHS–aligned tissue histopathology specimen request (referral) that a clinician completes when submitting a tissue specimen for histopathological examination. It records the specimen (type, anatomical site, number of pots, fixative), the clinical indication and specific question, relevant clinical details, provisional diagnosis and previous histology, and the requested urgency — then computes a four-axis grading (appropriateness, specimen quality, request completeness, and urgency triage) plus a set of safety-critical flags. The output is a vetting report that supports the pathology laboratory's accessioning, triage, and reporting decisions.
- routine-characterise-lesion-skin-lesion-complete — Well-formed routine referral: a changing pigmented skin lesion, excised skin-lesion specimen requested (first-line for characterise-lesion), properly fixed in formalin and confirmed labelled with a specimen count recorded, every completeness field present — expect usually-appropriate + ok specimen quality + routine + accept.
- two-week-wait-suspected-malignancy-biopsy-fixative-other-caution — Colonoscopic biopsies from a suspicious sigmoid colon mass: biopsy is the recommended (ideal) specimen for the suspected-malignancy indication, and the indication itself auto-escalates triage onto the two-week-wait suspected-cancer pathway regardless of the routine urgency requested; the endoscopy unit's non-standard fixative forces a specimen-quality caution — expect usually-appropriate + caution specimen quality + two-week-wait + accept.
- query-referrer-inflammatory-disease-other-specimen-mismatch-fresh-unfixed-incomplete — A skin biopsy sent fresh (unfixed) without formalin, container labelling unconfirmed, and specimen count not recorded: fresh tissue submitted outside a frozen-section pathway is at reject-risk for autolysis, which forces query-referrer ahead of the appropriateness check; an 'other' specimen type was also requested even though biopsy / endoscopic-biopsy are recommended for the inflammatory-disease indication, an independent mismatch; several administrative fields are not yet captured — expect usually-not-appropriate + reject-risk specimen quality + routine + query-referrer, completeness below 100.
A UK NHS–aligned histopathology result (report) that a reporting clinician completes after a tissue specimen has been examined. It is the result/report counterpart to Histopathology Test Request (a referral): where the request captures why a specimen should be examined, this form records what the examination found and a structured interpretation. It records the examined specimen and its adequacy, the clinical history, the macroscopic and microscopic descriptions, the histopathological diagnosis, malignancy and tumour characterization (tumour type, histological grade, pathological TNM stage, resection margins, lymphovascular invasion), ancillary immunohistochemistry and SNOMED coding, the impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured pathology report.
- normal-benign-melanocytic-naevus-complete — Excision of a pigmented skin lesion shows a benign compound melanocytic naevus with clear margins and no malignancy, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-expected-colorectal-adenocarcinoma-moderate-not-critical-complete — A colonic resection for a pre-operatively biopsy-proven and referred colorectal tumour confirms a moderately differentiated adenocarcinoma, pT2 pN0 pM0, with clear margins: malignancy is present but the report is linked to the originating diagnostic-biopsy request, so this is an *expected* (not unexpected) malignancy and does not trigger `hasCriticalFinding` — it grades only moderate severity (not high-grade or nodal/metastatic), yet confirmed malignancy still drives urgent 2-week-wait MDT follow-up regardless of severity; report complete — expect abnormal classification + moderate severity + 100% completeness + urgent follow-up + specialist-referral.
- critical-unexpected-appendiceal-adenocarcinoma-uncommunicated-incomplete — A routine appendicectomy for presumed simple appendicitis incidentally shows a poorly differentiated adenocarcinoma with nodal metastasis and lymphovascular invasion: no originating request anticipated a malignancy finding, so this is an *unexpected* malignancy and auto-escalates classification to critical and follow-up to critical-alert regardless of the other axes; the result has not yet been recorded as communicated, and the clinical history, diagnosis, and impression sections are not yet completed while the urgent MDT referral is arranged — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
The comprehensive clerking and admission document that records a patient's history and physical examination at a single clinical encounter: presenting complaint and history of the presenting complaint, past medical and surgical history, drug history and allergies, family history, social history, a systems review, a full physical examination by body system, vital signs, investigations, an impression and problem list, and a management plan.
- complete-cap-clerking — Full ten-component admission clerking for community-acquired pneumonia with normal-range observations bar a mild temperature — expect complete / 100%.
- thunderclap-headache-red-flags — Focused but thorough clerking for a thunderclap headache: red flags documented WITH a management plan and systolic 165 recorded — expect partial (family/social history and systems review not yet taken).
- stalled-night-clerking-no-allergy — 04:05 clerking of an unwitnessed fall stalled before allergies, impression, or plan were recorded, with hypothermia, tachycardia, and reduced consciousness — expect incomplete via both blocking rules (allergies undocumented, no impression-or-plan).
A UK NHS–aligned ambulatory ECG (Holter) monitoring request (referral) that a clinician completes to request ambulatory cardiac rhythm monitoring for a patient. It records the requested monitor type, the clinical indication and specific question, the patient's symptoms and symptom frequency, the relevant cardiac context and red flags, and the requested urgency — then computes a four-axis grading (appropriateness, urgency/triage, request completeness, and clinical priority) plus a set of safety-critical flags. The output is a vetting report that supports the cardiac physiology department's triage and booking decision.
- routine-palpitations-24-hour-daily-matched-complete — Well-formed routine referral: daily palpitations, a 24-hour Holter is the recommended (ideal) monitor for the palpitations indication and also matches daily symptom frequency for good diagnostic yield — the frequency match nudges the score from 8 to 9 — every completeness field present — expect usually-appropriate (score 9) + matched + routine + low priority + accept.
- urgent-atrial-fibrillation-detection-7-day-weekly-matched-presyncope-moderate-priority — Weekly palpitations with presyncope: a 7-day monitor is the recommended (ideal) choice for atrial-fibrillation-detection and also matches weekly symptom frequency, nudging the score from 8 to 9; the presyncope itself auto-escalates triage to urgent regardless of the routine urgency requested, and together with the palpitations raises clinical priority to moderate — expect usually-appropriate (score 9) + matched + urgent + moderate priority + accept.
- redirect-palpitations-24-hour-rare-frequency-mismatch-incomplete — Infrequent palpitations (roughly once every few months): a 24-hour Holter is the recommended (ideal) monitor type for the palpitations indication itself, but is a poor fit for rare symptom frequency — an event recorder or implantable loop recorder would give far better diagnostic yield. The -3 mismatch penalty pulls the score from 8 down to 5 (may-be-appropriate, not usually-not-appropriate), so this engine's distinctive `redirect` recommendation fires from the frequency-mismatch check rather than a query-referrer appropriateness mismatch; several administrative fields are not yet captured — expect may-be-appropriate (score 5) + mismatched + routine + low priority + redirect, completeness below 100.
A UK NHS–aligned ambulatory ECG (Holter) monitor result (report) that a reporting clinician completes after an ambulatory cardiac rhythm recording has been performed and analysed. It is the result/report counterpart to Holter Monitor Test Request (a referral): where the request captures why monitoring should be done, this form records what the recording found and a structured interpretation. It records the monitor type and recording quality, the clinical history, the rhythm and rate summary (mean / minimum / maximum heart rate, longest pause, ectopy burden), the structured and narrative findings, the impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured ambulatory ECG report.
- normal-24-hour-holter-complete — A normal 24-hour ambulatory ECG for palpitations: predominant sinus rhythm, normal diurnal heart-rate variation, no pauses, ectopy, or tachyarrhythmia, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-paroxysmal-af-controlled-rate-moderate-not-critical-complete — A 7-day ambulatory ECG for intermittent palpitations detects paroxysmal atrial fibrillation with a controlled ventricular response (maximum rate 132 bpm, below the 150 bpm fast-AF threshold): AF alone grades only moderate severity via its own dedicated rule, and `hasFastAtrialFibrillation` requires a maximum rate of 150 bpm or more, so this stays well short of the critical pathway; report complete — expect abnormal classification + moderate severity (reportingCategory af-detected) + 100% completeness + recommended follow-up + further-monitoring.
- critical-significant-pause-uncommunicated-incomplete — A single sinus pause of 4.6 seconds recorded overnight, associated with a brief pre-syncopal episode: a pause exceeding the 3-second `SIGNIFICANT_PAUSE_SECONDS` threshold is a critical rhythm finding that auto-escalates classification to critical and follow-up to critical-alert regardless of the other axes; the result has not yet been recorded as communicated, no originating request is linked (now correctly raising F-UNEXPECTED-FINDING-001 too, since the 2026-09-06 fix), and the clinical history and impression sections are not yet completed while urgent pacing assessment is arranged — expect critical classification + major severity + 60% completeness + critical-alert follow-up + urgent-review.
HRT eligibility and symptom assessment using the MRS (Menopause Rating Scale) covering vasomotor, bone, cardiovascular, and breast health.
- favourable — Recently menopausal woman with troublesome vasomotor symptoms and no risk factors: no contraindications, 0 caution factors — Favourable.
- cautious — Vasomotor symptoms with a personal VTE history and a first-degree family history of breast cancer: 2 relative-caution factors — Cautious.
- contraindicated — Personal history of breast cancer requesting HRT for vasomotor symptoms: absolute contraindication — Contraindicated.
A hospital administrator's / medical superintendent's daily rounds checklist that audits 97 concrete operational checkpoints across 22 hospital areas — OPD, Causality (Casualty), Dispensary, HR attendance, Ambulance, Diagnostic Facility (Pathology Lab + Radio Imaging), Store, OT/ICU, Labour Room, Wards, House Keeping, Water Supply, Electric Supply, Diet, Hospital Signage, Fire Fighting Equipment, Patient Feedback, Mortuary, Hospital Furniture, Hospital Waste Management, Infection Control Protocols, and Record Room.
- Thorough inspection - 97/97 checkpoints touched, two isolated gaps — Every one of the 97 checkpoints is answered: 94 satisfactory, 2 not-applicable (mortuary, section 18 - no mortuary on this site), and exactly 2 needs-attention items in two different, non-adjacent sections (1.4 Complaint Box; 16 Fire Fighting Equipment). Expect answeredCount 97, needsAttentionCount 2, needsAttentionItems for 1.4 and 16 in that order (catalogue order), sectionsWithNeedsAttention [1, 16].
- Half-finished round - only sections 1-10 assessed — Non-critical edge case: only the 52 checkpoints in sections 1 through 10 are touched (satisfactory by default), sections 11-22 left entirely blank. Two needs-attention items are recorded within the assessed range: the Dispensary (section 3) stock register and the Labour Room (section 9) resuscitation trolley. Expect answeredCount 52 (not 97 - the 45 blank checkpoints in sections 11-22 do not count), needsAttentionCount 2, sectionsWithNeedsAttention [3, 9].
- Widespread safety gaps - fire, waste, and infection-control all flagged — Critical/highest-severity persona for this facility-audit form: all 97 checkpoints answered, but every checkpoint in three safety-critical areas is marked needs-attention - Fire Fighting Equipment (1 checkpoint, id '16'), Hospital Waste Management (section 20, 10 checkpoints), and Observance & Practice of Infection Control Protocols (section 21, 5 checkpoints). Expect answeredCount 97, needsAttentionCount 16 (1 + 10 + 5), sectionsWithNeedsAttention [16, 20, 21].
A periodic (typically monthly) hospital KPI dashboard: 67 operational metrics across 14 departmental categories — antibiotics/narcotics and culture monitoring, inpatient/ward, emergency department, infection control (HAI/CAUTI/VAP/SSI/CLABSI), blood bank, outpatient (OPD), surgery/OR, pharmacy, radiology, patient flow/waiting times, human resources, patient experience, occurrence variance reports (OVR), and facilities/biomedical engineering.
- Complete monthly submission - all 67 metrics recorded — Every one of the 67 metrics across all 14 categories has a numeric value. Expect recordedCount 67, and every categoryCounts entry has recorded === total (category 1, Antibiotics/Narcotics/Culture, is 3/3; category 14, Facilities & Biomedical Engineering, is 6/6).
- Partial submission - only the first two categories recorded — Non-critical edge case: only categories 1-2 (Antibiotics/Narcotics/Culture Monitoring, and Inpatient/Ward Metrics) have values; categories 3-14 are entirely blank. Expect recordedCount 14 (the combined size of categories 1-2), category 1 reported as 3/3 (fully recorded), category 14 (Facilities & Biomedical Engineering) reported as 0/6.
- Nothing recorded - blank submission — Critical/highest case for this completeness tally: no metric anywhere has a value. Expect recordedCount 0, and every one of the 14 categoryCounts entries reports 0 recorded against its full total (category 1 0/3, category 14 0/6).
Hospital discharge summary form aligned with UK NICE NG27 and the SAFER patient-flow bundle, capturing diagnoses, procedures, medication reconciliation, follow-up arrangements, and community handover details to support safe transfer of care.
- Complete discharge summary, uncomplicated appendicectomy — All 25 mandatory and all 8 optional NICE NG27 fields are satisfied: full patient/GP/next-of-kin details, a coded primary diagnosis, an explicit no-procedures-performed note superseded by the laparoscopic appendicectomy narrative, fully-specified discharge medication with reconciliation and allergies reviewed, a scheduled GP follow-up appointment, home discharge to family care, safety-netting and written information given, full clinician sign-off with the consultant informed, and full patient acknowledgement including a written summary. completenessLevel is Complete (25/25 mandatory, 8/8 optional) with no flags.
- Partial summary, care-home transfer without carer informed — All 25 mandatory fields are satisfied (fractured-neck-of-femur discharge to a care home), but every optional field is missing: no address/next-of-kin, no clinical narrative, neither diagnosis is ICD-10 coded (two diagnoses are both marked primary), no follow-up appointment scheduled alongside both GP and outpatient follow-up explicitly declined, no written information, no written summary, and patient questions not marked answered. completenessLevel is Partial (25/25 mandatory, 0/8 optional). Seven flags fire: one high (care-home discharge with carerInformed not yes), four medium (no follow-up arranged; two primary diagnoses recorded; questions not answered; no written summary), two low (no ICD-10 codes on either diagnosis; no written warning-signs information).
- Incomplete summary, unsafe discharge with reversed dates — Eighteen of the 25 mandatory NICE NG27 fields are missing: no NHS number, no consultant, no diagnosis recorded at all, no procedures list and no explicit none, an incompletely-specified antibiotic (missing frequency), reconciliation and allergies both explicitly not done, follow-up decisions left blank, pending investigations with no chase plan, no discharge destination or care responsibility, no safety-netting advice text, no clinician sign-off identity, and the patient explicitly does not understand the plan. The discharge date is also recorded before the admission date (a data-entry reversal the validator's nonEmpty-only mandatory checks cannot catch, but the independent flag layer does). completenessLevel is Incomplete (7/25 mandatory, 0/8 optional). Twelve flags fire: four urgent (reconciliation not done, allergies not reviewed, discharge before admission, patient does not understand the plan), five high (incomplete medication, pending investigations with no chase plan, no primary diagnosis, consultant not informed, no safety-netting), two medium (questions not answered, no written summary), one low (no written warning-signs information).
A hospital Balanced Scorecard (Kaplan & Norton, 1992/1996) KPI report: 50 indicators across the four classic Balanced Scorecard perspectives applied to a hospital — Finance (9), Process (28), Learning and Growth (8), and Customer (5).
- Complete quarterly submission - all 50 indicators recorded — Every one of the 50 indicators across all 4 perspectives has a numeric value. Expect recordedCount 50, and every categoryCounts entry has recorded === total (Finance 9/9, Learning and Growth 8/8, Customer 5/5).
- Partial submission - only Learning/Growth and Customer perspectives recorded — Non-critical edge case: only the Learning and Growth and Customer perspectives (categories 3 and 4) have values; Finance and Process (categories 1-2) are entirely blank. Expect recordedCount 13 (8 + 5), Finance (category 1) reported as 0/9, Learning and Growth (category 3) and Customer (category 4) both fully recorded (8/8, 5/5).
- Nothing recorded - blank submission — Critical/highest case for this completeness tally: no indicator anywhere has a value. Expect recordedCount 0, and every one of the 4 categoryCounts entries reports 0 recorded against its full total (Finance 0/9, Process 0/28, Learning and Growth 0/8, Customer 0/5).
A UK primary-care annual hypertension review that records the objective data needed to confirm blood-pressure control and complete a structured yearly review under NICE NG136 (Hypertension in adults: diagnosis and management). It captures clinic and home/ambulatory blood pressure, medication and adherence, cardiovascular risk (QRISK), annual bloods (U&E, HbA1c, lipids), urine albumin:creatinine ratio (ACR), lifestyle, and complications.
- controlled — Treated hypertensive, home readings within the 135/85 target: controlled, no stage criteria met.
- uncontrolled-stage-1 — Above target on both clinic and home readings meeting stage-1 thresholds: uncontrolled, stage-1 hypertension.
- severe-uncontrolled — Clinic reading at or above 180/120 with markedly elevated home readings: severe-uncontrolled, stage-3 severe hypertension.
A practitioner-completed administrative card that places a patient on a immunology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 immunology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 immunology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 immunology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A practitioner-completed administrative card that places a patient on a infectious diseases waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 infectious diseases referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 infectious diseases referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 infectious diseases referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A structured clinical note written about an admitted patient during a hospital episode. Unlike a single bedside ward-round entry, one inpatient clinical note can be any of the note types a ward team produces across an admission — admission clerking, daily progress note, specialty consult note, acute event / deterioration note, bedside procedure note, shift handover note, inter-ward transfer note, or discharge-planning note — all keyed to the same admission episode and sharing one data shape.
- stable-complete-progress-note — Day-4 CAP progress note with every required component documented, NEWS2 1 improving on room air — expect complete (100%), stable acuity, no flags.
- deteriorating-sepsis-event-note — 03:15 event note: NEWS2 7 worsening, new oxygen requirement, positive sepsis screen, critical-care outreach informed — expect escalate acuity with NEWS2-high, new-oxygen, and sepsis rules fired.
- sparse-overnight-note-with-override — Brief FY2 overnight entry: NEWS2 4 recorded but problems, medications, risks, plan, and escalation undocumented; author overrides acuity to watch WITH a recorded reason — expect incomplete completeness and the override honoured.
Structured integumentary (skin, hair, nails) clinical assessment combining a head-to-toe skin inspection with the Braden Scale for pressure ulcer risk and wound TIME assessment, to grade pressure-ulcer risk and characterize integumentary findings.
- no-risk — Ambulant outpatient with a benign skin lesion, fully mobile and continent: Braden 23 — no risk.
- moderate-risk — Older inpatient with reduced mobility and occasional incontinence: Braden 14 — moderate risk.
- very-high-risk — Bedbound critically ill patient with a sacral pressure ulcer, incontinence and poor nutrition: Braden 6 — very high risk.
A practitioner-completed administrative card that places a patient on a internal medicine waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 internal medicine referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 internal medicine referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 internal medicine referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
An implementation of the WHO model International Certificate of Vaccination or Prophylaxis ("yellow card"), the official document used under the International Health Regulations 2005, Annex 6 to record vaccinations or prophylactic treatments that are required for international travel.
- Correctly completed yellow fever certificate — Yellow fever vaccination 2026-06-01, validity starts exactly 10 days later (2026-06-11, matching VAL003's formula) with entryValidityIsLifetime 'yes' (so VAL004's missing-end-date check does not fire), manufacturer/batch/clinician-status/centre-stamp all recorded, patient aged 36 at vaccination (within the 9-month-to-60-year yellow-fever window), no pregnancy/breastfeeding/immunosuppression declared. Expect firedRules [] and overallValid true.
- Cholera certificate with an inconsistent validity date and a pregnancy declaration — Non-critical edge case built to isolate the disease-agnostic checks from the yellow-fever-only ones. entryDisease 'cholera' (not yellow-fever), so VAL003/VAL004/VAL008/VAL009 cannot fire regardless of the dates. entryValidityStartsOn (2026-06-25) is set BEFORE entryVaccinationDate (2026-07-01), firing VAL002 (error). declaredPregnancy 'yes' fires VAL010 (warning) independently of the disease. Manufacturer, batch, clinician status, and centre stamp are all present, so VAL005-VAL007 do not fire. Expect firedRules [VAL002 (error), VAL010 (warning)] in that order, overallValid false (VAL002 is an error).
- Critical - future-dated yellow fever entry with six missing/inconsistent fields — Critical/highest-severity persona: nine of the eleven enforced rules fire simultaneously. entryVaccinationDate 2026-09-10 is after the frozen 'today' of 2026-09-03 (VAL001, error). entryValidityStartsOn 2026-09-05 is both before the vaccination date (VAL002, error) AND does not equal vaccinationDate+10 days = 2026-09-20 (VAL003, error). entryValidityEndsOn is blank and entryValidityIsLifetime is not 'yes' (VAL004, warning). entryManufacturer and entryBatchNumber are blank (VAL005, error). entryClinicianProfessionalStatus (the per-entry field, distinct from the top-level clinicianProfessionalStatus which stays filled) is blank (VAL006, error). entryCentreStampApplied is 'no' (VAL007, error). The patient is 66 years old at vaccination (VAL009, warning - the mutually-exclusive 'too young' VAL008 cannot also fire at this age). declaredImmunosuppression is 'yes' (VAL011, warning); pregnancy/breastfeeding are left 'no' so VAL010 does not also fire on top of an implausible combination for a 66-year-old. Expect firedRules in code order VAL001, VAL002, VAL003, VAL004, VAL005, VAL006, VAL007, VAL009, VAL011 (9 rules: 6 errors, 3 warnings), overallValid false.
International Patient Summary (IPS) — a standardized, minimal, specialty-agnostic electronic health record extract conforming to ISO 27269 and HL7 FHIR R5, designed to support cross-border and unplanned care by exchanging a patient's core clinical facts (medications, allergies, problems, procedures, immunizations, demographics).
- complete-all-ten-sections-populated — A finalised cross-border summary for a patient with a well-documented chronic condition: every mandatory section has at least one usable entry, an implanted device is recorded, and advance-directive consent to EU sharing is answered — expect completenessLevel complete, 8/8 mandatory, 2/2 optional, all ten rules 'ok'.
- partial-mandatory-complete-optional-empty — A finalised summary for a healthy traveller with no known allergies (recorded via the IPS 'no-known-allergies' substance marker, which the allergies rule accepts as a populated section) and every mandatory section present, but no devices and no advance-directive or consent answers — expect completenessLevel partial, 8/8 mandatory, 0/2 optional, with IPS-009 and IPS-010 reported as 'optional' rather than 'empty'.
- incomplete-draft-missing-allergies-and-signoff — A draft still being assembled at an emergency admission: problems, medications, immunisations, procedures, and a result are recorded, but the allergies section holds only a placeholder row with a blank substance (which the allergies rule treats as empty — a row is not enough, it needs a substance or the no-known-allergies marker) and the authoring clinician's status is unset; the patient has explicitly declined cross-border sharing, which populates the optional advance-directives section — expect completenessLevel incomplete, 6/8 mandatory, 1/2 optional.
A general-purpose issue tracker that borrows the structure of a clinical SOAP-style assessment and applies it to any reportable problem — software defects, operational incidents, safety events, project blockers, customer complaints, and so on. Each issue is captured through a single-page, step-by-step questionnaire (nine SOAP-style sections) and graded with seven independent scoring scales drawn from medicine, aviation, civil engineering, and software-product practice. The output is a signed report with a composite priority and a list of safety-critical flags, suitable for triage and remediation tracking.
- Cosmetic UI bug - every scale at its mildest — A rarely-seen date-picker glitch: priority rank 4 (low), severity 1, magnitude 1, harm 0 (no harm), failure condition E (no effect), MoSCoW 4 (won't have), frequency 2%. Every instrument bands 'low', so compositePriority is 'low'. Expect eight fired rules (one per instrument plus the composite) and no flags at all.
- Data-protection near-miss with one unanswered scale — Non-critical edge case: a bulk-export filter bug sent records to the wrong clinic. Priority rank 2 (high), severity 3 (moderate), magnitude left UNANSWERED (null - bands low but pushes no rule), harm 1 (moderate - below the >=2 regulatory threshold despite issueCategory 'data-protection' being in the regulatory set), failure condition C (moderate), MoSCoW 1 (must have - high band AND the only flag trigger), frequency 30% (high). compositePriority 'high' (from priority/MoSCoW/frequency). Expect seven fired rules (magnitude contributes none) plus the composite rule, and exactly one flag: F-MOSCOW-MUST-001. The regulatory flag does NOT fire (harm 1 is below the >=2 floor even though the category qualifies).
- Critical - paediatric dosing-calculator error, every scale at its most severe — Critical/highest-severity persona: an infusion-pump dose-rounding error affecting every calculation since deployment. Priority rank 1 (critical), severity 5 (critical - the scale's maximum), magnitude 10 (critical - total destruction), harm 4 (critical - fatal, the scale's maximum), failure condition A (critical - catastrophic), MoSCoW 1 (must have), frequency 100% (critical, >=95). issueCategory 'clinical-safety' is in the regulatory set and harm 4 >= 2, so the regulatory flag also fires. Expect compositePriority 'critical', eight fired rules (all seven instruments plus the composite), and seven flags in check order: F-HARM-FATAL-001, F-FAILURE-A-001, F-SEVERITY-5-001, F-MAGNITUDE-10-001, F-FREQUENCY-95-001, F-MOSCOW-MUST-001, F-REGULATORY-001.
Functional movement screening using the FMS (Functional Movement Screen) with 7 standardized movement tests.
- excellent-low-risk — Well-conditioned athlete with clean movement patterns and minor rotary-stability limitation: FMS total 20 — Excellent, low injury risk.
- fair-at-risk — Recreational runner with a low lunge and left-right asymmetry: FMS total 12 — Fair, at injury risk.
- poor-at-risk — Deconditioned patient with pain on squat and lunge and multiple limited patterns: FMS total 5 — Poor, at injury risk.
An orthopaedic knee-replacement surgery evaluation: the assessment used by an orthopaedic surgeon or extended-scope physiotherapist in a joint-replacement clinic to decide whether a patient is a suitable candidate for total or partial knee arthroplasty. The form records the presenting history, scores the validated Oxford Knee Score (OKS), captures the physical examination and diagnostic imaging, audits the conservative treatment already tried, and computes an OKS total and category, a surgical-candidacy recommendation, and a set of safety flags. The output is a signed evaluation report suitable for the clinical record and the joint-replacement multidisciplinary team (MDT).
- Satisfactory OKS, surgery not indicated — 65-year-old woman with mild left-knee OA: all 12 OKS items answered totalling 44 (satisfactory), KL grades 1/0/1 (max 1), conservative measures recorded as exhausted, BMI 24.9, no deformity, unilateral. Expect computedCandidacy = finalCandidacy = 'not-indicated' via the 'OKS 44 is 40 or above' branch, firedRules = [R-OKS-TOTAL (44, satisfactory), R-CANDIDACY (not-indicated)], overrideReason '', and no flags.
- Partial OKS, borderline MDT review overridden to candidate — 67-year-old man with bilateral symptoms, 10 of 12 OKS items answered (kneeling and shopping left blank) totalling 30 (mild-to-moderate), KL 2/2/1 (max 2), conservative measures exhausted, BMI 165 cm / 108.6 kg = 39.9 (just under the 40 flag), fixed flexion deformity present at exactly 15 degrees (not > 15, so no flag), plan is MDT review. Expect computedCandidacy 'mdt-review' (OKS 30 is not <= 29, is not >= 40, KL 2 is not <= 1), finalCandidacy 'candidate' from the clinician override with overrideReason surfaced, firedRules = [R-OKS-TOTAL (30, mild-to-moderate), R-OKS-INCOMPLETE (score 10), R-CANDIDACY (mdt-review)], and exactly one flag: F-BILATERAL-SYMPTOMATIC-001 (low).
- Severe bilateral OA, strong candidate with four pre-listing flags — 64-year-old woman with end-stage bilateral knee OA: all 12 OKS items answered totalling 9 (severe), KL 4/3/3 (max 4), conservative measures exhausted, plan total knee replacement. BMI 160 cm / 105 kg = 41.0; pre-op checklist has clotting 'no', ECG '', MRSA 'no', urinalysis '' (four items not 'yes'); fixed flexion deformity present at 20 degrees; bilateral. Expect computedCandidacy = finalCandidacy = 'strong-candidate' (no override), overrideReason '', firedRules = [R-OKS-TOTAL (9, severe), R-CANDIDACY (strong-candidate)], and four flags in stable priority order: F-HIGH-BMI-SURGICAL-RISK-001 (medium, 'Body mass index 41 kg/m²...'), F-PRE-OP-BLOODS-INCOMPLETE-001 (medium, listing clotting, electrocardiogram, MRSA screen, urinalysis), F-FIXED-FLEXION-DEFORMITY-001 (medium, 20 degrees), F-BILATERAL-SYMPTOMATIC-001 (low). The conservative-not-exhausted flag cannot co-fire with strong-candidate.
A practitioner-completed administrative card that places a patient on a laboratory medicine waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 laboratory medicine referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 laboratory medicine referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 laboratory medicine referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A UK primary-care annual health check for people aged 14 or over on a GP practice's learning-disability (LD) register. It is a comprehensive, whole-person review that captures reasonable adjustments and communication needs, physical health, health-screening and immunization uptake, a medication review including STOMP (Stopping Over-Medication with Psychotropics), mental health and behaviour, syndrome-specific checks, and carer and social circumstances — and produces a Health Action Plan the person can keep.
- complete — Thorough annual health check with every one of the 18 required components recorded and a Health Action Plan produced and shared: 100% — complete.
- partial — Check partly done — 8 of the 18 required components recorded, many outstanding and no Health Action Plan yet: 44% — incomplete.
- minimal — Barely-started check with only a couple of components recorded and no Health Action Plan: ~11% — incomplete.
Structured annual health check and adaptive-functioning assessment for people with a learning disability, aligned with the NHS England Annual Health Check and DSM-5-TR / ICD-11 criteria, producing a severity category and a personalized Health Action Plan with reasonable adjustments.
- mild — Largely independent adult needing occasional support with literacy and money: mean adaptive score 0.2 — Mild learning disability.
- moderate — Needs significant support across literacy, communication and household tasks: mean adaptive score 1.5 — Moderate learning disability.
- profound — Full support required across almost all adaptive domains with complex needs: mean adaptive score 2.8 — Profound learning disability.
Pool / beach lifeguard certification checklist aligned with the RLSS UK National Pool Lifeguard Qualification (NPLQ) and International Life Saving Federation (ILSF) competencies, covering supervision and scanning, physical fitness, rescue scenarios, CPR / AED, first aid, and legal / regulatory knowledge.
- Clean pass - initial NPLQ candidate, every competency demonstrated — Nineteen-year-old initial candidate at a leisure-centre pool. Every one of the 46 rules is 'yes'; the timed swim (52 s) and CPR compressions (110/min, 5.5 cm) are left to the numeric fallback so the derived path is exercised. Expect outcome 'pass', criticalFailures [], deficiencies [], answeredCount 46, totalRules 46, and all 46 firedRules with status 'yes'. Unpinned flags: only the three low-priority debrief flags (examiner notes, candidate feedback, development areas all recorded); no prior certification so no expiry check.
- Needs development - requalifying beach lifeguard with two knowledge gaps — Non-critical edge case: an experienced beach lifeguard requalifying (prior certificate valid to 2027). Every critical competency is demonstrated; two non-critical rules are 'no' (burns management LIFE-FA-BURNS and RIDDOR awareness LIFE-LR-RIDDOR - different categories, so no domain-weakness flag), and two items were not assessed as 'na' (LIFE-SP-ROLL, no face-down roll indicated; LIFE-FA-OXYGEN, no oxygen kit at the beach venue). The timed swim is 58 s (within target, but inside the 5-second margin) and compressions are 118/min at exactly 5.0 cm, both via the numeric fallback. Expect outcome 'needs-development', criticalFailures [], deficiencies [LIFE-FA-BURNS, LIFE-LR-RIDDOR], answeredCount 44, totalRules 46. Unpinned flags: FLAG-MULTI-DEF (medium, exactly 2 deficiencies), FLAG-SWIM-50M-MARGIN (medium), plus low debrief flags; no expiry flag (2027 is in the future).
- Fail - lapsed requalifier, three critical failures, assessment halted after CPR — Critical-highest persona: a requalifying pool lifeguard whose certificate expired 2026-01-31, assessed 2026-03-07. Three critical competencies fail: the timed swim measures 66 s with the tri-state left blank (numeric fallback -> 'no'), the unconscious-casualty tow (LIFE-RU-TOW) is 'no', and compressions measure 90/min at 4.2 cm with the tri-state blank (both out of range -> 'no'). Four non-critical rules are 'no' (LIFE-PF-TOW, LIFE-RU-AIRWAY, LIFE-RU-HANDOVER, LIFE-CPR-QUALITY), LIFE-SP-ROLL is 'na', and the examiner halted the session after the CPR station so all twelve first-aid and legal items are '' (unanswered). Expect outcome 'fail', criticalFailures in registry order [LIFE-PF-50M-TIME, LIFE-RU-TOW, LIFE-CPR-COMPRESSIONS], deficiencies [LIFE-PF-TOW, LIFE-RU-AIRWAY, LIFE-RU-HANDOVER, LIFE-CPR-QUALITY], answeredCount 33 (46 - 12 unanswered - 1 na), totalRules 46. Unpinned flags would be extensive: high FLAG-CRIT-LIFE-PF-50M-TIME, FLAG-CRIT-LIFE-RU-TOW, FLAG-CRIT-LIFE-CPR-COMPRESSIONS, FLAG-CERT-EXPIRED (wall-clock: true on any run after 2026-01-31), FLAG-DOMAIN-UNCONSCIOUS-RESCUE (two deficiencies in one category), FLAG-MULTI-DEF (4 > 3 -> high), FLAG-SWIM-50M-SLOW; medium FLAG-CPR-RATE-RANGE, FLAG-CPR-DEPTH-RANGE, FLAG-CPR-HESITATE-DEPTH, FLAG-AED-SLOW (112 s); low FLAG-DEBRIEF-EXAMINER, FLAG-DEVELOPMENT-AREAS.
A UK NHS–aligned lumbar puncture (LP) request (referral) that a clinician completes to request cerebrospinal fluid (CSF) sampling and/or manometry (opening-pressure measurement) for a patient. It records the procedure intent, the clinical indication and specific question, raised-intracranial-pressure and bleeding-risk safety screening, the opening-pressure requirement, and the requested urgency — then computes a four-axis grading (appropriateness, safety / contraindication, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the neurology / acute-medicine team's triage and scheduling decision.
- routine-suspected-ms-cleared-complete — Well-formed routine neurology referral: suspected MS, diagnostic lumbar puncture requested (first-line), no raised-ICP or bleeding-risk concerns, every completeness field present — expect usually-appropriate + ok + routine + accept.
- urgent-guillain-barre-anticoagulant-caution — Ascending limb weakness over 3 days with suspected Guillain-Barré syndrome — diagnostic LP is first-line and the indication itself auto-escalates triage to urgent, but the patient is on apixaban, forcing a safety caution pending anticoagulant review — expect usually-appropriate + caution + urgent + query-referrer.
- emergency-suspected-meningitis-raised-icp-contraindicated-incomplete — Suspected bacterial meningitis phoned through from the emergency department: diagnostic LP is first-line and the indication auto-escalates triage to emergency, but focal neurological signs with a CT head still awaited forces the safety band to contraindicated — image and stabilise first — and several administrative fields are not yet captured — expect usually-appropriate + contraindicated + emergency + reject, completeness below 100.
A UK NHS–aligned lumbar puncture (LP) / cerebrospinal-fluid (CSF) analysis result (report) that a reporting clinician completes after a lumbar puncture has been performed. It is the result/report counterpart to Lumbar Puncture Test Request (a referral): where the request captures why CSF sampling and/or manometry should be done and whether it is safe, this form records what the analysis found and a structured interpretation. It records the manometry opening pressure, the CSF macroscopic appearance, the cell counts, the biochemistry (protein, glucose, CSF:serum glucose ratio, lactate), the microbiology (Gram stain, culture, PCR) and specialist tests (oligoclonal bands, xanthochromia spectrophotometry), the narrative and structured findings, the impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured CSF analysis report.
- normal-clear-csf-complete — A normal lumbar puncture for headache work-up: clear CSF, normal opening pressure, normal cell counts and biochemistry, negative microbiology, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-viral-meningitis-pattern-moderate-not-critical-complete — A lymphocytic pleocytosis with a mildly raised opening pressure, negative Gram stain and culture, and enterovirus RNA detected on PCR: `viralPattern` is its own dedicated moderate-severity trigger, entirely independent of `hasCriticalFinding` (bacterial meningitis pattern, suggested SAH, or positive culture) — the negative culture ('No growth') is explicitly not treated as positive despite the markedly raised white cell count, so this never reaches the critical pathway; report complete — expect abnormal classification + moderate severity (reportingCategory viral-pattern) + 100% completeness + recommended follow-up + specialist-referral.
- critical-bacterial-meningitis-uncommunicated-incomplete — Turbid CSF with a markedly raised opening pressure, neutrophilic pleocytosis, raised protein, and a low CSF:serum glucose ratio: Gram-negative diplococci are seen on direct microscopy and Neisseria meningitidis is subsequently isolated on culture — a bacterial meningitis pattern and a positive culture are each independently a critical CSF result, auto-escalating classification to critical and follow-up to critical-alert regardless of the other axes, with the recommended action explicitly naming not delaying antibiotics for investigations per NICE NG240; the result has not yet been recorded as communicated, no originating request is linked, and the clinical history and impression sections are not yet completed while empirical treatment is already underway — expect critical classification + major severity + 60% completeness + critical-alert follow-up + urgent-review.
A UK NHS–aligned breast mammography imaging request (referral) that a clinician completes to request a mammogram for a patient. It records the requested examination, the clinical indication and specific question, breast symptoms, breast history and risk factors, and the requested urgency — then computes a four-axis grading (appropriateness, cancer-pathway urgency, request completeness, and clinical priority) plus a set of safety-critical flags. The output is a vetting report that supports the imaging department's triage and booking decision.
- routine-screening-ideal-match-complete — Well-formed routine population screening referral: screening exam type is the recommended (ideal) examination for the routine-screening indication, patient is decades above the age-below-screening threshold, no symptoms or risk factors, every completeness field present — expect usually-appropriate + routine + low priority + accept.
- urgent-breast-lump-ng12-two-week-wait — New breast lump aged 30 or over: diagnostic mammography is the recommended examination for the breast-lump indication, and the lump itself auto-escalates triage to NICE NG12 two-week-wait regardless of the routine urgency requested, and forces high clinical priority — expect usually-appropriate + two-week-wait + high priority + accept.
- query-referrer-breast-pain-other-exam-mismatch-pregnant-incomplete — Bilateral breast pain in a currently-pregnant patient: an 'other' exam type was requested even though breast-pain's only recommended examinations are symptomatic/diagnostic mammography, a clear mismatch that forces appropriateness to usually-not-appropriate and the recommendation to query-referrer regardless of completeness; pregnancy separately requires radiation justification, and several administrative fields are not yet captured — expect usually-not-appropriate + routine + moderate priority + query-referrer, completeness below 100.
A UK NHS–aligned breast mammography result (report) that a reporting clinician completes after a mammography examination has been performed. It is the result/report counterpart to Mammography Test Request (a referral): where the request captures why a mammogram should be done, this form records what the mammogram found and a structured interpretation. It records the performed examination and laterality, the clinical history, the narrative and structured findings, the breast density (ACR A–D), the largest lesion measurement, the impression, and — as the key structured score — the ACR BI-RADS final assessment category, then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured breast-imaging report.
- normal-screening-birads-1-complete — A routine three-yearly NHS Breast Screening Programme mammogram, asymptomatic: no structured findings in either breast, BI-RADS 1 (negative), every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-birads-4a-suspicious-mass-urgent-not-critical-complete — A diagnostic mammogram for a 3-week palpable left breast lump shows an irregular, spiculated 12mm mass, BI-RADS 4a: `isBiRadsUrgent` covers 4a/4b (urgent tissue-diagnosis referral) but only 4c/5 is `isBiRadsCritical`, so this stays on the urgent pathway and never reaches critical-alert; report complete — expect abnormal classification + moderate severity (reportingCategory BI-RADS 4a) + 100% completeness + urgent follow-up + specialist-referral.
- critical-birads-5-uncommunicated-incomplete — A large, irregular, highly spiculated 34mm right breast mass with pleomorphic calcifications, skin thickening, and axillary lymphadenopathy, BI-RADS 5 (highly suggestive of malignancy): `isBiRadsCritical` auto-escalates classification to critical and follow-up to critical-alert regardless of the other axes; the result has not yet been recorded as communicated, no originating request is linked, and the clinical history, comparison, and impression sections are not yet completed while urgent biopsy and MDT referral are arranged — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
MCAS symptom evaluation across dermatological, gastrointestinal, cardiovascular, respiratory, and neurological systems with trigger identification.
- minimal — Occasional flushing, mild pruritus, bloating and fatigue across three systems: symptom score 8 — Minimal.
- moderate — Multi-system involvement with GI, dermatological, cardiovascular and neurological symptoms: symptom score 24 — Moderate.
- severe — Severe symptoms across all five organ systems with anaphylactoid features: symptom score capped at 40 — Severe.
A statutory documentation instrument used in the United Kingdom to record the cause of death of a person for the purpose of death registration. The certifying doctor (attending practitioner) records the deceased's details, the date and place of death, and the cause-of-death structure — Part I (the disease or condition directly leading to death, together with the antecedent and underlying conditions that gave rise to it) and Part II (other significant conditions contributing to the death but not related to the disease or condition causing it). Each condition carries an approximate interval between onset and death.
- Valid certificate, scrutinised by medical examiner — Expected hospital death of an 84-year-old woman from bronchopneumonia due to a left MCA infarct due to atrial fibrillation, Part II type 2 diabetes; all three Part I intervals recorded; consultant certifier fully identified who attended the deceased; not referred to the coroner (reason 'none'); medical examiner status 'scrutinised'. Expect validityClass 'valid', underlyingCause 'Atrial fibrillation' (the I(c) line), coronerReferralIndicated false, and an empty flaggedIssues array (the ME-scrutiny flag is suppressed by 'scrutinised'). The new statutory additions (qualifications, in-person attendance, ethnicity, pregnancy, implanted-device status) are all recorded, so none of the new flags fire.
- Industrial disease referral asserted by reason alone — Death of a 71-year-old retired shipyard lagger from malignant pleural mesothelioma. The certifier answered referredToCoroner 'no' but selected coronerReason 'industrial-disease', which is in CORONER_REASONS, so referral is indicated by the reason alone; medical examiner status 'pending'; the I(b) interval was left blank. Expect validityClass 'refer-to-coroner' (takes precedence over completeness), underlyingCause 'Occupational asbestos exposure' (I(b) is the lowest completed line since I(c) is empty), coronerReferralIndicated true, and three flags in order: F-CORONER-REFERRAL-REQUIRED-001 (high, description embeds '(Industrial disease or occupational exposure)'), F-MEDICAL-EXAMINER-SCRUTINY-001 (medium — fires because referredToCoroner !== 'yes', despite the referral being indicated), F-MISSING-INTERVAL-001 (low, 'I(b)').
- Night-shift draft: mode of death only, Part I(a) missing — Foundation doctor's overnight draft for a 67-year-old man: Part I(a) left blank, Part I(b) reads 'Cardiac arrest' (a listed mode of death) with no interval, I(c) and Part II empty; coroner and medical-examiner questions unanswered; certifier name given but grade, GMC reference and attendance blank. Not referred (referredToCoroner '' and coronerReason '' both fail the referral predicate). Expect validityClass 'incomplete' (missingPartIa true AND unacceptableSoleCause true — one line, Part II empty, normalises to 'cardiac arrest'), underlyingCause 'Cardiac arrest', coronerReferralIndicated false, and six flags in order: F-UNACCEPTABLE-SOLE-CAUSE-001 (high), F-MISSING-PART-I-001 (high), F-ILLOGICAL-SEQUENCE-001 (medium: I(b) completed while I(a) empty), F-MEDICAL-EXAMINER-SCRUTINY-001 (medium), F-MISSING-INTERVAL-001 (low, 'I(b)'), F-INCOMPLETE-CERTIFIER-001 (low: 'grade, GMC reference, attendance on the deceased not recorded').
- Prohibited abbreviations and unspecified diabetes — Part I(a) 'MI', I(b) 'IHD' and Part II 'COPD; diabetes': abbreviations MI, IHD, COPD are prohibited and diabetes has no type. Expect a valid class (no referral, I(a) present) but the abbreviation and specificity flags.
- Telephone-only attendance cannot certify — Certifier only spoke to the patient by telephone: attendanceMode 'telephone' means no attending practitioner, so the certificate is classified refer-to-coroner with the not-attending flag.
- Fracture of the neck of femur not referred — Pulmonary embolism due to deep vein thrombosis following a fractured neck of femur after a fall, certified without a coroner referral. Expect class refer-to-coroner, the coroner-referral flag and the trauma-in-cause flag (high); the injury must stay on the certificate and the death be referred.
- Four-line chain with device and pregnancy — Four-step chain I(a)-I(d) down to adenocarcinoma of the sigmoid colon, a pacemaker recorded, and pregnancy within 12 months. Underlying cause is I(d). Expect the implanted-device-present flag only: the malignancy is specific (adenocarcinoma of the sigmoid colon) and diabetes is Type 2.
- Statutory additions all missing — Well-formed Part I but no qualifications, ethnicity, pregnancy status or implanted-device status, and diabetes without a type in Part II. Expect the statutory-addition flags.
A single-page, step-by-step questionnaire that assesses a medical device against the EU MDR 2017/745 Annex VIII classification rules (mirrored by the UK Medical Devices Regulations 2002). The assessor describes the device; the engine computes the risk class (I, IIa, IIb, III), the conformity-assessment route, and flags regulatory-readiness gaps.
- bandage-class-i — Adhesive bandage: Rule 1, Class I, self-declaration.
- sterile-dressing-is — Sterile wound dressing: Class Is, partial notified-body route.
- reusable-scalpel-ir — Reusable surgical scalpel: Class Ir.
- urinary-catheter-iia — Short-term urinary catheter: Rule 5, Class IIa.
- hip-implant-iib — Hip joint implant: Rule 8, Class IIb.
- pacemaker-iii — Cardiac pacemaker: implant in heart, Class III.
- diagnostic-app-iia — Decision-support app, other harm: Rule 11, Class IIa.
- insulin-loop-iii — Closed-loop insulin pump: Rule 22, Class III.
- ivd-out-of-scope — In vitro diagnostic: blocked, IVDR applies.
- gaps-class-iia — Class IIa device with no risk file, no QMS: readiness gaps.
- override-down — Assessor overrides computed IIb to IIa with reason: class-override flag.
- software-purpose-blank-failsafe — Software with no purpose recorded: fail-safe IIa.
Medical error reporting form for incident documentation, root cause analysis, and patient safety improvement. Uses WHO severity scale and NCC MERP harm categories.
- near-miss-wrong-patient — Wrong-patient medication near miss caught at the bedside check: WHO near-miss / MERP B, no harm — expect low overall risk.
- moderate-anticoagulant-overdose — Three days of treatment-dose enoxaparin prescribed instead of prophylaxis: WHO moderate / MERP E, extended stay 2 days, duty of candour completed — expect moderate overall risk with severity, MERP, and outcome rules fired.
- critical-abo-transfusion — ABO-incompatible transfusion started in an emergency with the bedside check bypassed: WHO critical / MERP H, severe harm, ICU with renal support, duty of candour NOT yet completed — expect critical overall risk.
A single-page, step-by-step form for a clinician to assess, sign and approve a fit note (Statement of Fitness for Work) for an employee taking sick leave. It follows the UK fit note model: the clinician advises that the employee is either not fit for work or may be fit for work with adjustments, for a stated period.
- not-fit-two-weeks — Complete not-fit note for 14 days: approved.
- may-be-fit-phased-return — May be fit with phased return and altered hours: approved, 2 adjustments.
- may-be-fit-no-adjustment — May be fit but no adjustment chosen (R-05): needs-completion.
- unsigned-blocked — Declaration not ticked (R-06): blocked.
- end-before-start — Period ends before it starts (R-04): blocked.
- long-period-no-review — 120-day period without reassessment (R-08): needs-completion.
- long-period-with-review — 120-day period with reassessment: approved.
- backdated-15-days — Period starts 15 days before assessment (R-09): needs-completion.
- backdated-14-days-ok — Period starts exactly 14 days before assessment: approved.
- unregistered-clinician — No registration number (R-07): blocked.
- duration-only — Duration of 28 days instead of an end date: approved.
- blank-state — Nothing entered: blocked with every blocking rule.
- duration-zero-days — Duration of 0 days is not a valid period end (R-04): blocked.
A Medical Information Form (MEDIF) is the standardized airline document used to determine whether a passenger with specific health needs is fit to fly and whether in-flight medical support (supplemental oxygen, stretcher, incubator, medical escort, battery-powered medical device) must be arranged in advance. It is completed in two parts: Part 1 by the passenger (or booking agent) and Part 2 by the attending physician, then forwarded to the airline's medical desk for clearance.
- Fit to fly - no findings — Healthy adult with no reason flags, no clinical findings, and a routine long-haul economy sector. Expect band 'fit', firedRules [], safetyFlags [], validUntil 2026-09-13 (frozen-today + 10 days).
- POC with insufficient battery, mild-controlled asthma, moderate anaemia — Non-critical edge case that exercises the 'escalated by insufficient equipment' interaction: requiresPoc 'yes' with sectorDurationMinutes 480 (8h) needs pocBatteryHours >= (480/60)x1.5 = 12h, but only 2h is recorded, so BOTH R-POC (fit-with-conditions) and R-POC-BATTERY-INSUFFICIENT (requires-review) fire from the same block. asthmaSeverity 'mild-controlled' raises only a low flag (F-PULM-ASTHMA-MILD) with no rule and no band effect. haemoglobinGPerL 78 (below 85 but not below 75) fires R-ANAEMIA-MOD (requires-review). Expect band 'requires-review' (the worst of the three bands touched), firedRules sorted worst-band-first: R-ANAEMIA-MOD, R-POC-BATTERY-INSUFFICIENT (both requires-review, in original evaluation order), then R-POC (fit-with-conditions); safetyFlags sorted by priority: F-POC-BATTERY (high), F-ANAEMIA-MOD (medium), F-PULM-ASTHMA-MILD (low), F-POC (low, in that relative order since the sort is stable).
- Critical - seven independent unfit-to-fly findings plus two lower-priority flags — Critical/highest-severity persona: seven independently unfit-to-fly-triggering findings, each fired from a different rule and each raising its own high-priority flag - recent MI 5 days ago (R-CARDIAC-MI-7D / F-CARDIAC-MI), resting SpO2 80% (R-PULM-SPO2-LT-85 / F-PULM-HYPOXAEMIA), trapped intra-ocular gas (R-GAS-CAVITY / F-GAS-CAVITY), scuba diving within 24h (R-SCUBA-24H / F-SCUBA), a 38-week singleton pregnancy - past the 36-week cutoff (R-PREG-SINGLETON-GT-36 / F-PREG-LATE), active infectious communicable disease (R-COMM-INFECTIOUS / F-COMM-INFECTIOUS), and severe anaemia at Hb 60 g/L (R-ANAEMIA-SEVERE / F-ANAEMIA). A recent psychiatric event (reasonPsychiatric 'yes') additionally fires R-PSYCH (requires-review, a strictly lower band that cannot move the already-maximal composite) with a medium F-PSYCH flag, and a medical escort adds a low F-ESCORT flag with no rule. Expect band 'unfit-to-fly'; firedRules sorted worst-first with the seven unfit-to-fly rules preceding R-PSYCH (in their original evaluation order: cardiac, pulmonary, gas/surgery, then pregnancy, communicable, anaemia, then the trailing psychiatric check); safetyFlags sorted with the seven high-priority flags first (original order), then F-PSYCH (medium), then F-ESCORT (low).
Clinical Welsh-language (Cymraeg) speaking assessment for healthcare professionals working with Welsh-speaking patients, aligned to the NHS Wales "More Than Just Words" framework and mapped to CEFR levels A1 through C2 with criteria covering fluency, grammar, pronunciation, and clinical appropriateness.
- grade-b-clinically-safe — Highly proficient Welsh-medium communicator, fluent and clinically appropriate: scaled score 423 — Grade B, at or above the clinical threshold.
- grade-c-below-threshold — Competent but below the typical clinical threshold, adequate grammar with some communication gaps: scaled score 218 — Grade C.
- grade-d-significant-concerns — Modest Welsh-medium ability with limited fluency and frequent grammatical errors impeding clinical communication: scaled score 115 — Grade D.
Clinical English-language speaking assessment for internationally educated healthcare professionals, modelled on the Occupational English Test (OET) Medicine speaking sub-test, using role-played patient scenarios and criterion-based scoring on linguistic and clinical communication indicators.
- grade-a-excellent — Fluent, accurate, patient-centred performance across both role-plays: raw 39/39, scaled 500 — grade A.
- grade-c-borderline — Generally intelligible but with lapses in fluency and clinical structure: raw 20/39, scaled 256 — grade C (below the typical B pass mark).
- grade-e-below-standard — Frequently unintelligible with breakdown of communication: raw 4/39, scaled 51 — grade E, well below the safe-practice threshold.
A surgical operation note ("op note") is the legal contemporaneous record written by the operating team immediately after a procedure. It documents who did what, what was found, what was used, what was left behind, what went wrong, and what the post-operative plan is. It supports continuity of care, anaesthetic recovery, ward handover, theatre auditing, and medico-legal defence.
- routine-lap-chole — Uneventful elective laparoscopic cholecystectomy: EBL 30 ml, all counts agreed, Clavien-Dindo 0, ward recovery as planned — expect routine composite risk and no flags.
- complicated-conversion-hdu — Emergency cholecystectomy converted to open with 900 ml loss, 2 units transfused, Clavien-Dindo II, unplanned step-up ward->HDU — expect an elevated composite with the blood-loss, complication, and step-up rules fired.
- critical-retained-swab-arrest — Night-time Hartmann's for faecal peritonitis: intra-operative arrest, massive-haemorrhage protocol, EBL 2,500 ml, final swab count one short with a retained item suspected and a never event declared, unplanned ICU admission — expect critical composite with never-event and count-discrepancy rules and flags.
Authorization form for releasing medical records, validated for completeness of patient consent and recipient information.
- complete-and-valid — Every required field present with well-formed emails and a valid date range — expect Complete / Valid, zero fired rules.
- nearly-complete-minor-issues — Three required fields never completed (patient signature, its date, and the data-protection acknowledgement) — expect Nearly Complete on completeness (81%). Missing required fields populate the SAME firedRules list format errors do, so validationStatus also degrades to Minor Issues here: the two labels are computed from overlapping data, not fully independent axes (corrected after the first --update showed this).
- complete-but-minor-issues — Every required field present, but both email addresses are malformed and the authorisation end date precedes its start date — expect Complete completeness with Minor Issues validation (3 fired format/logic rules), demonstrating the axes can diverge the other way.
A practitioner-completed administrative card that places a patient on a medical waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 medical referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 medical referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 medical referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A structured medicines-safety document that reconciles a patient's medicines at a transition of care — admission, internal transfer, or discharge. It captures the best-possible medication history (BPMH) compiled from two or more independent information sources, records the current inpatient medication list, and reconciles the two — identifying every discrepancy (omission, duplication, dose / frequency / route change, drug interaction, high-risk medicine) and documenting the intended action (continue / hold / stop / change / start) with a clinical rationale for each line item.
- Complete admission reconciliation by pharmacist — Adult admitted to the acute medical unit; pharmacist builds the BPMH from three sources (patient interview and GP record verified, community pharmacy not verified), records no known drug allergies, three home medicines (amlodipine, metformin, levothyroxine) and one new inpatient medicine (enoxaparin, anticoagulant class) with a single fully documented intentional commission discrepancy (start, VTE prophylaxis rationale). Expect status 'complete', sourceCount 3, verifiedSourceCount 2, allergyCount 0, lineItemCount 4 (3 BPMH, 1 inpatient), discrepancyCount 1, intentionalCount 1, unintentionalCount 0, highRiskUnintentionalCount 0, the four audit rules, and no flags (enoxaparin appears once so no duplication; no interaction pairs; allergy status documented).
- Transfer reconciliation with a half-documented hold — Ward transfer for an adult with a documented severe penicillin allergy; two verified sources; atorvastatin recorded once on the BPMH list and once on the inpatient list (same drug name), ramipril on the BPMH list and held on the inpatient list. The single dose discrepancy for ramipril is marked intentional 'yes' with intendedAction 'hold' but an empty rationale. Expect status 'discrepancies-outstanding' (reached only via anyMissingActionOrRationale — unintentionalCount is 0 because intentional === 'yes'), sourceCount 2, verifiedSourceCount 2, allergyCount 1, lineItemCount 4 (2 BPMH, 2 inpatient), discrepancyCount 1 but intentionalCount 0 AND unintentionalCount 0 (the neither-bucket quirk), highRiskUnintentionalCount 0, and exactly one flag: F-THERAPEUTIC-DUPLICATION-001 (medium, '"Atorvastatin" appears more than once') — fired by the BPMH/inpatient repeat, not by a duplication-type discrepancy. No F-UNINTENTIONAL-OUTSTANDING-001, no allergy conflict (penicillin matches no drug name), no interaction pair.
- ED admission: single source, warfarin dose error, aspirin intolerance — Emergency-department admission reconciled by a nurse from the patient interview alone (unverified); allergy status left unanswered although an aspirin intolerance row was entered; BPMH lists warfarin 3 mg (anticoagulant, intermittent adherence), aspirin 75 mg, a recent clarithromycin course and an unreviewed placeholder row with no drug name; the inpatient chart has warfarin 5 mg. Two discrepancies: a warfarin dose discrepancy with no action, no rationale and intentional '' (unintentional, high-risk because 'warfarin' appears in the refs), and an aspirin omission marked intentional 'no' with action 'stop' and a rationale (still unintentional). Expect status 'incomplete' (first match: sourceCount 1 < 2), sourceCount 1, verifiedSourceCount 0, allergyCount 1, lineItemCount 5 (4 BPMH including the placeholder, 1 inpatient), discrepancyCount 2, intentionalCount 0, unintentionalCount 2, highRiskUnintentionalCount 1, and seven flags in order: F-HIGH-RISK-UNINTENTIONAL-001 (high, 1), F-INSUFFICIENT-SOURCES-001 (high, 'from 1 source(s)'), F-ALLERGY-CONFLICT-001 (high, 'Aspirin vs allergy "Aspirin"'), F-INTERACTION-001 (high: 'warfarin + aspirin (increased bleeding risk); warfarin + clarithromycin (raised INR)'), F-THERAPEUTIC-DUPLICATION-001 (medium, '"Warfarin" appears more than once'), F-ALLERGY-STATUS-001 (low), F-INCOMPLETE-001 (low). F-UNINTENTIONAL-OUTSTANDING-001 is suppressed by the high-risk flag.
A general-purpose meeting record form that captures the invitation, agenda, participants, resources, and recurrence schedule before the meeting, and the summary, action items, outputs, and outcomes after the meeting. Each meeting is captured through a single-page, step-by-step wizard and produces a signed report suitable for sharing with attendees, attaching to a project tracker, or archiving as the team's record of the event.
- Well-formed sprint-planning meeting, still in draft — A draft (not yet held) sprint-planning meeting with an organiser, a two-item agenda, and three participants who have all accepted. status is draft, so none of the completed-meeting-only checks (no-outcomes, no-summary) apply, and there is nothing else to flag. Expect completionStatus 'planned', overallHealth 'green', no fired rules, no flags, durationMinutes 60 (from the scheduled 09:00-10:00 window, since no actual times are recorded), participantCount 3, acceptedCount 3.
- Completed meeting with no recorded outcomes and low acceptance — Non-critical edge case: the same meeting marked completed, with a weekly recurrence that has neither a series count nor an until date (recurring-without-until), zero recorded outcomes despite being completed (no-outcomes), and a fourth participant added so only 1 of 4 accepted (25%, below the 50% acceptance floor). The summary itself is present and under the 250-character limit, so summary-over-limit and no-summary do not fire. Expect completionStatus 'incomplete' (completed with zero outcomes, even though a summary is present - both conditions are required for 'complete'), overallHealth 'amber' (all three flags are medium/low, none high), three fired rules and three flags in the same order: R-NO-OUTCOMES / F-NO-OUTCOMES, R-RECURRING-WITHOUT-UNTIL / F-RECURRING-WITHOUT-UNTIL, R-LOW-ACCEPTANCE-RATE / F-LOW-ACCEPTANCE-RATE.
- Critical - a mishandled incident-review meeting with seven independent failures — Critical/highest-severity persona: a completed incident-review meeting with no organiser name, a 260-character summary (over the 250-character limit), zero participants, zero agenda items, zero outcomes, a scheduled end time (13:00) before its scheduled start (14:00) on the same day, and one open action item overdue by more than a week against the frozen 'today' of 2026-09-03. Verified quirk: durationMinutes is null even though BOTH actualStartAt and actualEndAt are recorded (14:05 and 13:00), because the actual end precedes the actual start on the same calendar day - the engine treats a negative computed duration as unknown rather than reporting it. no-summary does not fire (a summary IS present, just over-limit) and low-acceptance-rate cannot fire (participantCount is 0). Expect completionStatus 'incomplete', overallHealth 'red' (multiple high-priority flags), seven fired rules and seven flags in the same order: R-SUMMARY-OVER-LIMIT/F-SUMMARY-OVER-LIMIT (high), R-NO-ORGANIZER/F-NO-ORGANIZER (medium), R-NO-PARTICIPANTS/F-NO-PARTICIPANTS (high), R-NO-AGENDA/F-NO-AGENDA (medium), R-NO-OUTCOMES/F-NO-OUTCOMES (medium), R-START-AFTER-END/F-START-AFTER-END (high), R-ACTION-ITEM-OVERDUE/F-ACTION-ITEM-OVERDUE (high).
A formal assessment under the UK Mental Health Act 1983 (as amended by the Mental Health Act 2007) to determine whether a person with a mental disorder should be detained in hospital for assessment or treatment, admitted informally, or supported in the community. It records the coordinated assessment by an Approved Mental Health Professional (AMHP) together with the required medical recommendations from two registered medical practitioners (at least one of whom is Section 12 approved), documents the statutory criteria that must be satisfied, captures the nearest relative / consultee position, and records the recommended section and the outcome.
- community-no-detention — Assessed, criteria for detention not met, managed in the community: no detaining section, outcome resolved — completeness valid, urgency routine.
- section-2-admission — Full Section 2 recommendation with AMHP application and two medical recommendations, all statutory criteria met with evidence: completeness valid, urgency urgent.
- section-136-emergency — Person removed to a place of safety with imminent risk to others; AMHP and doctor present and criteria met with evidence: completeness valid, urgency emergency.
Combined depression and anxiety screening using PHQ-9 (Patient Health Questionnaire-9) and GAD-7 (Generalized Anxiety Disorder-7) with risk assessment.
- minimal-depression — Occasional low interest and disturbed sleep only: PHQ-9 total 2 — minimal depression.
- moderate-depression — Most-days low mood, anhedonia, poor sleep and low energy: PHQ-9 total 11 — moderate depression.
- severe-depression — Nearly-every-day symptoms across most items with passive suicidal thoughts: PHQ-9 total 23 — severe depression.
A structured clinician record of a psychiatric assessment at a single point in time. It documents observed and elicited findings across the standard mental state domains — appearance and behaviour, speech, emotion (mood and affect), perception, thought (form and content), insight and judgement, and cognition — and raises safety-critical flags (suicidal or homicidal ideation, command hallucinations, thoughts of self-harm or harm to others, psychosis with risk, lack of insight with risk).
- complete-no-risk — Routine outpatient review, all seven ASEPTIC domains documented with benign findings and no safety flags — status complete, risk level none.
- complete-moderate-risk — Primary-care review documenting passive suicidal ideation without a plan across an otherwise complete examination — status complete, risk level moderate.
- complete-high-risk — Crisis assessment documenting active suicidal ideation with a plan across a complete examination — status complete, risk level high.
A UK NHS–aligned microbiology specimen culture / MC&S request (referral) that a clinician completes to order microscopy, culture, and antibiotic-sensitivity testing (and related molecular / screening tests) on a clinical specimen. It records the specimen and site, the requested tests, the clinical indication and details, pre-analytical specimen handling, patient-safety factors, and the requested urgency — then computes a four-axis grading (appropriateness, pre-analytical specimen safety, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the laboratory's triage and acceptance decision.
- routine-urinary-tract-infection-urine-culture-complete — Well-formed routine referral: suspected UTI, a midstream urine specimen requested for culture & sensitivity (first-line for urinary-tract-infection), correctly collected and not transport-sensitive, no antibiotics on board, every completeness field present — expect usually-appropriate + ok pre-analytical + routine + accept.
- stat-suspected-sepsis-blood-culture-no-collection-time-caution — Suspected sepsis on the ward (NEWS2 7): blood culture is the recommended (ideal) specimen for the suspected-sepsis indication, and the indication itself auto-escalates triage to stat (NICE NG51) regardless of the routine urgency requested; but no collection date/time was recorded for this transport-sensitive specimen, and this engine's stricter recommendation logic means that pre-analytical caution alone — not just reject-risk — forces query-referrer, even on a stat-tier request: triage acuity and vetting recommendation are orthogonal here — expect usually-appropriate + caution pre-analytical + stat + query-referrer.
- reject-pyrexia-unknown-origin-blood-culture-on-antibiotics-incomplete — Pyrexia of unknown origin with blood cultures drawn after empirical antibiotics were already started: blood culture is the recommended (ideal) specimen for the pyrexia-unknown-origin indication, but taking it while the patient is on antibiotics is a critical pre-analytical problem (compromised yield) that forces reject-risk and, uniquely among the vetting outcomes exercised so far, a `reject` recommendation — this overrides even the otherwise-appropriate specimen choice, ahead of any appropriateness or completeness check; several administrative fields are not yet captured — expect usually-appropriate + reject-risk pre-analytical + routine + reject, completeness below 100.
A UK NHS–aligned microbiology culture / MC&S result (report) that a reporting clinician completes after a clinical specimen has been processed. It is the result/report counterpart to Microbiology Culture Test Request (a referral): where the request captures why a culture should be done and triages it, this form records what the culture found and a structured interpretation. It records the specimen and its condition, the clinical history, the Gram-stain and culture results, the organism(s) isolated and colony count, antibiotic sensitivities and key resistance markers (MRSA / ESBL / CPE), specialized tests (C. difficile toxin, acid-fast bacilli, PCR), the narrative findings, the impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured microbiology report.
- normal-urine-no-growth-complete — A routine mid-stream urine culture for suspected UTI: no significant growth on a satisfactory specimen, `antibioticSensitivities` deliberately left blank (there is no isolated organism to test for sensitivity against). FIXED 2026-09-06: R-COMP-SENSITIVITIES-01 used to require non-empty sensitivities text even for a no-growth result, silently capping this otherwise-complete report at 80% — this persona used to work around that by filling the field with a placeholder 'Not applicable' string; it now demonstrates the actual fixed behaviour with the field genuinely blank — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-mrsa-wound-swab-major-not-critical-complete — A wound swab from a post-surgical wound infection grows Meticillin-resistant Staphylococcus aureus (MRSA) in significant numbers: `hasResistanceMarker` combined with a significant culture is its own dedicated major-severity rule (R-SEV-MAJOR-02), but `hasCriticalOrganism` requires a positive blood culture, a CSF isolate, CPE, or the explicit criticalOrganism flag — none of which apply to a wound swab — so this never reaches the classification's critical path and escalates only to 'urgent' follow-up; report complete — expect abnormal classification + major severity (reportingCategory resistant-organism) + 100% completeness + urgent follow-up + specialist-referral.
- critical-e-coli-bacteraemia-uncommunicated-incomplete — A blood culture grows Escherichia coli: `hasCriticalOrganism` treats any positive blood culture as a critical result regardless of the organism's own resistance profile, auto-escalating classification to critical and follow-up to critical-alert; the result has not yet been recorded as communicated, no originating request is linked, and the clinical history and impression sections are not yet completed while empirical sepsis treatment is already underway — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
Balance and gait evaluation using the Tinetti Assessment Tool (Performance-Oriented Mobility Assessment) with fall risk stratification.
- Low fall risk - full marks after hip replacement rehab — 72-year-old woman six months post left total hip replacement, discharged from physiotherapy: every Tinetti item at its catalogue maximum (balance 16; gait only reaches 10 in this port because step length and step height are single 0-1 items, so the engine's ceiling is 26 not 28), TUG 8.5 s, no falls in the last year, two medications, no fall-risk medications, no fear of falling, ROM normal throughout, no assistive device. Expect tinettiTotal 26, balanceScore 16, gaitScore 10, tinettiCategoryLabel 'Low fall risk', all 17 items in firedRules (BAL-01..BAL-09 then GAIT-01..GAIT-08), and an empty additionalFlags array.
- Moderate fall risk at the 19-point boundary with explicit-negative injury text — 79-year-old man with Parkinson's disease: balance items sum to exactly 10 (nudged balance left unanswered, i.e. null and skipped), gait items sum to 9 (step symmetry scored 0), total 19 — the lowest 'Moderate fall risk' score. TUG exactly 14.0 s (threshold is > 14, so no TUG flag); one fall last year (< 2, no recurrent flag); injuriesFromFalls recorded as the explicit negative 'None'; four medications, no fall-risk medications; fear of falling moderate; hip extension moderately limited; uses a single-point stick with adequate fit. Expect tinettiTotal 19, balanceScore 10, gaitScore 9, 'Moderate fall risk', 15 firedRules (BAL-06 absent because null, GAIT-04 absent because 0), and two medium flags in order: FLAG-BALANCE-001 ('Balance subscore 10/16') and FLAG-INJURY-001 ('Previous injuries from falls: None' — the explicit-negative quirk). No FALLRISK, TUG, GAIT (9 > 8), POLYPHARM, SEDATING, FEAR, ROM, DEVICE or DEVICEFIT flags.
- High fall risk with recurrent injurious falls and no device — 86-year-old woman with vascular dementia and osteoporosis: balance 4 (sitting, rises, attempting, standing scored 1; the rest 0), gait 3 (step length, path, trunk scored 1; the rest 0), total 7; TUG 32 s; four falls in the last year with a Colles fracture and scalp laceration; seven medications including zopiclone and codeine listed as fall-risk medications; severe fear of falling; hip flexion and ankle extension severely limited; no assistive device in use. Expect tinettiTotal 7, balanceScore 4, gaitScore 3, 'High fall risk', 7 firedRules (BAL-01, BAL-02, BAL-03, BAL-05, GAIT-02, GAIT-06, GAIT-07), and eleven flags: high tier in order FLAG-FALLRISK-001 ('7/28'), FLAG-RECURRENT-001 ('4 falls'), FLAG-TUG-001 ('32s'), FLAG-DEVICE-001; medium tier in order FLAG-BALANCE-001 ('4/16'), FLAG-GAIT-001 ('3/12'), FLAG-POLYPHARM-001 ('7 medications'), FLAG-SEDATING-001 (lists both medicines), FLAG-FEAR-001, FLAG-INJURY-001, FLAG-ROM-001 ('Hip flexion, Ankle extension'). FLAG-DEVICEFIT-001 cannot fire (no device to be ill-fitting).
A laboratory-based severity calculator for chronic liver disease. It takes a small number of objective blood results — total bilirubin, INR, serum creatinine, and (for MELD-Na) serum sodium — applies a validated weighted logarithmic formula, and produces an integer score of 6–40 that maps to an estimated 3-month mortality. A higher score indicates more severe liver dysfunction and greater short-term mortality risk. The score is used to stratify disease severity and to prioritize candidates for liver transplantation.
- base-meld-moderate — Compensated cirrhosis on hepatology clinic review, base MELD (no sodium/albumin correction): moderate severity band.
- meld-na-sodium-correction — Same laboratory picture as the base-MELD persona, but scored as MELD-Na with hyponatraemia (sodium 128 mEq/L): the sodium correction raises the score into the high band, since base MELD (15) exceeds the 11 threshold the correction requires.
- dialysis-rule-very-high — Established renal failure, twice-weekly haemodialysis: the dialysis rule forces creatinine to 4.0 mg/dL regardless of the measured value, pushing the score into the very-high band and firing both the transplant-referral and on-dialysis flags.
- meld-3-with-albumin — MELD 3.0 (Kim et al. 2021), which incorporates sex and serum albumin: female patient with hypoalbuminaemia — high severity band.
- extreme-severity — Fulminant hepatic failure on the transplant waiting list: markedly deranged bilirubin, INR, and creatinine — the calculated score exceeds the scale and is clamped to the extreme-band maximum of 40.
- minimum-score-floor — Well-compensated cirrhosis with entirely normal labs: bilirubin, INR, and creatinine all at or below the floor of 1.0 — the score computes to the scale's minimum of 6.
- unit-conversion-si-units — Laboratory reports bilirubin and creatinine in SI units (µmol/L) rather than mg/dL: exercises the unit-conversion step (bilirubin ÷ 17.1, creatinine ÷ 88.4) before the formula runs.
- incomplete-meld-na-missing-sodium — MELD-Na selected but sodium has not been entered: the variant's required input is missing, so no partial score is computed — meldScore stays null rather than silently falling back to the base MELD.
A bedside aggregate track-and-trigger score for adult inpatients. It records five routine physiological observations — systolic blood pressure, heart rate, respiratory rate, temperature, and level of consciousness (AVPU) — allocates each a sub-score of 0–3, sums an aggregate of 0–14, and triggers escalation when the aggregate is high or any single parameter scores the maximum. A high MEWS is not a diagnosis; it is a prompt to increase monitoring frequency, obtain urgent medical review, and consider critical-care outreach.
- low-routine — All parameters within normal range: MEWS aggregate 0 — low risk, routine ward observations.
- medium-escalate — Mild hypotension, borderline tachycardia and normal respiratory rate, no single parameter at maximum: MEWS aggregate 3 — medium risk, increased observations.
- high-critical — Profound hypotension, tachycardia, severe tachypnoea, hypothermia and reduced consciousness: MEWS aggregate 13 with single-parameter triggers — high risk, urgent review.
A UK NHS–aligned MRI scan request (referral) that a clinician completes to request a magnetic-resonance-imaging examination. It records the requested body region and clinical indication, the specific clinical question, contrast and gadolinium / renal (NSF) risk, a structured MRI safety screen for ferromagnetic and electronic implants, and the requested urgency — then computes a four-axis grading (appropriateness, MRI safety, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the imaging department's safety review, protocolling, and booking decision.
- routine-suspected-ms-brain-complete — Well-formed routine neurology referral: suspected MS, brain MRI with gadolinium and normal renal function, implant screen cleared, every completeness field present — expect usually-appropriate + cleared + no renal flag + routine + accept.
- urgent-neurological-deficit-metal-implant-conditional — New focal neurological deficit — cervical spine MRI requested (first-line), but the patient has a metal spinal fixation implant, forcing a conditional MRI-safety band pending confirmation of MR-conditional labelling; acuity escalates triage to urgent — expect usually-appropriate + conditional + urgent + accept (conditional alone does not block booking, unlike needs-mri-physics-review).
- emergency-suspected-stroke-pacemaker-contraindicated-incomplete — Suspected posterior-circulation stroke phoned through from the emergency department: brain MRI is first-line, but the patient has a non-MR-conditional cardiac pacemaker, forcing the safety band to contraindicated, and several administrative fields are not yet captured — expect usually-appropriate + contraindicated + emergency + reject, completeness below 100.
A UK NHS–aligned MRI (magnetic resonance imaging) scan result (report) that a reporting clinician completes after an MRI examination has been performed. It is the result/report counterpart to MRI Scan Test Request (a referral): where the request captures why a scan should be done and whether it is safe to scan, this form records what the scan found and a structured interpretation. It records the performed examination and pulse sequences, the clinical history, the narrative and structured findings, the largest-lesion measurement, the impression and a structured-reporting category — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured radiology report.
- normal-brain-mri-complete — A normal brain MRI for chronic headache with no red-flag features: normal parenchyma, ventricles, and posterior fossa, no structural abnormality, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-large-meningioma-major-not-critical-complete — A contrast-enhanced brain MRI for new headache and mild weakness shows a large (34mm) right frontal convexity meningioma with a dural tail and mild vasogenic oedema, but no haemorrhage, infarct, or cord involvement: the 30mm large-lesion threshold (R-SEV-MAJOR-02) is a dedicated severity trigger entirely separate from `hasCriticalFinding` (cord compression, haemorrhage, infarct), so this grades major severity but escalates only to 'urgent' follow-up, never critical-alert; report complete — expect abnormal classification + major severity (reportingCategory large-lesion) + 100% completeness + urgent follow-up + specialist-referral.
- critical-cervical-cord-compression-uncommunicated-incomplete — A cervical spine MRI shows a large central C5/C6 disc herniation causing severe canal stenosis with cord compression and abnormal T2 cord signal, in keeping with early myelopathy: cord compression is a critical structured finding that auto-escalates classification to critical and follow-up to critical-alert regardless of the other axes; the result has not yet been recorded as communicated, no originating request is linked, and the clinical history, comparison, and impression sections are not yet completed while urgent spinal surgical assessment is arranged — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
A UK NHS–aligned implementation of the National Early Warning Score 2 (NEWS2), the standardized track-and-trigger early warning system published by the Royal College of Physicians (RCP) in December 2017. The form records six routinely measured physiological parameters at the bedside, scores each against the published NEWS2 allocation, aggregates them into a total score of 0 to 20+, and returns the resulting clinical-risk band together with the RCP's recommended monitoring frequency and clinical-response (escalation) actions.
- low-routine — Stable patient with all observations in range on air: NEWS2 aggregate 0 — low risk, routine 12-hourly monitoring.
- medium-escalate — Tachypnoea, mild hypoxaemia, borderline hypotension and low-grade fever, no single red score: NEWS2 aggregate 6 — medium risk, urgent review, hourly monitoring.
- high-emergency — Severely tachypnoeic, hypoxaemic on oxygen, hypotensive, tachycardic and newly confused: NEWS2 aggregate 18 with red scores — high risk, emergency critical-care assessment.
A practitioner-completed administrative card that places a patient on a nephrology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 nephrology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 nephrology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 nephrology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A UK NHS–aligned nerve conduction study / EMG (electrodiagnostic) request (referral) that a clinician completes to request a neurophysiology examination. It records the requested study (nerve conduction, needle EMG, or both), the anatomical region and laterality, the clinical indication and specific question, symptoms and their duration, and the safety factors that matter for needle EMG and electrical stimulation — then computes a four-axis grading (appropriateness, procedural risk, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the neurophysiology department's triage and booking decision.
- routine-carpal-tunnel-nerve-conduction-complete — Well-formed routine referral: nocturnal median-nerve symptoms after failed conservative treatment, nerve conduction study requested (first-line for carpal-tunnel), no needle-EMG or cardiac-device risk factors, every completeness field present — expect usually-appropriate + low procedural risk + routine + accept.
- urgent-suspected-mnd-nerve-conduction-and-emg-pacemaker-moderate-risk — Progressive limb weakness and fasciculations over 5 weeks: nerve conduction + EMG is the recommended (ideal) study for the suspected-motor-neurone-disease indication, and the indication itself auto-escalates triage to urgent (early electrodiagnostic confirmation changes management) — independently, the rapid (under-6-weeks) weakness would also escalate to urgent; the patient's pacemaker plus the needle-EMG component both raise procedural risk to moderate, but not to the 'high' band that would force query-referrer — expect usually-appropriate + moderate procedural risk + urgent + accept.
- query-referrer-radiculopathy-emg-anticoagulant-high-risk-incomplete — L5 radiculopathy on warfarin for a mechanical mitral valve: needle EMG is itself the recommended (ideal) study for the radiculopathy indication — there is no appropriateness mismatch here — but needle EMG against anticoagulation independently forces the procedural-risk band to high, and that alone is enough to force query-referrer in this engine's recommendation logic; several administrative fields are not yet captured — expect usually-appropriate + high procedural risk + routine + query-referrer, completeness below 100.
A UK NHS–aligned nerve conduction study / EMG (electrodiagnostic) result (report) that a reporting clinician completes after a neurophysiology examination has been performed. It is the result/report counterpart to Nerve Conduction Study Test Request (a referral): where the request captures why a study should be done, this form records what the study found and a structured interpretation. It records the performed study type and region, the clinical history, the nerve-conduction and needle-EMG findings, the structured electrodiagnostic conclusions, the severity and pathophysiological pattern, the impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured electrodiagnostic report.
- normal-bilateral-upper-limb-ncs-complete — A bilateral upper-limb nerve conduction study for suspected carpal tunnel syndrome: normal median, ulnar, and radial sensory and motor conduction throughout, no focal slowing or conduction block, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-severe-axonal-diabetic-neuropathy-major-not-critical-complete — Nerve conduction study and EMG for long-standing type 2 diabetes with progressive distal numbness and weakness shows a severe, length-dependent, predominantly axonal sensorimotor polyneuropathy: `isSevereAcuteNeuropathy` requires severity 'severe' AND pattern 'demyelinating' specifically, so this severe *axonal* neuropathy grades major severity via the general severe-abnormality rule but never trips `hasCriticalFinding` — it escalates only to 'urgent' follow-up, not 'critical-alert'; report complete — expect abnormal classification + major severity + 100% completeness + urgent follow-up + specialist-referral.
- critical-motor-neurone-disease-uncommunicated-incomplete — Nerve conduction study and EMG show widespread active denervation and chronic reinnervation changes across bulbar, cervical, thoracic, and lumbosacral myotomes, with reduced motor amplitudes and normal sensory studies: motor neurone disease / anterior-horn-cell features auto-escalate classification to critical and follow-up to critical-alert regardless of the other axes; the result has not yet been recorded as communicated, no originating request is linked, and the clinical history, comparison, and impression sections are not yet completed while an urgent MND specialist referral is arranged — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
A UK–aligned workplace reasonable-adjustments request for neurodiversity that a worker (or a manager on their behalf) completes to ask their employer for adjustments at work. It records the worker's neurodivergent profile (conditions, diagnosis status, whether they consider it a disability, and consent to share details), the functional difficulties they experience mapped to the ACAS functional areas, the specific adjustments requested across the ACAS adjustment categories, any supporting evidence, and the current impact and urgency — then computes a four-axis grade (Equality Act 2010 eligibility, impact / wellbeing risk, request completeness, and handling priority) plus a set of compliance-and-wellbeing flags. The output is a structured request that supports the employer's duty to consider and make reasonable adjustments without unreasonable delay.
- likely-covered-ok-impact-routine-complete — A software engineer with diagnosed ADHD and a substantial, long-term impact requests noise-cancelling headphones, a quiet desk, and written meeting summaries; current impact is low and well-managed, occupational health and Access to Work are both already involved, every field complete — expect likely-covered eligibility (via the substantial-long-term-impact rule) + ok impact + 100% completeness + routine priority + progress-to-meeting.
- possibly-covered-caution-soon-complete — A customer service advisor self-identifies as dyslexic (not formally diagnosed, and does not personally consider themselves disabled) but reports written-task difficulty and burnout fatigue with moderate current impact: eligibility falls through to the weakest-tier neurodivergence-present rule (possibly-covered), and the burnout difficulty alone escalates priority to 'soon' — distinct from the 'urgent' tier reserved for absence risk or severe impact, which is not present here; report complete — expect possibly-covered eligibility + caution impact + 100% completeness + soon priority + progress-to-meeting.
- likely-covered-high-risk-urgent-uncommunicated-incomplete — A warehouse operative with diagnosed ADHD and severe current impact reports being at risk of sickness absence, with no adjustments yet specified, no consent to share details, no manager named, and occupational health not yet involved: absence risk and severe impact both independently escalate priority to urgent and impact to high-risk, and the high-risk impact with no occupational-health input drives the recommendation to seek an occupational-health assessment rather than progressing straight to a meeting; multiple wellbeing and process flags fire together — expect likely-covered eligibility (via the diagnosed-with-material-impact rule) + high-risk impact + 50% completeness + urgent priority + seek-occupational-health.
A UK–aligned workplace reasonable-adjustments response for neurodiversity that an employer (line manager, HR adviser, or occupational-health lead) completes in answer to a request for adjustments. It is the response / confirmation counterpart to [`neurodiversity-adjustment-request`](../neurodiversity-adjustment-request): where the request captures what a neurodivergent worker needs and why, this form records what the employer has decided, what has been agreed, and how it will be reviewed. It records the overall decision and its rationale, which adjustments were agreed (and any alternatives offered), the trial period and review date, support / resources / responsibilities, and any escalation — then computes a four-axis grade (outcome classification, legal / discrimination risk, response completeness, and follow-up / review urgency) plus a set of compliance-and-risk flags including an automatic discrimination-risk alert. The output is a structured confirmation-and-review record.
- fully-agreed-ok-risk-review-scheduled-complete — A manager agrees in full to a software engineer's ADHD adjustment request (headphones, a quiet desk, written meeting summaries) following a meeting, with a review scheduled and responsibilities assigned: expect fully-agreed outcome + ok legal risk + 100% completeness + review-scheduled follow-up (targeted at the review date) + implement.
- declined-justified-caution-not-high-risk-complete — A manager declines a customer service advisor's request for a dedicated buddy/mentor role, recording a clear rationale (disproportionate cost — no such post exists in the team structure) and a real decline-reason category: `declineJustified` requires a recorded rationale AND a decline-reason category other than 'not-reasonable', which caps this at R-LEGAL-DECLINE-JUSTIFIED (caution) rather than either of the two high-risk decline rules (no-rationale, no-alternative) — expect declined outcome + caution legal risk + 75% completeness + none follow-up + record-decline. FIXED 2026-09-06 (was a VERIFIED ENGINE GAP, documented rather than silently patched at the time): `deriveRecommendation`'s waterfall used to bottom out at the misleading `implement` for exactly this case — a declined response with nothing agreed and no escalation has nothing to implement. Fixed by adding a dedicated `record-decline` outcome, returned whenever `overallDecision === 'declined'` and none of the earlier, more urgent branches (escalate-to-hr, reconsider-decision, schedule-review, seek-occupational-health) fire first.
- declined-unjustified-escalated-high-risk-incomplete — A warehouse operative's adjustment request was declined verbally in a rushed meeting with no rationale recorded and no alternative offered; the worker has now raised a formal grievance: an unjustified decline (no rationale) and a decline with neither justification nor alternative are two independently-firing high-risk rules, and the active escalation adds a third — escalation also auto-escalates follow-up urgency ahead of the legal-risk check itself, and drives the recommendation straight to escalate-to-hr; the decision rationale, review arrangements, point of contact, and manager fields are not yet completed — expect declined outcome + high-risk legal risk + 38% completeness + escalation-needed follow-up + escalate-to-hr.
A UK–aligned workplace reasonable-adjustments review for neurodiversity that a manager or HR contact completes with the worker to check whether the agreed adjustments are still working. It is the third form in the ACAS cycle — after the [`neurodiversity-adjustment-request`](../neurodiversity-adjustment-request) (what the worker needs) and the [`neurodiversity-adjustment-response`](../neurodiversity-adjustment-response) (what the employer agreed), this form records how the agreed adjustments are working in practice and what should change. It captures the per-category effectiveness of the adjustments in place, the worker's feedback and outcomes, any changes arising, and the next review date — then computes a four-axis grade (overall effectiveness, wellbeing risk, review completeness, and next-step urgency) plus a set of review flags including an automatic adjustments-not-working alert. The output is a structured review record.
- effective-maintain — Every adjustment working well, worker satisfied and wellbeing improved: effectiveness effective, wellbeing ok — maintain current arrangements.
- partially-effective-adjust — Some adjustments only partially working and the worker partially satisfied, with changes needed: effectiveness partially-effective, wellbeing caution — refine adjustments.
- ineffective-escalate — Adjustments not working, worker dissatisfied and wellbeing worse, review escalated: effectiveness ineffective, wellbeing high-risk — escalate to HR.
Neurological evaluation using the NIHSS (National Institutes of Health Stroke Scale) with headache, seizure, motor, sensory, and cognitive assessment.
- Migraine follow-up, normal neurological examination — 34-year-old woman reviewed for migraine with aura, symptoms gradual in onset and improving on propranolol prophylaxis: all 15 NIHSS items scored 0, every headache red flag 'no', no seizure history, normal motor/sensory exam and gait, fully oriented with MMSE 30, no anticoagulants, MRI normal, mRS 0, currently driving. Expect nihssScore 0, nihssSeverity 'No stroke symptoms', firedRules empty, additionalFlags empty.
- Epilepsy review with residual minor deficits at the 4-point boundary — 58-year-old man with focal epilepsy after a 2024 left MCA infarct, reviewed for breakthrough seizures: NIHSS facial palsy 1, limb ataxia 1, sensory 1, dysarthria 1 (total 4, the top of 'Minor stroke'), all other items 0; onset gradual; headache present but fever 'yes' with neck stiffness 'no' (HEADACHE-002 needs both); no status epilepticus; MMSE exactly 24 (threshold is < 24, no flag); mRS 3 (threshold >= 4, no flag); gait 'hemiparetic' (not ataxic/unable); on levetiracetam; EEG shows epileptiform discharges; not driving for medical reasons. Expect nihssScore 4, nihssSeverity 'Minor stroke' (stroke-worded label on an epilepsy review), firedRules NIHSS-4, NIHSS-7, NIHSS-8, NIHSS-10, and two flags: FLAG-EEG-001 (medium) then FLAG-DRIVING-001 (low).
- Acute intracerebral haemorrhage on apixaban — 77-year-old woman on apixaban for AF with sudden thunderclap 'worst ever' headache and collapse: NIHSS consciousness 2, questions 2, commands 1, gaze 2, visual 2, facial palsy 3, left arm 4, left leg 4, right limbs 0, ataxia 0 (untestable, scored 0), sensory 2, language 2, dysarthria 2, extinction 2 (total 28, 'Severe stroke', 12 fired rules); onset sudden; CT shows haemorrhage; disoriented, MMSE untestable (null); gait unable; mRS 5; not driving for medical reasons; no seizures. Expect twelve flags: high tier in order FLAG-STROKE-001 (deficit), FLAG-STROKE-002 (sudden onset), FLAG-ICP-001 (consciousness 2 + worst-ever headache), FLAG-ICP-002 ('Imaging finding: haemorrhage'), FLAG-HEADACHE-001 (thunderclap), FLAG-HEADACHE-003 (focal deficit; HEADACHE-002 absent because fever/neck stiffness are 'no'), FLAG-IMAGING-001 (the haemorrhage double-flag); medium tier FLAG-ANTICOAG-001 ('Apixaban 5 mg BD'), FLAG-COGNITIVE-001, FLAG-MOBILITY-001 ('unable'), FLAG-DISABILITY-001 (mRS 5); low tier FLAG-DRIVING-001. No FLAG-COGNITIVE-002 (MMSE null), no FLAG-SEIZURE-001, no FLAG-EEG-001.
A practitioner-completed administrative card that places a patient on a neurology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 neurology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 neurology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 neurology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A practitioner-completed administrative card that places a patient on a neuropsychiatry waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 neuropsychiatry referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 neuropsychiatry referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 neuropsychiatry referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A practitioner-completed administrative card that places a patient on a neurosurgery waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 neurosurgery referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 neurosurgery referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 neurosurgery referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A UK national screening-programme examination that records a systematic head-to-toe physical assessment of a baby and classifies four key screening components — eyes, heart, hips, and testes (in boys) — as Satisfactory, Refer, or Not examined. It is performed within 72 hours of birth and repeated at the 6–8 week infant review. The form is a structured documentation and classification instrument: it captures each observation, records a result per component, and computes an overall screening outcome together with the referral pathway and safety flags.
- satisfactory-complete — Normal newborn examination across all key components (female — testes not applicable): overall outcome satisfactory, screening complete.
- refer-routine-hips — Normal examination but breech presentation triggers a routine hip-ultrasound pathway (male, testes descended): overall outcome refer.
- refer-urgent-heart — Central cyanosis with low pre/post-ductal saturations indicating possible critical congenital heart disease: overall outcome refer, same-day cardiac review.
A record of the newborn blood spot (heel-prick) screening test offered to every baby in the UK, normally taken around day 5 of life (counting the day of birth as day 0). A few drops of blood are collected onto a filter-paper card and screened for nine conditions: sickle cell disease (SCD), cystic fibrosis (CF), congenital hypothyroidism (CHT), and six inherited metabolic diseases (IMDs) — phenylketonuria (PKU), medium-chain acyl-CoA dehydrogenase deficiency (MCADD), maple syrup urine disease (MSUD), isovaleric acidaemia (IVA), glutaric aciduria type 1 (GA1), and homocystinuria (pyridoxine unresponsive) (HCU).
- all-clear-routine — Day-5 sample, adequate spots, all nine conditions not suspected — outcome all-not-suspected, routine referral status.
- cf-suspected-urgent — Day-6 sample with cystic fibrosis suspected; all other conditions not suspected — outcome referral-required, urgent referral status.
- cht-repeat-required — Day-7 sample with a borderline congenital hypothyroidism result requiring a repeat; all other conditions not suspected — outcome repeat-required, repeat referral status.
A UK NHS–aligned nuclear medicine (radionuclide imaging) request (referral) that a clinician completes to request a radionuclide study — for example a bone scan, myocardial perfusion scan, V/Q lung scan, thyroid uptake, renal DMSA / MAG3, gallium / octreotide, white-cell, or sentinel-node study. It records the requested scan, the clinical indication and specific question, relevant history, and the radiation-safety governance (pregnancy and breastfeeding status, renal function, recent radionuclide exposure, weight) — then computes a four-axis grading (appropriateness, preparation & radiation safety, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the nuclear-medicine department's justification, triage, and booking decisions.
- routine-thyroid-function-thyroid-uptake-complete — Well-formed routine referral: biochemical hyperthyroidism with a goitre, thyroid uptake is the recommended (ideal) scan for the thyroid-function indication and carries a low radiation dose, no pregnancy/breastfeeding/renal concerns, every completeness field including the IR(ME)R justification present — expect usually-appropriate + ok prep safety + low dose + routine + accept.
- urgent-cardiac-ischaemia-myocardial-perfusion-high-dose-caution — Exertional chest tightness with an equivocal exercise ECG: myocardial perfusion imaging is the recommended (ideal) scan for the cardiac-ischaemia indication, and the indication itself auto-escalates triage to urgent regardless of the routine urgency requested; the scan's high effective-dose band alone lifts an otherwise-clean prep-safety band from ok to caution, which this engine's `redirect` recommendation represents as 'Accept with safety caution' rather than sending the request elsewhere — expect usually-appropriate + caution prep safety + high dose + urgent + redirect (accept with caution).
- reject-suspected-bone-metastases-bone-scan-pregnant-incomplete — Known breast cancer with new back pain in a patient confirmed 10 weeks pregnant: a bone scan is the recommended (ideal) examination for the suspected-bone-metastases indication — there is no appropriateness mismatch here — but confirmed pregnancy makes radionuclide administration contraindicated pending justification, and this engine's distinctive `reject` recommendation fires from the prep-safety contraindication ahead of any appropriateness or completeness check; several administrative fields are not yet captured — expect usually-appropriate + contraindicated prep safety + moderate dose + routine + reject, completeness below 100.
A UK NHS–aligned nuclear medicine (radionuclide scan) result (report) that a reporting clinician completes after a radionuclide examination has been performed. It is the result/report counterpart to Nuclear Medicine Test Request (a referral): where the request captures why a scan should be done, this form records what the scan found and a structured interpretation. It records the performed examination, the radiopharmaceutical and injected activity, the clinical history, the narrative and structured findings, key quantitative measurements (ejection fraction, split renal function), the impression and a structured reporting category (for example a V/Q PE probability), and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured nuclear medicine report.
- normal-bone-scan-complete — A normal Tc-99m MDP bone scan for chronic low back pain with no red-flag features: symmetrical tracer uptake throughout the skeleton, no focal abnormality, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-reduced-ejection-fraction-major-not-critical-complete — A gated myocardial perfusion SPECT for exertional chest pain shows a moderate reversible inferolateral perfusion defect on stress with near-complete resolution at rest, and gated analysis shows a reduced left-ventricular ejection fraction of 32%: the ejection-fraction threshold (< 40%) is a dedicated major-severity rule checked before the perfusion-defect actionable-finding rule, and a perfusion defect on a myocardial-perfusion study (unlike a high-probability PE on a V/Q lung scan) is never a `hasCriticalFinding` trigger, so this escalates only to 'urgent' follow-up, never critical-alert; report complete — expect abnormal classification + major severity (reportingCategory reduced-ejection-fraction) + 100% completeness + urgent follow-up + specialist-referral.
- critical-widespread-bone-metastases-uncommunicated-incomplete — A bone scan shows multiple, widespread foci of markedly increased tracer uptake throughout the axial skeleton and proximal long bones, in keeping with a widespread metastatic pattern ('superscan'): a widespread metastatic pattern auto-escalates classification to critical and follow-up to critical-alert regardless of the other axes; the result has not yet been recorded as communicated, no originating request is linked, and the clinical history, comparison, and impression sections are not yet completed while urgent oncology review is arranged — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
- abnormal-reduced-ejection-fraction-alone-no-other-finding — A rest-only gated myocardial perfusion SPECT for known ischaemic cardiomyopathy shows no regional perfusion defect, photopenic area, or abnormal uptake, but gated analysis shows a markedly reduced ejection fraction of 28%: pins the 2026-09-06 fix where a reduced EF alone (no other structured finding) now correctly classifies abnormal on Axis A, matching Axis B's independent major-severity grade — before the fix, `hasAnyAbnormalFinding` ignored `ejectionFractionPercent`, so this exact combination classified 'normal' with severity 'major' and follow-up 'urgent', an axis-A/axis-B contradiction. Report complete — expect abnormal classification + major severity (reportingCategory reduced-ejection-fraction) + 100% completeness + urgent follow-up + specialist-referral, and no flags (the urgent-referral flag needs a perfusion defect or photopenic area specifically, which is a separate, not-yet-covered gap).
A practitioner-completed administrative card that places a patient on a nuclear medicine waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 nuclear medicine referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 nuclear medicine referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 nuclear medicine referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A structured nursing care plan that documents patient care following the nursing process — Assessment, Diagnosis, Planning, Implementation, Evaluation (ADPIE) — and is commonly organized by activities of daily living using the Roper–Logan–Tierney model of nursing. The plan captures the identified nursing problems / needs, the goals set for each, the planned interventions, the record of implementation, the evaluation and review, and the risk assessments referenced (falls, pressure ulcer, venous thromboembolism, nutrition / MUST).
- complete-two-problem-plan — Day-4 pneumonia plan: two problems each with goal, intervention, and evaluation; all four risk assessments done and actioned — expect complete with no flags.
- high-falls-risk-not-actioned — New confused admission: high falls risk assessed but not actioned (high flag), high nutrition risk with no linked problem (high flag), and a delirium problem with goal+intervention but no evaluation yet — expect partial with the risk and no-evaluation flags.
- skeleton-night-plan — A 03:00 skeleton: no risk group even assessed, one problem with a statement only (no goal, intervention, or evaluation, no review date) — expect incomplete with the incomplete-problem and no-review flags.
Nutritional status evaluation using the Malnutrition Universal Screening Tool (MUST) with comprehensive dietary, swallowing, gastrointestinal, and nutritional support assessment.
- low-well-nourished — Healthy BMI, minimal weight loss and no acute disease effect: MUST score 0 — low risk, well nourished.
- medium-monitor — BMI in the 18.5-20 range with no significant weight loss or acute illness: MUST score 1 — medium risk, observe and repeat screening.
- high-critical — Low BMI, marked unplanned weight loss and acutely ill with no intake for over five days: MUST score 6 — high risk, severity escalated to severe malnutrition with complications.
A general-purpose Objectives and Key Results (OKR) tracker. Each submission captures one Objective with its 1–5 Key Results through a single-page, ten-step wizard, applies a seven-axis scoring engine, and produces a signed report with a composite Red / Amber / Green status and a list of risk flags.
- On-track company objective - all seven axes green — A committed-tier (stretchTier 1) company objective at 80% progress (>=70% floor for tier 1), confidence 8, alignment 5, SMART quality 5, pace 0%, a DRI assigned, and one measurable (numeric) key result. No cycle dates are set, so the date-dependent flags cannot evaluate. Expect computedCompositeRag 'green', eight fired rules (one per axis plus the composite), and no flags.
- Team objective behind plan with a stale check-in and no DRI — Non-critical edge case: a team-level objective with no parent (orphaned), no DRI assigned, progress 40% against a committed-tier (stretchTier 1) 50% red floor - firing the red progress band - with a 92-day cycle (2026-06-01 to 2026-09-01) that is 75 of 92 days (81.5%) elapsed as of a.now 2026-08-15, past the 50% committed-at-risk threshold. The last check-in was 2026-07-01, 45 days before a.now against a stale-check-in threshold of max(14, round(92x0.25))=23 days. Confidence 5, alignment 3, and SMART quality 3 all band amber (between their red and green floors); pace -20% also bands amber (between -10 and -50). One of the two key results is numeric, so unmeasurable does not fire. Expect computedCompositeRag 'red' (from the progress axis), eight fired rules, and four flags in check order: orphaned, no-dri, committed-at-risk, stale-check-in.
- Critical - an individual objective failing on every axis and eleven of twelve flags — Critical/highest-severity persona: progress 5% (red), confidence 1 (red), alignment 1 (red - also fires mis-aligned), SMART quality 0 (red - also fires non-smart), pace -60% (red - also fires pace-collapse, since <=-50). Six key results, none numeric or milestone (all qualitative), firing BOTH unmeasurable (no measurable KR) and over-scoped (more than 5 key results). No DRI (no-dri). The 92-day cycle is 75 days (81.5%) elapsed as of a.now 2026-08-15, past the committed-at-risk threshold given progress is also below 50%. The check-in on 2026-06-15 is 61 days before a.now, well past the 23-day stale-check-in threshold. previousConfidenceDecile 8 versus the current confidence 1 is a drop of 7 (>=3), firing confidence-collapse. parentObjectiveStatus 'cancelled' fires cascading-broken. Only moonshot-progress does not fire (it requires stretchTier 3; this objective is stretchTier 1). Expect computedCompositeRag 'red', eight fired rules (all seven axes plus the composite, every scored axis red), and eleven flags in check order: mis-aligned, orphaned, non-smart, unmeasurable, no-dri, committed-at-risk, pace-collapse, confidence-collapse, stale-check-in, cascading-broken, over-scoped.
A practitioner-completed administrative card that places a patient on a obstetrics and gynaecology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 obstetrics and gynaecology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 obstetrics and gynaecology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 obstetrics and gynaecology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Antenatal obstetric assessment aligned with NICE NG201, stratifying pregnancies into low, moderate, and high risk to allocate care pathway (midwifery-led, obstetrician-led, or multidisciplinary) and to schedule surveillance, screening, and birth planning.
- low-midwifery-led — Healthy first pregnancy with no risk factors: overall antenatal risk low — midwifery-led care.
- moderate-obstetric-input — Older mother with raised BMI and previous gestational diabetes: overall antenatal risk moderate — obstetric input at milestones.
- high-consultant-led — Advanced maternal age, obesity, chronic hypertension and a twin pregnancy: overall antenatal risk high — consultant-led multidisciplinary care.
A practitioner-completed administrative card that places a patient on a occupational medicine waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 occupational medicine referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 occupational medicine referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 occupational medicine referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Functional performance evaluation using the COPM (Canadian Occupational Performance Measure) across self-care, productivity, and leisure domains.
- Independent, well-supported retiree — All 5 performance activities score 7-9 (average 8.2, Good performance) and all 5 satisfaction ratings score 7-9 (average 8.0, also labelled 'Good performance' by the shared category helper). No difficulty is worse than 'some', the home is safe and uncluttered, cognition and coordination are intact, and social support is strong. Ten fired rules (5 performance + 5 satisfaction), no flags.
- Moderate mobility and pain limitations after a fall — Performance averages 5.2 (Moderate concerns) and satisfaction averages 4.2 (Significant issues) across stair-climbing, meal preparation, shopping, housework, and community-group attendance. Functional mobility is significantly difficult (uses a stick on stairs), coordination is mildly impaired by a tremor, and pain is moderate in both knees - each independently below the 'unable'/'severe' threshold that would raise a high-priority flag. Ten fired rules, three medium flags (mobility, pain, falls/coordination).
- Housebound, unable to perform self-care after stroke — Performance averages 1.4 and satisfaction averages 1.2 (both Significant issues) across personal hygiene, toileting mobility, food preparation, leaving the house, and seeing friends - the patient is unable to perform self-care, functional mobility, community management, paid work, household management, active recreation, or social participation. Severe cognitive impairment, multiple home hazards, severe/chronic pain, severe lower-extremity weakness and instability, severely impaired coordination, severe vision loss, extreme fatigue, and no social support are all documented. Ten fired rules and thirteen flags: seven high (self-care, mobility, cognition, home safety, social isolation, pain, falls) and six medium (limited social support, coordination/falls, vision, fatigue, community access, unable to work).
Cancer patient evaluation using ECOG (Eastern Cooperative Oncology Group) Performance Status for treatment planning and prognosis.
- Fully active, complete response — Self-reported ECOG 0, Stage I disease with no distant metastases, complete response on current treatment, no pain/fatigue/nausea, normal labs, Karnofsky 100, well-nourished, and no psychosocial distress. No rule fires (self-reported ECOG '0' has no matching rule, so the score comes entirely from the default), giving ECOG 0 with an empty audit trail and no flags.
- Ambulatory with progressive disease and moderate anaemia — Self-reported ECOG 2 (ambulatory, capable of self-care), Stage III colorectal cancer, progressive disease on the current regimen, moderate pain (NRS 5) and moderate fatigue, moderate anaemia (Hb 95), Karnofsky 70, and a distress score of 8. Six rules fire, the highest being the ECOG-2 self-report and the Stage III and moderate-anaemia rules all tied at grade 2, giving ECOG 2. Two medium flags fire: high distress score and progressive disease on current regimen.
- Completely disabled, metastatic disease with cord compression risk — Self-reported ECOG 4, Stage IV breast cancer with spinal metastases (M1), progressive disease, severe pain/fatigue/nausea/appetite loss and >10% weight loss, Grade 4 neuropathy/mucositis/hepatotoxicity, neutropenia/thrombocytopenia/anaemia present, severe neutropenia and anaemia and thrombocytopenia on labs, hypercalcaemia, elevated LDH, hypoalbuminaemia, renal and hepatic impairment, elevated INR, Karnofsky 20, malnourished with rapidly decreasing weight, severe anxiety and depression, a distress score of 9, and advance care planning documented. Twenty-nine rules fire; the highest are the self-reported ECOG-4 rule and the Karnofsky-<30 rule, both grade 4, giving ECOG 4. Fourteen flags fire: eight high (neutropenic fever risk, severe pain, poor performance status, active bleeding risk, cord compression risk, hypercalcaemia, severe organ toxicity, severe anaemia), five medium (high distress, progressive disease, severe weight loss, malnourished, elevated INR), one low (advance care planning documented).
A practitioner-completed administrative card that places a patient on a oncology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 oncology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 oncology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 oncology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Ophthalmic evaluation covering visual acuity, anterior and posterior segment examination, visual fields, and functional impact assessment.
- normal-acuity — Best-corrected 6/6 in both eyes with normal intraocular pressures and exam: visual-acuity grade normal.
- moderate-impairment — Best-corrected acuity around 6/24 in both eyes: visual-acuity grade moderate impairment — referable low vision.
- blindness — Best-corrected acuity worse than 3/60 in both eyes: visual-acuity grade blindness — severe sight impairment.
A practitioner-completed administrative card that places a patient on a ophthalmology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 ophthalmology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 ophthalmology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 ophthalmology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A practitioner-completed administrative card that places a patient on a oral and maxillofacial surgery waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 oral and maxillofacial surgery referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 oral and maxillofacial surgery referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 oral and maxillofacial surgery referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Organ donation assessment evaluates potential organ donors (living and deceased). Assesses medical suitability, organ function, immunological compatibility, and ethical/consent requirements. Uses donor risk index and organ-specific suitability scoring.
- suitable-low-risk — Ideal deceased donor: no medical, infectious, immunological or organ-function red flags — suitable, low risk.
- conditionally-suitable-moderate-risk — Expanded-criteria deceased donor with hypertension and diabetes (two Grade-2 findings, no higher-grade flag): conditionally suitable, moderate risk.
- unsuitable-critical-risk — Active non-CNS malignancy (a Grade-4 absolute contraindication) with concurrent cardiovascular disease: unsuitable, critical risk.
A practitioner-completed administrative card that places a patient on a orthopaedics waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 orthopaedics referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 orthopaedics referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 orthopaedics referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Musculoskeletal evaluation using the DASH (Disabilities of the Arm, Shoulder and Hand) questionnaire with range of motion and functional assessment.
- No disability, right-hand dominant — All 30 DASH items answered '1 - No difficulty'. DASH = ((1-1)*25) = 0, 'No disability'. No item scores above 1, so firedRules is empty. No pain, no red-flag history, no allergies or prior surgery, so no flags fire.
- Moderate bilateral disability with sleep disturbance — 28 of 30 DASH items answered '3 - Moderate difficulty', with tingling ('2 - Mild') held below the neurological-flag threshold and sleep disturbance ('4 - Severe') above it. DASH = ((3.0-1)*25) = 50, 'Moderate disability'. All 30 items fire (every answered score is above 1). Two medium flags: severe sleep disturbance (DASH item 29) and bilateral joint involvement.
- Very severe disability, traumatic bilateral injury with anaphylaxis history — 27 of 30 DASH items answered '5 - Unable' (the three social/recreational items 17-19 are left unanswered, meeting the minimum 27-of-30 requirement exactly). DASH = ((5.0-1)*25) = 100, 'Very severe disability'. Traumatic bilateral onset with severe pain, night pain, swelling and redness, no X-ray taken, a documented penicillin anaphylaxis, two prior orthopedic surgeries with an anaesthesia complication, five ADLs affected, and all three conservative treatments (PT, injections, medication) already tried. Twenty-seven rules fire. Sixteen flags fire: ten high (severe current/worst pain, night pain red flag, tingling, weakness, joint instability, possible infection, fracture suspicion without imaging, anaesthesia risk, anaphylaxis history) and six medium (prior surgery, drug allergy count, sleep disturbance, bilateral involvement, functional limitation, failed conservative treatment).
General ear-nose-throat (otolaryngology) consultation assessment covering presenting complaint, history, examination findings, and the SNOT-22 symptom score to quantify sinonasal quality of life and guide ENT management.
- mild-minimal-impact — Intermittent rhinitis with little day-to-day burden: SNOT-22 total 5 — Mild band (minimal impact on daily life).
- moderate-targeted-management — Chronic rhinosinusitis with sleep and productivity impact: SNOT-22 total 14 — Moderate band (targeted management advised).
- severe-specialist-referral — Chronic rhinosinusitis with polyps and marked sleep, functional and emotional burden: SNOT-22 total 45 — Severe band (consider specialist referral).
A practitioner-completed administrative card that places a patient on a otorhinolaryngology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 otorhinolaryngology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 otorhinolaryngology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 otorhinolaryngology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A validated clinical decision rule that decides whether an ankle X-ray or a foot X-ray is needed after an acute ankle or midfoot injury. It records a small set of objective bedside findings — the site of pain, bone tenderness at four specific landmarks, and the ability to bear weight — and applies a boolean decision algorithm to output, for each region, whether radiography is indicated (yes/no). The rule is deliberately highly sensitive: it is designed to miss virtually no clinically significant fracture while safely reducing the number of unnecessary X-rays.
- no-xray — Twisted ankle with no bony tenderness and able to take four steps: neither ankle nor foot X-ray indicated — clinically significant fracture effectively excluded.
- ankle-xray — Malleolar-zone pain with bony tenderness at the tip of the lateral malleolus, weight-bearing intact: ankle X-ray indicated, foot X-ray not indicated.
- foot-xray — Midfoot-zone pain with bony tenderness at the base of the fifth metatarsal, weight-bearing intact: foot X-ray indicated, ankle X-ray not indicated.
A validated clinical decision rule that decides whether a knee radiograph (X-ray) is needed after an acute knee injury. It records five objective bedside criteria and applies simple ANY-of logic: a knee X-ray is indicated when at least one criterion is present, and is not indicated when all five are absent. The rule is highly sensitive for clinically significant knee fractures, so a negative result safely rules out the need for imaging and reduces unnecessary radiography.
- no-xray — Young adult twisting injury, under 55, no bony tenderness, can flex to 90 degrees and bear weight: no Ottawa knee criterion met — knee X-ray not indicated.
- xray-fibular-head — Blunt trauma with isolated tenderness over the head of the fibula, otherwise mobile: fibular-head criterion met — knee X-ray indicated.
- xray-age-flexion-weightbearing — Older patient after a fall, unable to flex the knee to 90 degrees and unable to bear weight for four steps: age, flexion and weight-bearing criteria all met — knee X-ray indicated.
Structured outpatient outcome report documenting encounter details, operational efficiency, clinical outcome, patient-reported outcome measures (PROMs), patient-reported experience measures (PREMs), and follow-up plan, with a four-domain composite grade (Outpatient Outcome Composite Grade, OOCG).
- Resolved carpal tunnel - discharged within target, all PROMs improved — Grade A across every domain. Clinical 'resolved' -> A (CLIN-001). EQ-5D-5L improves in all five dimensions and the VAS (improved 6, worsened 0), GRC +5, and PROMIS at the top of scale (GPH raw 20 -> T 67.7, GMH raw 30 -> T 67.6, mean 67.65 >= 50) -> three instruments improved -> A (PROM-001). FFT 'extremely_likely' -> A (PREM-001). Attended and discharged after a 21-day wait against a 42-day target (ratio 0.5) -> A (OPS-001). Expect overallGrade 'A', four fired rules in domain order, and no flagged issues.
- Unchanged knee osteoarthritis - mixed PROMs, follow-up booked late — Non-critical edge case landing on overall C. Clinical 'unchanged' -> C (CLIN-003). EQ-5D-5L has one dimension better and one worse with the rest level (improved 1, worsened 1) -> 'stable'; GRC 0 -> 'stable'; PROMIS mid-scale (GPH raw 12.5 -> T 43.6, GMH raw 18 -> T 44.4, mean 44.0 in the 35-50 band) -> 'stable'; zero improved, zero worsened -> C (PROM-003). FFT 'likely' -> B (PREM-002). Attended with follow-up after a 60-day wait against a 42-day target (ratio 1.43, within 1.5x) -> B (OPS-002A). Expect overallGrade 'C' and two flags: FLAG-PROM-001 (medium, '1 dimension(s) worsened') then FLAG-OPS-004 (low, wait exceeded target).
- Worsened heart failure - all PROMs deteriorated, very poor experience, late onward referral — Critical-highest persona (overall E). Clinical 'worsened' -> D (CLIN-004) with FLAG-CLIN-001 (high). EQ-5D-5L worsens in all five dimensions and the VAS (worsened 6), GRC -4, PROMIS at the bottom of scale (GPH raw 5 -> T 19.4, GMH raw 6 -> T 21.2, mean 20.3 < 35) -> three instruments worsened -> E (PROM-005). FFT 'extremely_unlikely' -> E (PREM-005). Attended with onward referral after a 100-day wait against a 42-day target (ratio 2.38 > 1.5) -> C (OPS-002B). Expect overallGrade 'E', four fired rules, and five flags after the stable sort: high FLAG-CLIN-001; medium FLAG-PREM-002, FLAG-PROM-001 ('6 dimension(s) worsened' - the VAS is counted), FLAG-PROM-002 ('Global Rating of Change: -4 (worsened)'), FLAG-OPS-003.
A bedside risk-stratification tool that estimates the risk of venous thromboembolism (VTE — deep-vein thrombosis and pulmonary embolism) in hospitalized medical patients. It records eleven weighted risk factors, sums a total of 0–20, and classifies the patient as high risk when the score is ≥ 4 and low risk when the score is < 4. A high score is a prompt to consider pharmacological thromboprophylaxis (in the absence of contraindications such as active bleeding or high bleeding risk); a low score supports withholding routine anticoagulant prophylaxis and using mechanical measures and early mobilization.
- low-risk-no-prophylaxis — Medical inpatient with reduced mobility (bed rest) as the only factor: Padua 3 — low risk band; pharmacological thromboprophylaxis not indicated on risk grounds.
- high-risk-pharmacological — Elderly patient (78) with reduced mobility, acute heart failure and acute infection: Padua 6 — high risk band; no bleeding contraindication, so pharmacological thromboprophylaxis recommended.
- high-risk-mechanical — Oncology patient with active cancer, reduced mobility and recent surgery: Padua 8 — high risk band; active high bleeding risk contraindicates anticoagulation, so mechanical thromboprophylaxis recommended.
An age-banded track-and-trigger early-warning tool for children. It records a set of physiological observations across three domains — respiratory, cardiovascular, and behaviour / neurological — scores each parameter 0–3 against the normal range for the child's age band, sums an aggregate total, and maps that total (together with single-parameter and concern triggers) onto an escalation band with a recommended review timeframe. A high score, any single parameter scoring 3, or documented nurse or parent/carer concern each prompts escalation and senior review.
- routine-well-child-young-child-normal — A well child (1-4 years) on the ward with every observation within the young-child normal range — aggregate 0, routine escalation band.
- neonate-mild-tachypnoea-low-escalation — A neonate with mild tachypnoea (65/min) and mild tachycardia (170/min) — each scores 1, aggregate 2, the low escalation band (2-3).
- infant-medium-escalation-aggregate-5 — An infant with several mildly-to-moderately abnormal parameters (tachypnoea 1, moderate respiratory effort 2, mild desaturation 1, borderline tachycardia 1) summing to exactly 5 with no single parameter at 3 — the medium escalation band (4-5) driven by the aggregate alone.
- child-high-escalation-multisystem — A school-age child with multiple moderately-abnormal parameters (respiratory rate 2, moderate effort 2, desaturation 2, low-flow oxygen 1, tachycardia 1) summing to 8 with no single parameter at the grossly-abnormal 3 — high escalation (>=6) driven by cumulative multi-system deterioration rather than one critical finding.
- adolescent-single-parameter-critical-bradycardia — An adolescent with severe bradycardia (35 bpm, scores 3) and every other parameter normal — the aggregate alone is only 3 (which would map to the low band), but the single-parameter-3 override raises the effective escalation to medium regardless of the total, exactly the safety invariant the aggregate can otherwise mask.
- young-child-severe-hypoxia-spo2-critical — A young child found with a saturation of 88% on room air (scores 3) before supplemental oxygen has been applied, everything else normal — the same single-parameter override as the bradycardia persona above but on a different parameter and a different age band, confirming the override is parameter-agnostic.
- neonate-parent-concern-normal-vitals-routine-band — A neonate with every vital sign fully within the normal range (aggregate 0) but a documented parent concern — the escalationBand computed by gradePews() stays 'routine' because parent/nurse concern is not folded into the aggregate-or-override band calculation in grader.js, only recorded as an independent firedTrigger/firedRule; the safety escalation itself is a separate high-priority flag raised by flags.js, which graderHint does not call. Verified directly against grader.js rather than assumed from AGENTS.md's summary.
- child-nurse-concern-with-borderline-vitals — A school-age child with mildly abnormal vitals (aggregate 2, low band) and a documented nurse/staff concern — the escalationBand stays 'low' from the aggregate alone; the nurse concern is recorded as its own firedTrigger/firedRule (T-NURSE-CONCERN / R-NURSE-CONCERN-01) rather than raising the band itself, the same real engine behaviour as the parent-concern persona above.
- incomplete-assessment-missing-age-band — Age band not yet selected and most enum observations not yet recorded, though a respiratory rate and heart rate happen to have been charted already — with no age band, both rate parameters score null (contributing 0) regardless of the recorded numbers, per the documented invariant that the age band must be selected first; the aggregate is deceptively 0/routine despite being far from a complete assessment (`complete: false`).
A practitioner-completed administrative card that places a patient on a paediatric surgery waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 paediatric surgery referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 paediatric surgery referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 paediatric surgery referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A practitioner-completed administrative card that places a patient on a paediatrics waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 paediatrics referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 paediatrics referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 paediatrics referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Symptom-focused palliative care assessment using the Edmonton Symptom Assessment System-revised (ESAS-r) alongside performance status, goals-of-care documentation, medication and symptom-control planning, and psychosocial and spiritual review to guide individualized palliative management.
- mild-symptom-burden — Early palliative review with low symptom burden: ESAS-r total 18 — Mild band; no individual symptom reaches the severe (>= 7) threshold.
- moderate-symptom-burden — Progressing disease with multiple moderate symptoms: ESAS-r total 41 — Moderate band; no single symptom reaches the severe (>= 7) threshold.
- severe-symptom-burden — Deteriorating patient with uncontrolled symptoms: ESAS-r total 66 — Severe band; pain, tiredness, lack of appetite, shortness of breath, anxiety and wellbeing each flagged as severe (>= 7).
A fluid-resuscitation calculator for adults and children with major thermal burns. It computes the total volume of crystalloid (Hartmann's solution / lactated Ringer's) to give in the first 24 hours from the time of injury using the Parkland formula, splits that volume into the mandated first-8-hour and next-16-hour phases, derives an infusion rate for each phase, and offsets the schedule when resuscitation begins some time after the burn. The output is a titratable starting prescription — fluid must then be adjusted to maintain an adequate urine output, not driven by the formula alone.
- standard-adult-burn-immediate-assessment — Adult house fire, 20% TBSA, assessed at the moment of injury (0 h elapsed) — the whole first-8-h window remains, giving the textbook first-phase rate.
- paediatric-scald-burn — Child scalded by hot bath water, 12% TBSA, assessed 1 h after injury — exercises the lower child major-burn threshold and a partially-elapsed first-phase window.
- mid-window-partial-elapsed — Major adult burn, 30% TBSA, assessed 4 h after injury following inter-hospital transfer — half the first-8-h window has already elapsed, so the first-phase rate is offset upward.
- resuscitation-overdue — 10 h have elapsed since injury by the time of assessment, past the mandated first-8-h window — the first-phase rate cannot be computed (give the outstanding volume now) rather than dividing by a non-positive remaining window.
- exactly-eight-hours-boundary — Assessed at exactly 8 h since injury — the boundary case: the first-8-h window has just closed (remaining = 0, not negative), which the engine treats the same as overdue rather than as a sliver of window still open.
- missing-weight-and-tbsa-incomplete — Body weight not yet measured and %TBSA not yet estimated on arrival — no volume can be computed and none is invented; the time-offset and injury record are still complete.
- injury-time-unknown-default-window — Time of injury not known (found down, history unclear) — the offset cannot be computed, so the engine defaults the remaining first-phase window to the full 8 h rather than assuming any elapsed time.
- electrical-major-burn-with-critical-features — High-voltage electrical injury with suspected inhalation and a circumferential deep burn — a major burn (35% TBSA) with the highest-acuity feature combination, assessed 2 h after injury.
A graphical record of the progress of labour. The partogram plots a timed series of observations — cervical dilatation, descent of the fetal head, uterine contractions, fetal heart rate, amniotic fluid (liquor) and moulding, maternal vital signs, urine, and drugs / oxytocin — against elapsed time in active labour. Cervical dilatation is charted against two reference lines: an alert line (expected progress of about 1 cm per hour from the start of the active phase at 4 cm) and an action line drawn four hours to the right of it. The engine computes a labour-progress classification and raises flags; it does not produce a validated numeric score.
- normal-progress — Multiparous labour progressing 1 cm/h from 4 cm: 8 cm at 4 hours sits exactly on the WHO alert line — expect normal classification with no fired lines.
- alert-line-crossed-meconium — Nulliparous labour at 5 cm after 4 hours (alert line expects 8 cm) with fresh meconium-stained liquor — expect alertLineCrossed plus the meconium flag territory.
- action-line-crossed-obstructed — No cervical change from 4 cm over 6 hours despite oxytocin, with maternal fever 38.4, pulse 118, ketonuria ++ and fetal tachycardia 168 — expect actionLineCrossed with both lines fired.
A practitioner-completed administrative card that places a patient on a pathology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 pathology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 pathology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 pathology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
General patient intake form collecting demographics, insurance, medical history, medications, allergies, and review of systems with risk level stratification.
- low-risk — Healthy adult, routine visit, no chronic conditions, medications or allergies, consent given: no rules fire — risk level low.
- medium-risk — Urgent visit with two chronic conditions and a current smoker: medium-risk rules fire, no high-risk rules — risk level medium.
- high-risk — Emergency presentation with three or more chronic conditions and polypharmacy: high-risk rules fire — risk level high.
A battery of four independent, validated patient-reported outcome instruments, commonly administered together in spine-surgery outcomes research: the SF-36v2 Health Survey, the Neck Disability Index (NDI), the modified Japanese Orthopedic Association score (mJOA), and EuroQol 5-Dimensions (EQ-5D-3L).
- Best possible health - post-rehabilitation discharge visit — All-best answers on every instrument (the AGENTS.md all-best test case, made into a persona). SF-36: every item at its best pole -> all eight domains 100, pcsApprox 100, mcsApprox 100. NDI all 0 -> raw 0, 10 sections, 0 %, band 'no-disability'. mJOA 4+4+2+2+2+3 = 17, band 'mild'. EQ-5D '11111' -> ukIndexValue exactly 1 (JSON 1), VAS 95.
- Moderate cervical myelopathy - partially answered, non-driver — Pre-operative baseline for a patient with degenerative cervical myelopathy. Exercises every partial-answer path: SF-36 expectHealthWorse and socialActivitiesInterferenceTime left null (so GH averages 4 items and SF averages 1), NDI driving null (non-driver, so 9 sections and a /45 denominator). Hand-derived SF-36: pf 55, rp 43.75, bp 45, gh 43.75 (50+50+50+25 over 4), vt 37.5, sf 75, re 83.333..., mh 80; pcsApprox 46.875, mcsApprox 68.958333... NDI raw 9 over 9 sections = exactly 20 % -> 'moderate'. mJOA 3+3+1+2+2+2 = 13 -> 'moderate'. EQ-5D '21221' with no level-3 dimension -> 1 - 0.081 - 0.069 - 0.036 - 0.123 = 0.691 (floating point), VAS 65.
- Worst possible health - severe myelopathy with complete disability — All-worst answers on every instrument (the AGENTS.md all-worst test case). SF-36: every item at its worst pole -> all eight domains 0, pcsApprox 0, mcsApprox 0. NDI all 5 -> raw 50, 10 sections, 100 %, band 'complete'. mJOA all 0 -> 0, band 'severe'. EQ-5D '33333' -> 1 - 0.081 - (0.314+0.214+0.094+0.386+0.236) - 0.269 = -0.594 (floating point; a negative index, worse than dead on the UK TTO scale), VAS 10.
A housekeeping / facilities room-readiness checklist, completed by an inspector immediately before a patient room is handed over for occupancy. It confirms 25 concrete room-fixture checkpoints — bedding and furniture, utilities, bathroom fittings, and the physical fabric of the room (walls, window, ceiling, door) — are present and in acceptable condition.
- Fully ready room, all 25 checkpoints confirmed — Every one of the 25 fixed checkpoints is checked. checkedCount is 25 of 25, uncheckedFields is empty.
- Mostly ready, seven bathroom and fabric items outstanding — 18 of 25 checkpoints are checked; the seven unchecked span the bathroom fittings (geyser, soap dispenser, toilet kit) and the room fabric (window glass/groves, wall seepage/water leakage, ceiling/tiles, door/knobs/stopper) - a plausible partial-turnaround state, not a safety-critical one (call bell, cot/mattress, and IV stand are all confirmed).
- Room not started, all 25 checkpoints outstanding — None of the 25 checkpoints are checked - a room housekeeping has not yet turned around. checkedCount is 0 of 25, uncheckedFields lists all 25 labels in checklist order.
Patient satisfaction survey measuring healthcare experience quality using Likert-scale scoring across multiple care domains with normalized composite scoring.
- excellent — Outstanding experience — top ratings across access, communication, care, staff, environment and discharge (all items 5): composite 100 — excellent.
- satisfactory — Adequate but middling experience with neutral responses throughout (all items 3): composite 60 — satisfactory.
- very-poor — Critically deficient experience — lowest ratings across every domain (all items 1): composite 20 — very-poor.
Child development screening covering birth history, growth, developmental milestones, immunization status, and family environment.
- Healthy 3-year-old - routine development review, nothing fires — Baseline / best case: a term (40-week) child with Apgar 9/9, no NICU, growth on the 50th centiles, every developmental domain 'pass', immunisations up to date, no medical, family, or social concerns, no allergies, screen time 1 h/day. Expect overallResult 'normal', domainResults all 'pass', firedRules [] and additionalFlags [].
- Boundary values everywhere - 37 weeks, Apgar 7, 3rd centile, 4 h screen, milestones unassessed — Non-critical edge case: every numeric sits exactly ON a strict threshold so nothing fires - gestational age 37 (rule is <37), 5-minute Apgar 7 (<7), weight and head-circumference percentiles 3 (<3), screen time 4 (>4). The five developmental domains are left unanswered ('') because the 8-month-old was asleep, so the grader defaults each to 'pass' in domainResults without firing any rule. Immunisations are up to date but a previous vaccine adverse reaction (fever/irritability after 8-week DTaP) is recorded, and one mild egg allergy is documented. Expect overallResult 'normal', firedRules [], domainResults all 'pass', and two medium flags in push order: FLAG-IMMUN-002 then FLAG-ALLERGY-001 ('1 allergy/allergies documented'). No anaphylaxis flag because severity is 'mild'.
- Ex-30-week preterm toddler - failure to thrive, global delay, safeguarding, anaphylaxis — Critical / highest-severity persona: born at 30 weeks (fires BOTH BH-002 preterm and BH-003 very-preterm), 45-day NICU stay, 5-minute Apgar 5, birth complications, weight on the 1st and head circumference on the 2nd centile with failure to thrive, gross motor and language 'fail', fine motor and social-emotional 'concern', cognitive 'pass', immunisations behind, chronic BPD, recurring chest infections, penicillin anaphylaxis (index 0) plus mild egg allergy, family genetic condition, family developmental disorder, consanguinity, behavioural concerns, an open safeguarding concern and 6 h/day screen time. Expect overallResult 'developmental-delay'; domainResults GM fail / FM concern / LG fail / SE concern / CG pass; 18 fired rules in catalogue order GM-002, FM-001, LG-002, SE-001, GR-001, GR-002, GR-003, BH-001, BH-002, BH-003, BH-004, FH-001, FH-002, IM-001, SB-001, SB-003, MH-001, MH-002 (SB-002 silent because schoolPerformance is 'not-applicable'); and 19 flags after the stable sort - high: FLAG-FTT-001, FLAG-GROWTH-001, FLAG-GROWTH-002, FLAG-DEV-001, FLAG-SAFEGUARD-001, FLAG-PRETERM-001 (high because <32), FLAG-ALLERGY-ANAPH-0; medium: FLAG-IMMUN-001, FLAG-DEV-002, FLAG-NICU-001 ('(45 days)'), FLAG-APGAR-001, FLAG-BIRTH-001, FLAG-ALLERGY-001, FLAG-CHRONIC-001, FLAG-INFECTION-001, FLAG-GENETIC-001, FLAG-CONSANG-001, FLAG-BEHAV-001; low: FLAG-SCREEN-001.
A UK NHS–aligned perioperative optimization and prehabilitation intake: the screening questionnaire a surgical or anaesthetic team uses to identify reversible health problems before surgery, decide what can be treated in the time available, and build a personalized prehabilitation plan.
- Fit 52-year-old for elective hernia repair - every domain optimized, 12 weeks to go — Baseline / best case: a never-smoker, non-diabetic man assessed 2026-09-01 for surgery 2026-11-24 (84 days = exactly 12 weeks). Hb 148, ferritin 120, TSAT 30, HbA1c not sent with diabetesType 'none', 6 units/week with AUDIT-C 1+0+0, BMI 25.2 with no weight loss (MUST 0, low), METs 7 / DASI 50 / 6MWT 520, no hold-requiring medicines, BP 128/78, SpO2 98, STOP-BANG 2, CFS 2, Fried 0 robust. Expect weeksToSurgery 12, gatingApplied true, domains anaemia optimized, glycaemic-control not-applicable, smoking not-applicable, alcohol optimized, nutrition optimized, physical-fitness optimized, medication not-applicable, cardiorespiratory optimized (all untriggered, ruleId ''), counts optimized 8, computedReadiness and finalReadiness 'ready', overrideReason '', gateDecision 'proceed', recommendedEarliestSurgeryDate '' and flags [].
- Ex-smoker with treated iron-deficiency anaemia - IV iron in progress, clinician overrides to ready — Non-critical edge case built from boundary values and 'silent' paths. A 47-year-old woman assessed 2026-09-01 for a hysterectomy on 2026-10-15 (44 days, floor -> 6 weeks). Hb 118 fires R-ANAEMIA-2 (< 120 for women) and, because the route is 'intravenous' and treatment has started, the lead time is 4 weeks <= 6 so the domain is 'in-progress'; ferritin 25 is hidden from the rules by the first-match Hb branch and does NOT raise F-IRON-DEFICIENCY-UNTREATED because treatment has started. Ex-smoker -> smoking 'optimized' (not 'not-applicable'); no diabetes with HbA1c null -> glycaemic 'not-applicable'; 14 units/week (rule is > 14) and AUDIT-C 2+1+0 = 3 (rule is >= 4 for women) -> alcohol optimized; 12.1% weight loss recorded as intentional -> MUST 0 (BMI 22.1) and R-NUTRITION-2 suppressed; ACE inhibitor in use WITH an agreed hold plan -> medication optimized with interventionStarted true; STOP-BANG 5 with a confirmed OSA diagnosis on CPAP -> silent; METs 5 / DASI 40 / 6MWT 450 all above threshold; CFS 3 with Fried 1/5 (exhaustion only) -> 'pre-frail'. Expect weeksToSurgery 6, counts optimized 7 / inProgress 1, computedReadiness 'optimization-in-progress', but the sign-off override 'ready' (reason recorded) makes finalReadiness 'ready' with overrideReason populated; gateDecision 'proceed'; recommendedEarliestSurgeryDate ''; flags [].
- Frail 71-year-old with obstructing colorectal cancer listed in 3 weeks - six domains short of time — Critical / highest-severity persona: assessed 2026-09-01 for a major-plus anterior resection on 2026-09-22 (exactly 3 weeks). Anaemia Hb 76 (R-ANAEMIA-5; oral/unspecified route -> 8-week lead, shortfall 5) and ferritin 12 untreated; HbA1c 72 in known type-2 diabetes on basal-bolus insulin with no diabetes-team review (R-GLYC-2, 12-week lead, shortfall 9); current smoker declining cessation (R-SMOKE-1, shortfall 1); AUDIT-C 4+3+3 = 10 with dependence features (R-ALCOHOL-4, shortfall 1); BMI 18.3 + 20.6% unintentional loss -> MUST 4 (R-NUTRITION-1) but a 3-week lead against exactly 3 weeks is NOT short and the dietitian referral is made, so nutrition is 'in-progress'; CPET AT 9.5 (R-FITNESS-4, 6-week lead, shortfall 3); apixaban + empagliflozin + weekly semaglutide with GI symptoms, GLP-1 held per guideline, and no hold plan (R-MEDICATION-1, 1-week lead -> action-required); EF 35 (R-CARDIORESP-3, shortfall 1) alongside BP 184/112, uncontrolled COPD, SpO2 90 and STOP-BANG 6 unassessed; eGFR 24; CFS 7 with Mini-Cog not done and Fried 5/5 frail; previous anaesthetic complication; severe anxiety and positive depression screen; no transport home; capacity concern. Expect weeksToSurgery 3; statuses anaemia/glycaemic-control/smoking/alcohol/physical-fitness/cardiorespiratory insufficient-time, nutrition in-progress, medication action-required; counts 0/1/1/6; computedReadiness 'defer-surgery' (also forced by Hb < 80 and HbA1c >= 69); override 'optimization-required' applied so finalReadiness 'optimization-required' with overrideReason recorded; gateDecision 'accept-unoptimized-risk'; recommendedEarliestSurgeryDate 2026-09-22 + 9 weeks = '2026-11-24'; and 25 flags after the stable sort - 16 high in push order: F-INSUFFICIENT-TIME-TO-OPTIMIZE-001 ('6 domains ... largest shortfall is 9 weeks'), F-SEVERE-ANAEMIA-001, F-HBA1C-ABOVE-THRESHOLD-001, F-SGLT2-INHIBITOR-NOT-HELD-001, F-GLP1-AGONIST-ASPIRATION-RISK-001 (GI-symptoms wording), F-ANTICOAGULATION-PLAN-MISSING-001, F-ACTIVE-SMOKER-MAJOR-SURGERY-001, F-ALCOHOL-DEPENDENCE-RISK-001 (AUDIT-C wording), F-HIGH-MALNUTRITION-RISK-001, F-SEVERE-FRAILTY-001, F-DEHYDRATION-AKI-RISK-001, F-UNCONTROLLED-HYPERTENSION-001, F-CARDIAC-OPTIMIZATION-REQUIRED-001, F-RESPIRATORY-OPTIMIZATION-REQUIRED-001 (SpO2 wording), F-RENAL-OPTIMIZATION-REQUIRED-001, F-PRIOR-ANAESTHETIC-COMPLICATION-001 (with detail); then 9 medium: F-IRON-DEFICIENCY-UNTREATED-001, F-POOR-FUNCTIONAL-CAPACITY-001, F-COGNITIVE-ASSESSMENT-INDICATED-001, F-SARCOPENIA-RISK-001, F-REBOUND-GLYCAEMIC-RISK-001, F-OSA-UNASSESSED-001, F-PSYCHOLOGICAL-SUPPORT-REQUIRED-001 (depression wording), F-SOCIAL-SUPPORT-GAP-001 (transport wording), F-CAPACITY-CONCERN-001. F-UNDIAGNOSED-DIABETES is silent because a diagnosis is recorded.
- Entirely blank assessment except the two dates - all eight domains not-applicable, not falsely optimized — Nothing entered anywhere except the assessment date and the planned surgery date (12 weeks away): pins the 2026-09-06 fix where all eight domain evaluators now correctly derive `applicable` from whether any of their own fields were actually answered. Before the fix, anaemia/alcohol/nutrition/physical-fitness/cardiorespiratory hard-coded applicable:true, so this exact blank state reported 'optimized' on all five (identical to a genuinely-assessed, all-clear patient); now all eight domains correctly report 'not-applicable'. computedReadiness stays 'ready' either way (both 'optimized' and 'not-applicable' map to the same readiness band, and the fleet-wide counts.optimized total is unaffected since it counts both statuses together) — the fix's real, visible effect is per-domain transparency: a report or dashboard reading domain-by-domain status can no longer mistake an unassessed patient for a confirmed-fit one.
A UK NHS–aligned PET-CT (positron emission tomography) scan request (referral) that a clinician completes to request a PET-CT examination, most commonly an oncology FDG-PET-CT for cancer staging, restaging, or treatment-response assessment. It records the requested tracer and scan type, the primary indication and specific clinical question, the primary tumour site and relevant history, the FDG patient-preparation and safety data (diabetes, blood glucose control, pregnancy, breastfeeding, renal function), the IR(ME)R justification, and the requested urgency — then computes a four-axis grading (appropriateness, preparation safety and radiation dose, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the nuclear-medicine department's triage and booking decision.
- routine-lymphoma-fdg-pet-ct-well-controlled-glucose-complete — Well-formed routine referral: biopsy-confirmed lymphoma, FDG-PET-CT is the recommended (ideal) study for the lymphoma indication, blood glucose is well-controlled (5.5 mmol/L, below even the EANM-preferred 7 mmol/L threshold), no pregnancy/breastfeeding concerns, every completeness field including the IR(ME)R justification present — expect usually-appropriate + ok prep safety + high dose (flagged but non-blocking) + routine + accept.
- query-referrer-cancer-staging-fdg-pet-ct-uncontrolled-glucose-caution — Newly diagnosed lung cancer with poorly-controlled diabetes: FDG-PET-CT is the recommended (ideal) study for the cancer-staging indication, but a blood glucose of 14.2 mmol/L is above the ~11 mmol/L uncontrolled threshold — FDG uptake will be impaired — forcing the prep-safety band to caution, which alone is enough to force query-referrer in this engine (unlike the sibling nuclear-medicine engine, caution here is not relabelled as an 'accept with caution'); urgency was explicitly requested as urgent — expect usually-appropriate + caution prep safety + high dose + urgent + query-referrer.
- reject-solitary-pulmonary-nodule-fdg-pet-ct-pregnant-incomplete — An incidental solitary pulmonary nodule in a patient confirmed 8 weeks pregnant: FDG-PET-CT is the recommended (ideal) study for the solitary-pulmonary-nodule indication — there is no appropriateness mismatch here — but confirmed pregnancy is contraindicated for PET-CT radiation exposure, forcing this engine's `reject` recommendation ahead of any appropriateness or completeness check; blood glucose was also never recorded for this FDG study, and several other administrative fields are not yet captured — expect usually-appropriate + contraindicated prep safety + high dose + routine + reject, completeness below 100.
A UK NHS–aligned PET-CT (positron emission tomography) scan result (report) that a reporting clinician completes after a PET-CT examination has been performed, most commonly an oncology FDG-PET-CT for cancer staging, restaging, or treatment-response assessment. It is the result/report counterpart to PET Scan Test Request (a referral): where the request captures why a scan should be done and whether it is safe to prepare, this form records what the scan found and a structured interpretation. It records the tracer and scan type, the clinical history and acquisition data (pre-injection blood glucose, injected activity), the narrative and structured metabolic findings, key measurements (SUVmax, largest lesion size), comparison and treatment response, the impression, the structured-reporting category (e.g. a Deauville score or PERCIST category), and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured molecular-imaging report.
- normal-fdg-pet-ct-complete-response-complete — An interval FDG PET-CT for post-treatment Hodgkin lymphoma surveillance: no abnormal FDG-avid lesion, physiological tracer distribution only, complete metabolic response maintained, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-high-avidity-lung-primary-major-not-critical-complete — A staging FDG PET-CT for newly diagnosed non-small-cell lung cancer shows an intensely FDG-avid right upper lobe mass (28mm, SUVmax 12.5) with no nodal or distant metastatic disease: SUVmax >= 10 is a dedicated major-severity trigger (R-SEV-MAJOR-02) entirely independent of `hasCriticalFinding` (distant metastasis or progressive disease only), so this grades major severity but escalates only to 'urgent' follow-up, never critical-alert; report complete — expect abnormal classification + major severity (reportingCategory high-avidity) + 100% completeness + urgent follow-up + specialist-referral.
- critical-widespread-distant-metastasis-uncommunicated-incomplete — A staging FDG PET-CT shows an intensely FDG-avid primary right upper lobe mass with FDG-avid mediastinal and contralateral hilar nodal disease, and multiple FDG-avid hepatic and osseous lesions in keeping with widespread distant metastatic disease: distant metastasis auto-escalates classification to critical and follow-up to critical-alert regardless of the other axes; the result has not yet been recorded as communicated, no originating request is linked, and the clinical history, comparison, and impression sections are not yet completed while an urgent MDT discussion is arranged — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
A practitioner-completed administrative card that places a patient on a pharmacology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 pharmacology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 pharmacology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 pharmacology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A practitioner-completed administrative card that places a patient on a physical medicine and rehabilitation waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 physical medicine and rehabilitation referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 physical medicine and rehabilitation referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 physical medicine and rehabilitation referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Plastic surgery assessment evaluating reconstructive and aesthetic surgery candidates using ASA Physical Status Classification (I-V), wound classification, and surgical complexity scoring.
- elective-minor-low — Fit ASA I patient for a routine minor clean lesion excision, complexity 1, no comorbidities — low overall risk.
- asa3-urgent-high — ASA III patient with diabetes for an urgent major (complexity 3) reconstruction — high overall risk.
- emergency-trauma-critical — ASA IV emergency trauma referral with a dirty wound and complexity-4 reconstruction — critical overall risk.
A practitioner-completed administrative card that places a patient on a plastic surgery waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 plastic surgery referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 plastic surgery referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 plastic surgery referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A practitioner-completed administrative card that places a patient on a podiatric surgery waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 podiatric surgery referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 podiatric surgery referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 podiatric surgery referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A structured recovery-room record for patients emerging from anaesthesia or sedation. It captures serial post-operative observations — airway, breathing, circulation, consciousness, oxygen saturation, pain, and post-operative nausea and vomiting (PONV) — and computes a discharge-readiness score that tells the recovery team when the patient is safe to leave the post-anaesthesia care unit (PACU, also called the recovery room).
- day-case-street-fit — Uneventful day-case recovery: Aldrete 10/10 on room air and PADSS 10/10 — expect discharge-ready and street-fit.
- aldrete-nine-but-on-oxygen — Post-open-surgery patient at Aldrete 9/10 whose only lost point is the SpO2 parameter (still needs oxygen) — expect not-ready despite the >= 9 total, exercising the SpO2 gate.
- slow-emergence-hypoxic — Emergency-laparotomy patient with slow emergence: unresponsive to commands on activity, limited respiration, arousable only, hypoxic on oxygen (Aldrete 4/10) — expect not-ready with low parameter scores throughout.
Structured post-operative (operation note) report documenting the procedure, intra-operative findings, anaesthesia summary, specimens and implants, immediate recovery status, complications, and onward plan, with complication grading by the Clavien-Dindo classification.
- Uncomplicated elective laparoscopic cholecystectomy — ASA II day-case patient, 55-minute elective procedure, EBL 30 mL, awake and comfortable in recovery with normal observations, complete post-op plan. complicationsOccurred 'no' with an empty complications array. Expect overallGrade 'grade-0', complicationCount 0, firedRules []. Unpinned flags: none (no vital-sign, blood-loss, ASA, disposition or plan-gap trigger).
- Right hemicolectomy with ileus and wound infection - one ungraded entry — Non-critical edge case: ASA III, 190-minute elective procedure with three complication entries, the MIDDLE one left ungraded (grade ''). Entry 1 is post-operative ileus managed conservatively (grade-i), entry 2 is an undescribed observation with no grade chosen (skipped), entry 3 is superficial wound infection needing IV antibiotics (grade-ii). Expect overallGrade 'grade-ii', complicationCount 2, and firedRules with ids CD-1 and CD-3 (the CD-2 slot is consumed by the skipped entry). Unpinned flags: FLAG-ASA-III (medium), FLAG-DISP-HDU (medium) - no vital-sign or plan-gap triggers.
- Emergency laparotomy with return to theatre and multi-organ failure — Critical-highest persona: ASA IV emergency laparotomy for perforated diverticulitis with faecal peritonitis, 265 minutes, EBL 1800 mL with transfusion, hypotensive, tachycardic, hypoxic and hypothermic on ICU arrival. Three graded complications: transfusion for haemorrhage (grade-ii), return to theatre under GA for anastomotic bleeding (grade-iiib), and multi-organ dysfunction with ventilation + renal replacement therapy (grade-ivb). Expect overallGrade 'grade-ivb' (worst of orders 2, 4, 6), complicationCount 3, firedRules CD-1, CD-2, CD-3. Unpinned flags would be numerous: urgent FLAG-CD-IV, FLAG-BLOOD-MASSIVE, FLAG-VITAL-HYPOTENSION, FLAG-VITAL-HYPOXIA; high FLAG-CD-IIIB, FLAG-ASA-HIGH, FLAG-VITAL-TACHY, FLAG-VITAL-TACHYPNOEA, FLAG-DISP-ICU; medium FLAG-PROC-EMERGENCY, FLAG-DURATION-LONG, FLAG-VITAL-HYPOTHERMIA; low FLAG-PLAN-FOLLOWUP (follow-up plan intentionally blank).
Post-traumatic stress symptom screen based on the DSM-5-aligned PCL-5 (PTSD Checklist for DSM-5), used by clinicians to identify probable PTSD, monitor severity, and track response to trauma-focused therapy.
- minimal-below-cutoff — Mild residual symptoms after a road traffic collision: PCL-5 total 10 — Minimal band, below the provisional PTSD cut-off of 33; no DSM-5 pattern.
- moderate-probable-ptsd — Combat veteran meeting the provisional threshold: PCL-5 total 33 — Moderate band, at the cut-off of 33, DSM-5 symptom pattern satisfied (probable PTSD).
- severe-probable-ptsd — Assault survivor with pervasive symptoms: PCL-5 total 47 — Severe band, well above cut-off, DSM-5 symptom pattern satisfied (probable PTSD).
A UK NHS–aligned, clinician-driven pre-operative assessment that records objective findings (history, examination, vitals, laboratory results, imaging) and computes an ASA Physical Status grade (I–VI), a composite perioperative risk level, and a set of safety-critical flags. The output is a signed clinician report with an anaesthesia plan suitable for the pre-operative record.
- asa-1-low — Fit adult for elective minor day-case surgery, no comorbidities: computed ASA I, RCRI 0, STOP-BANG 0 — composite risk Low.
- asa-2-moderate — Controlled hypertension, well-controlled type-2 diabetes, current smoker and obesity (BMI 32) for elective intermediate surgery: computed ASA II — composite risk Moderate.
- asa-4-critical — Recent MI within 3 months with active angina, severe LV impairment (EF 25%), insulin-treated diabetes and creatinine 200 for emergency major-plus laparotomy: computed ASA IV with E suffix, RCRI 5 — composite risk at the top of the scale.
A UK NHS–aligned, clinician-driven pre-operative assessment that records objective findings (history, examination, vitals, laboratory results, imaging) and computes an ASA Physical Status grade (I–VI), a composite perioperative risk level, and a set of safety-critical flags. The output is a signed clinician report with an anaesthesia plan suitable for the pre-operative record.
- asa-1-low — Fit adult for elective minor day-case surgery, no comorbidities: computed ASA I, RCRI 0, STOP-BANG 0 — composite risk Low.
- asa-2-moderate — Controlled hypertension, well-controlled type-2 diabetes, current smoker and obesity (BMI 32) for elective intermediate surgery: computed ASA II — composite risk Moderate.
- asa-4-critical — Recent MI within 3 months with active angina, severe LV impairment (EF 25%), insulin-treated diabetes and creatinine 200 for emergency major-plus laparotomy: computed ASA IV with E suffix, RCRI 5 — composite risk at the top of the scale.
- asa-recent-stroke-tia-day-count-unrecorded — Elective carotid endarterectomy where the clinician has affirmed the stroke/TIA was recent (recentStrokeTia: 'yes') but has not yet entered the exact day count: pins the 2026-09-06 fail-safe fix — R-ASA-IV-02 fires and the case computes ASA IV rather than silently falling through to ASA I. See spec/index.md §3 and this file's top-level note.
A UK NHS–aligned, patient self-report pre-operative questionnaire that the patient (or their carer) completes before surgery. It collects patient-reported health data via a single-page, step-by-step wizard, computes an ASA (American Society of Anesthesiologists) Physical Status Classification grade, and flags safety-critical issues for anaesthetic planning.
- Healthy 34-year-old for elective day-case arthroscopy - ASA I — Baseline / best case: a never-smoker with no comorbidity, BMI 23.4 (70 kg / 173 cm), vigorous exercise (10 METs), occasional alcohol, no allergies, one uneventful previous anaesthetic, no airway predictors, not pregnant. Expect asaGrade 1, firedRules [] and additionalFlags [].
- 80-year-old on his birthday with IHD and an MI 20 weeks ago - rule gap, ASA II — Non-critical edge case. Born 1946-09-03, so on the frozen clock (2026-09-03) he is exactly 80 and AG-001 (> 80) is silent. Ischaemic heart disease with recentMI 'yes' at 20 weeks suppresses CV-003 (stable IHD) while CV-004 needs < 12 weeks, so NO cardiovascular rule fires for the IHD - yet FLAG-CARDIAC-002 'Recent MI (20 weeks ago)' still fires (high). Controlled hypertension fires CV-001; COPD 'yes' with copdSeverity '' fires nothing; type 2 diabetes with diabetesControl '' fires nothing; BMI 29.8 (86 kg / 170 cm) is just under OB-001; 'climb-stairs' = 4 METs is just outside FC-001; OSA on CPAP fires RS-006 and FLAG-OSA-001 '(on CPAP)'; a single mild penicillin rash gives FLAG-ALLERGY-001 only; loose crown gives FLAG-DENTAL-001. Expect asaGrade 2; firedRules CV-001 then RS-006; additionalFlags after the stable sort: FLAG-CARDIAC-002 (high), FLAG-ALLERGY-001 (medium, pushed before the cardiac flag but sorted after it), FLAG-OSA-001 (medium), FLAG-DENTAL-001 (low).
- Emergency laparotomy in a 68-year-old with multi-system disease, difficult airway and anaphylaxis - ASA IV — Critical / highest-severity persona: uncontrolled hypertension (CV-002), MI 6 weeks ago (CV-004 grade 4; CV-003 suppressed), NYHA IV heart failure (CV-007 grade 4), valvular disease (CV-008), AF (CV-009), pacemaker (CV-010), severe-persistent asthma (RS-002), severe COPD (RS-005), OSA without CPAP (RS-006), current smoker (RS-007), CKD stage 5 on haemodialysis (RN-002, RN-003), Child-Pugh C cirrhosis (HP-003 grade 4; HP-001 suppressed), poorly controlled insulin-treated T2DM (EN-002), hypothyroidism (EN-003), adrenal insufficiency (EN-004), previous stroke (NR-001), uncontrolled epilepsy (NR-003), von Willebrand disease (HM-001), warfarin (HM-002), anaemia (HM-004), BMI 42.5 (OB-002; 120 kg / 168 cm), unable to exercise = 1 MET (FC-001), heavy alcohol (SH-001); age 68 so AG-001 silent. Expect asaGrade 4 and 24 fired rules in that catalogue order. Airway: previous difficult airway, limited mouth opening, limited neck movement, Mallampati 4, cervical spine disease and rheumatoid arthritis; allergies penicillin (anaphylaxis, index 0) and latex (mild); family MH history; previous anaesthetic problem; GORD; recent URTI; loose teeth; emergency urgency. Expect 21 flags after the stable sort - 13 high in push order: FLAG-AIRWAY-001, -002, -003, -004 ('Mallampati Class 4'), FLAG-ALLERGY-ANAPH-0, FLAG-ANTICOAG-001 ('Warfarin'), FLAG-HAEM-001, FLAG-MH-001, FLAG-ANAES-001, FLAG-CARDIAC-001, FLAG-CARDIAC-002 ('6 weeks ago'), FLAG-ADRENAL-001, FLAG-EMERG-001; then 7 medium: FLAG-AIRWAY-005, FLAG-AIRWAY-006, FLAG-ALLERGY-001 ('2 allergy/allergies documented'), FLAG-GI-001, FLAG-OSA-001 ('(no CPAP)'), FLAG-URTI-001, FLAG-INSULIN-001; then low FLAG-DENTAL-001.
AHA PREVENT risk calculator predicting 10- and 30-year risk of total cardiovascular disease (and its subtypes atherosclerotic CVD and heart failure) in patients aged 30-79 without known CVD. Incorporates kidney function and optional metabolic factors as predictors.
- low-risk — Healthy 52-year-old woman with favourable lipids and normal blood pressure: estimated 10-year CVD risk 0.9% — Low category (< 5%).
- intermediate-risk — 62-year-old man with raised total cholesterol, low HDL and stage-1 hypertension: estimated 10-year CVD risk in the Intermediate category (7.5-19.9%).
- high-risk — 65-year-old man who smokes, with diabetes, stage-2 hypertension and obesity: estimated 10-year CVD risk in the High category (>= 20%).
A UK NHS–aligned obstetric ultrasound scan request (referral) that a clinician completes to request an ultrasound examination for a pregnant patient. It records the pregnancy dating, obstetric history, the requested examination, the clinical indication and specific question, symptoms and red flags, and the requested urgency — then computes a four-axis grading (appropriateness, gestational-age window fit, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the imaging department's triage and booking decision.
- routine-anomaly-screening-anomaly-scan-19-weeks-complete — Well-formed routine referral: a standard 20-week fetal anomaly scan, the anomaly scan type is the recommended (ideal) examination for the anomaly-screening indication, and at 19+3 weeks the gestation sits squarely within the anomaly scan's 18+0-20+6 window, no red-flag symptoms, every completeness field present — expect usually-appropriate + appropriate window fit + routine + accept.
- soon-bleeding-viability-scan-8-weeks-moderate-bleeding — Moderate vaginal bleeding at 8 weeks with no pain: a viability scan is the recommended (ideal) examination for the bleeding indication, and at 8+0 weeks the gestation sits within the viability scan's 6+0-10+6 window; the moderate bleeding itself auto-escalates triage to 'soon' regardless of the routine urgency requested, but — unlike heavy bleeding — moderate bleeding has no corresponding safety flag in this engine, so the triage escalation is unaccompanied by any flag — expect usually-appropriate + appropriate window fit + soon + accept, no flags.
- redirect-anomaly-screening-anomaly-scan-30-weeks-outside-window-incomplete — A missed booking anomaly scan now presenting at 30 weeks: the anomaly scan type is itself the recommended (ideal) examination for the anomaly-screening indication — there is no appropriateness mismatch — but at 30+0 weeks the gestation is far outside the anomaly scan's 18+0-20+6 window (and outside even the one-week borderline grace), so this engine's gestational-age-window axis independently forces `redirect`, recommending a growth scan instead; several administrative fields are not yet captured — expect usually-appropriate + outside-window fit (recommending growth) + routine + redirect, completeness below 100.
Antenatal evaluation covering pregnancy details, obstetric history, vital signs, laboratory results, and mental health screening with risk stratification.
- low-risk — Healthy pregnancy with a single prior caesarean as the only factor: cumulative risk score 1 — Low risk.
- moderate-risk — History of gestational diabetes plus a thyroid disorder: cumulative risk score 4 — Moderate risk.
- very-high-risk — Prior pre-eclampsia, chronic hypertension, raised blood pressure this visit, plus new visual disturbance and severe headache: cumulative risk score 13 — Very high risk.
Prescription request form collecting patient information, clinician details, medication and dosage, substitution options, and request type classification with priority urgency grading (Routine / Urgent / Emergency).
- Routine statin refill — A refill (not new) request with full patient and clinician contact details, medication/dosage/instructions all recorded, and every substitution option allowed. No rule fires, so priorityLevel defaults to routine with an empty audit trail and no flags.
- Urgent, brand-only levothyroxine with missing IDs — A new (not refill) prescription request for a medication the patient has a documented poor response to generics, so brand substitution is disallowed - urgent. Both the patient NHS number and the clinician's NHS employee number are left blank. Two rules fire (no-brand-substitution at urgent, new-prescription at routine), giving urgent overall. Two medium administrative flags fire for the two missing identifiers; nothing rises to high since contact phone/email, medication, and dosage are all present.
- Emergency request with no details completed — An emergency request called in by an ambulance crew with almost nothing else filled in: no patient contact details or NHS number, no clinician contact details or employee number, no medication name, dosage, or treatment instructions, no request date, and every substitution option disallowed. Eight rules fire (emergency plus all three substitution-restriction and all four completeness-gap rules at urgent), giving emergency overall - the emergency rule alone would have been enough, but the completeness gaps are recorded too. Eight flags fire: four high (emergency request with incomplete contact details, no substitutions permitted, missing medication name, missing dosage), three medium (missing clinician ID, missing patient ID, a refill-shaped request with no request date - here because isNewPrescription is 'no' despite the emergency additional-notes describing a fresh ambulance call), one low (no treatment instructions).
A practitioner-completed administrative card that places a patient on a preventive medicine waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 preventive medicine referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 preventive medicine referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 preventive medicine referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Inter-provider handover form for transferring a patient's care between clinicians, wards, or organizations, structured around the SBAR (Situation, Background, Assessment, Recommendation) framework with transfer-logistics capture.
- Complete handover, routine cardiology transfer — All mandatory and optional SBAR fields are filled, vital signs are all within normal range, the patient is stable and awake, urgency is routine, no escort/oxygen/cardiac-monitoring/infectious-precaution/falls/capacity flags are ticked, and the receiving-provider acknowledgement is fully completed and ticked. completenessLevel is Complete (35/35 mandatory, 46/46 total) with no flags.
- Partial handover, urgent orthopaedic transfer with an escort — All mandatory fields are satisfied (open tibial fracture transfer, urgent), but several optional fields are missing (ward, email, hospital number, next-of-kin, requested date/time, past medical history, recent investigations, vital signs, expected outcomes, pending results, estimated arrival) - completenessLevel is Partial (36/36 mandatory, 36/47 total). An escort is required with details recorded, satisfying the conditional LOG-04 rule. Two flags fire: urgent transfer urgency (high) and the clinical-escort requirement (medium); no vital-sign flags fire since none were recorded.
- Incomplete handover, emergent deteriorating patient with no acknowledgement — Emergent transfer for a rapidly deteriorating, unresponsive, unstable patient on anticoagulation with a suspected intracranial haemorrhage: multiple mandatory fields are missing (requesting-provider phone, receiving-provider role, patient NHS/hospital number, transfer type, infection status, stability notes despite clinicallyStable being 'no', ongoing care plan, transport mode, departure time), the receiving provider has not started any acknowledgement field at all (so the two-party acknowledgement rules never apply, and completeness never reaches even 'checking' them), and vital signs are critically abnormal across the board. completenessLevel is Incomplete (23/34 mandatory, 30/45 total). Sixteen flags fire: six urgent (emergent urgency, not clinically stable, unresponsive, critically low oxygen saturation, abnormal respiratory rate, high NEWS2), six high (hypotension, tachycardia, hyperpyrexia, infectious precautions, cardiac monitoring required, Mental Capacity Act concerns), three medium (oxygen required, escort required, falls risk), one low (acknowledgement not yet received despite the requesting provider having signed).
Comprehensive psychiatric evaluation using the GAF (Global Assessment of Functioning) Scale with mental status examination, risk assessment, and capacity evaluation.
- Superior functioning, no risk factors — Routine follow-up: no presenting-complaint severity recorded, no psychiatric history, a fully normal mental status exam, no risk-assessment items positive, minimal PHQ-9/GAD-7 scores, minimal alcohol use, full medication compliance, stable housing, and full decision-making capacity on a voluntary basis. No rule fires, so gafScore stays at the 100 default with an empty audit trail and no flags.
- Moderate depression with recent medication non-compliance — Mild-severity low mood for three weeks with a depressed mood on exam, but an otherwise normal mental status exam and no risk-assessment items positive. The patient stopped their sertraline two weeks ago due to nausea. Three rules fire (mild presenting complaint, depressed mood, medication non-compliance), each deducting 15 points for gafScore 55 (Moderate symptoms). One medium flag fires for the medication non-compliance.
- Involuntary admission, acute psychotic decompensation with imminent risk — Severe presenting complaint with three prior hospitalisations, two previous suicide attempts, and ongoing self-harm; flat affect, thought-blocking, command auditory hallucinations, impaired cognition, no insight, poor judgement; active suicidal ideation, plan, intent, and access to means, current self-harm, imminent violence risk, and safeguarding concerns (vulnerable adult with an abusive partner); PHQ-9 25, GAD-7 18, a positive mania screen alongside psychotic symptoms; an AUDIT score of 22 (firing BOTH the >=16 high-risk rule and the >=20 dependent rule simultaneously), daily cannabis and cocaine use, and alcohol withdrawal-seizure risk; three weeks off antipsychotic medication; homeless with a pending assault charge and financial difficulties; lacks decision-making capacity; admitted involuntarily. Thirty-one rules fire, deducting far more than 99 points, so gafScore clamps to the floor of 1. Sixteen flags fire: four urgent (suicidal ideation, plan, intent, imminent violence), eight high (access to means, both psychosis flags, involuntary status, withdrawal risk, current self-harm, safeguarding, capacity, previous suicide attempts), and three medium (medication non-compliance, mania screen positive, homelessness) — note the housing flag fires for 'homeless' specifically even though the score-side rule SOC-001 treats 'homeless' and 'temporary' identically.
A practitioner-completed administrative card that places a patient on a psychiatry waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 psychiatry referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 psychiatry referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 psychiatry referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
General psychological screening assessment that collects self-reported data on depression, anxiety, and stress symptoms using the DASS-21 instrument, computes severity categories per subscale, and flags safety-critical items (e.g. suicidal ideation) for clinician review.
- normal-across-subscales — Adjustment stress with sub-clinical mood: DASS-21 depression scaled 8, anxiety scaled 6, stress scaled 12 — all in the Normal range.
- moderate-across-subscales — Depressive-anxious presentation: DASS-21 depression scaled 16, anxiety scaled 12, stress scaled 22 — all in the Moderate range.
- extremely-severe-across-subscales — Severe distress presentation: DASS-21 depression scaled 30, anxiety scaled 22, stress scaled 36 — all in the Extremely Severe range.
A practitioner-completed administrative card that places a patient on a public health waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 public health referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 public health referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 public health referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A bedside rule-out screen for adults in whom a clinician already judges the pre-test probability of pulmonary embolism (PE) to be low. It records eight objective criteria — age, heart rate, oxygen saturation, unilateral leg swelling, haemoptysis, recent surgery or trauma, prior venous thromboembolism, and exogenous oestrogen use — and asks whether the clinician's gestalt pre-test probability is low. When all eight criteria are satisfied and the pre-test probability is low, the patient is PERC-negative: PE can be excluded without a D-dimer or imaging. If any criterion fails, or the pre-test probability is not low, the patient is PERC-positive and further workup (D-dimer and/or imaging) is warranted.
- perc-negative — Low gestalt pre-test probability, all eight criteria satisfied (young, normal vitals, no risk factors): PERC-negative — PE excluded without D-dimer or imaging.
- perc-positive-applicable — Low pre-test probability but one criterion fails (age 58): PERC-positive — the rule does not exclude PE; proceed to D-dimer / imaging.
- perc-positive-not-applicable — Pre-test probability not low: PERC does not apply — PERC-positive regardless of the eight criteria; continue the diagnostic pathway.
A UK NHS–aligned lung-function / spirometry test request (referral) that a clinician completes to request pulmonary function testing for a patient. It records the requested test, the clinical indication and specific question, relevant respiratory symptoms, smoking and inhaler background, and a focused safety / contraindication screen — then computes a four-axis grading (appropriateness, safety / contraindication, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the lung-function department's triage and booking decision.
- routine-suspected-asthma-spirometry-with-reversibility-complete — Well-formed routine referral: episodic wheeze and nocturnal cough, spirometry with reversibility is the recommended (ideal) test for the suspected-asthma indication, no forced-expiration or infection-control contraindications, every completeness field including height and weight present — expect usually-appropriate + ok safety + routine + accept.
- urgent-pre-operative-spirometry-recent-infection-caution — Pre-operative lung function assessment for major abdominal surgery in a patient with COPD: spirometry is the recommended (ideal) test for the pre-operative indication, and the indication itself auto-escalates triage to urgent (to avoid delaying surgery) regardless of the routine urgency requested; a recent respiratory infection 10 days ago independently forces a safety caution (defer until recovered), which is not severe enough to force redirect — expect usually-appropriate + caution safety + urgent + accept.
- redirect-breathlessness-full-lung-function-haemoptysis-incomplete — Progressive breathlessness with an episode of haemoptysis yesterday: full lung function is itself the recommended (ideal) test for the breathlessness indication — there is no appropriateness mismatch here — but haemoptysis of unknown origin is a forced-expiration contraindication, forcing the safety band to contraindicated and, ahead of any appropriateness or completeness check, this engine's `redirect` ('Defer / redirect') recommendation; the haemoptysis independently also forces urgent triage; several administrative fields are not yet captured — expect usually-appropriate + contraindicated safety + urgent + redirect, completeness below 100.
A UK NHS–aligned pulmonary function test (lung-function / spirometry) result (report) that a reporting clinician completes after a lung-function test has been performed. It is the result/report counterpart to Pulmonary Function Test Request (a referral): where the request captures why a test should be done, this form records what the test found and a structured interpretation. It records the performed test type and ATS/ERS quality grade, the clinical history, the measured spirometry and gas-transfer values (FEV1, FVC, FEV1/FVC ratio, PEF, DLCO), the structured ventilatory interpretation (pattern, severity, bronchodilator reversibility), the narrative and structured findings, the impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured lung-function report.
- normal-complete-study — Fully normal spirometry with no structured findings — every axis at baseline on a complete report.
- mild-obstruction-gold-1-minor — Mild airflow obstruction with FEV1 85% predicted (GOLD 1 band, >=80%) — minor severity, the GOLD-banded reportingCategory rather than the plain severity label.
- moderate-obstruction-graded-severity-actionable — Moderate airflow obstruction with FEV1 65% predicted (GOLD 2 band) and severity explicitly graded 'moderate' by the clinician — moderate abnormality severity via the graded-severity rule, and the abnormal-requiring-action flag correctly fires because the raw `severity` field itself equals 'moderate'.
- restriction-ungraded-severity-moderate-no-action-flag — Restrictive pattern present but the clinician left the `severity` field ungraded (empty) — this still computes abnormalitySeverity 'moderate' via the actionable-finding-without-graded-severity rule (R-SEV-MODERATE-02), but the abnormal-requiring-action flag does NOT fire, because flags.js checks the raw `severity === 'moderate'` input field rather than the computed output severity, and here the raw field is still ''. A real, verified discordance between Axis B's output and the flag set, distinct from the previous persona where severity was explicitly graded 'moderate'. The free-text reportingCategory field is also used verbatim since severity is unset.
- reduced-gas-transfer-only-minor-discordant-category — Isolated reduced gas transfer (low DLCO) with otherwise normal spirometry — classified abnormal via the dedicated reduced-gas-transfer rule (R-CLASS-ABNORMAL-02), a distinct path from the structured-finding branch since reducedGasTransfer is NOT one of hasAnyAbnormalFinding()'s own triggers. Severity grades minor. A second real discordance: because `airflowObstruction` is false and `severity`/`reportingCategory` are both left blank, reportingCategoryFor() falls through to its default and returns the literal string 'normal' even though the classification is 'abnormal' and severity is 'minor' — verified directly against reportingCategoryFor()'s source rather than assumed.
- sub-optimal-quality-no-impression-inconclusive — A sub-optimal-quality test (failed repeatability criteria) with no impression yet recorded — inconclusive on the combined sub-optimal-and-no-impression rule; raises the medium-priority inadequate-technique flag alongside missing-impression.
- unacceptable-quality-inconclusive — A technically unacceptable test (patient unable to complete a valid manoeuvre) — classified inconclusive regardless of whatever impression might be recorded, unlike the sub-optimal persona above which requires an empty impression; raises a high-priority inadequate-technique flag.
- unmarked-interpretation-default-inconclusive — A technically acceptable test where the reporting clinician recorded the raw measured values and a narrative but never explicitly ticked either 'normal spirometry' or any abnormal structured-finding box — a genuinely important, easy-to-miss default-state trap verified directly against classifyResult()'s source: because normalSpirometry defaults to false and stays false here, and no abnormal-finding box was ticked either, the study falls through every other branch to R-CLASS-INCONCLUSIVE-03 ('no structured finding was recorded and the study was not flagged as normal') and is classified inconclusive even though nothing about the measured values themselves is actually equivocal.
- severe-obstruction-gold-4-critical — Severe airflow obstruction with FEV1 25% predicted (GOLD 4, very-severe band) — the critical trigger (severe/very-severe obstruction or restriction), auto-escalating to critical-alert; not yet communicated.
Respiratory evaluation using GOLD (Global Initiative for Chronic Obstructive Lung Disease) staging with spirometry, exacerbation history, and functional assessment.
- GOLD I, Group A - mild, low symptom burden — FEV1 85% predicted with an obstructive ratio (0.65) gives GOLD I. CAT score 5 and mMRC grade 1 with no exacerbations in the past year keep symptom burden low and exacerbation history absent, so the ABCD group is A. No other rule or flag condition is met (ex-smoker, 10 pack-years, normal BMI, normal oximetry, no comorbidities). One fired rule (GOLD-001), no flags.
- GOLD II, Group B - moderate with cardiovascular comorbidity — FEV1 65% predicted with an obstructive ratio gives GOLD II; a CAT score of 15 (high symptom burden, but only one exacerbation last year and no hospitalisation) keeps exacerbation history low, so the ABCD group is B rather than E. Ischaemic heart disease is documented, and a 20-year foundry exposure is recorded. Three rules fire (GOLD-002, high symptom burden, cardiovascular comorbidity), all tied at stage 2. Two medium flags fire: occupational exposure and cardiovascular disease.
- GOLD IV, Group E - very severe with lung cancer and anaphylaxis history — FEV1 22% predicted with an obstructive ratio gives GOLD IV directly; CAT 28 fires BOTH the >=10 and >=20 symptom-burden rules simultaneously (they are independent conditions, not mutually exclusive tiers), and mMRC grade 4, copious sputum, 4 exacerbations with 2 hospitalisations and an ICU admission requiring intubation, long-term home oxygen, oral corticosteroids, a current 55-pack-year smoking history with ongoing coal-mining and biomass exposure, cardiovascular disease, diabetes, depression, Stage IIIA lung cancer, osteoporosis, a positive bronchodilator response, cachexia (BMI 15.6), a documented penicillin anaphylaxis, resting and exertional desaturation, and ADL dependence for bathing and dressing all independently reach GOLD IV or below. Twenty-two rules fire; the highest tie at stage 4 (spirometry, ICU admission, intubation, long-term oxygen, lung cancer, resting desaturation). Exacerbation history alone (4/year, 2 hospitalisations) puts the ABCD group at E. Twenty flags fire: ten high, nine medium, one low.
A primary-prevention risk calculator that estimates an adult's 10-year risk of a first cardiovascular disease (CVD) event — coronary heart disease, stroke, or transient ischaemic attack — from routinely available clinical data. It records demographic, lifestyle, comorbidity, and measurement inputs on a single continuous single-page wizard, applies the published QRISK3 Cox proportional-hazards model, and returns a 10-year CVD risk percentage, a risk band, and a heart age. A result of ≥ 10 % meets the NICE threshold at which a lipid-lowering statin (atorvastatin 20 mg) should be offered alongside lifestyle advice.
- low — Fit 42-year-old non-smoking woman, no comorbidities, favourable lipids and blood pressure: QRISK3 ~0.3% — low 10-year cardiovascular risk.
- raised — 62-year-old Pakistani man, moderate smoker with rheumatoid arthritis and a family history of CHD: QRISK3 ~15% — raised risk, statin discussion warranted.
- high — 64-year-old Indian man with type 2 diabetes, moderate smoking, treated hypertension and a family history of CHD: QRISK3 ~35% — high risk.
A bedside sepsis-risk screen for adults with suspected or confirmed infection. It records three objective clinical criteria — respiratory rate, mentation, and systolic blood pressure — scores each as 0 or 1, sums a total of 0–3, and flags the patient as higher risk of a poor outcome when the score is ≥ 2. A high score is not a diagnosis of sepsis; it is a prompt to escalate: perform a full Sequential Organ Failure Assessment (SOFA), start a sepsis workup, and obtain senior review.
- lower-score-0 — Normal respiratory rate, alert (GCS 15), normal blood pressure: qSOFA 0 — lower risk, continue standard monitoring.
- higher-score-2 — Tachypnoea (RR 24) and hypotension (SBP 96), still alert: qSOFA 2 — positive screen, higher risk of poor outcome.
- higher-score-3 — Tachypnoea (RR 28), altered mentation (GCS 13) and hypotension (SBP 88): qSOFA 3 — positive screen, escalate for sepsis workup.
A practitioner-completed administrative card that places a patient on a radiation oncology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 radiation oncology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 radiation oncology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 radiation oncology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A practitioner-completed administrative card that places a patient on a radiology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 radiology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 radiology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 radiology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A bedside stroke-recognition instrument for adults presenting acutely to the emergency department with suspected stroke or transient ischaemic attack. It first excludes two common stroke mimics — loss of consciousness / syncope and seizure activity — each subtracting a point, then records five new, acute-onset neurological signs — asymmetric facial weakness, asymmetric arm weakness, asymmetric leg weakness, speech disturbance, and visual field defect — each adding a point. The signed total runs from −2 to +5. A total greater than 0 indicates that stroke is likely and the acute stroke pathway should be activated; a total of 0 or below makes stroke unlikely but does not exclude it. Blood glucose must be measured and hypoglycaemia corrected before the score is interpreted, because hypoglycaemia is a treatable stroke mimic.
- stroke-unlikely-mimic — Transient collapse with loss of consciousness and no focal neurology: ROSIER -1 — stroke unlikely, consider a stroke mimic (syncope).
- stroke-likely-moderate — Acute facial and arm weakness with slurred speech, no mimic features: ROSIER 3 — stroke likely, activate the acute stroke pathway.
- stroke-likely-high — Dense hemiparesis with facial, arm and leg weakness, dysphasia and a visual field defect: ROSIER 5 — stroke very likely.
A UK personalized emergency care and treatment plan created through shared decision-making between a person and one or more clinicians. ReSPECT records a summary of what matters to the person, agreed clinical recommendations for their care in a future emergency in which they may be unable to make or express choices, an explicit cardiopulmonary resuscitation (CPR) recommendation, and agreed ceilings of treatment. It is a portable record that travels with the person across care settings.
- Complete plan - person with capacity, DNACPR agreed and discussed — An 84-year-old with end-stage COPD who has capacity and has agreed a comfort-focused plan with a do-not-attempt-CPR recommendation, discussed and signed by the consultant. All eight mandatory rules satisfied; the capacity-proxy slot does not apply (hasCapacity 'yes'), so 14 of 14 slots present -> 100%. Expect status 'complete', satisfiedCount 8, mandatoryCount 8, every firedRules entry satisfied true. Unpinned flags: none (CPR documented, cprDiscussed 'yes', signed and dated, review date 2027 is in the future, health summary present).
- Incomplete plan - lacks capacity, proxy documented, CPR recommendation not yet made — Non-critical edge case: a 79-year-old with advanced dementia who lacks capacity. The capacity assessment and welfare-attorney involvement are properly documented, so R-CAPACITY-01 is satisfied and the conditional capacity-proxy slot both applies AND is present. Only the CPR recommendation is missing (the family meeting is booked for tomorrow). Seven of eight rules satisfied -> 'incomplete'; 14 of 15 applicable slots present -> round(93.33) = 93. Expect satisfiedCount 7 with only R-CPR-01 unsatisfied. Unpinned flags: F-CPR-NOT-DOCUMENTED-001 (high) only.
- Unsafe draft - unsigned, no CPR decision, capacity gap, lapsed review date — Critical-highest persona: a draft started on the acute medical unit by a night nurse and never completed. Identifier blank (R-IDENTITY-01 fails), no health summary, no recommended/not-recommended interventions despite a priority balance (R-RECOMMENDATIONS-01 fails), no CPR recommendation, person recorded as lacking capacity with no assessment and involvement 'person' (R-CAPACITY-01 fails), and no signature or date (R-SIGN-OFF-01 fails). Only R-PREFERENCES-01 and R-CEILINGS-01 are satisfied -> satisfiedCount 2, 'incomplete'; 8 of 15 applicable slots present (name, DOB, preferences, priorityBalance, ceilings, hasCapacity, clinicianName, clinicianRole) -> round(53.33) = 53. Unpinned flags would be five: high F-CPR-NOT-DOCUMENTED-001, F-CAPACITY-MISSING-001, F-NO-SIGNATURE-001; medium F-REVIEW-DATE-PASSED-001 (review date 2025-01-15 is in the past on any run from 2026 onward); low F-HEALTH-SUMMARY-MISSING-001. F-DNACPR-NO-DISCUSSION-001 does not fire because no CPR decision exists to discuss.
Renal (kidney) assessment aligned with KDIGO 2012/2024 CKD classification, stratifying chronic kidney disease by GFR category (G1-G5) and albuminuria category (A1-A3) to produce a composite risk level that drives management and referral.
- low-risk-g1a1 — Preserved eGFR 95 with normal albuminuria (ACR 1.5): KDIGO G1 A1 — low composite risk.
- high-risk-g3a-a2 — Moderately reduced eGFR 50 with moderate albuminuria (ACR 12): KDIGO G3a A2 — high composite risk.
- very-high-risk-g4a3 — Severely reduced eGFR 22 with severe albuminuria (ACR 45): KDIGO G4 A3 — very high composite risk, nephrology referral.
Read-and-acknowledge privacy notice covering the use of patient data for research and service-planning purposes, aligned with UK GDPR, the Data Protection Act 2018, the Common Law Duty of Confidentiality, and the NHS National Data Opt-Out framework.
- Fully acknowledged, both opt-outs opted in — Organisation and recipient name recorded, the acknowledgement checkbox is checked, both Type 1 and National Data Opt-Out preferences are 'opt-in', and the typed name/date are both present. completeness 100%, status Complete, no fired rules, no flags.
- Declined acknowledgement with a Type 1 opt-out — Recipient details are complete and the recipient typed both their full name and today's date, but explicitly left the acknowledgement checkbox unchecked and elected a Type 1 opt-out (National Data Opt-Out left opted in). Only REQ-AK-001 fires (agreed===false counts as empty), giving completeness 86% and status Incomplete. Two high flags fire: acknowledgement not given, and the Type 1 opt-out election.
- Blank notice with an implausibly short typed name — Recipient details, both opt-out preferences, and the typed date are all blank; the acknowledgement checkbox is unchecked; the only text entered is an implausibly short typed name ('Al', 2 characters) - which satisfies the bare non-empty REQ-AK-004 rule but is independently flagged as incomplete. Six of seven rules fire (everything except REQ-AK-004), giving completeness 14% and status Incomplete. Three flags fire: two high (acknowledgement not given; recipient details missing organisation and recipient name), one medium (the implausibly short typed name).
A practitioner-completed administrative card that places a patient on a respiratory medicine waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 respiratory medicine referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 respiratory medicine referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 respiratory medicine referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Respiratory evaluation using the MRC (Medical Research Council) Dyspnoea Scale with cough assessment, pulmonary function, and exposure history.
- MRC 1, no respiratory disease — Self-reported MRC grade 1 (breathless only on strenuous exercise), no respiratory history, no pulmonary function results recorded (fev1FvcRatio deliberately left unanswered - see the engine-quirk note above), normal oximetry, never smoked, independent functional status. No rule fires, giving the MRC 1 default with an empty audit trail and no flags.
- MRC 3, moderate obstruction on oral steroids — Self-reported MRC grade 3 (walks slower than peers), FEV1 65% predicted (moderate obstruction), an obstructive-range FEV1/FVC ratio of 0.68 (which also fires PF-004 under the quirk above), a short course of oral corticosteroids, an ex-smoker with 20 pack-years, and an intermediate STOP-BANG score of 4. Four rules fire (MRC-002, moderate FEV1, the ratio quirk, oral corticosteroids), the highest tied at grade 3. Two medium flags fire: intermediate OSA risk and oral corticosteroid use.
- MRC 5, very severe multi-morbid respiratory failure — Self-reported MRC grade 5 (too breathless to leave the house) with orthopnoea and PND, haemoptysis, very severe airflow obstruction (FEV1 25%) with critically low oxygen saturation (82%) and reduced DLCO, severe COPD with bronchiectasis and idiopathic pulmonary fibrosis, untreated previous TB, recurrent pneumonia, a previous pulmonary embolism, long-term home oxygen and oral corticosteroids, current smoking with 45 pack-years and both quarry-dust and asbestos exposure, a documented penicillin anaphylaxis, morbid obesity (BMI 41.9), a high STOP-BANG score of 6 with daytime somnolence, and dependent functional status. Nineteen rules fire; the highest tie at grade 5 (self-reported MRC-004, very severe FEV1). Fourteen flags fire: six high (haemoptysis, both respiratory-failure flags, previous PE, unclear TB treatment status, the anaphylaxis history), six medium (oxygen dependence, intermediate/high OSA risk, ILD, asbestos exposure, oral corticosteroids, the drug-allergy count), two low (daytime somnolence, occupational exposure).
A clinician-issued medical certificate authorizing an employee's return to work after illness, injury, or extended absence. The form captures the clinician's assessment, the period of validity, the patient's fitness status, any workplace adjustments or restrictions, and a phased-return plan where applicable. The output is a signed Statement of Fitness for Work (aligned with the UK NHS Med 3 "Fit Note"), suitable to give to the employee and to share with the employer's occupational-health team.
- fit-routine — Fully recovered office worker returning to unrestricted duties; no adjustments — fit for work, routine restriction priority.
- may-be-fit-restricted — Warehouse worker recovering from a back injury, phased return with no heavy lifting and amended duties (grade-3 restrictions) — may be fit for work, restricted restriction priority.
- not-fit — Employee signed off entirely following surgery, no workplace adjustments yet applicable — not fit for work, routine restriction priority.
Rheumatological evaluation using the DAS28 (Disease Activity Score in 28 joints) with joint assessment, laboratory results, and extra-articular features.
- remission — No tender or swollen joints, low ESR, minimal patient-global score: DAS28-ESR ~1.6 — clinical remission.
- moderate — Six tender, four swollen joints with raised ESR and moderate patient-global score: DAS28-ESR ~4.9 — moderate disease activity.
- high — Sixteen tender, twelve swollen joints with markedly raised ESR and high patient-global score: DAS28-ESR ~7.2 — high disease activity.
A practitioner-completed administrative card that places a patient on a rheumatology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 rheumatology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 rheumatology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 rheumatology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A risk-stratification instrument that estimates the risk of rebleeding and mortality in adults presenting with acute upper gastrointestinal (GI) bleeding. It has two forms that share the same clinical variables:
- low — Young patient (45), no shock, no comorbidity; endoscopy shows Mallory-Weiss/no lesion, no high-risk stigmata: full Rockall 0 — low risk, consider early discharge.
- intermediate — 72-year-old with tachycardia (HR 105), no major comorbidity; endoscopy shows another diagnosis with no high-risk stigmata: full Rockall 3 — intermediate risk, admit for observation.
- high — 82-year-old, hypotensive (SBP 90), severe comorbidity; endoscopy shows upper-GI malignancy with high-risk stigmata: full Rockall 11 — high risk of rebleeding and death.
Seasonal mood disorder evaluation using SPAQ Global Seasonality Score (GSS) and PHQ-9 depression severity screening with combined severity classification.
- no-sad — Low seasonality (SPAQ 6) and minimal depressive symptoms (PHQ-9 0), no risk: combined severity no-sad.
- moderate — High seasonality (SPAQ 12, sad-likely) with moderate depression (PHQ-9 12), no suicidality: combined severity moderate.
- critical — Marked seasonality (SPAQ 18) with severe depression (PHQ-9 22) and active suicidal ideation: combined severity critical — urgent risk management.
GLP-1 receptor agonist eligibility screening for semaglutide therapy, evaluating absolute/relative contraindications, metabolic profile, and treatment planning.
- eligible — BMI 32.9 for weight management, no contraindications on screening: Eligible for semaglutide therapy.
- conditional — BMI 34.7 with a history of gallstones (relative contraindication): Conditional — proceed with clinician review and monitoring.
- ineligible — Personal history of medullary thyroid carcinoma (absolute contraindication): Ineligible for semaglutide.
A UK NHS–aligned, clinician-driven Sequential Organ Failure Assessment (SOFA) score that records objective physiological and laboratory findings for six organ systems and computes an organ-dysfunction score for each system (0–4), a total SOFA score (0–24), the change from a prior assessment (delta-SOFA), a mortality-risk band, and a set of safety-critical flags. The output is a signed clinician report suitable for the intensive-care record and for sepsis screening under the Sepsis-3 definition.
- low — Mild single-system derangements across all six organs (total SOFA 3): low predicted mortality band.
- high — Multi-organ dysfunction — ventilated P/F 180, platelets 45, bilirubin 60, MAP 65, GCS 13, creatinine 200 (total SOFA 12): high predicted mortality band.
- extreme — Severe multi-organ failure — P/F 80 ventilated, platelets 15, bilirubin 250, high-dose noradrenaline, GCS 6, creatinine 450 (total SOFA 23): extreme predicted mortality, Sepsis-3 positive vs baseline 2.
Sleep quality evaluation using the PSQI (Pittsburgh Sleep Quality Index) covering sleep habits, latency, duration, efficiency, disturbances, and daytime dysfunction.
- good-sleeper — Falls asleep quickly, sleeps 7.5 h with high efficiency and few disturbances: PSQI global 2 — good sleep quality.
- poor-sleeper — Fair sleep, 40 min to fall asleep, 6 h sleep at 75% efficiency with some disturbances and daytime dysfunction: PSQI global 9 — poor sleep quality.
- severe-disturbance — Poor sleep, 75 min to fall asleep, 4 h sleep at 44% efficiency, nightly disturbances, nightly hypnotics and marked daytime dysfunction: PSQI global 21 — severe sleep disturbance.
A UK NHS–aligned sleep study / polysomnography request (referral) that a clinician completes to request a sleep investigation for a patient, mainly to diagnose or exclude obstructive sleep apnoea (OSA). It records the requested study type, the clinical indication and specific question, the Epworth Sleepiness Scale and STOP-BANG scores, anthropometry (BMI, neck circumference), symptoms and risk factors, and the requested urgency — then computes a four-axis grading (appropriateness, clinical priority, request completeness, and triage) plus a set of safety-critical flags. The output is a vetting report that supports the sleep service's triage and booking decision.
- routine-suspected-osa-home-sleep-apnoea-test-complete — Well-formed routine referral: witnessed apnoeas, a home sleep apnoea test is the recommended (ideal) study for the suspected-osa indication; Epworth (9) and STOP-BANG (2) are both recorded but below the abnormal/high-risk thresholds, so neither the +1 evidence bonus nor the -1 no-evidence penalty applies, every completeness field present — expect usually-appropriate (score 8, unadjusted) + low priority + routine + accept.
- urgent-driver-assessment-home-sleep-apnoea-test-severe-sleepiness-high-priority — HGV driver reporting severe excessive daytime sleepiness and falling asleep at the wheel: a home sleep apnoea test is the recommended (ideal) study for the driver-assessment indication, and the high Epworth (17) supports the OSA-pathway request, nudging the score from 8 to 9; the combination of occupational driving with excessive sleepiness, and the severe sleepiness alone, each independently force both urgent triage (DVLA fast-track) and high clinical priority, regardless of the routine urgency requested — expect usually-appropriate (score 9) + high priority + urgent + accept.
- query-referrer-suspected-narcolepsy-other-study-mismatch-incomplete — Excessive daytime sleepiness with cataplexy triggered by laughter: an 'other' study was requested even though multiple sleep latency testing (with preceding polysomnography also ideal) is the recommended investigation for the suspected-narcolepsy indication, a clear mismatch that forces appropriateness to usually-not-appropriate and the recommendation to query-referrer regardless of completeness; suspected-narcolepsy is not an OSA-pathway indication, so no Epworth/STOP-BANG score adjustment applies here, but the missing Epworth still costs completeness and raises its own flag; several administrative fields are not yet captured — expect usually-not-appropriate + low priority + routine + query-referrer, completeness below 100.
A UK NHS–aligned sleep study / polysomnography result (report) that a reporting clinician completes after a sleep investigation has been performed. It is the result/report counterpart to Sleep Study Test Request (a referral): where the request captures why a study should be done, this form records what the study found and a structured interpretation. It records the performed study type and adequacy, the clinical history, the key quantitative metrics (recording and sleep time, apnoea-hypopnoea index, oxygen desaturation index, minimum and time-below-90% SpO2, mean heart rate), the OSA severity band, the narrative and structured findings, the impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured sleep-study report.
- normal-home-sleep-apnoea-test-complete — A home sleep apnoea test for reported snoring with no witnessed apnoeas or daytime sleepiness: AHI 3.2 (normal range), no significant desaturation, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-severe-osa-no-desaturation-major-not-critical-complete — Attended polysomnography for loud snoring, witnessed apnoeas, and excessive daytime sleepiness confirms severe obstructive sleep apnoea (AHI 42) without significant desaturation (minimum SpO2 88%): `hasCriticalFinding` requires severe OSA together with significant desaturation specifically, so this grades major severity via the AHI severity band alone but never trips the critical predicate — it escalates only to 'urgent' follow-up, not 'critical-alert'; report complete — expect abnormal classification + major severity (reportingCategory Severe OSA (AHI >=30)) + 100% completeness + urgent follow-up + specialist-referral.
- critical-severe-osa-significant-desaturation-uncommunicated-incomplete — Polysomnography shows very frequent obstructive apnoeas and hypopnoeas (AHI 65, severe) with profound and sustained oxygen desaturation — minimum SpO2 71%, 95 minutes spent below 90% SpO2: severe OSA together with significant desaturation is a critical finding that auto-escalates classification to critical and follow-up to critical-alert regardless of the other axes, with the recommended action naming an urgent CPAP / ventilation review and DVLA driving implications; the result has not yet been recorded as communicated, no originating request is linked, and the clinical history, comparison, and impression sections are not yet completed while urgent CPAP initiation is arranged — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
A structured clinical progress note that records a single patient encounter in the four canonical SOAP sections — Subjective, Objective, Assessment, and Plan — and grades the note for documentation completeness rather than computing a clinical risk score. The engine checks the note against a set of required SOAP components, classifies it as Complete, Partial, or Incomplete, reports a completeness percentage, and raises safety flags (for example: an assessment or plan is missing, red-flag symptoms are documented without a corresponding plan, no safety-netting advice is recorded, or abnormal vitals are not addressed).
- complete-tonsillitis-home-managed — Full four-section SOAP note for home-managed tonsillitis with explicit safety-netting (required because managedAtHome=yes) — expect complete / 100%.
- partial-copd-no-safety-netting — Telephone COPD exacerbation managed at home with abnormal vitals addressed in the plan but NO safety-netting recorded — expect partial with the no-safety-netting flag.
- incomplete-septic-red-flags — Home visit for an acutely confused, febrile, hypotensive patient: red flags and abnormal vitals documented subjectively/objectively but Assessment and Plan never written — expect incomplete with the missing-assessment, missing-plan, and red-flag/abnormal-vitals flags.
Pre-participation physical evaluation (PPE) for athletes and sportspeople, aligned with the AAP/AAFP/ACSM/AMSSM/AOSSM/AOASM Pre-Participation Physical Evaluation (5th ed.) monograph, to clear participation, identify risk, and plan follow-up.
- cleared — Healthy athlete, no red flags on any screen, full range of motion and normal strength: cleared for sport.
- conditional — Well-controlled chronic illness reported (grade 2 finding), no higher-grade red flags: conditional clearance pending confirmation of optimised management.
- not-cleared — Exertional chest pain reported (grade 4 red flag): not cleared — cardiology evaluation required before participation.
A practitioner-completed administrative card that places a patient on a stomatology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 stomatology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 stomatology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 stomatology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Acute stroke evaluation using the NIHSS (National Institutes of Health Stroke Scale) with symptom onset timing, consciousness, motor/sensory examination, and risk factors.
- Resolved TIA - no residual deficit, out of window — Margaret Hollis, 68, walked in the day after a 20-minute episode of right-hand clumsiness that fully resolved. Symptoms recorded as 'improving', onset 2026-09-02T15:00Z (21 hours before the frozen clock, outside the 4.5-hour window). Every NIHSS item examined and scored 0; no vascular risk factors, no anticoagulant or antiplatelet, no allergies. Hand-derived: nihssScore 0, category 'No stroke symptoms', firedRules [], additionalFlags [].
- Moderate left hemiparesis - NIHSS 15, ataxia untestable, exactly 4.5 h — Derek Ashworth, 74, brought by ambulance with fluctuating left-sided weakness; onset 2026-09-03T07:30Z, exactly 4.5 hours before the frozen clock (inclusive boundary of the thrombolysis window). Limb ataxia left null (untestable because of the weakness) - the grader excludes it. Items: loc 1, locQ 1, locC 0, gaze 1, visual 1, facial 2, leftArm 2, rightArm 0, leftLeg 2, rightLeg 0, ataxia null, sensory 2, language 1, dysarthria 1, extinction 1. Hand-derived: nihssScore 15 (top of the moderate band, so NO FLAG-SEVERE-001), category 'Moderate stroke', 11 firedRules in item order (NIHSS-1A, 1B, 2, 3, 4, 5A, 6A, 8, 9, 10, 11 - 1C, 5B, 6B are 0 and 7 is null). loc 1 and language 1 stay below their flag thresholds; only left-sided motor so no bilateral flag. Hypertension and hyperlipidaemia yes, aspirin 75 mg antiplatelet, one mild penicillin allergy. Flags after stable sort: FLAG-THROMBOLYSIS-001 (urgent, '4.5 hours ago'), FLAG-HTN-001, FLAG-ANTIPLATELET-001, FLAG-ALLERGY-001 (medium, in push order), FLAG-LIPIDS-001 (low) - 5 flags.
- Severe brainstem syndrome - NIHSS 33 on apixaban, sudden onset 1.2 h — Patricia Okonkwo-Reid, 81, known AF on apixaban with a previous stroke, sudden collapse at 2026-09-03T10:48Z (72 minutes = 1.2 h before the frozen clock). Items: loc 2, locQ 2, locC 2, gaze 2, visual 2, facial 3, leftArm 3, rightArm 3, leftLeg 3, rightLeg 2, ataxia 0 (scored 0 as untestable per NIHSS convention), sensory 2, language 3, dysarthria 2, extinction 2. Hand-derived: nihssScore 33, 'Severe stroke', 14 firedRules (every item except NIHSS-7). Three allergies with the anaphylaxis one at index 1 (so the id is FLAG-ALLERGY-ANAPH-1, not -0). Flags after stable sort, 15 in total - urgent: FLAG-ONSET-001, FLAG-SEVERE-001 ('NIHSS score 33'), FLAG-BILATERAL-001, FLAG-THROMBOLYSIS-001 ('1.2 hours ago'), FLAG-ALLERGY-ANAPH-1; high: FLAG-LOC-001, FLAG-LANGUAGE-001, FLAG-AFIB-001, FLAG-ANTICOAG-001 ('Apixaban 5 mg twice daily'); medium: FLAG-PREV-STROKE-001, FLAG-HTN-001, FLAG-DIABETES-001, FLAG-SMOKE-001, FLAG-ALLERGY-001 ('3 allergy/allergies documented.'); low: FLAG-LIPIDS-001. Antiplatelets 'no' so no antiplatelet flag.
A comprehensive, patient-centred medication review for people with problematic polypharmacy, frailty, one or more long-term conditions, or high-risk medicines. It records the patient's problems and priorities, every medicine with its indication and adherence, opportunities to deprescribe, the patient's anticholinergic burden, high-risk-medicine checks, monitoring that is due, and the shared decisions and agreed actions reached with the patient. It then reports a review status (Complete / Incomplete), a polypharmacy and anticholinergic burden indicator, and a set of flags that prompt action.
- Complete review - three regular medicines, no burden — Hannah Whitlock, 40-64, fit, seen face to face at the GP practice by the PCN clinical pharmacist. Three regular medicines (levothyroxine, sertraline, colecalciferol), all ACB 0, indications recorded, adherence good, TFT monitoring up to date, no STOPP/START criteria, overdueMonitoringCount 0, every required section filled and reviewCompleted 'yes'. Hand-derived: medicineCount 3, regularMedicineCount 3, ACB 0, polypharmacyBand 'none', anticholinergicBand 'low', burdenBand 'low', reviewStatus 'complete', stopFlags [], startFlags [], exactly the 4 summary firedRules, flaggedIssues [].
- Threshold polypharmacy - 5 regular, ACB 2, one adherence 'unknown' — Ravi Chandrasekaran, 75-84, mild frailty, telephone review. Six medicines but only five regular (salbutamol is PRN), so regularMedicineCount 5 sits exactly on the polypharmacy threshold; ACB totals exactly 2 (carbamazepine 2, apixaban left null which contributes 0) so anticholinergicBand stays 'low' and burdenBand is 'moderate'. Amlodipine adherence is 'unknown' (patient unsure over the phone) - the clinician marked reviewCompleted 'yes' and every section is filled, but the engine still returns 'incomplete' because 'unknown' fails the every-medicine check, while NOT raising an adherence-concern flag. Apixaban is high-risk with its indication recorded, so no high-risk flag. One START criterion on the salbutamol row (inhaled corticosteroid), no STOPP, monitoring all up to date, overdueMonitoringCount 0. Hand-derived: medicineCount 6, regular 5, ACB 2, 'polypharmacy' / 'low' / 'moderate', reviewStatus 'incomplete', stopFlags [], startFlags [Salbutamol], firedRules = 4 summary + R-START-01 (5 rows), flaggedIssues = F-START-OMISSION-001 (medium, '1 START criterion / criteria identified (Salbutamol)') then F-INCOMPLETE-001 (low) - 2 flags.
- Care-home hyperpolypharmacy - ACB 7, lithium and warfarin unmonitored — Eileen Prendergast, 85 and over, severe frailty, care-home resident reviewed on a home visit. Eleven medicines, ten regular (paracetamol PRN, ACB null contributes 0). ACB = amitriptyline 3 + oxybutynin 3 + furosemide 1 = 7. STOPP criteria on amitriptyline and oxybutynin; START (folic acid) on the methotrexate row. Monitoring gaps: lithium and warfarin both monitoringRequired 'yes' / upToDate 'no', plus overdueMonitoringCount 2. Adherence partial (lithium) and poor (warfarin). High-risk without indication: warfarin (indication blank) and methotrexate (indication text present but indicationRecorded 'no' - the OR quirk); oxybutynin also has indicationRecorded 'no' but is not high-risk so it is not listed. reviewCompleted 'no'. Hand-derived: medicineCount 11, regular 10, ACB 7, 'hyperpolypharmacy' / 'significant' / 'high', reviewStatus 'incomplete', stopFlags [Amitriptyline, Oxybutynin], startFlags [Methotrexate], firedRules = 4 summary + 2 x R-STOPP-01 + 1 x R-START-01 (7 rows). flaggedIssues, all seven detectors, stable-sorted: F-HIGH-ACB-001 ('score 7'), F-STOPP-TRIGGER-001 ('2 ... (Amitriptyline, Oxybutynin)'), F-MISSING-MONITORING-001 ('2 medicine(s) with monitoring not up to date; 2 overdue monitoring item(s)'), F-HIGH-RISK-NO-INDICATION-001 ('2 ... (Warfarin, Methotrexate)') [high]; F-START-OMISSION-001 ('(Methotrexate)'), F-ADHERENCE-CONCERN-001 ('2 ... (Lithium carbonate, Warfarin)') [medium]; F-INCOMPLETE-001 [low].
Substance use disorder evaluation using AUDIT (Alcohol Use Disorders Identification Test) and DAST-10 (Drug Abuse Screening Test) with comprehensive biopsychosocial assessment.
- low-risk-social-drinker-no-drug-use — Occasional social drinking (AUDIT 4: 2-4 times a month, 1-2 drinks, rare binge), no drug use at all, no withdrawal, mental-health, physical, or social risk factors — only the AUDIT low-risk band rule fires — expect auditScore 4 (low-risk), dastScore 0 (no-problems), overallRisk low, no flags.
- high-risk-harmful-drinking-daily-cannabis-no-grade-4-rule — Harmful drinking (AUDIT 17) with daily cannabis use for over ten years, moderate depression, and fatty liver, but no withdrawal, no overdose, no suicidality, no IV use, and no safeguarding issue: the strongest rule that fires is grade 3 (harmful AUDIT band, daily use), so 'critical' is never reached — 'high' comes from the AUDIT total crossing 16 and the grade-3 rules together, with the DAST only moderate (4) — expect auditScore 17 (harmful), dastScore 4 (moderate), overallRisk high, and no flags (every flag needs a grade-4-class finding or a specific medium-tier item this case lacks).
- critical-active-withdrawal-overdose-suicidality-needle-sharing — Alcohol dependence (AUDIT 32) with severe poly-drug use (DAST 10), currently in withdrawal with a seizure history, two previous opioid overdoses, current suicidal ideation with prior attempts, IV use with needle sharing, hepatitis C, severe depression, homelessness, and no social support: every route to 'critical' is hit at once (multiple grade-4 rules, AUDIT >= 20, DAST >= 9) — expect auditScore 32 (dependence-likely), dastScore 10 (severe), overallRisk critical, twenty-one fired rules, and eight high-priority plus three medium-priority flags.
Sundowner syndrome (sundowning) evaluation using Cohen-Mansfield Agitation Inventory (CMAI) scoring and Neuropsychiatric Inventory (NPI) for behavioural symptoms in elderly patients, particularly those with dementia.
- mild-sundowning — Occasional early-evening restlessness, redirectable: CMAI 35 — mild severity band; NPI 12 mildly elevated.
- moderate-sundowning — Daily late-afternoon agitation needing intervention: CMAI 67 — moderate severity band; NPI 33 moderately elevated.
- severe-sundowning — Aggressive evening behaviour posing a safety risk: CMAI 97 — severe severity band; NPI 68 markedly elevated across multiple domains.
SCORE2-Diabetes predicts 10-year risk of fatal and non-fatal cardiovascular disease in individuals with type 2 diabetes without prior CVD, aged 40-69 years. It extends the SCORE2 model with diabetes-specific predictors (HbA1c, eGFR, and age at diagnosis). Reference: <https://www.mdcalc.com/calc/10510/score2-diabetes>.
- low-well-controlled-no-rules-fire — Recently diagnosed type 2 diabetes, well controlled on metformin: HbA1c 48 mmol/mol, systolic 128, LDL 2.1, HDL 1.3, eGFR 88, ACR 1.2, BMI 25.7 (derived from 172 cm / 76 kg, no override), never-smoker, moderately active, retinopathy screen normal, 6 years' duration — none of the twenty rules fire and no flag applies — expect riskCategory low, no fired rules, no flags.
- high-many-medium-rules-no-high-rule — Long-standing type 2 diabetes with above-target but not very poor control (HbA1c 62), stage 1 hypertension on treatment (152/92), LDL 3.4, low HDL for a female (1.0), triglycerides 2.8, moderate CKD (eGFR 52) with albuminuria (ACR 4.5) and no ACE inhibitor/ARB, BMI 33.1, current smoker, sedentary, background retinopathy, and a family history of premature CVD — twelve medium/low rules fire but no high rule (no established CVD, systolic < 180, HbA1c < 75, eGFR >= 30, retinopathy not proliferative, duration 12 years) — expect riskCategory high (not veryHigh), with the BP-not-at-target, albuminuria-without-ACEi/ARB, and current-smoker flags.
- very-high-established-cvd-multiple-high-rules — Type 2 diabetes for 22 years with a previous MI, atrial fibrillation, systolic 184 (hypertensive-crisis range) despite treatment, HbA1c entered as 10.2 % (converted to 88.0 mmol/mol, crossing both the >= 75 rule and the >= 86 flag), eGFR 24 with heavy albuminuria (ACR 35, on an ARB), total cholesterol 8.4, proliferative retinopathy, absent foot pulses with a prior ulcer, BMI 40.8, current dyspnoea, and — because of statin intolerance and no SGLT2i/GLP-1 — the cardioprotective-therapy gaps: seven high rules fire alongside seven medium/low ones — expect riskCategory veryHigh, and seven high-priority plus three medium-priority flags; metformin is 'no' but the first-line-metformin flag is correctly suppressed by eGFR < 30.
A practitioner-completed administrative card that places a patient on a thoracic surgery waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 thoracic surgery referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 thoracic surgery referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 thoracic surgery referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A bedside risk-stratification tool for adults presenting with unstable angina (UA) or non-ST-elevation myocardial infarction (NSTEMI). It records seven clinical criteria, awards 1 point for each criterion that is present, sums a total of 0–7, and maps that total to the 14-day risk of a composite adverse event — all-cause death, new or recurrent myocardial infarction, or severe recurrent ischaemia requiring urgent revascularization. A higher score identifies patients who benefit most from an early invasive strategy and more intensive antithrombotic therapy.
- low-risk — Over-65 patient with chest pain but no other TIMI features and normal markers: TIMI 1 — low 14-day risk.
- intermediate-risk — Multiple coronary risk factors with recurrent angina and a raised troponin: TIMI 3 — intermediate 14-day risk.
- high-risk — Elderly patient with known coronary disease, multiple risk factors, prior aspirin, recurrent angina and ST deviation: TIMI 6 — high 14-day risk, early invasive strategy.
A UK NHS–aligned toxicology / poisons / therapeutic-drug-level blood-test request (referral) that a clinician completes to request one or more toxicology assays — paracetamol, salicylate, alcohol, drugs-of-abuse screen, lithium, digoxin, antiepileptic drug levels, carboxyhaemoglobin, heavy metals, or a named specific drug level. It records the requested assays, the clinical indication, the suspected agent and ingestion timing, whether the exposure is a deliberate overdose, and the requested urgency — then computes a four-axis grading (appropriateness, ingestion-timing validity, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the laboratory's and toxicology team's triage decision.
- routine-therapeutic-drug-monitoring-lithium-level-complete — Well-formed routine referral: routine 3-monthly lithium trough level, the lithium assay is a first-line assay for the therapeutic-drug-monitoring indication, timing (12 hours post last dose) is well clear of the early-sampling caution window, every completeness field present — expect usually-appropriate + ok timing + routine + accept.
- stat-suspected-overdose-paracetamol-salicylate-unknown-timing-caution — Found unresponsive at home with empty paracetamol and aspirin packets: paracetamol and salicylate levels are both first-line assays for the suspected-overdose indication, and the deliberate overdose (and the patient being symptomatic) each independently force stat triage regardless of the routine urgency requested; the exact ingestion time is unclear, so the paracetamol assay's timing band is caution (not invalid) — caution has no dedicated safety flag in this engine and does not block acceptance — expect usually-appropriate + caution timing + stat + accept, completeness below 100 (missing ingestion time).
- query-referrer-suspected-overdose-paracetamol-early-invalid-timing-incomplete — Vomiting after a paracetamol overdose 90 minutes ago: the paracetamol assay is itself a first-line assay for the suspected-overdose indication — there is no appropriateness mismatch here — but a level taken 1.5 hours post-ingestion is before the UK nomogram's 4-hour interpretation threshold, forcing the timing band to invalid, which this engine's `deriveRecommendation` treats as forcing query-referrer just like an appropriateness mismatch would; the patient being symptomatic independently forces stat triage; several administrative fields are not yet captured — expect usually-appropriate + invalid timing + stat + query-referrer, completeness below 100.
A UK NHS–aligned toxicology / poisons / therapeutic-drug-level test result (report) that a reporting clinician completes after a toxicology assay has been performed. It is the result/report counterpart to Toxicology Test Request (a referral / vetting form): where the request captures which assays should be done and whether they are appropriate and well timed, this form records what the assays found — the measured result values — and a structured interpretation. It records the specimen condition, the clinical history and suspected agent, the assay levels (paracetamol, salicylate, ethanol, lithium, digoxin, carboxyhaemoglobin, a drugs-of-abuse screen, and a named specific drug), the paracetamol-nomogram interpretation, the overall result status, the narrative findings and impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured toxicology report.
- paracetamol-above-treatment-line-critical — Paracetamol level plotted above the MHRA nomogram treatment line at 6 hours post-ingestion — the textbook toxic-result trigger; classification critical, severity major, follow-up critical-alert with an explicit NAC (N-acetylcysteine) recommendation; not yet communicated.
- toxic-level-present-non-paracetamol-critical — A digoxin level explicitly flagged toxicLevelPresent, unrelated to paracetamol — confirms the critical/major/critical-alert path is reachable for any analyte via the generic toxicLevelPresent boolean, with the reportingCategory correctly resolving to the generic 'toxic-range' label (not the paracetamol-specific one) and the generic (non-NAC) antidote wording in the recommended action.
- lithium-severely-toxic-now-correctly-critical — FIXED 2026-09-06 (was 'lithium-severely-toxic-not-critical-classification-gap', a real, verified engine gap): a severely toxic lithium level (3.2 mmol/L, more than double the 1.5 mmol/L threshold) with neither toxicLevelPresent nor overallResultStatus ticked used to leave resultClassification 'normal' and followUpUrgency only 'urgent' (not 'critical-alert'), even though abnormalitySeverity correctly graded 'major' via R-SEV-MAJOR-02 — classifyResult() and gradeFollowUp() only checked hasToxicResult(), not the separate over-toxic-threshold check gradeSeverity() already used. Fixed by adding the same three over-threshold conditions to isCriticalResult() (deliberately not folded into hasToxicResult() itself, which would have made R-SEV-MAJOR-02 unreachable dead code). Now correctly resultClassification 'critical', followUpUrgency 'critical-alert', with F-CRITICAL-RESULT-001/002 firing alongside F-URGENT-REFERRAL-001.
- carboxyhaemoglobin-toxic-now-correctly-critical — FIXED 2026-09-06 (was 'carboxyhaemoglobin-toxic-not-critical-classification-gap', a real, verified engine gap, the same class as the lithium persona above): a toxic carboxyhaemoglobin level (>=10%) with neither toxicLevelPresent nor overallResultStatus ticked used to leave resultClassification 'normal' and followUpUrgency only 'urgent', despite abnormalitySeverity correctly grading 'major' via R-SEV-MAJOR-02. Fixed the same way: isCriticalResult() now independently checks the over-threshold condition. Now correctly resultClassification 'critical', followUpUrgency 'critical-alert', with F-CRITICAL-RESULT-001/002 firing alongside F-URGENT-REFERRAL-001.
- salicylate-toxic-now-correctly-critical — FIXED 2026-09-06 (was 'salicylate-toxic-completely-unflagged-classification-gap', the most severe instance of this engine gap: unlike the lithium/carboxyhaemoglobin personas, F-URGENT-REFERRAL-001's own hand-rolled condition previously omitted salicylate entirely, so a toxic salicylate level had no safety net of any kind): a toxic salicylate level (>=300 mg/L) with neither toxicLevelPresent nor overallResultStatus ticked used to leave resultClassification 'normal', followUpUrgency only 'urgent', AND raised no flag at all — completely invisible to a clinician scanning fired rules and flags, despite abnormalitySeverity correctly grading 'major' via R-SEV-MAJOR-02. Fixed by adding the over-threshold check to isCriticalResult() and adding salicylate to F-URGENT-REFERRAL-001's own condition (it already imported the SALICYLATE_TOXIC_MG_L constant for gradeSeverity's use). Now correctly resultClassification 'critical', followUpUrgency 'critical-alert', with F-CRITICAL-RESULT-001/002 firing alongside F-URGENT-REFERRAL-001.
- insufficient-specimen-inconclusive — An insufficient specimen volume for the requested panel — classified inconclusive regardless of any partial results; raises the high-priority inadequate-technique flag.
- no-result-value-no-status-inconclusive — A satisfactory specimen but nothing has been recorded yet — no assay result value and no overall status — classified inconclusive on the 'nothing to interpret' rule (distinct from the insufficient-specimen path above, which is about specimen adequacy rather than missing data); raises the low-priority missing-measurement flag.
- drugs-of-abuse-screen-abnormal-moderate — A positive drugs-of-abuse screen with the clinician recording an overall 'abnormal' status, no toxic level — classification abnormal, severity moderate (via the abnormal-status rule rather than a toxic threshold), follow-up recommended; raises the abnormal-requiring-action flag.
- paracetamol-below-treatment-line-minor-severity-falls-to-routine — Paracetamol level plotted below the MHRA nomogram treatment line, a reassuring result — classification 'normal' (the same as a completely blank study) but abnormalitySeverity resolves to 'minor' rather than 'none' (R-SEV-MINOR-01), a distinct 'normal but minor' pairing from the lithium/carboxyhaemoglobin/salicylate gap personas above (which were 'normal but major'). A second real, verified engine characteristic: gradeFollowUp() has no explicit branch for severity 'minor' at all (unlike every sibling test-result engine authored earlier this session, which all had an explicit minor -> 'recommended, per local pathway' branch) — it simply falls through to the routine default (R-FU-ROUTINE-01), so this reassuring-but-not-blank result gets exactly the same follow-up urgency as a fully normal study.
A practitioner-completed administrative card that places a patient on a tropical medicine waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 tropical medicine referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 tropical medicine referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 tropical medicine referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A UK NHS–aligned serum tumour-marker blood-test request (referral) that a clinician completes to request one or more serum tumour markers for a patient. It records the requested markers, the clinical indication, relevant history, any known cancer site and prior marker value, and the requested urgency — then computes a four-axis grading (appropriateness, interpretation safety, request completeness, and urgency / triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the laboratory's and requesting team's decision to accept, query, redirect, or reject the request.
- routine-cancer-monitoring-ca15-3-with-baseline-complete — Well-formed routine referral: known breast cancer 18 months post-treatment, CA15-3 matches the cancer-monitoring indication, a previous value and date are recorded so there is a baseline for trend interpretation, every completeness field present — expect usually-appropriate + ok interpretation + routine + accept.
- two-week-wait-suspected-malignancy-ca125-on-treatment-caution — New-onset bloating and abdominal distension: CA125 matches the suspected-malignancy indication and, per NICE NG12, the CA125-for-suspected-malignancy pattern itself auto-escalates triage to two-week-wait regardless of the routine urgency requested; the patient being currently on treatment (hormone replacement therapy) independently forces an interpretation caution (levels may reflect treatment timing rather than disease activity) — not severe enough to force redirect — expect usually-appropriate + caution interpretation + two-week-wait + accept.
- redirect-screening-high-risk-psa-misuse-incomplete — A 'well man' PSA check requested as broad screening rather than for a specific clinical indication: PSA nominally matches the screening-high-risk indication in the marker-to-indication map, but this engine forces broad screening itself to usually-not-appropriate regardless of that per-marker match. FIXED 2026-09-06: `deriveRecommendation` used to check the generic `usually-not-appropriate` appropriateness band before the `misuse-risk` interpretation band, so `redirect` was unreachable — every screening-misuse case (which always forces both bands together, since interpretationBand's misuse-risk is driven by the exact same screeningMisuse flag as appropriatenessBand) always resolved to the generic `query-referrer` first. Reordered so `misuse-risk` is checked first; this persona now correctly recommends `redirect` rather than `query-referrer`. Several administrative fields are not yet captured — expect usually-not-appropriate + misuse-risk interpretation + routine + redirect, completeness below 100.
- no-marker-selected-otherwise-complete-reject — Fully completed referral in every other respect — clinician, patient, indication, clinical details, and triage all present — but no tumour marker checkbox was ticked at all, so there is nothing for the lab to test. Distinct from a marker/indication mismatch (query-referrer) or screening misuse (redirect): nothing was actually requested, so the vetting desk rejects the request outright rather than querying or redirecting it. Expect appropriatenessScore 1, usually-not-appropriate, and reject.
A UK NHS–aligned serum tumour-marker test result (report) that a reporting clinician completes after one or more serum tumour markers have been measured. It is the result/report counterpart to Tumor Marker Test Request (a referral): where the request captures which markers to order and whether the request is appropriate, this form records the measured result values and a structured interpretation. It records the performed assay and specimen condition, the clinical history and any known cancer site, the measured value of each marker, a comparison with the previous value and trend, the interpretive narrative and impression, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured laboratory-medicine report.
- normal-psa-screening-complete — Routine PSA screening in an asymptomatic 55-year-old man with no urinary symptoms or family history of prostate cancer: PSA within the age-specific normal range, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-stable-elevated-ca125-moderate-not-critical-complete — On-treatment CA125 monitoring for known stage III epithelial ovarian cancer shows a markedly elevated but stable value (420 IU/mL, essentially unchanged from 410 IU/mL 4 weeks ago): `hasActionSignal` (markedlyElevated OR a rising trend) classifies abnormal and grades moderate severity regardless of the trend, but `isCriticalResult` requires a reported-critical status or a germ-cell AFP/beta-hCG pattern — neither applies here, since the trend is stable, not rising — so this never reaches critical-alert; report complete — expect abnormal classification + moderate severity (reportingCategory markedly-elevated) + 100% completeness + urgent follow-up + repeat-marker (aligned 2026-09-06 with every sibling *-test-result engine; was 'urgent-review' before the fix, which made moderate severity read as more alarming than major).
- critical-germ-cell-afp-pattern-uncommunicated-incomplete — Markedly elevated AFP (3500 ng/mL, reference <10) with a modestly elevated beta-hCG (180 IU/L) and raised LDH, a pattern highly suggestive of a non-seminomatous germ-cell tumour: AFP at or above the 1000 ng/mL germ-cell critical threshold auto-escalates classification to critical and follow-up to critical-alert regardless of the other axes; the result has not yet been recorded as communicated, no originating request is linked, and the clinical history and impression sections are not yet completed while urgent staging and MDT referral are arranged — expect critical classification + major severity + 60% completeness + critical-alert follow-up + urgent-review.
A UK NHS–aligned assessment of a digital health technology against the NHS England Digital Technology Assessment Criteria (DTAC). A commissioner, procurement lead or assurance team records, for each of 47 criteria in seven sections (company information, value proposition, clinical safety, data protection, technical security, interoperability, usability and accessibility), whether the supplier's evidence shows the criterion is met, partially met, not met or not applicable. The engine computes a per-section result, an overall outcome (meets, conditional, does-not-meet or incomplete) and a list of flagged issues, and the wizard produces a signed assessment report.
- all-met — Every criterion met with a review date set: outcome meets, no flags.
- not-a-medical-device-meets — Non-device wellbeing app: medical-device criterion not applicable, rest met; outcome meets.
- conditional-partial-dpia — One mandatory criterion (DPIA) partially met, rest met: outcome conditional.
- advisory-not-met-still-meets — Advisory criteria not met do not fail the assessment: outcome meets.
- does-not-meet-security — No penetration test and no MFA: outcome does-not-meet with critical security flags.
- does-not-meet-clinical-safety — Medical device with no Clinical Safety Officer and no hazard log.
- does-not-meet-accessibility — Fails WCAG AA and has no accessibility statement.
- incomplete-blank — Nothing rated yet: outcome incomplete.
- incomplete-one-unanswered — All met except one unanswered mandatory criterion: outcome incomplete.
A UK NHS–aligned general (non-obstetric) diagnostic ultrasound request (referral) that a clinician completes to request an ultrasound examination — abdominal, pelvic, renal-tract, hepatobiliary, small-parts (thyroid, scrotum, breast), soft-tissue, vascular (Doppler, DVT, carotid), or musculoskeletal. It records the requested examination, the clinical indication and specific question, relevant history, preparation requirements, and the requested urgency — then computes a four-axis grading (appropriateness, preparation / technical suitability, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the imaging department's triage and booking decision.
- routine-suspected-gallstones-liver-biliary-fasting-flagged-complete — Well-formed routine referral: recurrent right-upper-quadrant pain after fatty meals, a liver/biliary ultrasound is the recommended (ideal) examination for the suspected-gallstones indication, fasting is correctly flagged as required (matching what a liver/biliary scan needs), every completeness field present — expect usually-appropriate + ok suitability + routine + accept.
- emergency-suspected-aaa-abdomen-fasting-not-flagged-caution — Sudden severe back and abdominal pain with a pulsatile abdominal mass: an abdominal ultrasound is the recommended (ideal) examination for the suspected-aaa indication, and the red flag itself auto-escalates triage to emergency regardless of the routine urgency requested; there was no time to fast the patient, so the request does not flag fasting required even though an abdominal scan usually needs it — this forces a suitability caution (not the more severe 'limited' band), which is non-blocking — expect usually-appropriate + caution suitability + emergency + accept.
- redirect-abdominal-pain-abdomen-high-bmi-limited-incomplete — Vague generalised abdominal discomfort in a patient with a raised BMI: an abdominal ultrasound is itself the recommended (ideal) examination for the abdominal-pain indication — there is no appropriateness mismatch, and fasting is correctly flagged — but a BMI of 38 (>= the 35 body-habitus threshold) on this deep region independently forces the suitability band to 'limited', which is this engine's distinctive trigger for the `redirect` recommendation ('Redirect / amend preparation'), overriding the 'ok' fasting outcome directly rather than just adding a caution; several administrative fields are not yet captured — expect usually-appropriate + limited suitability + routine + redirect, completeness below 100.
A UK NHS–aligned general (non-obstetric) ultrasound result (report) that a reporting clinician completes after a diagnostic ultrasound examination has been performed. It is the result/report counterpart to Ultrasound Test Request (a referral): where the request captures why a scan should be done, this form records what the scan found and a structured interpretation. It records the performed examination (body region and laterality), diagnostic adequacy, the clinical history, the narrative and structured findings, the largest lesion measurement, the impression, an optional structured-reporting category, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured ultrasound report.
- normal-abdominal-ultrasound-complete — A normal abdominal ultrasound for non-specific abdominal discomfort: liver, gallbladder, pancreas, spleen, and kidneys normal in size and echotexture, no mass, cyst, gallstones, hydronephrosis, free fluid, or organomegaly, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-large-indeterminate-hepatic-mass-major-not-critical-complete — A liver ultrasound for deranged liver function tests and right upper quadrant discomfort shows a well-defined, heterogeneous 35mm right hepatic lobe mass with no biliary dilatation, ascites, DVT, or aneurysm: the 30mm large-lesion threshold (R-SEV-MAJOR-02) is a dedicated severity trigger entirely separate from `hasCriticalFinding` (DVT present or aneurysm only), so this grades major severity but escalates only to 'urgent' follow-up, never critical-alert; report complete — expect abnormal classification + major severity (reportingCategory large-lesion) + 100% completeness + urgent follow-up + specialist-referral.
- critical-extensive-lower-limb-dvt-uncommunicated-incomplete — A left leg venous Doppler for acute calf swelling and pain shows non-compressible, echogenic thrombus within the common femoral and popliteal veins with absent flow, in keeping with an extensive acute left lower-limb DVT: DVT present is a critical structured finding that auto-escalates classification to critical and follow-up to critical-alert regardless of the other axes; the result has not yet been recorded as communicated, no originating request is linked, and the clinical history, comparison, and impression sections are not yet completed while urgent anticoagulation is arranged — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
Prepare to register a birth in England and Wales (GOV.UK "Register a birth") and order the birth certificate from the General Register Office (GRO). The form is a single continuous single-page wizard that collects the child, the mother, the second parent and the basis for recording them, the informant and identity evidence, and the certificate order. Its engine is a completeness and validity engine, not a clinical score: it classifies the application as ready to submit, incomplete, needs additional evidence, or out of scope, and raises flagged issues for the statutory deadline, the informant, the unmarried-father rules, and the required evidence.
- Ready: married parents, mother registers within 42 days — Married parents; the mother registers 12 days after the birth at the local register office with a passport and orders two standard certificates. Expect ready-to-submit, 12 days, not late, no missing items, and no flags.
- Ready: unmarried parents register together; twins; no red book — Unmarried parents register jointly (the father's name goes on the entry), twins, red book not brought. Expect ready-to-submit with only the low-priority multiple-birth and red-book flags.
- Incomplete: missing child forenames, mother details, informant and delivery — Several required items are blank (forenames, mother's name, maiden surname and address, informant name, registration date, delivery address, payment). Expect incomplete with a missing-required flag.
- Needs evidence: unmarried father named with no valid basis — Unmarried parents, father included, but the basis is none and the mother registers alone. Expect needs-additional-evidence with the paternity-route flag.
- Needs evidence: 63 days after birth, one secondary document, photocopies — Registration 63 days after the birth; only one secondary identity document and not originals. Expect needs-additional-evidence, late registration yes, with the late, identity-evidence and originals flags.
- Out of scope: birth in Scotland — The birth took place in Scotland, which has its own register. Expect out-of-scope with the out-of-scope flag.
- Out of scope: stillbirth — The child was born dead after the 24th week. Expect out-of-scope (a stillbirth is registered separately).
- Ready: female couple, statutory declaration, 40 days — Unmarried female couple treated at a UK licensed clinic; the second mother is recorded through a signed statutory declaration held by the informant. Registration is 40 days after the birth, inside a week of the deadline. Expect ready-to-submit with the deadline-approaching flag.
- Needs evidence: male couple without a parental order — A male couple with a statutory declaration instead of a parental order, document not in hand, the father informant. Expect needs-additional-evidence with paternity-route and paternity-evidence flags.
- Needs evidence: grandmother not present at the birth — The informant is the child's grandmother, who was not present, and the parents are able to register. Expect needs-additional-evidence with the informant-not-qualified flag.
- Needs evidence: more than 12 months after the birth — Registration 396 days after the birth. Expect needs-additional-evidence and late registration yes with the Registrar General's authority wording.
- Incomplete: dates inconsistent — Registration date before the birth and the mother's date of birth after the child's. Expect incomplete with two date-inconsistent flags.
- Ready: unmarried mother registers alone, no certificate, within 42 days — The mother registers alone with the father's details left off, orders no certificate, 37 days after the birth. Expect ready-to-submit with the unmarried-father and deadline-approaching flags.
- Needs evidence: joint registration but the mother attends alone, payment declined — Unmarried parents choose joint registration but only the mother is the informant; card payment not confirmed. Expect needs-additional-evidence with the paternity-joint and certificate-payment flags.
- Needs evidence: female couple without licensed clinic treatment — Unmarried female couple, joint registration, but no licensed-clinic parenthood agreement. Expect needs-additional-evidence with the paternity-clinic flag.
- Needs evidence: mother-only with a second parent; bystander informant — Parents recorded as mother only yet a second parent is included, and the informant is someone present at the birth while the parents are able to register. Expect needs-additional-evidence with the mother-only and parents-able flags.
- Needs evidence: father informant with no second parent recorded — Married parents but the informant is the father while no second parent is recorded. Expect needs-additional-evidence with the informant-second-parent flag.
A single-page, step-by-step application to a local council in England for a Council Tax discount, exemption, disregard or reduction. It captures the claim type (single person discount, 50% all-disregarded discount, student exemption, severe mental impairment, disabled band reduction, care-leaver relief or Council Tax Reduction), the applicant and property (band A to H), the occupant roster, the supporting evidence, the effective date and the declaration.
- Single person, likely eligible — Applicant lives alone in a Band C main home, applies for the 25% single person discount from the application date, accepts every declaration. Expect likely-eligible, 1 counted adult, 25-percent-discount and no flags.
- Single person, second adult listed — Applicant claims the single person discount but a partner who counts as an adult also lives there. Expect likely-ineligible (2 counted adults, outcome none) and the adult-count-mismatch flag.
- Student household exemption, likely eligible — Applicant and a flatmate are both full-time students, the course is 36 months at 25 hours a week with the certificate held, and the flatmate's evidence is held. Expect likely-eligible, 0 counted adults, full-exemption, and no flags.
- Student exemption, short course and a working adult — The claim is a student exemption but a working adult lives in the home, and the student course is 6 months at 10 hours a week with no certificate. Expect likely-ineligible with adult-count-mismatch and student-evidence flags.
- Severe mental impairment, evidence outstanding — Claim for the severe mental impairment disregard: the doctor's certificate is held but the qualifying benefit is not yet confirmed, the occupant has no evidence recorded, and the duty and fraud declarations are not accepted. Expect incomplete with smi-evidence, disregard-evidence, duty-to-report-changes and fraud-warning flags.
- Severe mental impairment, likely eligible — Certificate and qualifying benefit both held, the severely mentally impaired occupant has evidence held, declarations all accepted. Expect likely-eligible, smi-disregard, no flags.
- Disabled band reduction, Band A — A wheelchair user lives in a Band A home with extra indoor space for the wheelchair; it is the disabled person's main home. Expect likely-eligible, band-reduction and the low band-a-percentage flag.
- Disabled band reduction, no adaptation and not main home — Claim for the disabled band reduction with no qualifying adaptation, and the property is not the main home. Expect likely-ineligible with disability-adaptation and not-main-residence flags.
- Care leaver aged 26 — Care leaver relief claimed by a 26-year-old with local-authority proof held. Expect likely-ineligible and the care-leaver-age flag.
- Care leaver aged 22, likely eligible — Care leaver relief with proof held and age 22. Expect likely-eligible, care-leaver-relief, no flags.
- Council Tax Reduction, backdated and incomplete — A Council Tax Reduction claim backdated two months with no billing authority or band given. Expect incomplete with the backdating, means-tested and incomplete-application flags.
- Fifty percent discount, all disregarded — Applicant is a full-time student living with their under-18 sibling whose date of birth fits. Every resident is disregarded, so 0 counted adults. Expect likely-eligible, 50-percent-discount and no flags.
- Occupant age conflicts with status — Single person discount claimed. A listed occupant is marked under 18 but was born in 1990, so the roster is inconsistent; the occupant does not count as an adult. Expect likely-eligible with the age-status-mismatch flag.
- Single person, not the main home — The property is a second home, so no discount applies. Expect likely-ineligible with the not-main-residence flag.
- Single person, backdated — Single person discount requested from three months before the application, all details complete. Expect likely-eligible with the backdating flag.
Registering a death in England and Wales after a doctor has completed the medical certificate of cause of death (MCCD): the 5-day deadline, the qualified informant, medical examiner confirmation, coroner involvement, the certificate for burial or cremation, Tell Us Once, and ordering certified copies of the death certificate. A single continuous single-page wizard checks whether the death is ready to register and raises flagged issues.
- Ready to register, on track — Expected hospital death; medical examiner confirmed 2026-09-01, assessed 2026-09-02 (1 day elapsed); not a coroner case; son present at the death is a qualified informant; appointment booked, documents to hand, cremation planned, five copies to be bought at registration. Expect ready-to-register, on-track, and no flags.
- Ready but due soon, loose ends — Confirmed 2026-08-30, assessed 2026-09-03: 4 of 5 days used so the deadline is due-soon. No appointment booked, no documents to hand, disposal undecided, no copies planned. Expect ready-to-register, due-soon, with due-soon, appointment, documents, disposal-undecided and copies flags.
- Ready but overdue — Confirmed 2026-08-25 and still unregistered on 2026-09-03: 9 days, past the 5-day limit. The informant cannot give all of the deceased's particulars. Expect ready-to-register, overdue, with overdue and particulars flags.
- Registered in time, complete — Confirmed 2026-08-29 and registered 2026-09-01 (3 days). Burial certificate issued, Tell Us Once reference received, three copies ordered online with a GRO index reference and priority service. Expect registered, registered-in-time, and no flags.
- Registered late, loose ends — Confirmed 2026-08-20 and registered 2026-08-30 (10 days, late). The burial certificate has not been issued, no Tell Us Once reference was recorded, and two copies are to be ordered online without a GRO index reference. Expect registered, registered-late, with late-registration, disposal-certificate, Tell Us Once and GRO index flags.
- Referred to coroner, pending — The death was reported to a coroner, an inquest has been opened and the coroner's certificate has not arrived. Registration waits and the clock is paused. Priority service is requested by post (not available). Expect referred-to-coroner-pending, paused-coroner, with coroner-pending, copies and priority flags.
- Coroner released, ready — The coroner investigated, released the death with no inquest and the registrar has the coroner's certificate; no medical examiner confirmation is needed. Expect ready-to-register, clock not started, with only the coroner-released flag.
- Incomplete, wrong jurisdiction and informant — Death in Scotland, MCCD not received, medical examiner not yet confirmed, and the informant is a neighbour who does not qualify. Expect incomplete with jurisdiction, MCCD, medical-examiner and informant flags and the matching blocking rules.
- Blank state — Nothing answered. Expect incomplete: name and date of death, jurisdiction, coroner answer, MCCD, medical examiner and informant rules all fire; only the copies and appointment flags are raised.
A completeness and time-gate checker for applying for a divorce (or the dissolution of a civil partnership) in England and Wales under the no-fault regime of the Divorce, Dissolution and Separation Act 2020. It follows a case through its three stages: the application (form D8 or online), the conditional order (form D84, formerly the decree nisi) and the final order (form D36, formerly the decree absolute), which is what ends the marriage and produces the divorce paperwork.
- Ready sole application, no flags — Sole divorce application at the application stage: married 2018, certificate original in English, England and Wales residence and domicile on both sides, service by email, no children, no financial order intended, fee paid. Expect 'ready-to-apply', jurisdiction met, earliest date 2019-06-09, no rules and no flags.
- Ready joint dissolution with children agreed and financial order outstanding — Joint application to dissolve a civil partnership; two children under 18 with agreed arrangements; a financial order is intended but not yet applied for. Expect 'ready-to-apply' with only the medium financial-order reminder.
- One-year rule not met — Marriage on 2025-11-20 and the check on 2026-09-03: under one year. Expect 'not-eligible-yet' (the gate takes precedence), earliest date 2026-11-20 and the high one-year-rule flag.
- Exactly one year: boundary is eligible — Marriage on 2025-09-03 and the check on 2026-09-03 is the first anniversary, on which an application may be made. Residence is a 12-month sole-applicant ground only. Expect 'ready-to-apply'.
- Foreign certificate, no translation, address unknown, fee unpaid — Married in Poland; certificate not in English and no certified translation; name changed with no proof; the other spouse's address is unknown; fee unpaid; children under 18 with arrangements not agreed. Expect 'incomplete' with certificate-translation, name-proof, service-address, children and fee flags.
- Certificate not held and no jurisdiction ground — The marriage certificate is not held and neither spouse is resident or domiciled in England and Wales. Expect 'incomplete' with the high certificate and jurisdiction flags.
- Joint application despite domestic-abuse risk, relationship not recognized — A joint application with a declared risk of domestic abuse, a marriage that is not legally recognized and no stated breakdown. Expect 'incomplete' with the abuse and relationship-status flags.
- Conditional order inside the 20-week reflection period — Application issued 2026-05-01; the check on 2026-09-03 is before 2026-09-18 (issue + 140 days), and the other spouse has not returned the acknowledgement. Expect 'not-eligible-yet', earliest 2026-09-18, the reflection and acknowledgement flags.
- Conditional order ready after 20 weeks — Application issued 2026-03-01; 20 weeks ended 2026-07-19; the acknowledgement was returned. Expect 'ready-to-apply' and no flags.
- Conditional order stage, issue date missing — The conditional-order stage with no issue date: the gate cannot be tested, so the missing date makes it 'incomplete'.
- Final order inside the 6 weeks and 1 day wait — Conditional order made 2026-08-10; the final order cannot be applied for before 2026-09-22; a financial order is intended and not applied for. Expect 'not-eligible-yet', earliest 2026-09-22, the final-order-wait flag and the high financial-order flag.
- Final order ready, financial order applied — Conditional order made 2026-06-01; 43 days ended 2026-07-14; a financial order has been applied for. Expect 'ready-to-apply' and no flags.
- Final order delayed more than 12 months, unexplained — Conditional order made 2025-06-01; the 12 months ended 2026-06-01 and the delay is not explained. Expect 'incomplete' with the medium final-order-delay flag.
Confidential medical information — neurological conditions for driving fitness assessment.
- Complete - single transient global amnesia, no risk answers — Joanna Pritchard, 55, of Cardiff, declares one episode of transient global amnesia (Q1 'other condition') with brain surgery 'not applicable', last seen by her GP, and answers No to every risk question (blackouts, seizures, VP shunt, daily-living help, double vision, eyesight, adaptations). No medication taken (default blank entries row left in place). Authorisation accepted with e-correspondence consent 'yes' and email for both contact preferences. Hand-derived: applicable rules = PD 6 + HC 4 + Q1-01/Q1-04 + Q2-01/Q2-02 + Q3-01 + Q4-01 + Q7-01 + Q8-01 + Q9-01 + Q10-01 + Q11-01 + Q12-01 + AUTH-01..06 = 28, all satisfied, complete true, missing [], 13 section buckets, flaggedIssues [].
- First-ever post-traumatic seizure - two fields missing, stale Q6a answer — Kwame Boateng, 42, of Leeds, had an in-patient severe head injury (cycling accident, Feb 2026) with a single seizure in the first 24 hours - Q4 yes, diagnosis 'first-ever', so Q5-01 applies and no epilepsy declaration is required. He first chose 'more than one' in the wizard and answered Q6a 'yes' before correcting the diagnosis, so multiple.twoOrMoreWithinFiveYears is a stale 'yes'. Last seen by consultant (neurosurgery), levetiracetam recorded with makesDrowsyOrConfused 'no', double vision controlled by 'other' but the description is blank, needs an automatic (Q12 yes, not previously declared), authorisation accepted with e-correspondence consent 'no' so AUTH-05/06 do not apply. GP dateLastSeen left blank. Hand-derived: applicable rules = PD 6 + HC 4 + Q1-01/Q1-03 + Q2-01/Q2-03 + Q3-01 + Q4-01/Q4-02/Q5-01 + Q7-01/Q7a-01 + Q8-01 + Q9-01 + Q10-01/Q10a-01/Q10b-01/Q10b-02 + Q11-01 + Q12-01/Q12a-01 + AUTH-01..04 = 33; missing HC-04 and Q10b-02 (in that order), totalSatisfied 31, complete false. flaggedIssues: FLAG-SEIZ-003 (high - fires from the stale Q6a 'yes' because the predicate ignores diagnosis) then FLAG-VEH-001 (low); no FLAG-SEIZ-001/002 because those do check the diagnosis.
- Epilepsy after SAH with VP shunt - declaration unsigned, authorisation refused — Angela Ferreira-Doyle, 63, of Glasgow: subarachnoid haemorrhage (aneurysm coiled then craniotomy, Sept 2025) complicated by hydrocephalus needing a VP shunt, now with epilepsy - two or more seizures within five years, affecting consciousness and (she reports) vehicle control, last seizure not from medication advice. Blackouts yes, sodium valproate makes her drowsy, uncontrolled double vision, field loss, needs daily-living help, hand controls previously declared with new controls fitted. She has NOT signed the epilepsy declaration and has NOT accepted the authorisation (name and date entered anyway); e-correspondence consent 'yes' with SMS preferences. Hand-derived: applicable rules = PD 6 + HC 4 + Q1-01/02/04 + Q2-01/Q2-03 + Q3-01/Q3-02 + Q4-01/Q4-02/Q6a/Q6g/Q6h/Q6i/Q6-EPI-01..03 (9) + Q7-01/Q7a-01 + Q8-01/Q8-02 + Q9-01/Q9-02 + Q10-01/Q10a-01 (Q10b gated off by suppressedOrControlled 'no') + Q11-01/Q11-02 + Q12-01/Q12a/Q12b + AUTH-01..06 = 45; missing Q6-EPI-01, Q6-EPI-02, Q6-EPI-03, AUTH-01 (rule order), totalSatisfied 41, complete false. All twelve flags fire, stable-sorted: FLAG-EPI-001, FLAG-AUTH-001 (urgent); FLAG-MED-001, FLAG-SEIZ-001, FLAG-SEIZ-002, FLAG-SEIZ-003, FLAG-DIPL-001 (high); FLAG-EYE-001, FLAG-BLK-001, FLAG-VPS-001, FLAG-DL-001 (medium); FLAG-VEH-001 (low).
Confidential medical information — mental health conditions for driving fitness assessment.
- Complete - anxiety without impairment, seen by GP this year — Thomas Whitfield, 34, of Norwich, declares a diagnosis (Q1 yes) of anxiety/depression WITHOUT suicidal thoughts or impairment, last seen by his GP on 2026-05-12 (Q3 yes with a doctor date), full Part A and Part B GP details, declaration confirmed and signed 2026-08-30, e-correspondence consent yes with email preferences. Hand-derived: no rule fires (all completeness/consistency/declaration predicates false), complete true, stoppedAtQ1 false, firedRules [], conditionCount 1, additionalFlags [] (the without-impairment variant raises no flag and recent contact is yes).
- Stopped at Q1 - no diagnosis, stale Q2 tick, contact number missing — Priya Nair, 47, of Reading, answers Q1 No (DVLA enquiry made in error after a bereavement-counselling referral). She initially answered Q1 Yes and ticked bipolar before correcting Q1, so mentalHealthConditions.bipolarAffectiveDisorder is a stale 'yes'; Part B is left blank and the contact number is omitted. Declaration confirmed and signed. Hand-derived: stoppedAtQ1 true (Q2/Q3 rules skipped; HCP rules do not fire because they gate on Q1 yes); the only rule that fires is M1-PD-005 (low, completeness - 'recommended' contact number), which is enough to make complete FALSE; conditionCount 1 from the stale tick; additionalFlags = just FLAG-NO-DIAGNOSIS-LOW-001 (low) - no bipolar flag because every mental-health flag requires q1 === 'yes'.
- Seven co-occurring conditions with suicidal ideation - declaration refused — Daniel Okafor-Hughes, 29, of Manchester: Q1 yes with seven Q2 conditions ticked - anxiety/depression WITH suicidal thoughts, bipolar, eating disorder, OCD/PTSD, personality disorder, schizophrenia/psychosis and 'other' with the details box left blank. No healthcare contact in the last 12 months (Q3 no). GP name and date-last-seen blank (surgery name present). Declaration 'no', signatory name blank, signature date present. Hand-derived firedRules after the priority sort: M1-AUTH-001 (high); M1-HCP-001, M1-Q2-002, M1-AUTH-002 (medium, in rule order); M1-HCP-003 (low) - 5 rules, complete false, stoppedAtQ1 false, conditionCount 7. additionalFlags (8) after the stable sort: FLAG-MH-URGENT-001 (urgent); FLAG-MH-HIGH-001, FLAG-MH-HIGH-002, FLAG-AUTH-LOW-001 (high - note the LOW id with high priority); FLAG-MH-HIGH-003 (medium despite its HIGH id), FLAG-MH-MED-003, FLAG-CONTACT-MED-001, FLAG-MULTI-MED-001 ('7 co-occurring mental health conditions') (medium). FLAG-MH-MED-001/002 are suppressed because bipolar and personality disorder co-occur.
General confidential medical information — vision self-declaration for driving fitness assessment.
- Complete, binocular vision, meets standard — Full personal/GP details, meets the eyesight standard without correction, normal vision in both eyes (monocular branch inactive), no visual-field problem, no glaucoma/retinitis pigmentosa/laser treatment/blepharospasm/night blindness/double vision/other conditions, recent optician contact recorded, and a fully completed authorisation. All 43 rules satisfied (complete), no flags.
- Partial, self-managed monocular vision — GP surgery name is left blank (the one missing field), monocular vision in the left eye since birth with adaptation managed alone rather than reviewed by a healthcare professional, no other conditions, and no recent healthcare-professional contact. 42 of 43 rules satisfied (only V1-HCP-002 missing), so not complete. Two flags fire: a medium flag for the unreviewed self-managed monocular adaptation, and a low flag for the lack of recent contact.
- Critical, multiple active branches with urgent findings and 21 missing fields — Almost every conditional branch is active and under-completed at once: the patient declares they do NOT meet the eyesight standard; unadapted monocular vision with the eye/duration left blank; a visual-field defect not solely of ocular origin (stroke); bilateral glaucoma; retinitis pigmentosa; laser treatment claimed with no date supplied; bilateral blepharospasm with no treatment and controlled-status left blank; night blindness with the affected eye(s) left blank; uncontrolled double vision not yet stable for 6 months, with the declaration unconfirmed and unsigned; another vision condition claimed with no details; recent contact claimed with no date; and the authorisation itself entirely unconfirmed and unsigned. Only 22 of 43 rules are satisfied (21 missing, spanning personal details, healthcare-professional details, the monocular/laser/blepharospasm/night-blindness/double-vision/other/recent-contact branches, and the entire authorisation section). Nine flags fire: two urgent (does not meet eyesight standard; uncontrolled diplopia not yet 6 months stable), four high (unadapted monocular vision, non-ocular visual-field defect, bilateral glaucoma, retinitis pigmentosa), three medium (blepharospasm with no treatment, night blindness, another vision condition).
A will-drafting documentation instrument for England and Wales. The person preparing a will records the testator, the estate, the executors, the beneficiaries and their shares, guardians for children under 18, funeral wishes, and how the will is to be signed and witnessed. The engine checks the record against the Wills Act 1837 formalities and basic completeness, and tells the person whether the will looks ready to sign.
- Valid draft, ready to execute — A widowed 68-year-old in England and Wales leaves her estate (under £325,000) equally to her two adult children, with two executors, a residuary clause, a cremation wish, and Inheritance Act claims considered. Still a draft with no witnesses named yet. Expect validityClass valid, no formality risk, shares 100, and only the low reminder that witnesses are not yet arranged.
- Valid and signed with two independent witnesses — The same will after execution on 2026-08-20: written, signed, two adult witnesses present together who each signed, neither a beneficiary. Expect validityClass valid, two witnesses and no flags.
- Blank will record — Nothing answered. Expect validityClass incomplete: the testator details, capacity, executor, beneficiaries and residuary clause are all missing, and the engine raises the matching high and medium flags.
- Shares total 80% and a minor beneficiary with no trustee — Two adult children each receive 40% and a nine-year-old grandchild is named with a 0% share and no trustee, so the shares total 80% and no trustee holds the child's share. Expect validityClass incomplete with the shares-not-100 and minor-beneficiary-no-trustee flags.
- Signed with only one witness — Recorded as signed and witnessed, but only one witness is named. Expect validityClass formality-risk, a high fewer-than-two-witnesses flag, and witnessCount 1.
- Witness is also a beneficiary — The first witness, Anna Ellis, is the daughter who receives 50% of the estate. Expect validityClass formality-risk with the witness-is-beneficiary flag, because her gift would fail under Wills Act 1837 s.15.
- Testator aged 17 — A 17-year-old drafts a will. Expect validityClass formality-risk and the testator-under-18 flag, since the testator must be 18 or over.
- Marriage expected without a contemplation clause — The testator is engaged and the will does not say it is made in contemplation of the marriage, so the marriage would revoke it. Expect validityClass formality-risk and the marriage-revocation flag.
- Domiciled in Scotland — Scottish domicile; England and Wales rules do not apply. Expect validityClass formality-risk and the other-jurisdictions (domicile) flag.
- Lacks capacity — Capacity is recorded as no. Expect validityClass formality-risk and a high capacity flag.
- Valid but complex: partner, children, foreign property, large estate — A cohabiting testator with children under 18, no guardian, a property in Spain, an earlier will not revoked, an estate over £2 million, and Inheritance Act claims not yet considered; the content is complete (executor, shares 100%). Expect validityClass valid with a cluster of medium and low awareness flags: partner not provided for, other jurisdictions, previous will, guardian not named, Inheritance Act, inheritance tax.
A digital implementation of the Office of the Public Guardian (OPG) form LP1F — Lasting power of attorney for property and financial affairs. The LPA is a statutory deed under the Mental Capacity Act 2005 by which a donor ("the donor") appoints one or more attorneys to make decisions about their property and financial affairs. Once registered by the OPG it is the legal instrument that lets attorneys run bank accounts, sell property, manage investments, claim benefits, and pay bills on behalf of the donor.
- Clean LP1F, submitted for registration — A single attorney with one replacement attorney, an independent certificate provider, one person to notify, non-empty preferences, an attorney email on file, a registration contact preference set, and the full donor -> certificate-provider -> attorney signing order all correctly followed and witnessed by an independent witness. status is 'submitted', which computeValidityBand reads directly. No statutory blocker and no flag fires: compositeRisk is low.
- Unsigned draft, single attorney with restrictive timing — A single attorney with no replacement, timing restricted to 'only when the donor lacks capacity', no people to notify, no preferences or instructions, a missing attorney email, and no registration contact preference set. Still fully unsigned (a draft). No statutory blocker fires (donor and attorney are both adults, no signatures to check order or witnessing on), so compositeRisk comes entirely from flags: two moderate (single attorney with no replacement; restrictive timing) and four low (no people to notify, no preferences/instructions, missing attorney email, no contact preference), giving compositeRisk moderate. validityBand is ready_for_signing (every required field for signing is present).
- Critical, minor donor with zero attorneys and multiple statutory violations — The donor is a minor (age on signing under 18), no attorney is appointed at all, decision mode is 'jointly' with no replacement attorney, the certificate provider is also a minor, is related to the donor, and is connected with a care home, the donor's own signature is witnessed by the donor themselves, the certificate-provider signature is dated before the donor's (signing-order violation), six people to notify are listed (over the limit of five), and the registration applicant kind is neither donor nor attorneys. Ten statutory blockers fire, forcing compositeRisk to critical regardless of the two low flags that also fire (empty preferences/instructions; no contact preference). validityBand is partially_signed (the donor has signed, but with zero attorneys the all-attorneys-signed condition can never be satisfied).
A digital implementation of the statutory Lasting Power of Attorney for Health and Welfare (statutory form LP1H) under the Mental Capacity Act 2005 (England and Wales). The donor — or a solicitor, attorney, or advocate acting on their behalf — completes a single-page 14-step wizard that captures every field of the paper LP1H form, applies a deterministic statutory-validity engine, raises compliance flags, and emits a registration-ready application bundle for the Office of the Public Guardian (OPG).
- baseline-ready-to-register — Single attorney, knowledge-based certificate provider, clean statutory signing order (donor then certificate provider then attorney), Option B life-sustaining-treatment choice initialled, registration fee paid in full with no remission claimed. No fired rules, no flags, ready to register.
- needs-correction-skill-based-cp-and-unlawfulness-unassessed-instruction — Skill-based certificate provider missing a professional registration number, one instruction not yet assessed for lawfulness that also contradicts a known ADRT, and a fee-remission claim with no stated reason. All high-severity, no fatal rules, so the application still needs correction rather than being outright invalid.
- critical-underage-donor-no-attorneys-no-signatures — Underage donor without capacity, no attorneys named, no certificate provider linked, no signatures at all, life-sustaining-treatment choice unset, a prohibited-act instruction (assisted suicide) that also contradicts a known ADRT, an underage replacement attorney, six people to notify, and an incomplete registration with no fee paid. Maximal fatal-rule coverage across every rule family; the application is invalid.
A completeness and validity check for giving notice of marriage or civil partnership in England and Wales and ordering a marriage certificate from the General Register Office (GRO). A single continuous page collects the notice, the ceremony, each party's identity, residence, previous-relationship and immigration evidence, whether the parties are closely related, and the certificate order. The engine classifies the application as ready to submit, incomplete, needs evidence or correction, or ineligible, computes the permitted ceremony window, and raises flagged issues. It gives no legal advice; the register office decides each notice.
- Ready to submit, civil ceremony at a register office — Two never-married British adults give notice together in Leeds on 1 June 2026 for a register-office ceremony on 15 August 2026 (75 days later, inside the 29-day to 12-month window). Both have original identity and proof of address, two witnesses are arranged, the venue is confirmed, and two standard certificate copies are ordered with a GRO index reference. Expect ready-to-submit, the window 2026-06-30 to 2027-06-01, no immigration referral, and no flags.
- Ready to submit with a previous divorce and EU Settlement Scheme status — The first party is divorced and brings the decree absolute; the second party holds EU Settlement Scheme status and has a share code, so joint notice is not required by status. Everything else is in order. Expect ready-to-submit with two low flags: the evidence-check fee reminder and a missing GRO index reference for the one certificate copy ordered.
- Ineligible: under 18, already married, and closely related — The second party is born on 1 March 2009 so is 17 on the 15 August 2026 ceremony date; the first party is recorded as currently married; and the parties are closely related. Three independent high-priority eligibility flags fire, and the class is ineligible even though the rest of the application is complete. (Since 27 February 2023 18 is the minimum age with no parental-consent exception.)
- Incomplete: only a name and a certificate request — Only a notice type and the first party's name are entered, and one certificate copy is requested with no GRO service. Most required fields are missing, identity, proof of address and venue are unconfirmed, and no GRO index reference is given. Expect incomplete with the required-fields flag, the certificate-service flag, the missing-GRO-index-reference flag and the identity, address and venue flags; with no notice date there is no ceremony window.
- Needs evidence: short notice, residence, witnesses and documents — Notice on 20 July 2026 for a ceremony on 1 August 2026 is only 12 days, short of the 29 required. The first party has lived in the district 3 days and has no original identity or proof of address; the second party is a widow(er) without a death certificate; the venue is unconfirmed; one witness is arranged; and zero certificate copies is invalid. Everything is complete and eligible, so the class is needs-evidence, with eight flags across all three priorities.
- Needs evidence: overseas party without immigration evidence, notice not joint — The second party is from outside the UK and Ireland with no EU Settlement Scheme status and has no immigration evidence, and the parties are not giving notice together. Expect needs-evidence, an immigration referral indicated, the immigration-referral flag (possible Home Office referral adding up to 70 days) and the joint-notice-required flag.
- Needs correction: ceremony after the notice lapses — Notice given on 10 March 2026 is valid until 10 March 2027, but the ceremony is planned for 8 May 2027. Everything else is in order, so the only finding is the notice-expires-before-ceremony flag (high); the class is needs-evidence.
Maternity certificate issued by doctors or registered midwives to enable pregnant women to claim statutory maternity benefits.
- Complete Part A, doctor-issued — Pre-confinement certificate issued by a doctor 17 weeks before the expected date of confinement (within the 20-week DWP window), with every field filled, the stamp confirmed applied, and completion in ink confirmed. No rule fires (complete), no flags.
- Partial Part A with an inconsistent examination date — Pre-confinement certificate where the examination date (15 August) falls AFTER the recorded expected date of confinement (1 August) - a consistency problem suggesting Part B should have been used instead - and the doctor's practice address is left blank. Two rules fire (the examination-after-EWC consistency check, and the missing practice-address completeness check), so complete is false. One medium flag fires for the examination-after-EWC inconsistency.
- Critical, midwife-issued with lapsed registration and no certificate number — Patient name is missing; the examination is 29 weeks before the expected date of confinement (9 weeks past the DWP's 20-week limit); leftover Part B data (an actual date of birth) coexists with the active Part A selection; the certificate is issued by a midwife whose NMC registration expired before the issue date; no certificate number is recorded; the certificate is a duplicate not marked as such; completion-in-ink is not confirmed; and the issue date is in the future relative to the frozen clock. Six rules fire (one urgent - missing certificate number - plus three high and two medium), so complete is false. Six flags fire: one urgent (missing certificate number), two high (the 20-week window breach; the lapsed NMC registration), two medium (the unmarked duplicate; both parts populated), one low (a future issue date).
A digital implementation of the FP92A application form completed by a UK doctor (or other health professional with access to the patient's medical records) to apply for a Medical Exemption (MedEx) Certificate for NHS prescription charges in England.
- Eligible - epilepsy on continuous anticonvulsant, complete application — A single qualifying condition (epilepsy-on-anticonvulsant), signed, with a valid 10-digit NHS number, no pregnancy, no disqualifier, no age-exemption band, and no prior certificate on file. Expect outcome 'eligible', redirectTo '', eligibleConditions ['epilepsy-on-anticonvulsant'], a single fired rule (the condition rule), no flags, validFrom '2026-08-15' (the completedDate), validUntil '2031-08-15' (completedDate + 5 years).
- Cancer condition with histology pending and a missing NHS number — Non-critical edge case for the outcome-precedence rule: cancer-or-effects is declared with cancerTreatmentPhase left blank, so the clarification.cancer-histology rule fires and cancerPending forces outcome 'requires-clarification' - this wins EVEN THOUGH eligibleConditions is non-empty (cancer-or-effects itself still fires as a valid condition rule) and there is no disqualifier or redirect, which would otherwise have produced 'eligible'. The blank patientNhsNumber independently fires BOTH the completeness.missing-nhs-number RULE (part of firedRules, though it does not itself change the outcome here since cancerPending is checked first) and the matching FLAG. Expect outcome 'requires-clarification', redirectTo '', eligibleConditions ['cancer-or-effects'], three fired rules in registry order (condition.cancer-or-effects, completeness.missing-nhs-number, clarification.cancer-histology), one flag (missing-nhs-number), validFrom '2026-07-01', validUntil '' (not eligible).
- Critical - diet-only-diabetes disqualifier overrides a genuinely valid fistula condition, plus a pregnancy redirect and two completeness gaps — Critical/highest-severity persona layering a disqualifier, a redirect, and two completeness failures simultaneously. conditions declares both diabetes-mellitus-not-diet-only (with diabetesTreatmentMode 'diet-only', so the condition rule itself does NOT fire but the disqualifying.diet-only-diabetes rule DOES) and permanent-fistula (a genuinely valid, independently-firing condition). pregnancyStatus 'pregnant' fires redirect.fw8-pregnancy. signaturePresent is blank (missing-signature) and patientNhsNumber is '123', an invalid 10-digit number (missing-nhs-number). previousCertificateExpiry is a future date with applicationKind still 'new', firing renewal.active-certificate. Verified engine behaviour: hasDisqualifier alone is sufficient to force outcome 'ineligible' EVEN THOUGH eligibleConditions is non-empty (permanent-fistula genuinely fired) - a single disqualifying condition entry blocks the whole application, not just that condition. redirectTo is still populated ('FW8') despite the outcome already being 'ineligible' via the disqualifier branch, since redirectTo is computed before the outcome branch is chosen. Expect outcome 'ineligible', redirectTo 'FW8', eligibleConditions ['permanent-fistula'], six fired rules in registry order (condition.permanent-fistula, disqualifying.diet-only-diabetes, redirect.fw8-pregnancy, completeness.missing-signature, completeness.missing-nhs-number, renewal.active-certificate), five flags in FLAGS-array order (missing-signature, missing-nhs-number, pregnancy-redirect, diet-only-diabetes, active-certificate-exists - age-exemption does not fire, the patient is 32), validFrom '2026-08-20', validUntil '' (not eligible).
A digital implementation of the UK Statement of Fitness for Work — commonly known as the fit note or Med 3 — issued by a healthcare professional (doctor, nurse, occupational therapist, pharmacist, or physiotherapist) to record the impact of a patient's health condition on their fitness for work.
- standard-may-be-fit-compliant-period — A valid GP-issued note for a lower-back strain: 'may be fit' with two adaptations (phased return, altered hours) and practical comments, a 3-week duration in the first month of the condition — the adaptation rule fires at 'moderate' intensity (count 2, low severity) and the period is 'compliant' (21 days) — expect isValid yes, fitnessCategory may_be_fit, adaptationIntensity moderate, periodDays 21, periodCompliance compliant, isWithinFirstSixMonthsOfCondition yes, recommendation standard, and no safety flags.
- refer-occupational-health-long-term-not-fit-nurse-issued — A nurse-issued (2022-authorised profession) note for a moderate depressive episode: 'not fit' (so no adaptation rules at all), a from/to period of 49 days — over 4 weeks but under 3 months, so 'long_term' rather than 'exceeds_initial_max' even though the condition is within its first six months — with a review booked; the mental-health, new-authority, and review safety rules also fire — expect isValid yes, fitnessCategory not_fit, adaptationIntensity blank, periodDays 49, periodCompliance long_term, recommendation refer_occupational_health, and four safety flags in push order (4-week, mental-health, new-authority, review).
- review-for-validity-supersedes-cancer-and-over-max-period — A hospital-discharge note for a patient recovering from breast cancer surgery with the practice address left blank: the missing address is a high-severity validity failure, so the recommendation is review_for_validity even though this note would otherwise be refer_access_to_work (the diagnosis text matches the automatic-disability regex although the explicit yes/no field is blank) and also breaches the 3-months-in-first-6-months rule (4 months = 122 days, condition recorded 60 days earlier) — expect isValid no, periodDays 122, periodCompliance exceeds_initial_max, isWithinFirstSixMonthsOfCondition yes, recommendation review_for_validity, and seven safety flags in push order (validity, period-max, 4-week, 12-week, auto-disability, discharge, review with the 'end of the period' fallback text).
A bill of sale / sales receipt for a private vehicle sale in the United Kingdom, following the GOV.UK "Buy a vehicle" and "Sell, scrap or transfer a vehicle" journeys. One continuous single-page wizard records the sale, the seller and buyer, the vehicle, the checks, the price and payment, the condition terms, the DVLA steps, and both signatures.
- Complete private sale, no flags — A clean private sale of a 2018 Ford Focus: seller is the registered keeper with a matching V5C, valid MOT, finance checked and clear, bank transfer received, sold as seen with faults recorded, V5C/2 slip given, DVLA told online, both parties signed. Expect classification 'complete', 0 missing items, 0 risk conditions and no flags.
- Incomplete: no VIN and no mileage — Otherwise sound sale, but the VIN is blank and no odometer reading is recorded. Expect 'incomplete' (2 missing items, no risk conditions) with the high no-vin and no-mileage flags.
- Risk flagged: finance outstanding — Hire-purchase finance is still outstanding on the vehicle. Expect 'risk-flagged' (1 risk condition) with a high finance-outstanding flag; every required item is otherwise present.
- Risk flagged: seller not keeper and V5C missing — The seller is not the registered keeper and has no V5C, and the V5C/2 slip was not given. Expect 'risk-flagged' (2 risk conditions) with seller-not-keeper, v5c-missing and keeper-slip flags.
- Risk flagged: description mismatch and cash payment — The vehicle does not match its advert, and the buyer pays 8,000 pounds in cash. Expect 'risk-flagged' (1 risk condition), a high description-mismatch flag and a medium payment-risk flag.
- Incomplete: unsigned and DVLA not told — Everything is recorded except the signatures, and the seller has not yet told DVLA. Expect 'incomplete' (2 missing signatures) with unsigned (medium) and dvla-notification (low) flags.
- Complete: trader sale with expired MOT — The seller is a trader, the vehicle (2012) has an expired MOT, finance is checked and clear, and no faults are recorded though sold as seen. Expect 'complete' with trader-sale, mot-issue (medium) and faults-not-recorded (low) flags.
- Complete: finance unchecked — Finance was marked unchecked, but the V5C is present and everything else is complete. Expect 'complete' with a medium finance-unchecked flag (unchecked is answered, so not a missing item).
- Blank bill of sale — Nothing answered. Expect 'incomplete' with every required item missing (the V5C, keeper, finance, and signatures included) and the blank-state flags: no-vin, no-mileage, finance-unchecked, unsigned.
Registering a vehicle with the Driver and Vehicle Licensing Agency (DVLA) in Great Britain: the V62 application for a vehicle registration certificate (V5C, the log book), and the first-registration variants V55/4 (new vehicle), V55/5 (used vehicle), imported vehicles, and V627/1 (rebuilt or kit vehicles). The applicant records who is applying, who the registered keeper and owner are, the vehicle's identity, the evidence enclosed, and the fee, and the form checks the application before it is posted.
- v62-lost-v5c-ready — V62 replacement for a lost V5C, 25 pound cheque, signed: ready to submit, with the low lost-V5C flag.
- v62-acquired-with-slip-ready — V62 for a vehicle acquired without a V5C, with the new-keeper slip: no fee, ready to submit.
- v62-not-received-in-window — V62 where the V5C has not arrived within 6 weeks: no fee due, ready to submit.
- v62-acquired-no-slip-no-fee — V62 acquired without a V5C and no new-keeper slip: 25 pounds due but nothing enclosed, so it needs documents; entitlement and fee flags.
- v55-4-new-vehicle-missing-docs — New vehicle first registration with no certificate of newness, no type approval, and no payment: needs supporting documents.
- v55-4-new-vehicle-ready — New vehicle first registration with newness certificate, type approval, and 55 pound cheque: ready to submit.
- v55-5-used-no-mot — Used vehicle 7 years old, no MOT certificate, vehicle approval present, wrong fee amount: needs documents.
- v55-5-used-old-exempt-ready — Used vehicle 20 years old: type approval exempt, valid MOT, 55 pound postal order: ready to submit.
- imported-vehicle-nova-missing — Imported used vehicle not notified to HMRC through NOVA, with an IVA certificate and MOT: needs documents with a high NOVA flag.
- imported-vehicle-ready — Imported used vehicle with a NOVA reference, IVA, MOT, and fee: ready to submit.
- kit-vehicle-no-build-evidence — Kit vehicle with no build evidence: needs documents with an entitlement flag.
- seriously-damaged-vehicle — Seriously damaged vehicle that cannot be repaired: incomplete (cannot be registered), high flag.
- bad-vin-and-registration — V62 with a VIN containing the letter O and a malformed registration number: incomplete with format flags.
- northern-ireland-company-keeper — Company keeper at a Northern Ireland address, owner differs, no insurance, no company number: incomplete.
- northern-ireland-no-insurance — Individual keeper at a Northern Ireland address with the owner recorded but no insurance certificate: needs documents; keeper-owner and high insurance flags.
- blank-application — A blank application: incomplete with every required item missing.
- v62-no-identity-overpaid — V62 acquired without a V5C with a slip enclosed but a fee paid and no identity evidence: needs documents; low overpayment flag. Not insured, so the low insurance flag also fires.
Request a certified copy of a US birth certificate from the state or territory vital records office that registered the birth. There is no national registry: each state, the District of Columbia, and each territory issues its own, and the CDC National Center for Health Statistics (NCHS) Where to Write for Vital Records directs requesters to the right office. The form collects the data of the US Standard Certificate of Live Birth needed to find the record (name, sex, date, city, county, state, facility, mother's name before first marriage, father's name), who is asking and why, the kind and number of copies, delivery and fee, identity and supporting documents, whether an apostille is needed for use abroad, and the signed declaration.
- California adult requests own long form for a passport — An adult Californian born in Fresno asks for one certified long-form copy for a passport, by mail with the notarized sworn statement California requires, ID unexpired, fee 31 enclosed. Expect ready-to-submit with no flags.
- Texas parent orders two copies for school — A mother named on a Texas record (fee 22 plus 3 for the second copy, 25 total) requests two certified short-form copies for school enrollment by mail with unexpired ID. Expect ready-to-submit; Texas fee verified, no flags.
- New York spouse missing proof, expired ID, short fee — A spouse asks New York State for a certified copy but encloses no marriage certificate, the ID is expired, and 15 dollars is enclosed against 30. Expect incomplete with ID, proof and fee flags plus the NYC reminder.
- Florida sibling of a living registrant is ineligible — A sibling asks Florida for a certified copy of a living person's record. Florida limits living registrants' records to the person, a parent named on it, a guardian or a legal representative. Expect ineligible-requester.
- Florida sibling of a deceased registrant is eligible — The same Florida sibling relationship is allowed once the registrant is deceased; proof of relationship and death are enclosed. Expect ready-to-submit with the deceased-registrant and unverified-fee flags.
- Pennsylvania 15-year-old orders own record — A 15-year-old asks Pennsylvania for their own certificate; the state minimum for self-requests is 16. Expect ineligible-requester via the underage flag.
- Washington grandparent chooses an informational copy — A non-parent applicant in Washington who is not eligible for a certified copy asks for an informational copy for genealogy; WA offers these to anyone, so no ID, proof or eligibility check applies. Expect ready-to-submit with no flags.
- Illinois stranger is ineligible — A friend with no legal interest asks the Illinois Division of Vital Records for a certified copy. Expect ineligible-requester and the unverified-fee note.
- Unknown state with apostille, short form, no destination — A self-requester born in Minnesota (no verified rule held) wants an apostille on a short-form copy and names no country. Expect incomplete: type-unacceptable and apostille-country flags plus the verify-state-rule flag; fee unknown.
- California legal guardian without court order, adopted ward — A guardian orders a ward's California certificate by mail without letters of guardianship or the notarized statement; the ward was adopted. Expect incomplete with authority, notarization, fee-short and adopted flags.
- Ohio open record, unrelated applicant without proof, unsigned — Ohio birth records are open, so an unrelated applicant is eligible, but this request lacks proof, ID details and the signed declaration. Expect incomplete with proof, ID and declaration flags.
- New York self with apostille ready — A New Yorker requests a certified long form with an apostille for Italy, ID unexpired and 30 dollars enclosed. Expect ready-to-submit with the apostille process note and the NYC reminder.
- Texas request missing identifiers and order details — A Texas request missing the registrant name, mother name, copy count and delivery method. Expect incomplete with the missing-registrant-data flag.
Petition for dissolution of marriage, the divorce decree and the vital-records divorce certificate for United States courts. A single continuous wizard collects the filing state and county, spouses and residency, children and child support, property division (community or equitable), service of process, and the decree; the engine checks the filing state's residency, separation and waiting-period rules and classifies the petition as ready to file, incomplete, or not yet eligible, with prioritized flags.
- Ready to file: Illinois uncontested, no children, served by acceptance — Both spouses agree; 14 months in Illinois (90 days needed), settlement agreement signed, financial disclosure ready, respondent signed an acceptance of service a week after filing, no children, no decree yet. Illinois has no waiting period before the decree. Expect readinessClass 'ready-to-file', property regime equitable, and no flags.
- Ready to file: California uncontested with children, waiting period pending — California uncontested no-fault with two minor children, custody plan and guideline worksheet done ($1,240 a month), 9 months in state and 5 months in county, served personally on 2026-07-20. Expect 'ready-to-file', community property, earliest decree 2027-01-21 (six months and a day from service) and only the low waiting-period-pending flag.
- Not yet eligible: Texas residency and county residency short — Texas petition filed after only 4 months in the state and 60 days in the county (6 months and 90 days are required). Everything else is complete. Expect 'not-yet-eligible' with high state-residency and county-residency flags and the low waiting-period flag (60 days from filing).
- Not yet eligible: Pennsylvania contested no-fault, separation too short — Contested Pennsylvania no-fault petition under 3301(d); the spouses separated 2026-03-01 and the petition is filed 2026-08-15, about 167 days against the one year required. Expect 'not-yet-eligible' with the high separation flag, and the low waiting-period flag (90 days from service).
- Incomplete: Florida with a fault ground, missing names and children paperwork — Florida has no fault grounds (only irretrievable breakdown), yet adultery is pleaded; the respondent and marriage date are missing; there are children with no custody plan or child-support worksheet; no financial disclosure. Expect 'incomplete' with core-missing, ground-not-available, custody-plan, child-support and financial-disclosure flags.
- Not yet eligible: Washington decree entered before the 90-day waiting period — Washington petition filed 2026-07-01, served 2026-07-10, but a decree is recorded as entered 2026-08-20; the 90 days run from the later of filing or service, so the earliest decree date is 2026-10-08. Name restoration is requested without a name and no divorce certificate is requested. Expect 'not-yet-eligible' with decree-before-waiting-period, name-restoration and certificate flags.
- Ready to file with flags: unknown state, UCCJEA gap, military respondent, publication — Minnesota is not in the verified rule table, so the default 90-day domicile rule applies and a verify-state-rule flag is raised. The children have lived there only 4 months (UCCJEA six-month home-state test), the respondent is on active duty and has not appeared, service is by publication, and no financial disclosure is ready. Expect 'ready-to-file' with unknown-state, home-state, military, publication and disclosure flags.
- Ready to file with flag: New York with the shortened residency and a property mismatch — New York needs two years of residency, or one year when the spouses married or lived as spouses in New York; this petitioner has 14 months and married in New York, so residency is met. The petition pleads community property although New York uses equitable distribution. A decree is entered with a certificate requested. Expect 'ready-to-file' with the property-approach-mismatch flag only.
- Incomplete: Ohio contested no-fault with no separation date — Ohio contested no-fault needs a year of separation (ORC 3105.01(J)) but no separation date is recorded; 7 months in Ohio and 120 days in the county satisfy residency. Expect 'incomplete' with core-missing and separation-period (medium) flags.
- Incomplete: blank petition — A fresh blank petition. Expect 'incomplete', with core-missing, financial-disclosure and not-yet-served flags.
A United States execution-readiness checker for a durable power of attorney for property and finances. A principal appoints an agent (and successors) to manage money, real estate, investments, benefits, and taxes, and the authority survives the principal's later incapacity. Law here is state-variable: the [Uniform Power of Attorney Act (2006)](doc/upoaa-framework.md) (UPOAA) is the baseline, and a `STATE_RULES` table encodes the execution formalities of California, New York, Texas, Florida, Illinois, Pennsylvania, Ohio, and Washington. Any other state falls back to the uniform default and raises a "verify the state rule" flag.
- Ready: Texas, notarized, gift cap, Form 2848 filed — Texas principal, durable wording, immediate effect, notary arranged (Texas needs no witnesses), spouse agent plus successor, all general grants, gifting limited to the annual exclusion, bank form completed, Form 2848 filed. Expect ready-to-execute with no flags.
- Ready: New York, notary counts as second witness — New York needs two witnesses and acknowledgment; the notary may be one, so one separate witness plus the notary satisfies it. Agent signed and acknowledged; statutory notice included. No hot powers are granted, so only the low default-deny advisory fires. Expect ready-to-execute.
- Execution risk: Florida springing power, uninitialed hot powers, agent witness — Florida: a springing power is ineffective (709.2108(3)); hot powers granted but not initialed (709.2202); only one witness (two needed) and that witness is an agent. Expect execution-risk with the Florida flags.
- Execution risk: California without notary and with one witness — California accepts a notary OR two witnesses. Neither is satisfied: no notary and one witness. Statutory warning text is missing. Expect execution-risk (notarization and witnesses flags) plus the California notice flag.
- Execution risk: Texas, not durable, no capacity, minor agent, real estate — Texas plan with several answered defects: not durable, capacity not confirmed, agent is not an adult, no notary although the plan records real estate, unlimited gifting, and agent self-gifting. Expect execution-risk and the matching high and medium flags.
- Execution risk: New York agent signature not acknowledged — New York makes the power effective only when each agent signature is acknowledged. Agent has not signed. Everything else is in order. Expect execution-risk with F-AGENT-SIGNATURE-REQUIRED-001 at high priority.
- Ready with advisories: Pennsylvania agent acknowledgment, tax authority, no gift limit — Pennsylvania: notary and two witnesses arranged; statutory notice included. The agent acknowledgment is still unsigned (medium, not blocking), tax authority is granted without Form 2848, gift power has no stated limit, no bank form. Expect ready-to-execute with medium and low flags.
- Execution risk: Illinois with no witness — Illinois requires one witness who is not the notary, and a notary. A notary is arranged but no witness. Expect execution-risk with F-WITNESSES-SHORT-001.
- Incomplete: Ohio, agent and effectiveness unanswered — Ohio principal named, but no agent, no effectiveness, no durability answer, no capacity answer, no notary plan, and no grants. Expect incomplete (unanswered items never create an execution risk) with the no-successor flag and low advisories.
- Incomplete: unknown state with springing trigger unanswered — Oregon is not in the state table so the uniform default applies and the verify flag fires. A springing power is chosen without a trigger. Grants and notary are otherwise answered. Expect incomplete with F-STATE-RULE-VERIFY-001 and F-SPRINGING-NO-DETERMINER-001.
- Ready: Washington springing power with named determiner — Washington UPOAA state: notary arranged, no witnesses required, springing allowed with a physician determiner, successor agent named, no hot powers. Expect ready-to-execute with only the low default-deny advisory.
A durable power of attorney for health care: the document in which an adult (the principal) names an agent, and successor agents, to make health care decisions if the principal cannot. States call it a health care proxy (New York), a medical power of attorney (Texas), a designation of health care surrogate (Florida), or an advance health care directive (California). The same form can carry the principal's wishes about life-sustaining treatment, a HIPAA release, and a direction about organ donation.
- California directive, ready to execute — Complete California directive signed before two unrelated, disinterested witnesses; adult-child agent, two successors, HIPAA release, organ donation addressed, copies distributed. Expect ready-to-execute and no flags.
- New York health care proxy, relatives may witness — New York needs two adult witnesses and allows relatives; the agent is not a witness. Expect ready-to-execute.
- Texas medical power of attorney via notary — Texas accepts a notary acknowledgment in place of witnesses. Expect ready-to-execute.
- Illinois directive with one witness — Illinois requires a single adult witness who is not related to the principal and not a provider. Expect ready-to-execute.
- Blank-ish draft is incomplete — Florida principal who has named an agent but not chosen when authority begins, a signing date, or a method. Expect incomplete with the missing-required flag and no execution defect.
- Florida: agent signed as a witness — Florida needs two witnesses, one neither spouse nor blood relative, and the surrogate cannot witness. Witness 1 is the agent; witness 2 is the principal's sister. Expect execution-risk with witness-eligibility and execution-formalities flags.
- California nursing-home resident without ombudsman — Skilled nursing facility resident in California; one witness is the facility's provider staff and no ombudsman signed; the agent is the facility's unrelated employee. Expect execution-risk with facility-rule, witness-eligibility and agent-eligibility flags.
- Washington: principal and agent are minors — Washington principal who was 17 at signing, with a 16-year-old agent; capacity is confirmed and two valid witnesses signed. Expect execution-risk with the principal-minor and agent-eligibility flags.
- Ohio: relative witness bars the signing — Ohio bars relatives as witnesses; witness 2 is the principal's nephew, leaving only one valid witness. Expect execution-risk with a witness-count and witness-eligibility flag.
- Alaska uses the uniform default — Alaska is not in the verified rule table, so the uniform default applies (two unrelated witnesses) and the verify-state-rule flag fires. Serious illness with no POLST and no organ-donation answer also flag. Expect ready-to-execute with state-rule, POLST and organ-donation flags.
- Pennsylvania: capacity doubt, prior directive remains — The signer states the principal may not understand the document; an earlier directive remains in force; agent has not agreed. Expect execution-risk with capacity, revocation and successor-agent flags.
A United States Health Insurance Portability and Accountability Act (HIPAA) authorization form. This is a legal document by which a patient (or their authorized representative) gives a covered entity — a health-care provider, health plan, or health-care clearinghouse — explicit, time-bounded permission to use or disclose specifically described Protected Health Information (PHI) to a named third-party recipient for a stated purpose. It is the standard mechanism, defined in 45 CFR § 164.508 of the HIPAA Privacy Rule, for any use or disclosure of PHI that is not otherwise permitted as treatment, payment, or health-care operations (TPO).
- Valid self-signed authorization for continuing treatment — 47-year-old adult signs for herself, releasing medical/health records (initialled) from a named primary-care practice to a named cardiology group for continuing treatment, expiring on a specific date six months after signature, with every required statement acknowledged. Expect validityStatus 'valid', completenessScore 100, completenessStatus 'complete', zero firedRules, zero additionalFlags.
- Parent signs for 16-year-old, mental-health records not initialled, one-year eligibility expiry — Mother signs as parent-of-minor (authority described) for her 16-year-old son so a state Medicaid agency can make an eligibility determination; medical and mental-health records are released but the mental-health box is not separately initialled; expiration is exactly one calendar year after signature. Expect completenessScore 100 / 'complete' yet validityStatus 'invalid' because the single medium rule mental-health-separate-initial fires (firedRules = 1). No flags: signed-by-minor is skipped because the signer is not 'self', and expiration-over-12-months does not fire because 365 days / 30.44 = 11.99 months is not > 12.
- Defective VA sensitive-records release for an investigation — A power-of-attorney holder (no authority described) tries to release a veteran's substance-use, HIV, mental-health, psychotherapy-note and reproductive-health records from a VA medical center (class mode with the class left blank, 'All my records' as the description) to a private investigator for an 'investigation' purpose, with expiration event 'none', signature not confirmed, no signature date, and the right-to-revoke / no-conditioning / redisclosure statements not acknowledged. Expect validityStatus 'invalid', completenessScore 90 / 'partial' (only signatureDate is empty — the 'no' answers still count as filled), 14 firedRules in order: phi-description-not-vague, disclosing-source-identified, expiration-not-none, signature-and-date, representative-authority, right-to-revoke-statement, no-conditioning-statement, redisclosure-warning, substance-use-part-2-consent, substance-use-initials, hiv-aids-state-consent, hiv-aids-initials, mental-health-separate-initial, psychotherapy-separate-auth; and 2 additionalFlags in order: reproductive-health-investigation (high), va-records-7332-notice (high). Note expiration-stated does NOT fire because the non-empty event 'none' satisfies its presence check.
A planning and validity-checking form for a United States will. A single continuous single-page wizard collects the testator and state, the family and spouse, the estate and the specific and residuary bequests, the personal representative and standard clauses, the execution plan with witnesses, and the self-proving affidavit. The engine classifies the plan as valid-ready-to-execute, incomplete, or formality-risk and raises prioritized flagged issues.
- Valid and ready to execute, Florida widow — A 72-year-old Florida widow with two grandchildren receiving specific gifts and two residuary children (60/40). Two disinterested witnesses sign in her presence on 2026-09-01, the will is self-proved before a notary, and the digital-assets, revocation and safekeeping clauses are present. Expect 'valid-ready-to-execute' with no flags (Florida has no state estate tax and the $800,000 estate is far below the $15,000,000 federal exclusion).
- Blank form — Nothing answered. No state, so the Uniform Probate Code default applies without a 'verify state rule' flag (the state is simply missing). Expect 'incomplete' with the three missing-answer flags (testator, family and estate, execution) plus low notes for no digital-assets clause, no safekeeping location and no self-proving affidavit.
- Incomplete draft, New York married testator — A New York testator names herself and says she is married but has not named a spouse, a value for the spouse, a representative or a form of execution. Expect 'incomplete': missing-testator, missing-estate and missing-execution answers raise medium flags, and no high flag fires, so formality-risk does not apply. Elective share cannot be estimated because no estate value is given.
- Formality risk, Texas: one interested witness, not signed at the end, arithmetic wrong — A Texas will with a single witness who is also a beneficiary: the testator did not sign at the end, did not sign in front of the witness, and the witness did not sign in the testator's presence (Texas requires it). Residuary shares add to 90%, and the specific bequests ($2,000,000) exceed the $1,500,000 estate. Expect 'formality-risk' with high flags for signature, witness-count, presence, void interested-witness gift (Texas needs a disinterested corroborating witness), residuary total and over-allocated bequests.
- Formality risk, New York: unwitnessed holographic will by a minor who lacks capacity — A New York holographic will, which New York does not recognize, that is not entirely handwritten, signed by a 16-year-old who is not of sound mind with a possible undue-influence concern. Expect 'formality-risk' with high flags for under-age, no sound mind, undue influence, the holographic form not allowed, and the draft not in the testator's handwriting.
- Formality risk, Ohio: electronic will with interested witness, affidavit Ohio does not use — An Ohio will signed electronically (Ohio is not recorded as allowing a fully electronic will) with two witnesses of whom one takes under the will; with only two witnesses the gift to one of them is void under R.C. 2107.15. A self-proving affidavit is planned, but Ohio does not use one. Expect 'formality-risk' with high flags for the electronic form and the void gift, and a low note that the affidavit adds nothing in Ohio.
- Valid with notes, California married, interested witness, uncertain capacity — A California testator who is married (community property) leaves her husband nothing in the will because community property already gives him half. One of her two witnesses also takes a gift, which in California raises a rebuttable presumption of undue influence unless two other disinterested witnesses signed. Capacity is recorded as uncertain, there is no residuary clause, earlier wills are not revoked, a no-contest clause is limited in California, and there is no digital-assets clause. California accepts a declaration under penalty of perjury, so no notary is needed. Expect 'valid-ready-to-execute' (no high flags) with medium and low flags.
- Valid with notes, Florida married, spouse below elective share, minor children, omitted child — A Florida testator leaves his wife $100,000 of a $2,000,000 estate, below the roughly $600,000 elective share (30% of the elective estate). He has minor children and no guardian, omits one child without naming him, includes a no-contest clause (unenforceable in Florida), and one witness takes a gift (valid in Florida). Expect 'valid-ready-to-execute' (no high flags) with spousal, guardian, pretermitted-child, no-contest and witness notes.
- Valid with tax notes, Illinois married, $20 million estate — An Illinois testator with a $20,000,000 estate leaves his wife $5,000,000, below the roughly $6.7 million Illinois elective share (one third where the testator has descendants), and the estate is above both the $15,000,000 federal exclusion and the $4,000,000 Illinois estate-tax exclusion. A tax adviser has not reviewed it. Illinois accepts an attestation clause without a notary. Expect 'valid-ready-to-execute' (no high flags) with elective-share, federal and Illinois estate-tax flags.
- Valid with notes, Pennsylvania: inheritance tax, self-proving gap, no backup beneficiary — A Pennsylvania testator whose witnesses did not sign in his presence (not required in Pennsylvania, so a medium note), whose self-proving affidavit is planned but not notarized, who names no contingent beneficiary or successor representative and no safekeeping location, and whose estate faces Pennsylvania inheritance tax. Expect 'valid-ready-to-execute' (no high flags) with self-proving, witness-presence, backup-beneficiary, successor, safekeeping and inheritance-tax flags.
- Valid with notes, unlisted state (Nevada) falls back to the UPC default — A testator domiciled in Nevada, which is not in this tool's state table. The Uniform Probate Code default is used and the 'verify state rule' flag is raised. Everything else is complete and clean. Expect 'valid-ready-to-execute' with a single medium flag.
- Valid with notes, Washington married: community property and state estate tax — A Washington testator with a $5,000,000 estate, married, leaving his wife $2,000,000. Washington is a community property state with no elective share, and the estate is above the $3,000,000 Washington estate-tax exclusion. One witness also takes a gift, which in Washington raises a rebuttable presumption unless two other witnesses signed. Expect 'valid-ready-to-execute' (no high flags) with community-property, witness and state estate-tax flags.
- Valid and ready to execute, Texas holographic will — A Texas will written entirely in the testator's own handwriting and signed at the end, with no witnesses. Texas recognizes holographic wills, so no witness or self-proving flag applies. The testator is single and everything else is complete. Expect 'valid-ready-to-execute'.
A single-page, step-by-step questionnaire for applying for a United States marriage license and, after the ceremony, the certified marriage certificate. It records the issuing state and county, both applicants, eligibility (age and consent, prior marriages, relationship, proxy), the license issuance and fee, and the ceremony (officiant, witnesses, return of the signed license). It classifies the application as ready-to-apply, incomplete, or not-eligible, works out the earliest permitted ceremony date and the license expiry, and raises prioritized flags (`F-USMLA-001` to `F-USMLA-024`).
- Ready, California, ceremony held and license returned — Two never-married adults in Los Angeles County apply on 2026-08-20 (California: no waiting period, 90-day validity, one witness on a public license). The license issues the same day with the $91 fee, the ceremony is on 2026-08-30 with an authorized clergy officiant and one witness, and the signed license is returned on 2026-09-01, inside the 10-day window. Expect ready-to-apply with an empty flag list.
- Ready, Texas, waiting period waived by a premarital course, same-sex couple — Two women in Travis County apply on 2026-08-25. One was divorced on 2024-05-10. Texas has a 72-hour wait, waived here because the couple completed a premarital course, so the earliest ceremony is the issue date itself; there is no ceremony date yet. Expect ready-to-apply with two low flags: the waiting-period information (waiver applied) and the same-sex Obergefell notice (not a bar).
- Incomplete, New York, ceremony the same day the license issues, no witness — Two adults in Kings County. The license issues on 2026-08-30 and the ceremony is also on 2026-08-30, inside New York's 24-hour waiting period, with no witness although New York requires one. Expect incomplete with the high waiting-period and witness-shortfall flags.
- Incomplete, Florida, expired license and officiant not recorded — A Florida license issues on 2026-06-01 and the ceremony is held on 2026-08-15, 75 days later, past the 60-day validity. The officiant is not recorded and the signed license has not been returned more than 10 days after the ceremony; no fee is recorded. Expect incomplete with the expired-license, officiant-missing, overdue-return, and fee flags.
- Not eligible, Pennsylvania, 17-year-old and a spouse not yet divorced — The first applicant is 17, and Pennsylvania allows no marriage under 18; the second applicant is recorded as currently married. Expect not-eligible with the underage and existing-marriage flags (and the SSN-declined notice for the minor).
- Not eligible, Florida, proxy requested and applicants related — The applicants are recorded as related within a prohibited degree, and a proxy marriage is requested in Florida, which does not allow it. Expect not-eligible with the prohibited-relationship and proxy-not-permitted flags.
- Incomplete, Vermont (unlisted state), missing details and remote appearance — Vermont is not in the rule table, so the uniform default applies and the state-rule flag asks the applicants to verify. The county is blank, the second applicant has no date of birth or marital status, neither has presented ID, and the couple will not appear in person with no proxy. Expect incomplete with the missing-data, ID, in-person-appearance, and verify-state-rule flags.
- Incomplete, Illinois, 17-year-old without consent and an undocumented divorce — The second applicant is 17 and Illinois allows that with parental consent or judicial approval, but none is recorded; the first applicant is divorced with no end date. Expect incomplete with the minor-consent and prior-marriage-undocumented flags.
- Not eligible, Florida, 17-year-old with a partner more than two years older — A 17-year-old and a 22-year-old apply in Florida with parental consent recorded. Florida allows 17 with consent only when the partner is no more than two years older. Expect not-eligible with the underage flag naming the age-gap limit.
- Ready, Ohio, 17-year-old with a court order and a partner within four years — A 17-year-old and a 20-year-old apply in Ohio with juvenile-court approval recorded; the age gap is within Ohio's four-year limit. Ohio has no waiting period. Expect ready-to-apply, with the low waiting-period information flag only.
- Ready, Washington, two witnesses, late return and SSN not issued — A Washington couple observes the 3-day wait (issued 2026-07-20, ceremony 2026-07-25), has two witnesses and an authorized officiant, and returns the signed license on 2026-08-30, 36 days after the ceremony and past the 30-day window. One applicant has no Social Security number issued. Expect ready-to-apply with the late-return and SSN notice low flags.
- Incomplete, Georgia, unauthorized officiant and license returned before the ceremony — The officiant is recorded as not authorized to solemnize marriages in Georgia and the license-return date is before the ceremony date (a typing error). Expect incomplete with the unauthorized-officiant and return-before-ceremony flags.
- Not eligible, California after the minor path closes (2027) — California allows a court order for a minor until 2027-01-01. On an application dated 2027-01-15 a 17-year-old with a court order is barred. Expect not-eligible with the underage flag.
- Ready, Texas, deployed service member by proxy — A Texas applicant is on active duty and a proxy marriage is requested; Texas allows proxy marriage for a deployed service member. The 72-hour wait is waived by the military exception. Expect ready-to-apply with the proxy allowed and the low waiting-period information flag, and the in-person flag does not fire because a proxy is requested.
- Incomplete, Ohio, ceremony dated before the license issued — The ceremony date (2026-08-01) is before the license issue date (2026-08-05), a date typo or a ceremony held without a license. Expect incomplete with the ceremony-before-issuance flag.
A county or state application for a residential property tax homestead exemption and related relief: senior, disability, disabled-veteran and circuit-breaker relief, plus assessment-appeal basics. The applicant gives the parcel number, ownership and occupancy as of the assessment date, the exemptions claimed, household income, the proof documents, the filing date and a signed declaration under penalty for a false statement.
- Likely eligible: Texas homestead plus over-65, filed in time — Austin homeowner aged 71, owner-occupier on January 1, claims the homestead and the over-65 exemption (Texas has no income limit), all proofs attached, signed, filed 18 March 2026 before the 30 April deadline. Expect likely-eligible, deadline 2026-04-30, filed on time, qualifying homestead and senior, and no flags.
- Likely eligible: California Homeowners' Exemption with appeal guidance — Los Angeles owner-occupier claims only the $7,000 Homeowners' Exemption, files 3 February 2026 before the 15 February deadline, and asks for appeal guidance with a notice date. Expect likely-eligible with a single low appeal-guidance flag.
- Incomplete: Florida application with no proofs, unsigned — Orange County owner-occupier, homestead and senior claimed, filed 20 February 2026 (before 1 March) but no proof documents are marked attached, household income and age are present, and the declaration is neither signed nor acknowledged. Expect incomplete, with signature, documents and state-figures flags.
- Incomplete: Washington disabled veteran missing rating and income — King County applicant claims homestead, disability and disabled-veteran relief but gives no VA rating or income, no disability proof, and the unencoded-deadline state raises low flags. Expect incomplete: the blank VA rating raises the income-missing (needs-an-answer) flag, alongside documents, no-deadline and figures flags.
- Likely ineligible: Illinois homestead not occupied, second homestead — Cook County owner who did not live in the home on January 1 and also claims a homestead elsewhere. Illinois sets no statewide deadline, so no late flag fires. Expect likely-ineligible with occupancy and duplicate-homestead high flags.
- Likely ineligible: Ohio senior over the income limit and filed after December 31 — Franklin County owner aged 70 with household income $52,000, above the $41,000 Ohio limit, filing 4 January 2027 for assessment year 2026, after the 31 December 2026 deadline, as an initial (not late) application. Expect likely-ineligible with late-filing, income and no passing exemption.
- Likely ineligible: New York senior under 65 claiming Enhanced STAR — Monroe County owner aged 58 claiming only the senior relief, which needs age 65. Expect likely-ineligible because the sole claim fails the age test, plus an age flag and a state-figures low flag.
- Eligible with late-filing relief: Pennsylvania filed after March 1 as a late application — Allegheny County owner aged 66, income $31,000 (under the $48,110 limit), homestead and circuit-breaker claimed; filed 10 April 2026 against the 1 March 2025 deadline for the 2026 year but marked as a late application. Expect likely-eligible with a medium late-relief flag and qualifying homestead and circuit-breaker.
- Likely eligible with verify flag: unknown state uses the default rule — A Georgia application (not in the encoded table) otherwise complete: the default rule applies, no deadline can be derived, and a verify-state-rule flag is raised. Expect likely-eligible with the medium state-verify flag and no derived deadline.
- Likely ineligible: disabled-veteran claim below the minimum rating and no claims otherwise — Texas owner claims only the disabled-veteran exemption with a 0 percent VA rating. Expect likely-ineligible with a veteran-rating high flag.
A single-page, step-by-step questionnaire for Form SS-5, the application for an original, replacement, or corrected Social Security card. It checks the form and the evidence the applicant plans to bring against the Social Security Administration (SSA) rules, classifies the application as Ready to submit, Incomplete, Evidence missing, or Not eligible, and raises prioritized flagged issues. It is documentation support, not legal advice, and SSA decides every application. The Social Security number is never collected.
- Ready: adult original card, all evidence — Adult US-born applicant requests an original card in person with an unexpired Texas driver license and a US birth certificate that prove identity, age, and citizenship; originals; signs for self. Expect ready-to-submit and no flags.
- Ready: replacement card, evidence on file — Replacement of a lost card, second replacement this year and third in a lifetime, with the name on the most recent card given, a US passport as identity, and citizenship already on file. Expect ready-to-submit; the near-limit flag fires because two have been issued this year.
- Ready: child original card signed by a parent — Seven-year-old US-born child; the mother signs, gives her name, and brings her own identity document; the child's identity, age, and citizenship are shown by a US birth certificate and a school identity card. Expect ready-to-submit.
- Incomplete: blank-ish application — Only the request type is chosen; the applicant items, evidence, signer, and Tell-SSA answers are blank. Expect incomplete with the missing-fields, signature, identity, age, and citizenship flags.
- Incomplete: original card by mail for a 30-year-old — Everything is present, but an applicant aged 12 or older chooses to mail an original-card application. Expect incomplete with the in-person flag; a state code 'ZZ' is also unrecognized so the verify-state flag fires.
- Incomplete: minor signs for self — A 15-year-old signs for herself; a parent is required. Expect incomplete with the minor-signer flag. The name differs from the birth name with no name change recorded, so the name-differs flag also fires.
- Incomplete: replacement says never applied — Replacement requested but item 12 answers no, which contradicts the request, and the name on the most recent card is blank. Expect incomplete with the missing-fields and prior-application flags.
- Evidence missing: noncitizen without work authorization — Lawfully admitted noncitizen not allowed to work requests an original card with a Permanent Resident Card but no valid non-work reason, and an expired foreign identity document. Expect evidence-missing with identity-evidence and work-authorization flags.
- Evidence missing: name change without document, photocopies, no age proof — Corrected card after marriage: name change claimed, no marriage certificate, an expired license, photocopies, and the date of birth also corrected with no age document. Expect evidence-missing with identity, age, name-change, and originals flags.
- Evidence missing: adult signed for by another without identity — An adult applicant is signed for by a custodian who has no identity document with them. Expect evidence-missing with the signer-identity and adult-signer flags.
- Not eligible: replacement limit reached, no exception — Third replacement this year already issued; no name change and no exception claimed. Expect not-eligible and the replacement-limit flag.
- Ready: limit reached but non-receipt exception documented — Tenth replacement in a lifetime already issued, but the last card was never received and documents support the exception. Expect ready-to-submit with the low exception flag.
- Not eligible: exception claimed without documents — Lifetime limit exceeded (11 replacements); hardship is claimed but nothing supports it, so the exception is unsupported. Expect not-eligible, replacementLimitReached true, with the limit flag and the unsupported-exception flag.
- Not eligible: applicant has died — A family member begins an application for a person who has died; the death has not been reported to SSA. Expect not-eligible with the deceased and death-report flags.
A documentation-support and validity-classification form for the [U.S. Standard Certificate of Death](https://www.cdc.gov/nchs/data/dvs/DEATH11-03final-acc.pdf) as completed by the funeral director and the medical certifier. It is not a clinical score, not a diagnostic tool, and not legal advice: the registering state agency decides whether a certificate is accepted.
- Valid: natural death in a California hospital, complete certificate — Expected death of an 83-year-old woman: aspiration pneumonia due to an ischemic stroke due to atrial fibrillation, Part II type 2 diabetes mellitus, all intervals given, natural manner, tobacco no, pregnancy not applicable, certified the day of death, filed in 3 days, five copies at the California fee of $24 each. Expect valid, underlying cause Atrial fibrillation, no flags.
- Incomplete: cardiac arrest as the only cause (Texas) — A 74-year-old man whose only Part I line is "Cardiac arrest" with Part II empty. The NCHS Handbook forbids a mechanism standing alone. Everything else is complete, so the class is incomplete and F-MECHANISM-001 fires.
- Refer: accidental fall, cremation planned, copies ordered (New York) — A 58-year-old man who fell from a ladder: subdural hematoma due to blunt force head injury due to a fall from a ladder. Manner accident, referral recorded with reason accident, injury items complete, cremation planned and two copies ordered before the case is released. Expect refer-to-medical-examiner-or-coroner with F-ME-REFERRAL-001, F-CREMATION-HOLD-001 and F-COPIES-001.
- Incomplete: many gaps and unwritten abbreviations (Florida) — A 36-year-old woman. Part I line (a) is empty while (b) says COPD and (c) says DM, so the sequence is illogical, the terms are abbreviated and diabetes has no type. Part II says only "Diabetes". Date of birth, manner, tobacco and pregnancy are blank, the certifier has no license number or date, and no funeral director is named. Expect incomplete with the full set of completeness flags.
- Valid with flags: unspecified cancer, late certification and filing (Ohio) — A 66-year-old woman with sepsis due to metastatic cancer of the pancreas (no histologic type). Certified 3 days after death and filed 5 days after, against Ohio limits of 2 and 3. Complete otherwise, so the class is valid while F-SPECIFICITY-001, F-CERTIFY-DEADLINE-001 and F-FILING-DEADLINE-001 fire.
- Valid with flags: pregnancy at death, copy order problems (Illinois) — A 31-year-old woman who died pregnant (amniotic fluid embolism). Valid certificate. The requester is outside the immediate family and unverified, and the fee paid ($57) differs from Illinois’s $19 plus $4 per additional copy ($27). Expect F-COPIES-001 and F-FEE-001 only.
- Refer: suicide by overdose with injury items missing and late filing (Washington) — A 41-year-old man: acute diphenhydramine toxicity, manner suicide, referred to the medical examiner. The injury items are blank. Died Friday 2026-06-12 and filed Thursday 2026-06-18, four business days against Washington’s three. Expect refer, F-ME-REFERRAL-001, F-INJURY-001, F-FILING-DEADLINE-001 (unverified note).
- Valid with flags: medical examiner certifies, manner pending (Pennsylvania) — A 52-year-old man found dead; the medical examiner is the certifier, so no referral is needed. Manner is pending investigation and the autopsy items are blank, and cremation is planned. Expect valid with F-PENDING-001, F-AUTOPSY-001 and F-CREMATION-HOLD-001.
- Refer: natural manner with a hip fracture, unattended, unlisted state (Georgia) — An 80-year-old woman recorded as a natural death although line (b) is a hip fracture; the certifier did not attend her. Dates are inconsistent (certified before death, stated age 80 but dates give 66). Georgia is not in the state table. Expect refer with F-ME-REFERRAL-001, F-MANNER-MISMATCH-001, F-DATES-001 and F-VERIFY-STATE-001.
- Valid with flags: pregnancy item inconsistent, accident-free but late (Texas) — A 50-year-old man whose pregnancy item says pregnant at time of death. Certified 7 days after death (Texas allows 5 for the physician, verified) and filed 12 days after (Texas allows 10, not independently verified). Natural manner, valid otherwise. Expect F-PREGNANCY-001, F-CERTIFY-DEADLINE-001, F-FILING-DEADLINE-001.
A bill of sale for a private-party sale of a motor vehicle in the United States. One continuous single-page wizard collects the sale (state, date, price, payment, sales-tax basis), the seller and buyer, the vehicle (year, make, model, body type, VIN, title brand), the federal odometer disclosure statement (49 CFR Part 580), the as-is clause, title and lien status, notarization where the state requires it, and the post-sale release of liability and buyer title application. The engine classifies the sale as complete, incomplete, or risk flagged and raises prioritized flags. It is documentation support, not legal advice: the state motor vehicle agency decides what it accepts.
- Complete Texas sale with odometer disclosure — Private sale of a 2018 Toyota Corolla in Texas on 2026-08-25 for $12,500. Both parties are fully identified and signed; the VIN passes the check digit; the odometer disclosure (64,210 miles, actual) is signed by both; as-is, no lien, title in hand and signed over; the seller filed the Vehicle Transfer Notification within 30 days and the buyer applied to title within 30 days. Expect class complete and only the always-on disclaimer flag.
- Complete California sale of a 10-year-exempt vehicle — Private sale of a 2005 Honda Accord in California on 2026-08-01 for $3,200. Model year 2005 is more than 10 years old, so the federal odometer disclosure is exempt under 49 CFR 580.17(a)(3) and no odometer fields are filled. The seller filed the REG 138 notice two days after the sale (limit 5 days) and the buyer applied within 10 days. Expect class complete with the low-priority exempt note and the disclaimer.
- Incomplete Washington sale: buyer unsigned, odometer unacknowledged — A 2019 Subaru Outback sold in Washington on 2026-09-01 for $19,000. The buyer details (address, ZIP) are missing and the buyer has not signed; the odometer reading is recorded but the buyer has not acknowledged it; no as-is statement. Expect class incomplete, a missing-odometer flag, missing party details, missing signature, missing terms, a pending release-of-liability flag (5 days), and the WA official-form note.
- Risk-flagged Florida sale: odometer discrepancy and late filings — A 2019 Chevrolet Silverado sold in Florida on 2026-06-15 for $27,000. The seller certified that the odometer reading (131,500 miles) is NOT the actual mileage, which must be flagged to the buyer. The seller filed the Notice of Sale 45 days after the sale (limit 30) and the buyer applied to title 35 days after the sale. Everything else is complete. Expect class risk-flagged, an odometer-discrepancy flag, a late release-of-liability flag, a late buyer-title flag, the FL rule and the disclaimer.
- Risk-flagged Ohio sale: lien, bad VIN, rebuilt brand, no notarization — A 2013 Ford F-150 sold in Ohio on 2026-08-28 for $14,500. A lien held by First Federal Credit Union is outstanding, the VIN fails the check digit, the title is branded rebuilt, and Ohio requires the title assignment to be notarized but it was not. The odometer disclosure is complete. Expect class risk-flagged with high flags for the lien, VIN, brand, notarization, plus the disclaimer.
- Complete sale in a state outside the rule table — A 2021 Toyota Tacoma sold in Minnesota on 2026-08-10 for $31,000. Every required item is present, but Minnesota is not in the engine STATE_RULES table, so the uniform default applies and a verify-state-rule flag is raised. The title brand is recorded as unknown (low flag). Expect class complete, stateRuleKnown false, and the medium verify-state-rule flag.
- Complete Pennsylvania sale, notarized, buyer title overdue — A 2016 Honda Civic sold in Pennsylvania on 2026-07-10 for $11,200. Pennsylvania requires both parties to sign the title before a notary; that is recorded. All other items are complete, but no buyer title application is recorded and the 20-day window has passed. Expect class complete with a medium buyer-title-deadline flag, a low release-of-liability note (no seller deadline encoded), and the disclaimer.
- Risk-flagged Illinois gift: no title in hand, short VIN, future date — A 2016 Jeep Cherokee given as a gift in Illinois with a sale date of 2026-12-01 (in the future). The seller does not hold the title, the VIN is only nine characters, the price is $0 with no tax exemption stated, and the buyer has not signed. Expect class risk-flagged with high flags for the missing title, invalid VIN and missing signature, and medium flags for the sales-tax basis, implausible date, and missing details.
- Complete New York sale with the official bill of sale form — A 2012 Nissan Altima sold in New York on 2026-08-18 for $5,900. Model year 2012 is less than 20 years old at the sale, so the odometer disclosure is required and complete. NY expects the official MV-912 form and has no encoded seller or buyer deadline. Expect class complete with the low state-form flag, a low release-of-liability note, and the disclaimer.
- Incomplete California sale: title not signed over, release overdue — A 2020 Ford Transit sold in California on 2026-08-20 for $22,000. The seller holds the title but has not signed it over, and the REG 138 release of liability was not filed within 5 days (14 days have passed by 2026-09-03). Expect class incomplete with a medium title-problem flag, a high overdue release-of-liability flag, a medium overdue buyer-title-deadline flag, and the disclaimer.
- Complete Texas sale of a heavy truck exempt by weight — A 2017 Freightliner box truck with a GVWR over 16,000 pounds sold between two businesses in Texas on 2026-07-01 for $46,000. The federal odometer disclosure is exempt under 49 CFR 580.17(a)(1), so no odometer fields are required. Filings are on time. Expect class complete with the exempt note and the disclaimer.
- Risk-flagged Louisiana sale: mileage exceeds mechanical limits, notarized, with warranty — A 2014 Dodge Ram 1500 sold in Louisiana on 2026-08-05 for $9,800 with a written 30-day warranty. The seller certified the odometer reading exceeds the mechanical limit of the odometer (999,999). Louisiana is in the rule table with notarization of the bill of sale, which is recorded as done. Expect class risk-flagged with an odometer-discrepancy flag, the LA state-form note, a low release-of-liability note, and the disclaimer.
An application for a certificate of title and registration with a United States state motor vehicle agency. The applicant records the state and transaction, the owner and co-owner identification, the vehicle and its VIN, the federal odometer disclosure, the title history and any title brand (salvage, junk, rebuilt, flood, and so on), any lien, proof of insurance, inspections, and the sales or use tax and fees. The engine checks the application for completeness and consistency against federal rules and the rules of the chosen state, before it reaches a clerk.
- Ready: California used private-party sale, all documents present — A 2019 Honda Civic bought privately in Fresno and applied for 7 days after the sale. The VIN passes the 49 CFR 565.15 check digit, a signed odometer statement is acknowledged by the buyer, the state title is surrendered, NMVTIS is clear, there is no lien, insurance is current, and the smog certificate (required in California for a used gasoline vehicle more than four model years old) has passed. Use tax is due at 8.75 percent. Expect applicationClass 'ready-to-submit' and no flags.
- Ready: Texas new truck from a dealer, financed, electronic lien — A new 2026 Ford F-150 bought from a dealer on a manufacturer's statement of origin, with a new electronic lien to a credit union and tax paid to the dealer. The 16-mile odometer reading is disclosed (a new vehicle's dealer-to-buyer sale is not exempt). Expect 'ready-to-submit' with only the low-priority county-emissions reminder, F-INSPECTION-003.
- Incomplete: Florida purchase with a mistyped VIN, no insurance, no odometer statement — A 2016 Volkswagen Jetta bought privately, where the VIN was mistyped (the check digit no longer matches), no proof of insurance is provided, the seller's odometer statement is missing, the title is not surrendered, and tax and fees are not settled. Expect 'incomplete' with VIN, odometer, title, insurance, and fee flags, and a medium NMVTIS-not-checked flag.
- Issue: Washington salvage title, NMVTIS record found, title-only — A 2014 Subaru Outback with a salvage brand disclosed on the application, and an NMVTIS check that found the brand and a total-loss record. The applicant requests a title only, so the registration-time salvage flag does not fire and insurance is not required. Expect 'title-brand-or-lien-issue' with F-BRAND-001 and F-BRAND-005.
- Issue: Pennsylvania existing lien not released — A 2021 Toyota Camry whose prior lien has not been released by the lender: the seller's title still shows the bank. Everything else is complete. Expect 'title-brand-or-lien-issue' with F-LIEN-001 and the low PA safety-and-county-emissions reminder.
- Ready: Montana (state not encoded) uses the uniform default rule — A 2010 Toyota Prius titled in Montana, which is not in STATE_RULES, so the uniform default rule applies and F-STATE-002 asks the applicant to verify the state rule. A model-year-2010 vehicle transferred in 2026 is 16 years old, so the odometer disclosure is exempt (49 CFR 580.17). Tax is marked exempt with a stated reason. Expect 'ready-to-submit' with F-STATE-002 and F-ODOMETER-005.
- Ready: Illinois out-of-state transfer from Wisconsin, 1998 vehicle, late application — A 1998 Chevrolet Cavalier brought from Wisconsin on an out-of-state title, with a completed VIN verification. The odometer is exempt (model year 2010 or earlier and over 10 years old). The application is 32 days after purchase, past Illinois's 20-day period. Expect 'ready-to-submit' with F-DEADLINE-001, F-ODOMETER-005, and F-INSPECTION-003.
- Issue: Ohio gifted vehicle with a not-actual-mileage odometer disclosure — A 2017 Ford Focus received as a gift, where the donor signed an odometer statement that the reading is NOT the actual mileage after an instrument-cluster replacement. A not-actual disclosure puts the application in 'title-brand-or-lien-issue' (F-ODOMETER-002) and the title will be branded. Tax is exempt as a family gift.
- Ready: New York business-owned heavy truck over 16,000 pounds (odometer exempt) — A 2017 Freightliner truck with a 24,000-pound GVWR bought by a business identified by its FEIN. The odometer disclosure is exempt (GVWR over 16,000 pounds), the weight class is recorded, and New York tax is entered at the 8.875 percent New York City rate. Expect 'ready-to-submit' with F-ODOMETER-005, F-WEIGHT-002, and the low NY inspection reminder.
- Incomplete: Arizona co-owner AND has not signed, expired insurance, tax rate below the state base — A 2025 Toyota RAV4 titled to two owners joined by AND, where the co-owner has not signed, the insurance policy expired before the application date, and the tax rate entered (5 percent) is below Arizona's 5.6 percent base. Expect 'incomplete' with F-OWNER-003, F-INSURANCE-002, F-TAX-002 and the low Arizona emissions reminder.
- Issue: California rebuilt vehicle, brand undisclosed, no inspection, no smog certificate — A 2018 Honda Civic carrying a rebuilt brand that the applicant has not disclosed, with no rebuilt-vehicle inspection and no smog certificate. Expect 'title-brand-or-lien-issue' with F-BRAND-001, F-BRAND-002, F-BRAND-003 and F-INSPECTION-001.
- Ready: California 1972 classic, VIN not standardized, odometer exempt — A 1972 Ford Mustang titled in California. A pre-1981 vehicle has no 17-character VIN (F-VIN-004), the odometer disclosure is exempt by age, and the smog requirement is marked exempt for a pre-1975 vehicle. Expect 'ready-to-submit' with F-VIN-004 and F-ODOMETER-005.
- Blank application — Nothing entered. Expect 'incomplete' with every required item outstanding and the missing-state, VIN, title, tax, and fee flags.
A UK NHS–aligned urine pathology test request (order) that a clinician completes to order one or more urine investigations for a patient. It records the requested test panel (dipstick, MC&S, ACR, PCR, pregnancy test, drug screen, cytology, 24-hour collection), the clinical indication and details, symptoms and red flags, the specimen type and collection timing, and the requested urgency — then computes a four-axis grading (appropriateness, preanalytical specimen suitability, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the pathology / laboratory triage and acceptance decision.
- routine-suspected-uti-dipstick-msu-complete — Well-formed routine GP referral: suspected UTI, dipstick requested (first-line), a correctly collected midstream specimen, every completeness field present — expect usually-appropriate + ok + routine + accept.
- urgent-visible-haematuria-cytology-random-specimen-caution — Painless visible haematuria: cytology is first-line for the haematuria indication, and visible haematuria itself auto-escalates triage to urgent regardless of the requested urgency, but the specimen provided was a random sample rather than midstream/clean-catch — a random specimen is sub-optimal for culture/cytology, forcing a pre-analytical caution — expect usually-appropriate + caution + urgent + accept (caution alone does not block acceptance, only reject-risk does).
- stat-pyelonephritis-mcs-not-collected-incomplete — Fever with loin pain phoned through from the emergency department: microscopy, culture and sensitivity is first-line to confirm suspected UTI, and the fever-plus-loin-pain combination itself forces stat triage (possible pyelonephritis / urosepsis), but no specimen has been collected yet — the request cannot proceed to the lab until one is provided, forcing a reject-risk pre-analytical band — and several administrative fields are not yet captured — expect usually-appropriate + reject-risk + stat + reject, completeness below 100.
A UK NHS–aligned urinalysis result (report) that a reporting clinician completes after one or more urine investigations have been performed. It is the result/report counterpart to Urinalysis Test Request (an order): where the request captures which urine tests to run and why, this form records what the investigation found and a structured interpretation. It records the specimen and its condition, the clinical history, the dipstick (reagent strip) results, microscopy, culture and antibiotic sensitivities, then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured pathology report.
- normal-satisfactory-specimen — Fully normal dipstick, microscopy, and culture on a satisfactory specimen — every axis at baseline.
- uti-features-no-culture-yet — Positive leucocytes, positive nitrites, and organisms seen on microscopy — classic UTI dipstick/microscopy features — while culture is still pending, so the classification rests on the UTI-features path rather than a positive culture.
- significant-bacteriuria-e-coli — Culture confirms significant growth of Escherichia coli — moderate severity, the reporting category names the organism.
- asymptomatic-bacteriuria-pregnancy-critical — Significant growth in a pregnant patient — asymptomatic bacteriuria in pregnancy is treated as a critical finding regardless of symptoms, since untreated it carries a meaningfully higher risk of pyelonephritis and preterm labour.
- suspected-urosepsis-critical — Suspected urosepsis flagged directly by the reporting clinician (fever, rigors, and flank pain alongside the urinalysis findings) — auto-escalates to critical regardless of the dipstick/culture picture on its own.
- visible-haematuria-critical — Visible (frank) haematuria reported by the patient and confirmed on the specimen — auto-escalates to critical to ensure urgent investigation for a structural or malignant cause, independent of the rest of the urinalysis.
- incidental-glucosuria — Isolated glucosuria on an otherwise entirely normal urinalysis — an incidental finding worth acting on (new diabetes screening), but not itself a UTI or significant growth, so it grades as abnormal-but-minor rather than moderate or normal.
- insufficient-specimen-inconclusive — Sample volume was too small to complete dipstick, microscopy, and culture — classified inconclusive regardless of whatever partial data was obtained.
- mixed-growth-contaminant-no-impression — Mixed growth of multiple organisms typical of a contaminated collection technique, and no impression has been recorded yet — inconclusive rather than assumed abnormal, pending either a repeat specimen or a clinician's interpretation.
Urological evaluation using the IPSS (International Prostate Symptom Score) with quality of life assessment, renal function review, and sexual health screening.
- Mild LUTS - routine GP review, normal PSA and renal function — 62-year-old man with occasional nocturia and mild frequency, no red-flag symptoms, PSA 1.2, eGFR 88, no relevant family history or medications. IPSS items 0,1,0,0,1,0,1 = total 3 -> 'Mild'; firedRules = IPSS-02, IPSS-05, IPSS-07 (score 1 each); no additionalFlags.
- Moderate boundary with two IPSS items unanswered, PSA 4.0 and eGFR 60 exactly — 58-year-old man with Parkinson's-type symptoms under investigation (neurological condition marked yes but details left blank) who skipped IPSS Q2 and Q6. Answered items 2,1,2,0,3 = total 8 -> 'Moderate' at the lower boundary; firedRules = IPSS-01 (2), IPSS-03 (1), IPSS-04 (2), IPSS-07 (3). PSA is exactly 4.0 and eGFR exactly 60, so neither threshold flag fires; straining 'yes' with an 'intermittent' stream does not meet the retention rule. Expect exactly 2 additionalFlags in priority order: FLAG-NEURO-001 (medium, message ending 'details not specified') then FLAG-ED-001 (low, ED with total >= 8).
- Severe LUTS with haematuria, PSA 12.6, CKD 3b, MS and triple therapy — 71-year-old man with multiple sclerosis on tamsulosin + finasteride + oxybutynin, visible haematuria, dysuria with frequency, straining with weak stream, PSA 12.6, eGFR 41, erectile dysfunction, and a family history of prostate cancer, bladder cancer and kidney disease. All seven IPSS items 5 = total 35 -> 'Severe'; firedRules = IPSS-01..IPSS-07 (score 5 each). Expect 13 additionalFlags stable-sorted by priority: high FLAG-SEVERE-001, FLAG-HEMATURIA-001, FLAG-PSA-001, FLAG-RENAL-001, FLAG-FAMILY-PC-001, FLAG-MED-002; medium FLAG-RETENTION-001, FLAG-UTI-001, FLAG-FAMILY-BC-001, FLAG-FAMILY-KD-001, FLAG-MED-001, FLAG-NEURO-001 (message names 'Multiple sclerosis'); low FLAG-ED-001.
A practitioner-completed administrative card that places a patient on a urology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 urology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 urology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 urology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
Immunization-schedule compliance assessment covering childhood, adult, travel, and occupational vaccinations, with contraindication screening, consent capture, and administration record. Aligned with the UK Green Book (Immunization against infectious disease).
- Fully immunised 34-year-old, routine flu booster given — Woman with a complete Red Book childhood record and all age-appropriate adult vaccines (shingles and PPV not yet due, left unanswered), high-quality consent (5,5,4,5), no contraindications, annual flu vaccine administered with satisfactory observation (5). vaccineScore 100 (12 answered, all 2), consentScore 93.75, score = round(80 + 18.75) = 99 -> level 'upToDate'. firedRules = VAX-016, VAX-017, VAX-018, VAX-019, VAX-020 (all low 'positive' rules); no additionalFlags.
- Pregnant traveller with no record and gaps - partially complete at the boundary — 29-year-old woman, 24 weeks pregnant, planning travel to Ghana, recalls her history without any record, egg-allergic; only five vaccine items answered (MMR partial, pre-school booster not given, Td/IPV complete, flu not given, COVID-19 partial), no travel vaccines recorded, consent quality exactly average (3,3,2,4 -> 50), catch-up needed but referral marked 'no'. vaccineScore 40, consentScore 50, score = round(32 + 10) = 42 -> 'partiallyComplete'. firedRules in order: VAX-002 (childhood 25% < 40), VAX-007 (flu 0), VAX-010 (travel planned, all travel items null), VAX-012 (pregnant), VAX-015 (catch-up without referral). VAX-014 stays silent because consentScore is exactly 50, not below. additionalFlags sorted: FLAG-VAX-005 (high, pregnant), FLAG-VAX-006 (no record), FLAG-VAX-008 (egg allergy), FLAG-VAX-010 (catch-up) — FLAG-VAX-009 does not fire because yellowFever is null, not 0.
- Contraindicated: immunocompromised hospital porter with prior vaccine anaphylaxis, declining consent — 58-year-old man on rituximab, hospital porter without occupational hepatitis B, previous anaphylaxis to a flu vaccine, currently febrile, egg-allergic, no record, MMR and most childhood/adult vaccines not given or partial, travel planned with yellow fever/hep A/typhoid all 'not given', consent quality very poor (1,2,1,2) and consent declined; catch-up and referral both marked yes; nothing administered. 14 items answered; vaccineScore 10, consentScore 12.5, score = round(8 + 2.5) = 11; level 'contraindicated' (anaphylaxis — the immunocompromised early-return branch yields the same result). firedRules in order: VAX-001, VAX-002, VAX-003, VAX-005, VAX-006, VAX-007, VAX-008, VAX-009, VAX-011, VAX-013, VAX-014 (11 rules; VAX-010 silent because travel items are answered, VAX-015 silent because referralNeeded is 'yes'). additionalFlags stable-sorted: high FLAG-VAX-001, 002, 003, 011, 013; medium FLAG-VAX-006, 007, 008, 009, 010, 012; low FLAG-VAX-014 (12 flags).
Immunization status tracking for healthcare workers and patients covering routine, occupational, travel, and special circumstance vaccines with compliance scoring and risk stratification.
- Fully immunised primary-school teacher — Education worker (non-healthcare) with a complete childhood schedule, COVID-19 primary course plus booster, current-season flu vaccine, no travel, no contraindications, OH clearance granted. No rule fires; occupationalComplete is true by virtue of the non-healthcare occupation. Expect complianceStatus 'fully-immunised', overallRisk 'low', all four completeness signals true, no fired rules, no flags, no missing vaccinations.
- Newly appointed staff nurse - booster and BCG gaps — Healthcare worker with a complete childhood schedule, Hep B course with adequate antibodies, chickenpox history, COVID primary course but no booster, current flu vaccine, BCG status unknown, rubella IgG negative on pre-employment serology, OH clearance pending, and a documented non-anaphylactic reaction to COVID dose 2. Four grade-2 rules fire in catalogue order (OCC-004, COV-003, SER-002, CMP-002); no grade-3/4 rule. All completeness signals are true (Hep B yes + antibody adequate + varicella history yes satisfies the healthcare occupational check). Expect complianceStatus 'partially-immunised' (via the grade-2 branch), overallRisk 'moderate', exactly one medium flag (FLAG-COVIDADV-001 - the rubella-negative serology has a rule but no flag), and an empty missingVaccinations list (rubella and BCG are not in the missing-vaccination derivation).
- Agency healthcare assistant - needlestick exposure with anaphylaxis history — Critical-highest healthcare worker: active needlestick exposure from a Hep B-positive source, Hep B course unknown with surface antibody negative, varicella non-immune (no vaccine, unknown history, IgG negative), BCG not received, no current flu vaccine (in a high-risk group as a healthcare worker), MMR dose 2 and polio booster unknown, prior anaphylaxis to an influenza vaccine, egg anaphylaxis, and OH clearance refused. Thirteen rules fire in catalogue order: CH-002, CH-006, OCC-001, OCC-003, OCC-004, FLU-001, FLU-002, FLU-003, CTX-002, SER-003, SER-004, CMP-001, CMP-003 (three at grade 4: OCC-001, CTX-002, CMP-001). liveVaccineContraindicated is 'no' and immunocompromised is 'no', so the contraindicated branch does NOT apply despite anaphylaxis; the grade-4 rules give complianceStatus 'non-compliant' and overallRisk 'critical'. childhoodComplete false, occupationalComplete false, covidComplete true, fluCurrent false. Six flags after the stable priority sort: high FLAG-EXPOSURE-001, FLAG-ANAPH-001, FLAG-EGG-001; medium FLAG-HEPB-001, FLAG-VZV-001, FLAG-OH-001. Five missing vaccinations: MMR dose 2, Polio booster, Hepatitis B course, Varicella vaccination / history, Current-season influenza vaccine.
A practitioner-completed administrative card that places a patient on a vascular surgery waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 vascular surgery referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 vascular surgery referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 vascular surgery referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A practitioner-completed administrative card that places a patient on a venereology waiting list and gives the patient a transparent, easy-to-use view of their referral, expected wait, and upcoming appointment(s).
- routine-within-target — Routine P4 venereology referral 12 weeks into an 18-week target with a booked clinic slot — inside target, no flags expected.
- urgent-approaching-target — Urgent P2 venereology referral 3 weeks into a 4-week target, interpreter needed but no access arrangements recorded — approaching target with actionable flags.
- long-wait-breach — P3 venereology referral whose RTT clock started 56 weeks ago with no appointment booked — 52-week long-wait breach, harm review and booking flags expected.
A daily inpatient review entry completed at the bedside during a ward round. It captures a structured, contemporaneous record of a single review: when the patient was seen and by whom (date, time, clinician name and grade), overnight events, the current problem list and progress, examination findings and the latest observations (NEWS2), investigation results reviewed, the VTE assessment status, medication changes, the day's plan and jobs, the escalation / ceiling-of-care status, and the estimated discharge date.
- Complete consultant round - stable pneumonia, EDD set — All eight required components and both recommended components documented by the consultant. Medication uses the explicit 'no changes' negative and investigations use free text. NEWS2 2, stable, VTE assessed with prophylaxis, for full escalation, senior present, EDD recorded. Expect status 'complete', 100%, documentedRequired 8, ten component statuses all present, documentedComponents listing all ten in catalogue order, firedRules = eight required + R-OVERNIGHT-DOCUMENTED-01 + R-DISCHARGE-DOCUMENTED-01 + R-COMPLETENESS-01 ('All 8 required components documented - entry complete (100%)'), and no flags.
- Partial registrar round - three components missing, abnormal potassium not actioned — Non-critical edge case for the 'partial' band: header, problems, examination, investigations (via the 'none outstanding' negative) and plan are documented - five of eight required, with header and plan both present - but VTE status is blank, medication has neither changes nor the 'no changes' flag, and escalation is 'not-recorded' (which does not count). Overnight events are documented; estimated discharge is not. Expect status 'partial', completenessPercent 63 (62.5 rounded up), documentedRequired 5, documentedComponents [header, problems, examination, investigations, plan, overnight-events], firedRules = those five required + R-OVERNIGHT-DOCUMENTED-01 + R-COMPLETENESS-01 ('5 of 8 required components documented - entry partial (63%)'), and two flags: F-ABNORMAL-RESULTS-001 (medium; potassium flagged but not actioned) then F-INCOMPLETE-ENTRY-001 (low). NEWS2 3 with a stable trend is below every deterioration trigger.
- Incomplete FY1 entry - deteriorating patient, no plan, VTE not done, no senior — Critical-highest persona: an FY1 documents a deteriorating post-operative patient (NEWS2 8, a single parameter scoring 3, deteriorating trend) but records no plan or jobs, no escalation status, no medication entry, VTE 'not-done', an abnormal lactate flagged but not actioned, and no senior grade present. Header, problems, examination, investigations and VTE ('not-done' still counts as documented) give 5 of 8 required = 63%, but the missing plan forces status 'incomplete'. Overnight events and 'discharge not yet estimable' are both documented. Expect documentedComponents [header, problems, examination, investigations, vte, overnight-events, estimated-discharge], firedRules = those five required + both recommended + R-COMPLETENESS-01 ('5 of 8 required components documented - entry incomplete (63%)'), and six flags after the stable sort: high F-DETERIORATING-NEWS2-001, F-VTE-NOT-DONE-001, F-NO-PLAN-JOBS-001; medium F-ABNORMAL-RESULTS-001, F-NO-SENIOR-REVIEW-001 (deteriorating-patient wording, since no ceiling-of-care status is recorded); low F-INCOMPLETE-ENTRY-001.
A bedside screening tool that estimates an adult patient's risk of developing a pressure ulcer (pressure sore, bedsore, decubitus ulcer). It records a set of weighted risk categories — build / weight for height (BMI), skin type and visual risk areas, sex and age, continence, and mobility — plus four groups of special risk factors (tissue malnutrition, neurological deficit, major surgery or trauma, and medication), sums the points into a single total, and places the patient in a risk band. A higher total means higher risk: the band drives escalation of pressure-relieving support surfaces, repositioning frequency, and skin-care review.
- at-risk — Older woman with dry skin, urinary incontinence and restricted mobility: Waterlow 11 — at-risk band (10-14), commence a repositioning and skin-care plan.
- high-risk — Frail underweight woman over 80, bedbound with urinary incontinence: Waterlow 16 — high-risk band (15-19), high-specification foam mattress and 2-4 hourly repositioning.
- very-high-risk — Bedbound, doubly incontinent woman over 80 with broken skin, anaemia and existing pressure damage: Waterlow 22 — very-high-risk band (>=20), dynamic pressure-redistributing surface and tissue-viability referral.
A bedside clinical prediction rule that estimates the pre-test probability of a first lower-limb deep vein thrombosis (DVT) in adults with a suspicious leg. It records nine clinical criteria — each scoring +1 when present — subtracts 2 when an alternative diagnosis is judged at least as likely as DVT, sums a total of −2 to 9, and stratifies the patient so the right first investigation is chosen: a proximal leg vein ultrasound when DVT is likely or a D-dimer when DVT is unlikely. The score does not diagnose or exclude DVT on its own; it directs the diagnostic pathway.
- unlikely-low — No Wells criteria present with a plausible alternative diagnosis not favoured: Wells 0 — DVT unlikely (two-level), low probability (three-level); offer a D-dimer.
- likely-moderate — Localised tenderness with calf swelling over 3 cm: Wells 2 — DVT likely (two-level), moderate probability (three-level); proceed to proximal leg vein ultrasound.
- likely-high — Active cancer with tenderness, whole-leg swelling, calf swelling over 3 cm and pitting oedema: Wells 5 — DVT likely (two-level), high probability (three-level).
A clinical prediction rule that estimates the pre-test probability of acute pulmonary embolism (PE) in adults presenting with suspected PE. It records seven weighted criteria, sums a total of 0–12.5, and stratifies the patient into a probability band that selects the next diagnostic step — a D-dimer test when PE is unlikely, or a CT pulmonary angiogram (CTPA) when PE is likely.
- unlikely-low — Pleuritic chest pain but an alternative diagnosis at least as likely, no DVT signs and a normal heart rate: Wells 0 — PE unlikely (two-level), low probability (three-level); D-dimer pathway.
- likely-moderate — PE judged the most likely diagnosis with recent immobilisation and tachycardia: Wells 6 — PE likely (two-level), moderate probability (three-level); proceed to CTPA.
- likely-high — Clinical DVT signs with PE the most likely diagnosis and tachycardia: Wells 7.5 — PE likely (two-level), high probability (three-level); proceed to CTPA.
World Health Organization standardized acute referral form for transferring patients between healthcare facilities.
- Complete referral - stable closed femur fracture by ground ambulance — Health-centre nurse refers a 31-year-old man with a closed mid-shaft femur fracture after a motorbike crash to the district hospital for orthopaedic fixation. Every required field filled, all ABCDE rows recorded (Normal/None or finding + intervention), no precautions ticked, pregnancy 'no', normal vital signs, ground transfer, receipt section untouched. Expect complete true, totalRequired 27 (REC-02 and all RFR rules gated off), totalSatisfied 27, seven section buckets (no receipt bucket), empty missing, and zero flaggedIssues.
- Pregnant febrile patient by air with boundary vitals and half-filled receipt — Island dispensary refers a 24-year-old woman at 34 weeks with suspected severe malaria by air; every vital sign sits exactly on a silent boundary (HR 130, RR 30, SBP 90, SpO2 90, GCS 9) except temperature 39.0, which fires at >= 39. 'Other' precaution ticked with no details; receiving facility has entered only the arrival time. Expect complete false, totalRequired 30 (27 + REC-02 + RFR-01 + RFR-02; RFR-03 stays gated off because provider name and signature are blank), totalSatisfied 27, missing in order REC-02, RFR-01, RFR-02, an eighth 'referralFacilityReceipt' bucket with required 2 / satisfied 0. flaggedIssues sorted: FLAG-VIT-TEMP (high), FLAG-PREG (high), FLAG-MODE (low, 'AIR'); no FLAG-PRC-OTHER because otherDetails is blank.
- Suspected viral haemorrhagic fever in pregnancy with shock - urgent isolation transfer — Rural health post refers a 27-year-old woman at 30 weeks with suspected Lassa fever, in shock with depressed consciousness, by ground ambulance; highly infectious, aspiration and fall precautions ticked plus an 'Other' precaution with details, anticipated deterioration and therapy cautions documented. Departure time was not recorded in the rush. Expect complete false, totalRequired 28 (27 + REC-02, receipt untouched), totalSatisfied 27, missing = FT-08 only. flaggedIssues (13) stable-sorted: urgent FLAG-INF-001, FLAG-VIT-SPO2 (86), FLAG-VIT-RR (36), FLAG-VIT-GCS (7); high FLAG-VIT-SBP-LOW (74), FLAG-VIT-HR (142), FLAG-VIT-TEMP (40.1), FLAG-PRC-ASP, FLAG-PREG, FLAG-WORSEN; medium FLAG-PRC-FALL, FLAG-PRC-OTHER, FLAG-CAUTION.
World Health Organization standardized counter-referral form for discharging patients back from a referral facility to their primary care facility.
- Complete counter-referral, resolved appendicitis — Every field across all 7 sections is filled: full patient and emergency-contact details, both facilities and a ticked communication channel, a routine (not urgent) follow-up timeframe, a resolved surgical episode with the patient/family informed and a full explanation, a complete recommendations section including deterioration instructions, and a signed provider sign-off. All 35 rules satisfied (complete). One medium flag fires: the patient underwent surgery during the referral episode - a routine post-operative note, not a completeness gap.
- Partial counter-referral after a cardiac ICU admission — Emergency contact information and follow-up arrangements are both missing (2 of 35 rules unsatisfied), otherwise complete: an NSTEMI treated with angioplasty, a 2-day cardiac ICU stay, and a cognitive-impairment status flag. Three medium flags fire: the ICU stay, the cognitive-impairment flag, and pending investigations (a repeat echocardiogram) awaiting chase-up.
- Critical, near-blank counter-referral for a deteriorating pregnant patient — Almost every field is blank: only the patient's name, chief complaint, pregnancy status, and an explicit 'not informed' answer are recorded. Facility details, background, final diagnoses, and the entire recommendations and sign-off sections are all missing, including no deterioration-instructions text at all. The patient is pregnant, hospitalised with both an ICU stay and surgery, and marked with all five status flags (cognitive impairment, carer-dependent, spinal precautions, weight-bearing restrictions, and palliative care). Follow-up is marked urgent (within 24 hours). Only 5 of 34 applicable rules are satisfied (ASS-04 does not apply since the patient/family was not informed). Twelve flags fire: two urgent (urgent follow-up timeframe; no deterioration instructions), three high (no communication channel discussed; palliative care; patient/family not informed), seven medium (ICU stay, surgery, pregnancy, and all four remaining status flags).
World Health Organization standardized emergency first aid documentation form for community first aid responders.
- Complete CABCDE assessment, syncope resolved — Every CABCDE category is assessed as Normal with 'None' ticked for interventions, patient/referral/background/responder details are all filled, no precautions are flagged, and the transport plan documents discharge home. All 28 applicable rules satisfied (complete), no flags.
- Complete but flagged, confused diabetic patient — All 28 applicable rules are satisfied (complete), but breathing and disability are both abnormal with documented findings and only monitoring interventions ticked, and possible-fracture and fall-risk precautions are both flagged. Four medium flags fire: possible fracture, fall risk, abnormal breathing findings, and abnormal disability (neurological) findings.
- Critical, uncontrolled bleeding and airway obstruction after a fall — Only the patient's name, the trauma problem type, the event time, and a narrative are recorded. Major bleeding findings (severe arterial bleeding) and airway findings (partial obstruction) are both documented with NO intervention ticked for either. Circulation and exposure are marked abnormal with no findings text and no intervention. Glucose was given for reduced GCS and drowning care was administered, but the medication-taken question is left blank, no transport plan is recorded, an 'Other' precaution is ticked with no detail, and every responder-identification field is blank. Only 10 of 29 applicable rules are satisfied (19 missing). Eight flags fire: two urgent (major bleeding with no intervention; abnormal airway with no intervention), three high (highly infectious disease, spinal immobilization, and altered mental status precautions), two medium (abnormal disability findings; drowning care administered), one low (glucose given).
World Health Organization standardized emergency unit clinical documentation form for general (non-trauma) patients.
- Complete, minor ankle sprain discharged home — A walk-in green-triage patient with entirely normal airway/breathing/circulation, AVPU alert, normal vital signs, a complete history and past medical history, and a discharge with the plan discussed. All 30 applicable rules satisfied (complete), no flags.
- Moderate, hypertensive headache in a pregnant patient — Arrived by ambulance with the ambulance level left blank (the one missing field), severely elevated blood pressure (185 mmHg systolic), reported pregnancy, and discharged without the discharge plan being discussed. 30 of 31 applicable rules satisfied (not complete). Three flags fire: high (severely elevated systolic blood pressure), medium (pregnancy), low (no discharge plan discussed).
- Critical, unresponsive patient who dies with an almost blank record — Found unresponsive at home: AVPU is U with no airway intervention documented, critically low SpO2 (82%) with no breathing intervention, a respiratory rate of 4, poor perfusion with no circulation intervention, stridor, respiratory distress, severe vomiting, hypoglycaemia (2.1 mmol/L), a documented deficit with no description, IV drug use, and the patient dies with no cause of death recorded. Only 11 of 33 applicable rules are satisfied (22 missing, spanning registration, vitals timing, all three primary-survey categories, history, and almost the entire disposition section). Thirteen flags fire: seven urgent (airway with no intervention, unresponsive AVPU, critical SpO2, stridor, abnormal respiratory rate, hypoglycaemia, patient died), five high (SpO2 low with no breathing intervention, respiratory distress, poor perfusion with no circulation intervention, abnormal heart rate, severe vomiting/dehydration), one medium (IV drug use).
World Health Organization standardized emergency unit clinical documentation form for trauma patients.
- Complete, minor fall with no red-flag findings — A walk-in GREEN-triage patient with an unknown injury location explicitly ticked, entirely normal airway/breathing/circulation, AVPU alert, normal vital signs, a complete injury history and past history, and a discharge with the plan discussed. All 35 applicable rules satisfied (complete; RED-only rules A-02/D-02 do not apply at GREEN triage), no flags.
- Moderate, pregnant patient with a brief loss of consciousness — The injury location is left blank with 'Unknown' left unticked (the one missing field), severely elevated blood pressure, a reported pregnancy, and a brief loss of consciousness (5-29 minutes), discharged without the discharge plan being discussed. 34 of 35 applicable rules satisfied (not complete). Four flags fire: two high (severely elevated systolic blood pressure; pregnancy - high priority in this trauma form, unlike the sibling General form's medium), one medium (brief loss of consciousness), one low (no discharge plan discussed).
- Critical, RED-triage polytrauma who dies with an almost blank record — A pregnant, IV-drug-using patient from a high-speed crash: AVPU is U with no airway intervention and airway not marked Normal (RED triage), no breathing intervention with critically low SpO2 (82%), heavy bleeding with no circulation intervention but an unstable pelvis, GCS 5, hypoglycaemia (40 mg/dL), FAST-positive for both free peritoneal fluid and a pneumothorax, polytrauma, crush injury, anticoagulation, and a 30-minute-to-24-hour loss of consciousness - and the patient dies with no cause of death recorded. Only 15 of 38 applicable rules are satisfied (23 missing, spanning registration, vitals timing, airway/breathing assessment, injury history, past history, and almost the entire disposition section). Twenty-two flags fire: thirteen urgent (RED-triage airway and breathing with no intervention, AVPU-abnormal with no airway intervention, unresponsive AVPU, GCS <=8, critical SpO2, heavy bleeding with no intervention, abnormal respiratory rate, hypoglycaemia, unstable pelvis, both FAST findings, patient died), eight high (SpO2 low with no breathing intervention, abnormal heart rate, polytrauma, crush injury, anticoagulation, pregnancy, high-energy mechanism, prolonged loss of consciousness), one medium (IV drug use).
World Health Organization standardized prehospital clinical documentation form for emergency medical services.
- Complete, resolved vasovagal episode — A GREEN-triage scene call with entirely normal airway/breathing/circulation, AVPU alert, normal vital signs, a complete SAMPLE history via the 'Unknown' tickboxes, and a full handover with the plan discussed. All 31 applicable rules satisfied (complete; the injury-only and RED-only rules do not apply here), no flags.
- Moderate, pregnant fall with severe pain — Time arrived at scene is missing, and the injury checkbox is ticked with neither intent nor mechanism recorded (3 of 33 applicable rules unsatisfied, not complete). Severely elevated blood pressure, a reported pregnancy, and severe pain (8/10). Four flags fire: high (severely elevated systolic blood pressure, parsed from the free-text '185/100'), two medium (pregnancy; severe pain), one low (plan not discussed with the patient at handover).
- Critical, mass casualty gunshot with heavy uncontrolled bleeding — A mass-casualty gunshot incident: an unresponsive (AVPU U) patient at RED triage with airway and breathing both abnormal and undocumented (no interventions), a documented active bleeding site with no haemorrhage control, no IV/IO access, no GCS components recorded, hypoglycaemia (2.0 mmol/L), a pregnancy with high-risk findings, and a violent/aggressive flag - all against an almost entirely blank record (patient sex/DOB, scene location, most vital signs, SAMPLE history, assessment and plan, and the entire disposition/handover section are missing). Only 12 of 37 applicable rules are satisfied (25 missing). Twelve flags fire: seven urgent (mass casualty, unresponsive AVPU, critical SpO2, abnormal respiratory rate, hypoglycaemia, uncontrolled bleeding, pregnancy with high-risk findings), two high (abnormal heart rate, high-risk trauma), three medium (pregnancy, severe pain, violent/aggressive patient).
A digital implementation of the World Health Organization Surgical Safety Checklist (WHO/IER/PSP/2008.05, Safe Surgery Saves Lives). The checklist is a tool for the operating-room team to confirm that a small set of safety steps have been performed before induction of anaesthesia, before skin incision, and before the patient leaves the operating room.
- completed-clean-elective — Elective right TKR with all three phases completed and every item answered safely (site marked on a lateralised case, counts agreed, no specimens) — expect zero safety flags.
- risks-anticipated-and-managed — Urgent open AAA repair where the Sign-In risks are real but managed: penicillin allergy with substitution recorded, difficult airway with equipment available, high blood-loss risk with two IVs and fluids planned — expect exactly the three informational risk flags.
- lapsed-timeout-and-signout — Evening hernia case with the checklist discipline breaking down: unmarked site on a right-sided procedure, antibiotic prophylaxis and sterility left unconfirmed at Time Out, a count discrepancy and unlabelled specimen at Sign Out, plus an equipment problem — expect the corresponding high flags.
Workplace climate assessment measuring organizational culture, psychological safety, and employee experience using a validated Likert-scale instrument to inform leadership, inclusion, and wellbeing programmes.
- thriving — Strongly positive climate across every domain (all items rated 4-5): composite ~95 — thriving.
- developing — Mixed climate with neutral-to-lukewarm responses (mostly 3s): composite ~60 — developing.
- critical — Severely unhealthy climate with strongly negative responses across the board (all items 1): composite 20 — critical.
Workplace safety audit form aligned with UK Health and Safety Executive (HSE) standards, covering physical, chemical, biological, ergonomic, and organizational risks to identify hazards and verify control measures in healthcare settings.
- compliant — Well-run site with every audited control in place: no findings raised — outcome compliant.
- major-findings — Mostly compliant but several moderate-risk gaps (expired PAT testing, no current manual-handling assessment, fire alarm not tested weekly) and no critical failures: outcome major.
- critical-findings — Imminent-risk failures — no COSHH register, an untreated spill, damaged electrical equipment and a blocked fire exit: outcome critical.
Workplace stress assessment using the UK HSE Management Standards Indicator Tool to measure perceived stress across seven organizational domains and identify teams or individuals at elevated risk of work-related ill health.
- low-risk — Favourable answers throughout — low demands, high control and support: every domain benchmarks 'low' concern, overall risk low.
- moderate-risk — Generally supported team but elevated demands and poorly-managed change: worst domain benchmarks 'moderate', overall risk moderate.
- very-high-risk — Unsustainable demands, no control or support, strained relationships and chaotic change: multiple domains benchmark 'very-high', overall risk very-high.
A UK NHS–aligned plain-radiograph (X-ray) imaging request (referral) that a clinician completes to request a plain X-ray examination for a patient. It records the requested body region and laterality, the clinical indication and specific question, relevant history, radiation-safety details (pregnancy status and recent similar exposure), the patient's mobility, and the requested urgency — then computes a four-axis grading (appropriateness, radiation safety, request completeness, and triage priority) plus a set of safety-critical flags. The output is a vetting report that supports the imaging department's triage and booking decision.
- routine-chest-infection-complete — Well-formed routine GP referral: suspected chest infection, chest X-ray requested (first-line), IR(ME)R justification and pregnancy status recorded, every completeness field present — expect usually-appropriate + safe + routine + accept.
- urgent-wrist-trauma-emergency-setting-possible-pregnancy — Fall onto an outstretched hand in the emergency department: wrist X-ray requested for suspected fracture (first-line), trauma in the emergency setting escalates triage to urgent, and pregnancy status is only 'possible' — forcing a radiation-safety caution even though the examination itself is appropriate — expect usually-appropriate + caution + urgent + query-referrer.
- emergency-abdominal-obstruction-pregnant-contraindicated-incomplete — Suspected bowel obstruction in a pregnant patient, phoned through from the emergency department: abdominal X-ray is first-line for this indication, but confirmed pregnancy with a moderate-dose abdominal exposure forces the safety band to contraindicated, and several administrative fields are not yet captured — expect usually-appropriate + contraindicated + emergency + reject, completeness below 100.
A UK NHS–aligned plain-radiograph (X-ray) result (report) that a reporting clinician completes after a plain X-ray examination has been performed. It is the result/report counterpart to X-Ray Test Request (a referral): where the request captures why a radiograph should be done, this form records what the radiograph found and a structured interpretation. It records the performed examination and the projections acquired, the clinical history, the narrative and structured findings, the impression and a structured reporting category, and recommended follow-up — then computes a four-axis interpretation grade (result classification, abnormality severity / structured reporting, report completeness, and follow-up urgency) plus a set of safety-critical flags including an automatic critical-result alert. The output is a structured radiology report.
- normal-chest-xray-complete — A normal pre-operative chest radiograph, asymptomatic: lungs clear bilaterally, no consolidation, effusion, pneumothorax, or free air, normal heart size, no fracture or bony lesion, every mandatory report section present — expect normal classification + none severity + 100% completeness + routine follow-up + no-action.
- abnormal-stable-distal-radius-fracture-moderate-not-critical-complete — A right wrist X-ray after a fall onto an outstretched hand shows a minimally displaced, extra-articular distal radius fracture with no significant angulation and a congruent distal radio-ulnar joint: `hasCriticalFinding` requires an *unstable* fracture specifically, so this stable fracture grades only moderate severity via the general actionable-finding rule and never trips the critical predicate; report complete — expect abnormal classification + moderate severity (reportingCategory abnormal-acute) + 100% completeness + recommended follow-up + further-imaging.
- critical-large-pneumothorax-uncommunicated-incomplete — An erect chest radiograph shows a large right-sided pneumothorax with approximately 40% lung collapse and mediastinal structures central, with no evidence of tension physiology on this static view but close observation advised: pneumothorax is a critical structured finding that auto-escalates classification to critical and follow-up to critical-alert regardless of the other axes; the result has not yet been recorded as communicated, no originating request is linked, and the clinical history, comparison, and impression sections are not yet completed while urgent chest drain insertion is arranged — expect critical classification + major severity + 40% completeness + critical-alert follow-up + urgent-review.
A caregiver self-report questionnaire that measures the subjective burden experienced by an informal carer looking after a person with dementia, chronic illness, or long-term disability. The carer rates 22 items describing the emotional, physical, social, and financial strain of caregiving, each on a 0–4 frequency scale (0 = never … 4 = nearly always). The item ratings sum to a total of 0–88, which is mapped to a burden band from little or no burden to severe burden. A high total is a prompt to arrange carer support and respite and to screen the carer for depression and anxiety.
- little-or-no-burden — Well-supported spouse carer coping with early needs: mostly 'never/rarely' responses — ZBI-22 total 6, little-or-no-burden band.
- mild-to-moderate-burden — Adult-child carer balancing work and caregiving with growing strain: mixed 'sometimes/quite frequently' responses — ZBI-22 total 33, mild-to-moderate-burden band.
- severe-burden — Exhausted co-resident spouse caring for a person with advanced dementia around the clock: predominantly 'nearly always' responses — ZBI-22 total 77, severe-burden band.