FHIR Chat · Force a particular CodeableConcept value · conformance

Stream: conformance

Topic: Force a particular CodeableConcept value


view this post on Zulip Avi Kelman (Apr 13 2020 at 15:47):

What's the right way to modify Condition (new structure definition with Condition as base type) to require Condition.category (CodeableConcept type) to be the 'encounter-diagnosis' code and also have that be the default if nothing is set? Is there an example of doing something like that? The guidance for fixedValue says "This is not recommended for Coding and CodeableConcept"

view this post on Zulip Lloyd McKenzie (Apr 13 2020 at 16:40):

FHIR doesn't allow defining defaults - and certainly doesn't allow defining defaults for profiles. A profile can declare a 'pattern' for a CodeableConcept which would require that one of the codings must have a particular code and system.

view this post on Zulip Avi Kelman (Apr 13 2020 at 18:34):

Ok, so how would I say at least that it must have a particular code if fixedValue isn't to be used?

view this post on Zulip Lloyd McKenzie (Apr 13 2020 at 20:11):

Use 'pattern'


Last updated: Apr 12 2022 at 19:14 UTC