Stream: dotnet
Topic: setting FHIR date
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?
Michele Mottini (Mar 10 2022 at 20:10):
Date
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