Reading DICOM problem [message #93341] |
Fri, 17 June 2016 05:54 |
LNpellen
Messages: 37 Registered: November 2009
|
Member |
|
|
I have a little program for anonymizing DICOM files. Now I'm anonymizing files from Eclipse (radiotherapy-doseplanning-system). A lot of different files are exported for a patient (RT dose, CT, RT Struct...) and all but one works fine with my program. This file is a RT plan file (I don't know if it matters).
I get this error message:
% OBJ_NEW: Error: MC_Open_File failed - unable to read file from media, Z:\_anonymDicom\PreConv\Test\RP.1.2.246.352.71.5.97280811845 9.322094.20160502131216.dcm, Problem with message information file
The function fails at the initiation of IDLffDicomEx-object.
Here is the function that put a copy of the file into a folder called NN.
function anonymizeFile, pathen, name, id
dcm=QUERY_DICOM(pathen)
IF dcm EQ 1 THEN BEGIN
newFilePath=FILE_DIRNAME(pathen)+PATH_SEP()+'NN'+PATH_SEP()+ FILE_BASENAME(pathen)
o=obj_new('IDLffDicomEx',newFilePath, CLONE=pathen)
o->SetValue, '0010,0010','PN',name
o->SetValue, '0010,0020','LO',id
o->SetValue, '0010,1001','PN',''
o->SetValue, '0010,1000','LO',''
o->SetValue, '0010,0030','DA','20000101'
o->Commit
obj_destroy,o
status=1
ENDIF ELSE status=0
return, status
end
Any idea what happens with this single file? I can open it easily in eFilm fx so it does not look corrupted or anything. And Query DICOM returns 1.
|
|
|