problems using changeuid

  • Hi,

    I’m trying to use changeuid in order to modify the studyuid.

    I’m using the following importconverter (just a test so I know this is a bad uid):

    lua “changeuid(Data.StudyInstanceUID, ‘345’)”


    When I look in the mysql database I see that an entry was made in a table called uidmods.

    It gives me the olduid and the new uid as expected.

    But when I look into the dicomheader I see that the old uid is still present.

    What am I doing wrong and why is the old uid not replaced by the new one?


    I’m using windows and conquest 1.4.19b


    Johan

  • So the correct syntax is

    lua “Data.StudyInstanceUID = changeuid(Data.StudyInstanceUID, ‘345’)”
    Just out of intrest, what is the rationale behind the syntax changeuid(olduid, newuid)? Why not just writing changeuid(newuid)? After all, it’s clear that I know the newuid, so what is the function of the olduid as a parameter?

    Johan

  • Hi,


    it is a lookup, it will always change a given UID to the same new UID if you use the same 'key'. This ensures that UIDs are changed consistenly, i.e., all series will remain in the same study.


    regards


    Marcel

    Marcel van Herk is developer of the Conquest DICOM server together with Lambert Zijp.