itk-wasm icon indicating copy to clipboard operation
itk-wasm copied to clipboard

Write DICOM series and keep original UID

Open vpannetier-rebrain opened this issue 1 month ago • 2 comments

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

vpannetier-rebrain avatar Nov 20 '25 08:11 vpannetier-rebrain

Hi,

We could use a UID if it is on the input's metadata? Would that address your use case?

thewtex avatar Nov 20 '25 15:11 thewtex

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

vpannetier-rebrain avatar Nov 22 '25 15:11 vpannetier-rebrain