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

adds RegisterCustom function to tag package #342

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

flicaflow
Copy link

From the discussion of the unmerged and probably obsolete PR #271 the idea was to Just a RegisterCustom function to the tag package. This PR is exactly that. I needed the TrackingID and TrackingUID tags which are currently not available. Following code enables me to use them now:

var (
	TagTrackingID  = tag.Tag{Group: 0x0062, Element: 0x0020}
	TagTrackingUID = tag.Tag{Group: 0x0062, Element: 0x0021}
)

func init() {
	tag.RegisterCustom(tag.Info{
		Tag:  TagTrackingID,
		VR:   "UT",
		Name: "TrackingID",
		VM:   "1",
	})
	tag.RegisterCustom(tag.Info{
		Tag:  TagTrackingUID,
		VR:   "UI",
		Name: "TrackingUID",
		VM:   "1",
	})
}

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.

1 participant