Environment:
Windows 10 pro 64bit
ORTHANC V1.2
Curl 7.54.1 64bit
However, in my case, I simply want to change the PatientName tag. To do so, I have to:
1. create a whole new set of Dicom files with a slightly modified PatientID,
2. delete the old set of Dicom files with the original PatientID,
3. create another new set of Dicom files with target PatientName and original PaitentID.
4. delete the set of Dicome files with the slightly modified PatientID.
Is there any easier way to modify PatientName or other tags without creating a new set of files? Without creating a new set, there is no chance "merging of patient data before and after anonymization".
Of course a more sensible way, I think, is to allow users to assign PatientName and other tags while importing Dicom files.
I don't know if either of these ways is possible.
Alain Mazy / CTO
a...@osimis.io / +32 494 31 67 27
OSIMIS S.A. | |
Yes, the 4-step method works well for me. I also tried the LUA scripts from the ORTHANC book, which are capable of finishing the rename modification when a DICOM image is stored. I love this method. The LUA codes are much simpler. No need to identify the ID in the first place. Less disk space usage. And probably saves time.
However, it works only when a patient's name is coded in ASCII. And in my case, I need utf8. I learned from Google that LUA actually supports utf8 since Ver. 5.3. I am just wondering if there is any chance I can get a utf8 string passed to ORTHANC through LUA. Maybe after a newer version of LUA was adopted by ORTHANC? Or maybe there is another way to do so?
* The picture attached is the LUA script that failed only because a utf8 string was used.