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

Generate literals for enumerable code values #9

Open
cmcgee-mac opened this issue Mar 17, 2020 · 0 comments
Open

Generate literals for enumerable code values #9

cmcgee-mac opened this issue Mar 17, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@cmcgee-mac
Copy link
Contributor

The DICOM spec defines what the codes should be for a large number of the tags that hold codes. It might be useful to define Go style types and values for them (See https://stackoverflow.com/a/17989915 and https://golang.org/ref/spec#Iota ).

This is not a small task. It will require crawling more information from the specification.

There are also certain risks. If the type names can be generated using the tag name, like the sequences, and those names are globally unique, then great. It's also possible that the allowed values are different depending on the module. Either these issues will need to be resolved or there will need to be some mitigation balancing the type-safety with the needed expressiveness.

@cmcgee-mac cmcgee-mac added the enhancement New feature or request label Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant