System Design Atlas

Laboratory samples with a complete chain of custody

05 / 10Worked example

Data and states

Custody changes and results remain traceable. What conditions ensure the result?

A handover may have been announced, but physically not yet done.

Starting point The key and input hash identify the same receipt.

Assumptions for the example case

Fictitious training laboratory with an aqueous control sample. The draft documents custody changes and results; diagnostic interpretation and clinical decisions are outside the case. All quantities, thresholds and operational objectives of this design are illustrative assumptions.

Custody and results

Sample, handovers and result revisions

Sample P-401 sample
Transfers1:n history; 0..1 current
Result revisions1:n; E-40 → P-40
In transitStarting point
AcceptedCustodian confirmed
Rejectedterminal
MeasuredHash + Procedure
Authorisedterminal
Measurement invalidterminal
Probe P-40 → Übergaben1:n
Probe P-40 → Ergebnisstände1:n
Unterwegs → AngenommenReceipt confirmed
Unterwegs → VerworfenTime / container
Angenommen → GemessenUniquely assigned
Gemessen → FreigegebenAuthorised reviewer
Gemessen → Messung ungültigQuality rejection

P-40 has many historical handovers and result revisions, but at most one current custodian.

Sample 1: n transfers, exactly one current custodian; Sample 1: n results. Rejected and invalidated as terminal alternatives.

State transitions and completion

Starting pointCondition and effectSubsequent state
In transitReceipt before 120 minutes, container intactAccepted
In transitAge from 120 minutes or container damaged; reason documentedRejected
AcceptedRaw measurement and method clearly assignedMeasured
MeasuredThe authorised reviewer confirmed statusAuthorised
MeasuredQuality control fails finallyMeasurement invalid

In transit

Condition and effect
Receipt before 120 minutes, container intact
Subsequent state
Accepted

In transit

Condition and effect
Age from 120 minutes or container damaged; reason documented
Subsequent state
Rejected

Accepted

Condition and effect
Raw measurement and method clearly assigned
Subsequent state
Measured

Measured

Condition and effect
The authorised reviewer confirmed status
Subsequent state
Authorised

Measured

Condition and effect
Quality control fails finally
Subsequent state
Measurement invalid

Custody changes and result revisions remain traceable.

Custody changes and result revisions remain traceable.

The previous custodian remains authoritative until acceptance is confirmed.

A handover may have been announced, but physically not yet done.

Damage ends the acceptance of the sample; no measurement follows. An accepted sample can produce an invalid measurement revision; reason and raw data are preserved, a new measurement is given a new revision.

Alternative considered
Recording dispatch as an immediate custody change would conceal lost samples.
Trade-off
Open handovers need clarification work.
Reassess
Several partial samples require their own identities and relationships.

Try it yourself

Draw the outputs of a damaged sample and a faulty measurement; explain the difference.

A hint for your attempt

A handover may have been announced, but physically not yet done.

Compare with a possible solution
Sample discarded
Damage ends the acceptance of the sample; no measurement follows.
Measurement invalid
An accepted sample can yield an invalid measurement revision. Keep its reason and raw data; a new measurement receives a new revision.

Apply to your project

Which correspondence has "custody change and results remain comprehensible." in your own project?

Step 6: Large raw data is outside the receiving commit. What conditions ensure the result?