Skip to content

Conversation

@code-lukas
Copy link

@code-lukas code-lukas commented Oct 10, 2023

Hi there!

Thank you for providing rt_utils to ease the burden of constructing DICOM compliant RTSTRUCTs.
We have used your work for research purposes and discovered that generating a random SeriesInstanceUID occasionally breaks functionality in other clinical software (such as RayStation ). So far we have not yet found any problems with the proposed change.

Kind regards

ds.SeriesDescription = getattr(reference_ds, "SeriesDescription", "")
ds.StudyInstanceUID = reference_ds.StudyInstanceUID
ds.SeriesInstanceUID = generate_uid() # TODO: find out if random generation is ok
ds.SeriesInstanceUID = reference_ds.SeriesInstanceUID

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe your solution here is correct. The new images should be part of the previous study.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hjmjohnson Thanks for having a look at this! Would you mind reviewing this so it can be merged in a later release?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change would violate the DICOM standard, see https://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.8.8.html#sect_C.8.8.1.1

since RTstruct "Modality" tag is "RTSTRUCT", compared to the reference dataset which has "CT" modality, and it is not allowed to mix two modalities in the same series-instance-uid.

@code-lukas if this is the case, could you report this bug to RayStation? They usually reply quickly to bug reports.

fyi @lassoan

@code-lukas code-lukas requested a review from hjmjohnson May 28, 2024 14:52
@FabianHoerst
Copy link

When will this be merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants