Stream: implementers
Topic: defaultValue meaning
Jens Villadsen (Jan 06 2020 at 12:57):
pasted image Looking at documentation, is it correctly understood that a value on a resource that is profiled with a default value should never change in the lifecycle of the resource?
Lloyd McKenzie (Jan 06 2020 at 13:43):
No. In older versions of FHIR it just indicates what value should be assumed if the element is missing. In R4 and later, defaultValue has been removed.
Katarina (Feb 19 2020 at 15:34):
Hi, what does "what value should be assumed" mean? Does it mean, when I post an instance with a missing element, the fhir server (e.g. vonk) adds this element with the defined defaultValue to the instance?
Katarina (Feb 19 2020 at 15:57):
Or are there other options to handle such a scenario?
Lloyd McKenzie (Feb 19 2020 at 16:17):
In R4 and later, no defaulting happens. If there's no value, you just assume the meaning. So, for example, if you receive a Patient with no 'active' element, you presume they're active.
Last updated: Apr 12 2022 at 19:14 UTC