Skip to content

Add the return key attributes as specified in the conformance doc - #55

Merged
steventux merged 2 commits into
mainfrom
fix/provide-return-key-attributes-defined-in-conformance-doc
Mar 25, 2026
Merged

Add the return key attributes as specified in the conformance doc#55
steventux merged 2 commits into
mainfrom
fix/provide-return-key-attributes-defined-in-conformance-doc

Conversation

@steventux

@steventux steventux commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Description

A C-FIND request can specify which fields the SCP SOP instances in response should contain
The documentation says non-requested keys will be ignored, so we are safe to always return the full set for each item.

image

(there's a whole other page of data in the table above) see the conformance doc to check this PR.

Jira link

Part of https://nhsd-jira.digital.nhs.uk/browse/DTOSS-12471

Review notes

I've added the conformance fields with a default of None. We still need to work out which fields we might populate. eg. Station Name or AE Title.

Review checklist

  • Check database queries are correctly scoped to current_provider

@steventux
steventux marked this pull request as draft March 23, 2026 09:45
@steventux
steventux force-pushed the fix/provide-return-key-attributes-defined-in-conformance-doc branch from 0e3bd76 to 2006e67 Compare March 23, 2026 10:25
@steventux
steventux marked this pull request as ready for review March 23, 2026 10:49

@carlosmartinez carlosmartinez 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.

The documentation says non-requested keys will be ignored, so we are safe to always return the full set for each item.
The storage service is quite large and with additional return key fields the WorklistItem dataclass was adding bloat.
We all understand what models.py does.
@steventux
steventux force-pushed the fix/provide-return-key-attributes-defined-in-conformance-doc branch from 216e519 to ded5bc7 Compare March 25, 2026 11:20
@steventux
steventux merged commit 90f62c4 into main Mar 25, 2026
9 checks passed
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