Filtering all dicom files without StudyDescription dicom tag from being received through a lua script.

Hi,

Something like this should be close to what you are looking for:

function OnStoredInstance(instanceId, tags, metadata, origin)
if (tags[“StudyDescription”] == nil or tags[“StudyDescription”] == “”) then
print(“no study description”)
Delete(instanceId)
else
SendToModality(instanceId, ‘sample’)
end
end

HTH,

Alain.

This is perfect, thank you!