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

Request for string codes to be enums #5

Open
GinoCanessa opened this issue Jul 2, 2020 · 1 comment
Open

Request for string codes to be enums #5

GinoCanessa opened this issue Jul 2, 2020 · 1 comment
Labels
c# basic Specific to export of Language CSharpBasic enhancement New feature or request

Comments

@GinoCanessa
Copy link
Contributor

It would be more ergonomic for string fields values such as these:

public static class AddressTypeCodes {
    public const string POSTAL = "postal";
    public const string PHYSICAL = "physical";
    public const string BOTH = "both";
  }

to be enums

Originally posted by @johnstairs in #2 (comment)

@GinoCanessa GinoCanessa added the enhancement New feature or request label Jul 2, 2020
@GinoCanessa
Copy link
Contributor Author

C# doesn't support string value enums, so doing this requires additional work for the serializer and parser.

@GinoCanessa GinoCanessa added the c# basic Specific to export of Language CSharpBasic label Jul 2, 2020
@GinoCanessa GinoCanessa changed the title CSharpBasic: Request for string codes to be enums Request for string codes to be enums Jul 2, 2020
GinoCanessa pushed a commit that referenced this issue Aug 4, 2020
Used the new features in the fhir model information (experimental, st…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c# basic Specific to export of Language CSharpBasic enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant