Write DICOM series and keep original UID
Hello,
I’m trying to write a DICOM series (slice by slice) using itk-wasm / write-image, but GDCM regenerates the StudyInstanceUID and SeriesInstanceUID even when these metadata fields are already present in the input image. I noticed there is a default boolean m_KeepOriginalUID in the itkGDCMImageIO class, but this option is not exposed in the JavaScript bindings.
Am I doing something wrong? Is there a workaround or a recommended solution? Thank you in advance, Best regards
Hi,
We could use a UID if it is on the input's metadata? Would that address your use case?
Hello, thank you for your reply.
Yes, that's exactly what I need, so I can make sure that the StudyInstanceUID tag is shared between the different slices. Thank you in advance, Best regards