System Design Atlas

Clinical studies with consent and visits

02 / 10Worked example

Requirements

Which business rule protects study participation, and how is the agreed limit checked?

The case boundary defines domain rules and measurable targets. The central invariant for study participation T-25 is that new study data collection requires active participation under the same protocol version at the atomic acceptance point. Withdrawal ends permission for new data collection. An invariant must hold after every completed operation. Quality targets describe operational properties to measure.

Starting point Permission to collect data applies to a specific protocol version.

Assumptions for the example case

Own fictitious example design. Fictitious documentation of an observational study with a pseudonymized participant, a visit and a versioned protocol. The example visit window covers seconds from the planned start: 0 inclusive to 86400 exclusive. All figures and test goals are illustrative assumptions.

Business guarantee and measurable limit

New data collection requires active participation

1
T-25 activeWithdrawal blocks all subsequent new data collection
2
P-25 boundProof of consent and collection reference the same version
3
Person reference separatelyThe study data store holds only pseudonymized observations
Visit window0 ≤ t < 86,400 s; 86,400 s outside

New collection requires active participation of the same protocol version when committing.

New study data collection requires active participation for the same protocol version at the atomic acceptance point; withdrawal ends permission for new collection.

Business requirements (functional)

Further reading
Durable commitment
New study data collection requires active participation for the same protocol version at the atomic acceptance point; withdrawal ends permission for new collection.
Evidence and closure
The visit is reviewed and data management confirms the planned completion.
Domain boundary rule
The example visit window covers seconds from the planned start: 0 inclusive to 86400 exclusive.

Operational goals (non-functional)

Further reading
Local processing
Illustrative target: 95% of local commands under 800 milliseconds in a 15-minute profile with 10 commands/s. External processing and human waiting time are measured separately.
Traceable processing
In the test profile, the authoritative version and processing delay of checklist processing are recorded. Any assumed change in study participation T-25 must be detectable after restart on the basis of its stored result.

Withdrawal blocks new data collection at commit time

Withdrawal blocks new data collection at commit time

Withdrawal blocks new data collection at commit time.

New study data collection requires active participation for the same protocol version at the atomic acceptance point; withdrawal ends permission for new collection.

The example visit window covers seconds from the planned start: 0 inclusive to 86400 exclusive. 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 the protocol archive require a renewed target check.

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
New study data collection requires active participation for the same protocol version at the atomic acceptance point; withdrawal ends permission for new collection. The counterexample test checks the permitted state.
Operations and boundary
800 milliseconds apply to 95% local commands in the assumed peak-load profile. The example visit window covers seconds from the planned start: 0 inclusive to 86400 exclusive.

Apply to your project

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

Next: Study burden is separated from participation contention.