FHIR Chat · setting FHIR date · dotnet

Stream: dotnet

Topic: setting FHIR date


view this post on Zulip Dennis Brox (Mar 10 2022 at 18:42):

In the Goal resource, a few fields are 'date'. Using type FHIRdatetime allows signing the value but the type gets serialized to startDateTime for example instead of startDate. The former doesn't deserialize, the latter does, even when the value is yyyy-mm-dd of course. What SDK type is used to assign FHIR dates?

view this post on Zulip Michele Mottini (Mar 10 2022 at 20:10):

Date

view this post on Zulip Brian Postlethwaite (Mar 10 2022 at 20:48):

There is also an extension method on the native dotnet DateTime type called ToFhirDate() that you can use to assist in formatting that data right. But Michele is right it's the Hl7.Fhir.Model.Date type.


Last updated: Apr 12 2022 at 19:14 UTC