Stream: implementers
Topic: Patient Deceased element
Chris Lo (Apr 27 2018 at 17:20):
I'm trying to figure out how to implement the Deceased element. We have a DateTime column that is populated if a person has passed. Not sure how which oject to use:
Deceased = new Coding()
Deceased = new CodeableConcept()
or is there a better one?
TIA
Lloyd McKenzie (Apr 27 2018 at 18:45):
Deceased can either be a boolean or a dateTime.
Chris Lo (Apr 27 2018 at 20:19):
This is what I have,
Deceased = new Code() { Value = SomeDateTime.ToString() }
Does that look right?
Lloyd McKenzie (Apr 27 2018 at 20:51):
Patient.deceased doesn't allow "code" as a datatype, so no...
Chris Lo (Apr 27 2018 at 21:12):
Thanks, I found the object I was looking for
Deaceased = new FhirDateTime(){Value = someDate.ToString()}
Brian Postlethwaite (Apr 28 2018 at 07:10):
If that's the C# code
Deceased = new FhirBoolean(true);
Brian Postlethwaite (Apr 28 2018 at 07:11):
Or
Deceased = new FhirDateTime(DateTime.Now());
Brian Postlethwaite (Apr 28 2018 at 21:52):
Might want to check the answer in the corner stream, be careful with someDate.ToString you have there, that's likely not the right format.
Last updated: Apr 12 2022 at 19:14 UTC