FHIR Chat · Difference between code and valueCodeableConcept? · implementers

Stream: implementers

Topic: Difference between code and valueCodeableConcept?


view this post on Zulip Nath (Feb 11 2020 at 14:12):

Could someone explain what is the difference between <code><coding> ... and <valueCodeableConcept> ?. Both look exactly same from the structure wise inside observation resource. Sorry I looked at the documentation and could not quite understand when to use which.

thanks a lot for your help

view this post on Zulip Lloyd McKenzie (Feb 11 2020 at 18:17):

Observation.code is defining what kind of Observation occurred. Observation.valueCodeableConcept is describing what was observed. So you might have a code that says "skin color" and a valueCodeableConcept that says "grayish-blue". You can also have Observation.code present with something like "systolic blood pressure" and instead of valueCodeableConcept, you'd have valueQuantity. Think of Observation as a name-value pair. The code is the name and the value is the value. Sometimes the value happens to be a code.

view this post on Zulip Nath (Feb 12 2020 at 14:55):

thanks @Lloyd McKenzie for the clarification.


Last updated: Apr 12 2022 at 19:14 UTC