System Design Atlas

Hospital medication orders

08 / 10Worked example

Bottlenecks and trade-offs

Which measurements distinguish between business waiting times and technical bottlenecks during medication steps?

With the sequence defined, examine its possible bottlenecks. Obsolete verification records arise from changed revisions; technical response losses arise from transmission. Version conflicts and pending reconciliations are observed separately. The following measures are start-up decisions with a need for testing, not already measured improvements.

Starting point After response loss, retry only the same dispensing record.

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.

Trace symptoms to their causes

Branched diagnostic tree

Verification record outdatedSignal
Check the referenced revisionMeasurement
Request new verificationAction
Response missingSignal
Measure reconciliation ageMeasurement
Resume transmissionAction
Investigation case openSignal
Check outcome evidenceMeasurement
Domain roles resolve the case togetherAction

For each cause, connect the signal, distinguishing measurement and targeted action.

Obsolete verification records arise from changed revisions; technical response losses arise from transmission. Version conflicts and pending reconciliations are observed separately.

Measure before making changes

SymptomValidationTargeted action
Obsolete verification recordation arises from amended revisions; technical response losses arise from transmissionCheck source freshness, the business reason for waiting and processing time separately.Address the evidenced cause first, then retest the same case.
Two professionals handle the same assignment in a revisionMeasure the duration of the atomic decision and concurrent access.Move lengthy work outside the commit; preserve the business invariant in the concurrency test.
Stale display despite stored evidenceCompare the authoritative version with the projection version.Rebuild the projection; continue deciding state changes from the authoritative state.

Obsolete verification recordation arises from amended revisions; technical response losses arise from transmission

Validation
Check source freshness, the business reason for waiting and processing time separately.
Targeted action
Address the evidenced cause first, then retest the same case.

Two professionals handle the same assignment in a revision

Validation
Measure the duration of the atomic decision and concurrent access.
Targeted action
Move lengthy work outside the commit; preserve the business invariant in the concurrency test.

Stale display despite stored evidence

Validation
Compare the authoritative version with the projection version.
Targeted action
Rebuild the projection; continue deciding state changes from the authoritative state.

Investigate version conflicts before performance issues

Investigate version conflicts before performance issues

Investigate version conflicts before performance issues.

Obsolete verification records arise from changed revisions; technical response losses arise from transmission. Version conflicts and pending reconciliations are observed separately.

Obsolete verification records arise from changed revisions; technical response losses arise from transmission. Version conflicts and pending reconciliations are observed separately. The exercise specifies the input and expected result.

Alternative considered
Adding compute capacity indiscriminately does not resolve missing business evidence.
Trade-off
Multiple measurement points and separate causes increase the diagnostic effort.
Reassess
Use measurements after the targeted change to decide whether further scaling is needed.

Try it yourself

Name two different causes of delay in this case. Choose a measurement for each and justify the first action.

A hint for your attempt

Record the business reason for waiting, source age and technical compute time separately.

Compare with a possible solution
Case-related diagnosis
Obsolete verification records arise from changed revisions; technical response losses arise from transmission. Version conflicts and pending reconciliations are observed separately. The first step separates these causes based on their own timestamps and conditions.
Hotspot
When two professionals work on the same order revision, measure concurrent access and commit duration. Move lengthy external work outside the transaction, then repeat the same concurrency test.

Apply to your project

Which similar display could have two different causes in your project?

Next: Technical operation does not receive a medical clearance role.