Hi,
I am building a pipeline to correct ultrasound images with burned in patient information.
I create copies of the series. In the CTP pipeline I mask the patient information in the pixeldata. The copied series should end in the same study in PACS so I keep the Study UID and assign new series UID (0020,000E) and SOP Instance UIDs (0008,0018)
The first part of these UIDs is the InstanceCreatorUID.
I use the following script in 0008,0018:
@contents(InstanceCreatorUID)@hashuid(,this)
This works and creates a new UID.
The problem is that the InstanceCreatorUID is around 35 characters long and the hash creates a string of around 40 characters.
In total the string exceeds the maximum lengts of 64 caracters. This causes the PACS to reject the object.
Is there a wa to limit the string so it doesn't violate DICOM?
Kind regards
-N