Hi,
I want to add an export in the dicom.ini copying the dicom SR file to a specific directory.
Thanks
Hi,
I want to add an export in the dicom.ini copying the dicom SR file to a specific directory.
Thanks
Something like this:
[lua]
ImportConverter9 = if Data.Modality=='SR' then Data:Write(myfolder .. Data.SOPInstanceUID .. '.dcm') end
Marcel
Sorry
I'm doing it wrong and I have a syntax error.
dicom.ini :
[lua]
ImportConverter9 = if Data.Modality=='SR' then Data:Write(C:\dicomserver150b\structured_report\ Data.SOPInstanceUID .. '.dcm') end
message :
[CONQUESTSRV1] *** lua syntax error [string "if Data.Modality=='SR' then Data:Write(C:\dicomserver150b\struc..."]:1: '<name>' expected near '\' in 'if Data.Modality=='SR' then Data:Write(C:\dicomserver150b\structured_report\.. Data.SOPInstanceUID .. '.dcm') end'
Hi,
use [[ ]] around the path. This indicates a string allowing \ characters. You miss one .. operator (string concatenation)
Marcel
Hi,
definitely, I have gaps in syntax ...
That's perfect, thank you very much.
Don’t have an account yet? Register yourself now and be a part of our community!