source/dcm_transform.py
def generate_new_uids(dataset, suid, foruid, sopiuid):
    """Generate new series, FOR, SOP Instance uids"""
    # Generate new UIDs automatically when any transform changes the geometry
    dataset.SeriesInstanceUID = suid
    dataset.SOPInstanceUID = sopiuid
    dataset.file_meta.data_element("MediaStorageSOPInstanceUID").value = sopiuid
    # do not use: dataset.MediaStorageSOPInstanceUID = dataset.SOPInstanceUID!

    # Generate a new FORUID too
    dataset.FrameOfReferenceUID = foruid
Generate new series, FOR, SOP Instance uids
Generate new series, FOR, SOP Instance uids
Generate new series FOR SOP Instance uids
def generate_new_uids(dataset, suid, foruid, sopiuid):
    dataset.SeriesInstanceUID = suid
    dataset.SOPInstanceUID = sopiuid
    dataset.file_meta.data_element("MediaStorageSOPInstanceUID").value = sopiuid
    dataset.FrameOfReferenceUID = foruid
def generate_new_uids ( dataset , suid , foruid , sopiuid ) : dataset . SeriesInstanceUID = suid dataset . SOPInstanceUID = sopiuid dataset . file_meta . data_element ( "MediaStorageSOPInstanceUID" ) . value = sopiuid dataset . FrameOfReferenceUID = foruid
Generate new series, FOR, SOP Instance uids
Generate new series FOR SOP Instance uids
"""Generate new series, FOR, SOP Instance uids""" # Generate new UIDs automatically when any transform changes the geometry # do not use: dataset.MediaStorageSOPInstanceUID = dataset.SOPInstanceUID! # Generate a new FORUID too
dataset
suid
foruid
sopiuid