# VERA by Prepaire: risk assessment of the result path

| | |
|---|---|
| Document | VERA-VAL-RA-001, version 0.3 (draft) |
| Date | 16 November 2026 |
| Method | ISO 22367:2020 (risk management for medical laboratories), with an FMEA scoring of severity, probability and detectability |
| Owner | The quality manager, named on the signed approval (section 5) |
| Approver | The laboratory director, named on the signed approval (section 5) |
| Status | Draft for review. Not approved. Every score is a proposal for the laboratory director. |
| Needed | Approved before the first volunteer sample (week of 23 November 2026), with the master plan |

## 1. What is assessed

The path of one result through VERA by Prepaire, from the person and the sample to every recipient outside the
laboratory: sample and identification, order, analyser, capture, translation (calculated results included), checks,
review, release, report, messages (the clinic's HL7 ORU^R01 and FHIR Bundle, Malaffi), the person's knowledge graph,
the other recipients (the partner port, the Oracle Health record, twin sharing), and the operations that keep the path
whole. The analysers' own measurement is assessed by the laboratory in its analytical verification; here it enters as
what VERA must catch (QC, calibration, flags).

Every control named here is in the code; every test named here runs in CI and, where marked OQ, in the operational
qualification on the installed node (docs/validation/iq-oq.md). Requirement ids are those of
`config/validation/requirements.v1.json`.

## 2. Method

1. **Hazard identification** per step of the path: what can go wrong, its cause, and the harm to the person.
2. **Risk estimation** before VERA's controls, on three scales:

   | Score | Severity (S): the harm | Probability (P): of the harm, per result | Detectability (D): before the result reaches anyone |
   |---|---|---|---|
   | 1 | No harm | Improbable (fewer than 1 in 1,000,000) | A hard gate always refuses it |
   | 2 | Inconvenience: a repeat draw or a delay of hours | Remote (about 1 in 100,000) | Shown to the reviewer, who must act on it |
   | 3 | Delayed or repeated testing with temporary harm | Occasional (about 1 in 10,000) | Likely found at review or by the clinician |
   | 4 | Wrong or missed treatment needing intervention | Probable (about 1 in 1,000) | Unlikely to be found |
   | 5 | Death or permanent harm | Frequent (1 in 100 or more) | Cannot be found |

   The probabilities before controls are estimates from the August 2026 data incidents and general laboratory
   experience, not measured rates [to confirm by the laboratory director]; the PQ measures the rates after controls.
3. **Priority number** RPN = S x P x D (1 to 125).
4. **Risk evaluation** against the acceptability criteria (proposed; the laboratory director decides):
   - residual RPN 12 or less: acceptable, monitored in use;
   - residual RPN 13 to 24: acceptable only with the laboratory director's recorded acceptance and the monitoring named;
   - residual RPN above 24, or any residual risk with S 5 and D above 2: not acceptable; it is reduced before go-live.
     Such a hazard is a **go-live condition**: the further control it needs is named, and the hazard is scored again
     once that control is in place.
5. **Risk control** in this order: safety by design (VERA refuses), protective measures (VERA holds for a person),
   information (the reviewer and the report say it). Each control is tied to a requirement and a test. A control cited
   for a refusal names a test of the refusal.
6. **Residual risk** scored again after VERA's controls as built ("After"): a control that is a procedure, or that is
   not built, does not lower that score; the Open column names it. **Review** after the PQ with the measured rates,
   after every incident and with every change (master plan, section 7).

## 3. The hazards

Scores are given as S/P/D = RPN, before and after VERA's controls as built.

### 3.1 Sample and identification

| ID | Hazard and cause | Harm | Before | Requirements | Control in VERA | Test | After | Open |
|---|---|---|---|---|---|---|---|---|
| HZ-01 | The person is not identified at the draw, or another person's document number, name or birth date is entered | Another person's results acted on | 5/3/4 = 60 | 170, 150, 002 | The vial is recorded only after the person is identified against the identity vault (document number or full name with birth date); a mismatch is refused (409 IDENTITY_NOT_CONFIRMED) | `src/lib/collection/identification.test.ts` "refuses no check, another person's document, a wrong birth date and an unregistered person" | 5/1/1 = 5 | The identification procedure at collection (SOP, REC-150-1) |
| HZ-02 | A person presents another person's genuine identity document, for that other person's order | The other person's record gets this person's results | 5/1/5 = 25 | 170, 150 | None that can find it: the vault check matches the genuine document to the order's person. VERA records how the person was identified (the method), so the check that was made is known | `src/lib/collection/identity-at-draw.migration.pglite.test.ts` "is recorded whole, with a method and result that belong together" | 5/1/5 = 25 | **Go-live condition** (S 5, D 5): the draw SOP compares the document's photograph with the person, and the laboratory director decides whether the identity card's chip and the holder's fingerprint are read at the draw (Emirates ID card reader) [to confirm availability]. A fingerprint match recorded as the method would refuse it at the draw: proposed 5/1/1 = 5 once in place |
| HZ-03 | A tube or label error that leaves the analyser's sample reference, the vial, its order or its type inconsistent | Another person's results acted on | 5/3/4 = 60 | 171, 004 | The analyser's sample reference must be the vial's barcode, the run's subject the vial's order's, the specimen coding the vial's type; any mismatch holds every result of the run | OQ-06; `src/lib/lab/critical-values-flow.test.ts` "blocks approval and release when the analyzer's sample reference is another tube's barcode" | 5/1/1 = 5 | None |
| HZ-04 | Wrong blood in tube: two people's labels swapped at the draw, or a tube labelled for one person filled from another, so that the label, the vial and its order all agree | Another person's results acted on | 5/3/5 = 75 | 171, 163, 150 | Only the delta check can find it, and only for a person with an earlier released result. At launch almost no one has one: the volunteers and the first 50 patients are new, and KERNEL's earlier results are not pulled (HZ-21). It does not lower the probability | `src/lib/lab/critical-values-flow.test.ts` "raises DELTA_CHECK_FAILED on the person's second vial" | 5/3/5 = 75 | **Go-live condition** (RPN 75; S 5, D 5). Before the first volunteer sample: (1) the draw SOP draws one person at a time, prints the labels for that person only after VERA's identification and applies them in front of the person, never pre-labelled tubes (REC-150-1), lowering P to 2; (2) a critical or markedly abnormal first result of a person with no earlier released result is confirmed before it is reported, by a second draw or the laboratory director's recorded decision for the test [to decide by the laboratory director: an SOP, or a hold VERA builds], which shows the discordance to a person (D 2). Proposed 5/2/2 = 20 with both in place, for the laboratory director's recorded acceptance; scored again after the PQ with the measured rate |
| HZ-05 | Unsuitable specimen: haemolysed, wrong tube, outside its time or temperature limits, not fasting | Misleading result | 3/4/3 = 36 | 169 | The pre-analytical gate under the signed limits rejects the vial; serum indices above a hold limit hold the result (analyser flags) | `src/lib/collection/pre-analytical.test.ts` "rejects a tube centrifuged too late, and a haemolysed specimen"; `src/lib/collection/pre-analytical.test.ts` "rejects a vial received too late or transported at a temperature not allowed"; `src/lib/lab/holds.test.ts` "holds a result flagged outside the signed releasable flags" | 3/2/2 = 12 | The limits are signed by the laboratory director (order rules, analyser flags) |
| HZ-06 | Order without a licensed ordering clinician, without consent, or for a minor | Result with no one accountable to act on it; unlawful processing | 4/3/2 = 24 | 169, 001 | The order is refused (clinician with DoH licence, collection and data-sharing consents, adult); a clinical result is released only for a vial of a conformant order | OQ-21; `src/lib/collection/order-conformance.test.ts` "refuses an order without a clinician, without a consent reference, and for a 17-year-old"; `src/lib/collection/order-gates.test.ts` "fails an order from before the rules, a cancelled order, and every clinical result while the rules are unsigned" | 4/1/1 = 4 | Consent forms and the ordering route (checklist B3, B4) |

### 3.2 Analyser

| ID | Hazard and cause | Harm | Before | Requirements | Control in VERA | Test | After | Open |
|---|---|---|---|---|---|---|---|---|
| HZ-07 | The analyser is out of control (QC rejected) when the sample is measured | Systematically wrong results | 4/3/4 = 48 | 161, 043 | VERA's own Westgard evaluation of the analyser's QC under the signed rules (1-2s warns; 1-3s, 2-2s, R-4s, 4-1s, 10x reject) before and after the measurement; a rejected run locks out its results and opens a look-back of results released since the last accepted run | OQ-04, OQ-18 ("blocks 100% of seeded QC failures") | 4/1/1 = 4 | The QC rules and targets signed per analyser and analyte (config/lab/qc-rules.v1.json) |
| HZ-08 | Calibration failed, expired, or not recorded | Wrong results | 4/3/3 = 36 | 161 | No quantitative result is released without an accepted calibration within the signed interval | `src/lib/lab/qc/assess.test.ts` "locks out a result with no calibration, a failed one, or an expired one" | 4/1/1 = 4 | Calibration intervals in the signed QC rules |
| HZ-09 | An analyser warning (W flag, interpretive message, index) is ignored | Misleading result | 4/3/3 = 36 | 163 | A flag outside the signed releasable list holds the result until the reviewer records what was done | `src/lib/lab/critical-values-flow.test.ts` "a result the analyser flagged W is approved only with what was done" | 4/1/2 = 8 | Releasable flags and index limits signed (config/lab/analyser-flags.v1.json) |
| HZ-10 | QC recorded by hand by the person who then releases, or QC said to pass without evidence | Out-of-control results released | 4/2/4 = 32 | 165, 161 | Only the analyser's own timely capture or a second person's confirmation clears a result; the recorder never releases what their QC clears | `src/lib/lab/qc/provenance.test.ts` "clears once a second person confirms the run before the release; never by its recorder" | 4/1/1 = 4 | None |

### 3.3 Capture

| ID | Hazard and cause | Harm | Before | Requirements | Control in VERA | Test | After | Open |
|---|---|---|---|---|---|---|---|---|
| HZ-11 | A message is lost or duplicated between the analyser, KERNEL and VERA | A result missing or reported twice | 3/3/3 = 27 | 177, 012, 155 | The listener keeps every byte in a hash-chained log; the KERNEL copy keeps one row per message and a replay adds none; the daily comparator lists every missing or extra message; the shadow gate needs 7 consecutive clean days, and a day with no comparison counts as a gap | OQ-23; `src/lib/shadow/gate.test.ts` "counts a missing day as a gap, never as a pass"; `src/lib/lis/kernel-shadow.pglite.test.ts` "a second replay of the same fixture adds none" | 3/1/1 = 3 | PQ measures it (docs/validation/pq-protocol.md) |
| HZ-12 | A message is altered in capture (bytes changed, a frame dropped, a checksum ignored) | A wrong value reported | 5/2/4 = 40 | 017, 176, 155 | Exact bytes kept and sealed with their SHA-256; a frame whose checksum fails is accepted only when retransmitted intact; replays reproduce the digest | OQ-17; `src/lib/analysers/host/e1381.test.ts` "NAKs a frame with a wrong checksum and takes its retransmission once" | 5/1/1 = 5 | None |
| HZ-13 | VERA sends to an analyser while it should only listen | An analyser disturbed, an order or acknowledgement it should not get | 4/2/3 = 24 | 123, 154, 176 | The listener cannot be configured to answer, acknowledge or send; it drops an analyser's own address; a packet capture fails on one VERA packet to an analyser | OQ-16 | 4/1/1 = 4 | IT's packet capture during the 7-day shadow (PQ) |
| HZ-14 | In host mode, a wrong order is sent to an analyser, or host mode starts without the decision | The wrong tests run, or a tube's tests are missed | 4/2/3 = 24 | 178 | VERA hosts a link only on the laboratory director's recorded takeover for exactly that analyser, sends only orders built from VERA's own conformant orders, and never a Sysmex host code not confirmed against the analyser | OQ-24; `src/lib/analysers/host/orders.test.ts` "never orders a Sysmex host code not yet confirmed against the analyser" | 4/1/2 = 8 | Host mode is validated per analyser before its takeover (master plan 2.4) |

### 3.4 Translation and calculation

| ID | Hazard and cause | Harm | Before | Requirements | Control in VERA | Test | After | Open |
|---|---|---|---|---|---|---|---|---|
| HZ-15 | Wrong code: a local code mapped to the wrong marker or LOINC | A result reported under another test's name | 5/3/3 = 45 | 018, 019, 186 | Every result is read through the signed catalogue; a code it does not hold, or a demonstration-signed table on a real subject, quarantines the result | OQ-07; `src/lib/lab/reference/gate.test.ts` "hold a result that is not a catalog marker, or not in its unit" | 5/1/1 = 5 | The catalogue's 105 rows reconciled with KERNEL and signed (checklist B9); the 5 key mismatches and 4 LOINC disagreements resolved |
| HZ-16 | Wrong unit or conversion (as in August 2026: calcium judged against a mg/dL range; protein 1,248 g/L) | A value off by a factor, read as normal or critical | 5/3/3 = 45 | 107, 018, 019 | A result in another unit than the catalogue's is held; conversions only by the signed table; the past incidents are regression tests | OQ-22 | 5/1/1 = 5 | Unit conversions signed (config/ingestion/loinc-conversions.v1.json is an example today) |
| HZ-17 | Wrong standard range: another sex or age band, an overlapping band, a range for the wrong unit | A result flagged wrongly | 4/3/3 = 36 | 167, 140 | The range is assigned from the person's recorded sex and age at collection under the signed table; overlapping bands are refused; a person of other or unrecorded sex gets the signed rule's range; the report prints the range VERA assigned | OQ-14 | 4/1/1 = 4 | Ranges verified in 20 reference individuals of each sex (CLSI EP28) and signed (REC-167-1) |
| HZ-18 | A personal range misleads: drawn from too few results, wider than the standard range, or from another method | A real change missed, or a false alarm | 3/3/3 = 27 | 168, 141, 021 | No personal range before the signed minimum of eligible results; never wider than the standard range; another method group pooled only when declared harmonised; the standard range stays beside it, labelled; the reason is shown while VERA stays on the standard range | `src/lib/personal-ranges/present.test.ts` "is never wider than the standard range"; `src/lib/personal-ranges/engine.test.ts` "names why it stays on the population basis" | 3/1/2 = 6 | The biological variation table signed (config/vera/biological-variation.v1.json) |
| HZ-19 | A calculated result is computed wrongly: a wrong formula, constant or input in the indices table (config/vera/indices.v1.json), or a formula changed after review | A wrong calculated value acted on | 4/3/4 = 48 | 186, 019, 041 | Each index is computed by its registered implementation, whose constants hash to the entry's formula digest; an entry whose constants or implementation changed under it is refused; the published worked examples are tests; the table is a clinical table, signed and attested, and part of the validated scope's digest; a calculated marker takes its parents' QC | `src/lib/indices/registry.test.ts` "refuses an entry whose implementation changed under it"; `src/lib/indices/registry.test.ts` "refuses an entry whose constants no longer hash to its formulaHash" | 4/1/2 = 8 | The indices table reviewed and signed by the laboratory director (it ships pending) |

### 3.5 Checks

| ID | Hazard and cause | Harm | Before | Requirements | Control in VERA | Test | After | Open |
|---|---|---|---|---|---|---|---|---|
| HZ-20 | A critical value is not communicated in time | Delayed urgent treatment | 5/3/3 = 45 | 162 | The result is held until a laboratory member logs a call with read-back; a failed attempt does not clear it; due times and escalation on the signed clock; the worklist puts open critical results first | OQ-13 | 5/1/2 = 10 | Critical limits and escalation chain signed; the alert channel connected by IT (go-live plan decision 16) |
| HZ-21 | A delta-check failure is missed (a sample of another person, or a real change) | Wrong-patient result or missed change | 4/3/3 = 36 | 163, 171 | The delta check reads the same person's earlier released results, across vials, and holds the result for the reviewer | `src/lib/lab/critical-values-flow.test.ts` "raises DELTA_CHECK_FAILED on the person's second vial" | 4/1/2 = 8 | Delta rules signed; the KERNEL pull for earlier hospital results opened by IT and the KERNEL team; for a person with no earlier result, see HZ-04 |
| HZ-22 | A result is released while a rule table is unsigned or still a draft, or its file is marked signed by someone with push access | Rules nobody approved decide a result | 4/3/3 = 36 | 186, 196, 050, 160 | Every clinical result is held while any table it depends on is unsigned or signed with the demonstration sign-off for a real subject; on an operational copy a clinical release, and a report, also need every clinical table's exact content and the table of validated releases attested in the database by the laboratory director (and the quality manager where the plan asks for both), two different people | OQ-05, OQ-26, OQ-27 | 4/1/1 = 4 | One sign-off on /lab/sign-off is the signature the loaders and every release gate read; the gates that read the tables of intake and personal ranges, the shadow gate and the analyser takeover through their own loaders still read the file's review fields (F18 step 3) |

### 3.6 Review and release

| ID | Hazard and cause | Harm | Before | Requirements | Control in VERA | Test | After | Open |
|---|---|---|---|---|---|---|---|---|
| HZ-23 | A result is released without an independent review | An error not caught by a second person | 4/3/3 = 36 | 164, 029 | Each clinical result is approved by a pathologist or the laboratory director who did not submit the run, for the result exactly as it stands in the bundle | OQ-01; `src/lib/lab/review.test.ts` "fails a result with no review, a rejected one, one reviewed by the submitter, one changed since" | 4/1/1 = 4 | Named accounts with MFA for each person (checklist A11) |
| HZ-24 | The submitter or the reviewer releases the result themselves | The two-person rule bypassed | 4/3/2 = 24 | 029, 165 | The route refuses (403) and the database refuses such a release record (trigger release_record_independent) | OQ-02, OQ-03, OQ-25 | 4/1/1 = 4 | A second quality officer named (F52) |
| HZ-25 | A result is released by a build or a configuration that was not validated, or after the validation was withdrawn | Gates that were never qualified decide a result | 5/3/4 = 60 | 184, 185, 043, 044 | On an operational copy only a numbered release in the attested table of validated releases, running the images and clinical tables of a scope the laboratory director approved (and has not withdrawn, and no later campaign of the scope rejected), releases a clinical result; checked again inside the release's transaction | OQ-08 to OQ-11, OQ-27 | 5/1/1 = 5 | The deploy sets VERA_IMAGE_DIGEST and VERA_WORKER_IMAGE_DIGEST (docs/validation/README.md); the laboratory director attests the validated releases and approves each scope |
| HZ-26 | A result changes after its review (a new bundle, a re-run) | A result released that nobody reviewed | 4/2/3 = 24 | 164 | The review is for the result's digest; a changed result needs a new review | `src/lib/lab/review-release-route.test.ts` "a result without its own approval, or a result changed since review, holds the release" | 4/1/1 = 4 | None |
| HZ-27 | One failed result holds back the rest of the run, or is silently left out | Delay of valid results; a test not reported without saying so | 3/3/3 = 27 | 166 | Release per result: approved results go out, each one left out is recorded with why, and the report says what was not reported | `src/lib/report/issue.test.ts` "issues a report whose release left a result out" | 3/1/1 = 3 | None |

### 3.7 Report

| ID | Hazard and cause | Harm | Before | Requirements | Control in VERA | Test | After | Open |
|---|---|---|---|---|---|---|---|---|
| HZ-28 | The report lacks an item the clinician needs (ordering clinician, units, collection time, specimen condition, range, performing laboratory, who performed and approved) | Misread result; a DoH finding | 3/3/3 = 27 | 172 | The report is refused unless every HAAD CLS p13 item is in the PDF, the ORU^R01 and the FHIR Bundle; authorised only by a registered pathologist or the laboratory director independent of every run | OQ-19 | 3/1/1 = 3 | Report tables signed; KERNEL's own report checked while KERNEL reports (checklist B19) |
| HZ-29 | The report shows a different range or flag than the system decided | A result read against the wrong range | 4/2/3 = 24 | 167 | The report prints the range VERA assigned; the test compares both for every person | OQ-14 | 4/1/1 = 4 | None |
| HZ-30 | A released result is wrong and its correction does not reach the clinician, or the original is lost | Treatment on a withdrawn result | 4/2/3 = 24 | 173, 015, 031 | A correction revokes the release with a printable reason, issues a corrected revision that keeps the original, notifies the clinic (read back for a critical result) and retracts the message under its first identifiers; a correction case closes only once its corrected revision is delivered and the clinic told | OQ-20; `src/lib/report/corrections.test.ts` "closes a case only when a corrected revision was issued after it opened, delivered, and the clinic was told" | 4/1/2 = 8 | The correction status of Malaffi's HL7 profile waits on Malaffi's document |

### 3.8 Messages

The clinic's messages: VERA builds the HL7 ORU^R01 and the FHIR Bundle of each issued revision with its signed PDF and
hands them to the caller; the hand-over to the clinic is recorded (who received it, when). No VERA transport sends them
to a clinic at launch [to confirm: the delivery route of go-live plan C3].

| ID | Hazard and cause | Harm | Before | Requirements | Control in VERA | Test | After | Open |
|---|---|---|---|---|---|---|---|---|
| HZ-31 | The Malaffi message of a release is lost | A result missing from the person's shared record | 3/3/3 = 27 | 174 | Each clinical release queues its message in the same transaction; the outbox keeps it until acknowledged and alerts on a backlog | OQ-12; `src/lib/ops/monitoring.pglite.test.ts` "turns a dependency down, unreadable keys, a verification backlog and an outbox backlog into their alerts" | 3/1/2 = 6 | Malaffi onboarding and the one sender (checklist B5, C4) |
| HZ-32 | A Malaffi message is sent twice | Duplicate results in the shared record | 2/3/3 = 18 | 174 | At most once: a replay sends nothing, two dispatchers send each message once | OQ-15 | 2/1/1 = 2 | None |
| HZ-33 | A Malaffi message is altered: wrong LOINC, unit, section or range | A wrong result in the shared record | 4/2/3 = 24 | 174, 018 | The message is built from the released result and checked (LOINC per result, DSSID section, range, UCUM unit) before it is queued | `src/lib/malaffi/malaffi.test.ts` "send LOINC in OBX-3, the section in OBR-24, the range in OBX-7" | 4/1/1 = 4 | The DSSID map is a placeholder until Malaffi confirms its codeset [to confirm] |
| HZ-34 | A withdrawn result is retracted under the wrong identifiers | The receiver keeps the wrong result | 4/2/3 = 24 | 173 | Retraction under the identifiers the result was first sent with (OBR-3, OBR-4, OBX-3; OBX-11 W) | `src/lib/report/oru-corrections.test.ts` "retracts each withdrawn result under the identifiers it was sent with" | 4/1/1 = 4 | None |
| HZ-35 | The clinic's ORU^R01 or FHIR Bundle is lost: issued but never handed over | The clinician never sees the result | 3/3/3 = 27 | 172, 173 | Each issue is recorded in the hash-chained issue log with each rendering's digest; the hand-over is recorded with the recipient and the time, never before the issue; a correction case stays open until its corrected revision is delivered | `src/lib/report/corrections.test.ts` "records a hand-over of an issued revision, not before it was issued" | 3/2/3 = 18 | For the laboratory director's recorded acceptance: VERA does not yet list a first revision issued and never handed over [to build: an undelivered-report worklist], nor send it itself (go-live plan C3) [to confirm] |
| HZ-36 | The clinic's ORU^R01 or FHIR Bundle is altered: a value, unit, range or patient other than the report's | A wrong result acted on | 4/2/4 = 32 | 172 | Every rendering is built from the one canonical report and checked for every HAAD item before the issue is recorded; a message that drops a result fails; the issue records each rendering's SHA-256; the PDF is sealed and fails on any changed byte or another certificate; a PDF of another patient's report fails the patient items | OQ-19; `src/lib/report/haad.test.ts` "an ORU^R01 that drops one result fails TESTS_AND_RESULTS"; `src/lib/report/haad.test.ts` "a PDF changed after signing, or signed with another certificate, fails SIGNATURE"; `src/lib/report/haad.test.ts` "a PDF of another report (another patient) fails the patient and result items" | 4/1/3 = 12 | The ORU^R01 and the FHIR Bundle travel unsealed: their transport's integrity (TLS or the clinic's VPN) is IT's [to confirm]; the signed PDF is the authoritative copy |
| HZ-37 | The clinic's report is sent twice, or two revisions contradict each other | Duplicate or conflicting results in the clinic's record | 2/3/3 = 18 | 172, 173 | An issue that would report exactly what the last revision did is refused; each later revision is numbered and either appends results or corrects with the printed reason | `src/lib/report/issue.test.ts` "refuses to re-issue an unchanged report, and issues a corrected revision 2 when a release is revoked" | 2/1/2 = 4 | None |
| HZ-38 | The report reaches another clinic or clinician than the one who ordered | The ordering clinician does not get the result; another person's data disclosed | 3/3/4 = 36 | 172, 169 | The report is built for one order and names its ordering clinician with the DoH licence and the person; an identity that contradicts VERA's record of sex or age is refused; the hand-over records the recipient by a governed reference | `src/lib/report/assemble.test.ts` "refuses an identity that contradicts VERA's record of sex or age (a wrong-patient lookup)"; `src/lib/report/corrections.test.ts` "records a hand-over of an issued revision, not before it was issued" | 3/2/3 = 18 | For the laboratory director's recorded acceptance: the hand-over is a person's act; VERA does not check the recipient against the order's clinician [to build], and the hand-over procedure is an SOP [to confirm] |

### 3.9 The person's knowledge graph

| ID | Hazard and cause | Harm | Before | Requirements | Control in VERA | Test | After | Open |
|---|---|---|---|---|---|---|---|---|
| HZ-39 | The graph is written to the wrong subject | Another person's results in a person's record | 5/2/4 = 40 | 175, 004 | The write is for the subject of the vial's order, sealed under that person's own data key; a key of another subject does not open it | `src/lib/patient-kg/crypto.test.ts` "wraps a per-subject DEK and unwraps it only for the same subject and KEK" | 5/1/1 = 5 | None |
| HZ-40 | A held or quarantined run is written to the graph | Unreleased results in the record | 4/2/3 = 24 | 146 | Only a release queues a graph write | `src/lib/patient-kg/outbox.test.ts` "queues one WRITE per release" | 4/1/1 = 4 | None |
| HZ-41 | A revoked result stays in the graph | A withdrawn result still used | 4/2/3 = 24 | 031, 175 | A revocation queues a supersede of the write | `src/lib/patient-kg/outbox.test.ts` "queues SUPERSEDE only when a WRITE was queued for the revoked release" | 4/1/1 = 4 | None |

### 3.10 The other recipients

| ID | Hazard and cause | Harm | Before | Requirements | Control in VERA | Test | After | Open |
|---|---|---|---|---|---|---|---|---|
| HZ-42 | A result reaches the wrong partner through the partner port | Another organisation sees a person's results; the right one does not | 4/2/4 = 32 | 180 | The port stays off until switched on; a partner is approved by two different administrators before a credential is issued; a partner reads and sends only its own orders and files; results are served only after someone other than the sender releases them, and on an operational copy each release passes the clinical release route's gates (the validated build, the approved scope, the signed tables); sandbox and real subjects never mix | `src/lib/partner-port/service.pglite.test.ts` "a file of someone else"; `src/lib/partner-port/migration.pglite.test.ts` "approves a partner only after two different administrators approved it in the current round"; `src/lib/partner-port/migration.pglite.test.ts` "never mixes sandbox and real subjects"; `src/lib/partner-port/release-gates.pglite.test.ts` "releaseResults: refused by an unvalidated build, outside an approved scope and while a table is unsigned, and released once all three hold" | 4/1/2 = 8 | Validated before the port is switched on for a partner (master plan 2.4) |
| HZ-43 | VERA's summary is filed in another patient's Oracle Health record | Another patient's record carries a person's results | 4/2/4 = 32 | 181 | VERA opens only inside a registered, switched-on tenant with the launch/patient scope, so it files into the record the clinician launched from; one pseudonymous subject per record and patient; the summary is filed under the hospital's own document type | `src/lib/smart/config.test.ts` "asks for exactly the scopes of the brief, launch/patient for a standalone launch"; `src/lib/smart/config.test.ts` "makes a pseudonymous subject per record and patient" | 4/1/3 = 12 | Validated with the hospital before a tenant is switched on (master plan 2.4) [to confirm with the hospital] |
| HZ-44 | A person's twin is shared with a recipient without a current consent, past its period, or by an officer granting their own access | A person's data used without their permission | 4/2/4 = 32 | 190, 002 | Twin access only under a current decision for that recipient, its products, purposes and period; a withdrawn data-sharing consent revokes every recipient's access at once; an officer cannot grant their own recipient access | `src/lib/consent/consent-route.test.ts` "revokes every recipient's current twin access when data sharing is withdrawn"; `src/lib/twin-access-api.test.ts` "rejects an officer assigning their own recipient access" | 4/1/2 = 8 | None |

### 3.11 Operations, data and security

| ID | Hazard and cause | Harm | Before | Requirements | Control in VERA | Test | After | Open |
|---|---|---|---|---|---|---|---|---|
| HZ-45 | Patient data leaves the UAE or reaches an operations tool | Breach of Law 2/2019 and ADHICS | 4/3/3 = 36 | 189, 138 | Outbound connections only to the node, the site and the signed UAE allow-list; operations tools answer counts, states and codes only | `src/lib/egress/connect.test.ts` "allows the node, the site and a signed UAE host, and refuses anything else"; `src/lib/ops-guard/guard.test.ts` "refuses row ids, Emirates IDs and raw HL7 or ASTM messages under any key" | 4/1/2 = 8 | The allow-list signed by the information security officer; host hardening (checklist A12) |
| HZ-46 | The audit trail or a decision record is altered | Evidence of who decided what is lost | 4/2/4 = 32 | 187 | Append-only, hash-chained records that the database protects against update, delete and truncate; a verifier re-walks every chain | OQ-25; `src/lib/ops/chains.pglite.test.ts` "finds a changed event" | 4/1/1 = 4 | The daily signed chain head copied off the node (checklist A17, backlog #9); the platform connects as a role that owns no table (IQ-07) |
| HZ-47 | A key is lost or differs between processes | Stored data cannot be read; seals fail | 4/2/2 = 16 | 191 | Keys configured once per copy and checked by fingerprint in every process; the IQ checks each process states its keys present | `src/lib/kept-keys-operational.pglite.test.ts` "refuses a worker whose key differs from the platform's"; IQ-09 | 4/1/1 = 4 | Key escrow with two named key holders (docs/golive/keys.md) |
| HZ-48 | Evidence kept for less than the law asks | Records unavailable when needed | 3/2/2 = 12 | 188 | An operational copy refuses a lock below 9,132 days | `src/lib/patient-kg/erasure.test.ts` "refuses an operational copy below 25 years"; IQ-10 | 3/1/1 = 3 | None |
| HZ-49 | The node fails | VERA's data lost; no VERA release | 3/3/2 = 18 | 046, 114 | Backups restored and reconciled; release stays closed after a restore until its checks pass; KERNEL keeps reporting in shadow and pilot | `src/app/api/v1/ops/switches/routes.test.ts` "the lab director closes and opens a switch with a reason, and each change is audited" | 3/2/1 = 6 | A second Spark before the first VERA release (checklist C7); the written acceptance of the single-Spark recovery time (A27) |

## 4. Summary

Before VERA's controls, 33 of the 49 hazards score an RPN above 24. After VERA's controls as built, two still do, and
both are go-live conditions under section 2 item 4 (S 5 with D above 2):

- **HZ-04, wrong blood in tube (RPN 75).** Only the delta check can find it, and at launch almost no person has an
  earlier released result. Before the first volunteer sample the draw SOP labels one person's tubes in front of that
  person after VERA's identification, and a critical or markedly abnormal first result is confirmed before it is
  reported; whether that confirmation is an SOP or a hold VERA builds is the laboratory director's decision. Proposed
  5/2/2 = 20 once both are in place, for the laboratory director's recorded acceptance.
- **HZ-02, another person's genuine document (RPN 25).** The identity vault cannot tell. The photograph check at the
  draw, and the laboratory director's decision on reading the identity card's chip and fingerprint, are the further
  controls.

Two hazards score 13 to 24 after the controls and need the laboratory director's recorded acceptance with the
monitoring named: HZ-35 (a clinic report issued and never handed over, 18) and HZ-38 (a report handed to the wrong
clinic, 18). HZ-20 (critical values, RPN 10) depends on the signed escalation chain and a connected alert channel.
HZ-22 and HZ-25 rest on the attested table signatures and the laboratory director's approval of each scope; the other
gates still read the file's own signature (F18).

These scores are proposals. The laboratory director reviews each, sets the acceptability criteria (section 2), and the
assessment is reviewed after the PQ with the measured rates, after every incident and with every change.

## 5. Approval

- Prepared by (developer): Prepaire engineering, 16 November 2026
- Reviewed by (quality manager): name ______________________ date __________ signature ______________________
- Approved by (laboratory director): name ______________________ date __________ signature ______________________

## Change history

| Version | Date | Change | By |
|---|---|---|---|
| 0.1 | 15 Nov 2026 | First draft (F02 of the readiness fix list) | Prepaire engineering |
| 0.2 | 16 Nov 2026 | Wrong blood in tube and a genuine document of another person scored as go-live conditions; the clinic's ORU^R01 and FHIR Bundle lost, altered, sent twice or to the wrong clinic; a calculated result computed wrongly; results reaching the wrong partner, Oracle Health record or twin recipient; refusal tests cited for the refusing controls; the withdrawal of a scope | Prepaire engineering |
| 0.3 | 16 Nov 2026 | The owner and the approver are named where they sign, not in advance; HZ-22: one sign-off per table on /lab/sign-off, read by the loaders and every release gate; HZ-42: each release through the partner port passes the clinical release route's gates | Prepaire engineering |
