Skip to content

On successful C-STORE, transition worklist item to IN_PROGRESS. - #71

Merged
carlosmartinez merged 3 commits into
mainfrom
feat/mark-worklist-item-in-progress
Mar 31, 2026
Merged

On successful C-STORE, transition worklist item to IN_PROGRESS.#71
carlosmartinez merged 3 commits into
mainfrom
feat/mark-worklist-item-in-progress

Conversation

@carlosmartinez

Copy link
Copy Markdown
Contributor

In the absence (for now) of MPPS N-CREATE and N-SET messages, manage appointment state with worklist item status. Status is set to "IN PROGRESS" on a successful C-STORE command for the corresponding accession_number.

Jira link

https://nhsd-jira.digital.nhs.uk/browse/DTOSS-12565

Comment thread src/services/storage.py Outdated
Comment thread src/services/dicom/c_store.py
Comment thread src/services/storage.py Outdated

@steventux steventux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could use the MWLStatus enum instead of strings.
I think there's an opportunity to make update_status a bit smarter but not a blocker.

@steventux

Copy link
Copy Markdown
Contributor

@carlosmartinez having thought about it properly and when awake I realised my idea was not ideal. We need a single state transition not a set of them. Otherwise the second .dcm file for a given accession number would move the worklist item to the next state, my mistake for overcomplicating while misunderstanding the issue,

In the absence (for now) of MPPS N-CREATE and N-SET messages, manage
appointment state with worklist item status. Status is set to "IN
PROGRESS" on a successful C-STORE command for the corresponding
accession_number.
Such that it only performs valid status transitions
@carlosmartinez
carlosmartinez force-pushed the feat/mark-worklist-item-in-progress branch from 9f7fd73 to 070aaaa Compare March 31, 2026 10:33
@carlosmartinez
carlosmartinez merged commit b5a1663 into main Mar 31, 2026
9 checks passed
@carlosmartinez
carlosmartinez deleted the feat/mark-worklist-item-in-progress branch March 31, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants