Orthanc does not discard non-pixel data instances

Hi Authors,

I have an use case when modality sends dicom without PixelData. I already refer to the wiki at (https://book.orthanc-server.com/users/lua.html) and Orthanc offers the lua callback ReceivedInstanceFilter which filters the incoming instances. However, the dicom parameter in this function is only simplified tags which does not include the PixelData. Hence in this function we do not know whether dicom instance does have PixelData or not. Is there another way for filtering the non-PixelData dicom or could Orthanc Author release another callback for us to call ?

Thanks,
Phong

Hello,

This is implemented by the following changeset:
https://hg.orthanc-server.com/orthanc/rev/281045a1e6db

A new “info” argument is available in the “ReceivedInstanceFilter”. Here is how you would use it to achieve your goal:

function ReceivedInstanceFilter(dicom, origin, info)
PrintRecursive(info)

return info[“HasPixelData”]

end

This feature will be part of forthcoming 1.6.1 release.

HTH,
Sébastien-

Thanks a lot Sebastien, that would be very helpful