Skip to content

Trying to understand GetPrivateTag function of DicomDataset #1717

Answered by mrbean-bremen
aerik asked this question in Q&A
Discussion options

You must be logged in to vote

Just to be clear, that means the private creator tag already exists...

Yes, of course.

I find it terrifcally un-intuitive to create a private tag and have to remember to exclude the upper byte. It seems to me that if that is the convention then the public constructor for a DicomTag with a private creator should be ...

Yes, I agree. As the upper byte is not part of the private tag definition, the behavior is unclear if it is provided.

When attempting to write a private tag with the upper byte set, check to see if there is a matching private creator tag and see if it needs to be written

Actually, if the upper byte is set, and the private creator at that position does not match the pro…

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mrbean-bremen
Comment options

Comment options

You must be logged in to vote
1 reply
@mrbean-bremen
Comment options

Comment options

You must be logged in to vote
4 replies
@mrbean-bremen
Comment options

@aerik
Comment options

@mrbean-bremen
Comment options

Answer selected by aerik
@aerik
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1716 on January 18, 2024 18:35.