dicoogle icon indicating copy to clipboard operation
dicoogle copied to clipboard

DICOM Association hooks

Open Enet4 opened this issue 1 year ago • 2 comments

In some scenarios of Dicoogle extensions, it would be nice to be able to react to certain events in the DICOM association lifecycle immediately. At the moment, it is only possible to react to file storage and indexing, which can be either too late for the intended action or make it impossible to intervene with the association itself.

This is a request for a feature enabling Dicoogle plugins to attach custom hooks to DICOM associations, including when they are requested, established, released, and for each incoming PData PDU. This should probably also make it possible to control whether an incoming request should be accepted based on additional, non-standard criteria.

Enet4 avatar Nov 20 '24 11:11 Enet4

For example in Orthanc, we can make a custom Lua script for hooking to done/final study.

Which is great for web based system when we can make the orthanc to trigger the system whenever the study is ready to be used ( view etc )

beavermml avatar Jan 10 '25 03:01 beavermml

For example in Orthanc, we can make a custom Lua script for hooking to done/final study.

Which is great for web based system when we can make the orthanc to trigger the system whenever the study is ready to be used ( view etc )

That functionality can be brought to Dicoogle via indexing plugins. It is available as part of the PACScenter archive offering.

Association hooks would probably help create the intended heuristics, but we have preferred not to assume that the entirety of the study will be sent in the same association, so we would still keep track of image provenance and only assume that the study is complete after a small while without receiving any images of that study.

Enet4 avatar Jan 10 '25 09:01 Enet4