Design and evidence
What evidence links a conflict-free appointment to documented encounter closure?
The final design reuses the complete runtime topology from step 6. Test markers connect key decisions to expected results and earlier steps to revisit. The following items form a test plan; measured evidence is still outstanding.
Starting point Limit support views to operational metadata.
Assumptions for the example case
Fictitious example design: an outpatient video consultation with one clinician; appointment intervals in UTC; documented consent; manually confirmed consultation end and a versioned clinical note. Figures and quality targets are illustrative test assumptions. Emergency care, automatic diagnosis, prescribing and billing are outside the scope.
Overall architecture with evidence
Runtime architecture · separate practice data and media channel
- 1 · Book appointment
- 2 · Check access
- 3 · Reconcile room
- 4 · Approve note
Practice platform
The practice stores metadata and notes; consultation media flows directly through the video service.
Test plan with review loops
| Validation | Expected result | Return to an earlier step |
|---|---|---|
| Concurrency in both orders | Two patients book the same available appointment. Either commit order yields exactly one booking. Second test: consent revocation races with issuance of new access. Revocation first blocks issuance; access first remains logged as issued, and the active session is ended according to the agreed service contract. | Steps 3 and 5 |
| Identical and changed retries | An identical booking with the same key returns T-71. A changed patient identity under the same key is rejected. Repeating approval of N-1 creates no second closure; different note text requires a new version. | Step 4 |
| Exact value or time limit | T-71 covers [12:00,12:20). Another appointment starting at 12:19:59.999 overlaps; starting at 12:20:00.000 or 12:20:00.001 does not overlap. The start must precede the end. | Steps 2 and 5 |
| Lost response and restart | The video service creates the room, but its response is lost. Practice staff reconcile the same room request. An interrupted consultation enters dokumentation_offen; the clinician records the actual consultation and the agreed next care step. | Steps 7 and 9 |
Concurrency in both orders
- Expected result
- Two patients book the same available appointment. Either commit order yields exactly one booking. Second test: consent revocation races with issuance of new access. Revocation first blocks issuance; access first remains logged as issued, and the active session is ended according to the agreed service contract.
- Return to an earlier step
- Steps 3 and 5
Identical and changed retries
- Expected result
- An identical booking with the same key returns T-71. A changed patient identity under the same key is rejected. Repeating approval of N-1 creates no second closure; different note text requires a new version.
- Return to an earlier step
- Step 4
Exact value or time limit
- Expected result
- T-71 covers [12:00,12:20). Another appointment starting at 12:19:59.999 overlaps; starting at 12:20:00.000 or 12:20:00.001 does not overlap. The start must precede the end.
- Return to an earlier step
- Steps 2 and 5
Lost response and restart
- Expected result
- The video service creates the room, but its response is lost. Practice staff reconcile the same room request. An interrupted consultation enters dokumentation_offen; the clinician records the actual consultation and the agreed next care step.
- Return to an earlier step
- Steps 7 and 9
First end-to-end validation
- End-to-end path
- Book T-71, lose the room response and complete the encounter with a note. The result is one booking, one associated room and one evidenced completion.
- Open decision
- Further appointment and consultation types can be added later. Emergency care, automatic diagnosis, prescribing and billing require their own follow-up design.
Test interruption through documentation
Book T-71, lose the room response and complete the encounter with a note.
Successfully joining a video call does not establish encounter closure.
The result is one booking, one associated room and one evidenced closure.
- Alternative considered
- A pure call test overlooks documentation.
- Trade-off
- The service needs failure points that tests can simulate.
- Reassess
- Further appointment and contact types are then added.
Terms in this step
- Test interruption through documentation
- The result is one booking, one associated room and one evidenced closure.
Try it yourself
Define tests for double booking and clinical closure, including the earlier design steps to revisit.
A hint for your attempt
Use the specific entities and conditions from this step. The two solution parts distinguish the decision from its evidenced outcome.
Compare with a possible solution
- First part of the solution
- Two bookings for the same interval: exactly one succeeds; failures return to step 2/5.
- Second part of the solution
- Interrupted call: remain in dokumentation_offen until note approval, then enter abgeschlossen; failures return to step 7 and role clarification in step 9.
Apply to your project
Which corresponding assumption would you check first in your project when additional appointment and consultation types are introduced?
Start your own design
Choose a small case from your project. The template collects the ten design tasks and leaves space for your sketches, decisions, and open assumptions. You can edit it in your text editor or note-taking app.
Download design template (.md)Compare the ten tasks with the example case
Purpose and boundary
Which corresponding assumption would you check first in your project when additional types of care are added?
In the example: Clinicians decide whether the consultation is appropriate. Technical connectivity does not guarantee adequate treatment.
Requirements
Which corresponding assumption would you check first in your project when user testing reveals unclear presentation?
In the example: Track each prerequisite separately. A booked appointment is not yet approved consultation access.
Scale estimates
Which corresponding assumption would you check first in your project when measured concurrency exceeds the assumption?
In the example: Calculate appointment rates and consultation minutes separately. API load does not determine video capacity.
Interfaces
Which corresponding assumption would you check first in your project when guest participation requires a separate authorisation contract?
In the example: Check the appointment and authorised participants when issuing access. A room identifier alone grants no access.
Data and states
Which corresponding assumption would you check first in your project when larger documents require an agreed structure?
In the example: Preserve the approved note and reference any addendum. The actual documented version remains identifiable.
Overall architecture
Which corresponding assumption would you check first in your project when an in-house media service is explicitly commissioned?
In the example: Operate the video service and practice datastore as separate boundaries. The practice API holds only the necessary metadata and notes.
Critical flow
Which corresponding assumption would you check first in your project when a different encounter closure process is agreed?
In the example: Keep the encounter in dokumentation_offen. Clinicians record the care actually provided and the next step.
Bottlenecks and trade-offs
Which corresponding assumption would you check first in your project when consultations regularly exceed their planned duration?
In the example: Separate waiting-room time from API latency. Delayed treatment requires practice organisation rather than more instances.
Operations and security
Which corresponding assumption would you check first in your project when a specifically governed exceptional access route is needed?
In the example: Limit support views to operational metadata. Clinicians see clinical content according to case assignment.
Final design
Which corresponding assumption would you check first in your project when additional appointment and consultation types are introduced?
In the example: Book T-71, lose the room response and complete the encounter with a note. The result is one booking, one associated room and one evidenced completion.