FHIR Chat · Extensions - CodeableConcept vs code · implementers

Stream: implementers

Topic: Extensions - CodeableConcept vs code


view this post on Zulip Jonny Rylands (Sep 16 2016 at 13:18):

If you're creating an extension to carry a coded value that is bound to a valueset with a strength of required, what are the deciding factors on whether to use CodeableConcept or code for the extension's value?

view this post on Zulip Lloyd McKenzie (Sep 16 2016 at 21:45):

1. Is there any chance someone might want to convey the original code they translated from, additional codes needed by other recipients and/or additional codes that convey more detail than the specified value set
2. Is there any need to convey the text the user actually saw on the screen.

In general, you also want to think about whether the "required" binding should be in the extension definition - everyone who uses this extension must use this value set; or whether to leave the extension definition loose and tighten it up in the profile. The latter approach will allow other implementation environments to use the same extension with different codes when the semantic is the same - and you'll get a bit more interoperability through translations or at least having "text" present

view this post on Zulip Jonny Rylands (Sep 17 2016 at 07:01):

I see - makes sense, thanks :-)


Last updated: Apr 12 2022 at 19:14 UTC