FHIR Chat · Previous Hospitalizations · implementers

Stream: implementers

Topic: Previous Hospitalizations


view this post on Zulip Mohsen Jafari (Jul 14 2021 at 14:52):

Is it possible to store "Number of Previous Hospitalizations" in Condition resource?

view this post on Zulip Daniel Venton (Jul 14 2021 at 15:00):

Technically speaking you can store any piece of information in any resource "extension" attribute list. But doing so means that you now have a custom implementation and only You and those consumers that are "in the know" about your custom implementation will know what the value is. I'm not aware of a specific resource where you could store a count (as a calculable field I wouldn't expect one). If you want to know the count, select all the encounters, that are inpatient AND are linked to that condition.

view this post on Zulip Mohsen Jafari (Jul 14 2021 at 15:06):

@Daniel Venton, your answer was really helpful for me. I will use your approach. But one side question: I cannot see an "extension" attribute in Condition resource.

view this post on Zulip David Pyke (Jul 14 2021 at 15:10):

extensions aren't specific attributes, it's a capability of FHIR: https://www.hl7.org/fhir/extensibility.html

view this post on Zulip Rik Smithies (Jul 14 2021 at 17:30):

which is the right answer, but (at the risk of being pedantic) it may also be helpful to know that "extension" technically is in fact an attribute of Condition, and other resources.
It is inherited, so it doesn't show in Condition itself - except that if you look in the "Structure" tab of Condition you will see extension listed on the top right in "Elements defined in Ancestors:"


Last updated: Apr 12 2022 at 19:14 UTC