System Design Atlas

Clinical studies with consent and visits

06 / 10Worked example

The overall architecture

How are the responsibility for study participation and external processing divided between modules and processes?

The local consistency rule determines the boundaries of the study API. Checklist processing runs separately for deferred work. The modules Participation, Data Collection Authorization, Observation, Deviation Review structure responsibility within the API; they are not individually operated services. Study team and reviewers use the study API with relational participation status. A separate protected document area contains proofs of protocol and consent; the API stores their stable references. Checklist processing reads pseudonymized observations and generates open quality tasks. The link to personally identifying information is outside the example scope. Data management receives exclusively assigned pseudonymized data records. The withdrawal path ends synchronously at the authoritative participation state before further data collections are admitted.

Starting point Correct observations through revisions.

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.

Runtime components and datastores

Runtime topology · processes, data stores and external systems

Study teamRecording visits and revocation

Pseudonymised study documentation

Study APICheck permission atomically
Relational participation stateParticipation version and observation
Checklist processingCreating quality tasks
Data managementCheck assigned pseudonyms
Study team → Study APIVisit or revocation
Study API → Relational participation stateCommit participation version and observation
Relational participation state → Checklist processingPseudonymous observation
Checklist processing → Data managementOpen quality task

Pseudonymized participation and observations are stored in the study data; the link to personally identifying information is outside this example.

Study team and reviewers use the study API with relational participation status. A separate protected document area contains proofs of protocol and consent; the API stores their stable references. Checklist processing reads pseudonymized observations and generates open quality tasks. The link to personally identifying information is outside the example scope. Data management receives exclusively assigned pseudonymized data records. The withdrawal path ends synchronously at the authoritative participation state before further data collections are admitted.

Domain responsibilities within the API

Interior view · Study API

Process framework · Study API

ParticipationTrack status and participation version
Data collection authorizationActive participation and P-25 atomic testing
Observationstoring pseudonymous V-25 with origin
Deviation reviewTrack protocol deviations and correction reasons
Teilnahme → ErhebungsfreigabeDomain call
Erhebungsfreigabe → BeobachtungDomain call
Beobachtung → AbweichungsprüfungDomain call

These modules organize responsibilities within the API process and share its server boundary.

Study API includes participation, data collection authorization, observation, deviation review. The diagram shows calls between domain modules; modules have no separate server icons.

Map responsibilities to runtime components

Domain taskRuntimeResponsibility
ParticipationStudy APITracks active participation and documented withdrawal.
Data collection authorizationStudy APIChecks participation and protocol version before accepting new data.
ObservationStudy APIStores collection time, origin and justified corrections.
Deviation reviewStudy APIAssigns deviations to review and resolution.
Checklist processingSeparate background processProcesses stored work and external feedback.
Protocol archiveExternal boundaryProvides or confirms the evidence agreed for this case.

Participation

Runtime
Study API
Responsibility
Tracks active participation and documented withdrawal.

Data collection authorization

Runtime
Study API
Responsibility
Checks participation and protocol version before accepting new data.

Observation

Runtime
Study API
Responsibility
Stores collection time, origin and justified corrections.

Deviation review

Runtime
Study API
Responsibility
Assigns deviations to review and resolution.

Checklist processing

Runtime
Separate background process
Responsibility
Processes stored work and external feedback.

Protocol archive

Runtime
External boundary
Responsibility
Provides or confirms the evidence agreed for this case.

Personally identifying data stays outside the study API

Personally identifying data stays outside the study API

Personally identifying data stays outside the study API.

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

Participation records, protocol references, observation revisions, and the access log must represent the same valid state. Your exercise identifies the input and expected result.

Alternative considered
A separate service for each module distributes the promise “A new study data collection requires active participation for the same protocol version at the atomic acceptance time; a withdrawal ends new data collection authorizations” to additional network boundaries.
Trade-off
Common schema changes require coordinated releases.
Reassess
Significantly deviating load of checklist processing or independent responsibility justifies a new runtime structure.

Try it yourself

Assign participation, checklist processing, and protocol archive to the module, process, and external system types. Justify the authoritative data store.

A hint for your attempt

A domain responsibility becomes a process only when it has its own execution unit.

Compare with a possible solution
Boundaries
Participation is a module in study API; checklist processing is a separate process; protocol archive is outside.
Storage
Participation, protocol references, observational revisions, and access log hold the authoritative evidence. New study data collection requires active participation for the same protocol version at the atomic acceptance point; withdrawal ends permission for new collection. The joint transaction protects this connection; external responses remain separate evidence.

Apply to your project

Which planned service boundary would distribute a currently local guarantee across the network?

Next: Order withdrawal and visit updates on the same record.