System Design Atlas

Laboratory samples with a complete chain of custody

02 / 10Worked example

Verifiable requirements

The acceptance window ends exactly. What conditions ensure the result?

An old control sample may be an inappropriate basis for measurement.

Starting point Receipt and authorised result release remain separate decisions.

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.

Three authorisation checks

Acceptance and release gates

Reception P-40Time + container
Age < 120 min?no → Rejected
Container intact?no → Rejected
AcceptedCustodian confirmed
E-40 measuredSample + Procedure
Hash suitable?no → blocked
AuthorisedPerson bound
Empfang P-40 → Alter < 120 min?7,199,999 ms allowed
Alter < 120 min? → Behälter intakt?Yes
Behälter intakt? → AngenommenYes
E-40 gemessen → Hash passend?Raw data version
Hash passend? → Freigegebenyes + reviewer

Each gate has a rejection branch; exactly 120 minutes leads to Rejected.

Intact container and age <120 min before acceptance; unambiguous raw data allocation before authorised signature.

Business requirements (functional)

Further reading
Rule 1
A sample has at most one confirmed current custodian. An open handover replaces the previous custodian only when receipt is confirmed.
Rule 2
Acceptance is allowed only at age < 120 minutes and undamaged container; exactly 120 minutes is too late.
Rule 3
Release binds the result, sample, procedure, raw data hash and reviewer to an immutable revision.

Quality goals (non-functional)

Further reading
Measurement window
95 % of the local scan acceptances within 400 ms at 30 scans/s over 15 minutes; instrument-side measurement time is recorded separately.
Open results
Handovers still open after 5 minutes appear in the laboratory team’s work queue; the timer does not assert receipt.

The acceptance window ends at an exact instant.

The acceptance window ends at an exact instant.

At receipt, check that age is less than 120 minutes.

An old control sample may be an inappropriate basis for measurement.

At 7,199,999 ms acceptance is allowed with the container intact. At 7,200,000 ms, the case ends as a rejection with a time-limit reason; no measurement task arises.

Alternative considered
A test only after measurement consumes material for inadmissible samples.
Trade-off
Time sources and time zones must be reliable.
Reassess
Another procedure needs its own time limit.

Try it yourself

Decide for ages of 7,199,999 ms and 7,200,000 ms since collection; state the resulting state in each case.

A hint for your attempt

An old control sample may be an inappropriate basis for measurement.

Compare with a possible solution
Before the border
At 7,199,999 ms acceptance is allowed with the container intact.
On the border
At 7,200,000 ms, the case ends as a rejection with a time-limit reason; no measurement task arises.

Apply to your project

What is the equivalent of “The acceptance window ends exactly.” in your own project?

Step 3: Delivery generates the scanning peak. What conditions ensure the result?