Skip to content

Commit 5fe2e7a

Browse files
committed
Use mermaid for State Transition diagram
I have a minor preference for this because it's more structured data.
1 parent 62f05d7 commit 5fe2e7a

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

docs/mwl/README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,22 @@ uv run pytest tests/integration/test_request_cfind_on_worklist.py -v
161161

162162
## Worklist item status transitions
163163

164-
```
165-
SCHEDULED ──(first C-STORE)──▶ IN PROGRESS ──(MPPS N-SET)──▶ COMPLETED
166-
167-
└────────(MPPS N-SET)──▶ DISCONTINUED
164+
```mermaid
165+
stateDiagram-v2
166+
direction LR
167+
state "IN PROGRESS" as IP
168+
169+
[*] --> SCHEDULED
170+
SCHEDULED --> IP: (first C-STORE)
171+
172+
state fork_state <<fork>>
173+
IP --> fork_state: (MPPS N-SET)
174+
175+
fork_state --> COMPLETED
176+
fork_state --> DISCONTINUED
177+
178+
COMPLETED --> [*]
179+
DISCONTINUED --> [*]
168180
```
169181

170182
See [ADR-003: Separate containers for PACS and MWL](../adr/ADR-003_Separate_containers_for_PACS_and_MWL.md) and [ADR-004: Daily backup and reset of the MWL database](../adr/ADR-004_MWL_Daily_Backup_And_Reset.md) for architectural decisions.

0 commit comments

Comments
 (0)