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
Pseudonymised study documentation
Pseudonymized participation and observations are stored in the study data; the link to personally identifying information is outside this example.
Domain responsibilities within the API
Interior view · Study API
Process framework · Study API
These modules organize responsibilities within the API process and share its server boundary.
Map responsibilities to runtime components
| Domain task | Runtime | Responsibility |
|---|---|---|
| Participation | Study API | Tracks active participation and documented withdrawal. |
| Data collection authorization | Study API | Checks participation and protocol version before accepting new data. |
| Observation | Study API | Stores collection time, origin and justified corrections. |
| Deviation review | Study API | Assigns deviations to review and resolution. |
| Checklist processing | Separate background process | Processes stored work and external feedback. |
| Protocol archive | External boundary | Provides 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.
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?