Stream: conformance
Topic: Force a particular CodeableConcept value
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"
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.
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?
Lloyd McKenzie (Apr 13 2020 at 20:11):
Use 'pattern'
Last updated: Apr 12 2022 at 19:14 UTC