Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: SeriesInstanceUID fix (compatibility with other software) #96

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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

@@ -80,7 +80,7 @@ def add_study_and_series_information(ds: FileDataset, series_data):
ds.StudyDescription = getattr(reference_ds, "StudyDescription", "")
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.

@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.

None yet

3 participants