System Design Atlas

Hospital medication orders

02 / 10Worked example

Requirements

Which business rule protects medication order, and how is the agreed limit checked?

The case boundary creates business rules and measurable goals. For medication order M-26 is the central invariant: Dispensing and documentation reference the exact approved prescription revision; a new revision invalidates the old local dispensing approval. An invariant must apply after each completed operation. Quality objectives, on the other hand, describe an operation to be measured.

Starting point Documentation follows a clinically authorised prescription.

Assumptions for the example case

Own fictitious example design. A fictional documentation workflow for a single medication order whose clinical decisions have already been made, without recommendations on substances, doses or treatment. Technical feedback is marked for clarification from age 60 seconds onwards; this threshold does not provide medical clearance. All figures and test goals are illustrative assumptions.

Business guarantee and measurable limit

Verification and dispensing bind the same revision

1
Domain role authorizedSeparate verification, dispensing and documentation actions
2
Prescription revision currentVerification evidence and dispensing reference revision 3
3
Atomic dispensing recordOrder, verification evidence and dispensing in one commit
Technical investigation thresholdClarify feedback from 60 seconds onwards; this does not give rise to medical clearance

Dispensing and documentation bind the exact approved prescription revision.

Dispensing and documentation reference the exact approved prescription revision; a new revision invalidates the old local dispensing approval.

Business requirements (functional)

Further reading
Durable commitment
Dispensing and documentation reference the exact approved prescription revision; a new revision invalidates the old local dispensing approval.
Evidence and closure
A change request after dispensing requires domain review and evidence of the actual outcome before completion.

Operational goals (non-functional)

Further reading
Local processing
Illustrated target: 95% of local commands under 800 milliseconds in 15-minute profile with 12 commands/s. External processing and human waiting time are measured separately.
Observable limit
Technical feedback is marked for clarification from age 60 seconds onwards; this threshold does not provide medical clearance. The border test checks its own case rule; it is not yet a measured proof of operation.

Verification evidence binds the exact prescription content

Verification evidence binds the exact prescription content

Verification evidence binds the exact prescription content.

Dispensing and documentation reference the exact approved prescription revision; a new revision invalidates the old local dispensing approval.

Technical feedback is marked for clarification from age 60 seconds onwards; this threshold does not provide medical clearance. The exercise specifies the input and expected result.

Alternative considered
A response-time target alone leaves invalid business states unchecked.
Trade-off
Strict validation can pause an operation for investigation.
Reassess
Measured processing times or new contracts with Clinical master system require a new target test.

Try it yourself

Separate the business invariant from the 800-millisecond target. Explain the exact limit in this case.

A hint for your attempt

Completing an operation quickly but incorrectly does not satisfy the business guarantee.

Compare with a possible solution
Business rule
Dispensing and documentation reference the exact approved prescription revision; a new revision invalidates the old local dispensing approval. The counterexample test checks the permitted state.
Operations and boundary
800 milliseconds applies to 95% of local commands in the assumed peak-load profile. Technical feedback is marked for clarification from age 60 seconds onwards; this threshold does not provide medical clearance.

Apply to your project

Which rule of your project remains binding even with slow processing?

Next: Contention is checked on the individual order.