-
Notifications
You must be signed in to change notification settings - Fork 0
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
Proper C# classes for representation FHIR's date and datetime #2
Comments
The problem here is that here is no direct correspondence between FHIR and C# types. In FHIR date type can be represented as year ("2000"), year month ("2000-01") or date. So there are options of how to implement date and dateTime types conversion FHIR <=> C# Option 1Do not convert date and dateTimes. Use strings for dates Option 2Convert FHIR
Option 3Provide a client option which will enable/disable date and dateTime serialization Option 4Use FHIR wrapper types for Date and DateTime instead of C# native types |
As a developer using Aidbox .NET SDK, I want to have C# objects for date and datetime representations so that I can format dates and datetimes to strings without prior conversion.
For example, field Patient.BirthDate can be
DateOnly
objectThe text was updated successfully, but these errors were encountered: