FHIR Chat · Patient Deceased element · implementers

Stream: implementers

Topic: Patient Deceased element


view this post on Zulip 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

view this post on Zulip Lloyd McKenzie (Apr 27 2018 at 18:45):

Deceased can either be a boolean or a dateTime.

view this post on Zulip Chris Lo (Apr 27 2018 at 20:19):

This is what I have,

Deceased = new Code() { Value = SomeDateTime.ToString() }

Does that look right?

view this post on Zulip Lloyd McKenzie (Apr 27 2018 at 20:51):

Patient.deceased doesn't allow "code" as a datatype, so no...

view this post on Zulip Chris Lo (Apr 27 2018 at 21:12):

Thanks, I found the object I was looking for

Deaceased = new FhirDateTime(){Value = someDate.ToString()}

view this post on Zulip Brian Postlethwaite (Apr 28 2018 at 07:10):

If that's the C# code

Deceased = new FhirBoolean(true);

view this post on Zulip Brian Postlethwaite (Apr 28 2018 at 07:11):

Or

Deceased = new FhirDateTime(DateTime.Now());

view this post on Zulip 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