Replies: 1 comment
-
You can get the sequence by using var referencedSeriesItems = dataset.GetSequence(DicomTag.ReferencedSeriesSequence).Items; Then you have to may iterate over the items and find the one you need, and use the same to get sub-sequences. Provided you need the first item: var referencedInstanceItems = referencedSeriesItems[0].GetSequence(DicomTag.ReferencedInstanceSequence).Items; Same here - find the needed item(s), and here you can read or write tags: var sopClassUid = referencedInstanceItems[0].GetString(DicomTag.ReferencedSOPClassUID);
referencedInstanceItems[0].AddOrUpdate(DicomTag.ReferencedSOPInstanceUID, "1.2.3.4"); etc., you get the gist. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to edit subsequence item tag. For example: Referenced Series Sequence -> Referenced Instance Sequence

Could someone guide me how to write the code to get this? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions