Stream: conformance
Topic: elementDefinition.binding should enforce a target
Patrick Werner (Apr 18 2020 at 11:28):
ElementDefinition.binding.strenght is 1..1, binding.valueSet and description are 0..1.
This enables the creation of profiles or core resources (see: https://jira.hl7.org/browse/FHIR-26883) with a binding with no target.
Proposed resolution: invariant which checks if valueSet OR description is set. A binding with a strength, but no target is useless and should throw an error.
Lloyd McKenzie (Apr 18 2020 at 16:27):
Agree - and surprised that rule isn't already there. Can you submit a change request @Patrick Werner?
Grahame Grieve (Apr 18 2020 at 21:00):
only if strength >= extensible
Lloyd McKenzie (Apr 18 2020 at 22:01):
I would say a binding of any sort should have either a value set or description. What's the point of defining an 'example' binding and not providing either a description or value set?
Patrick Werner (Apr 19 2020 at 15:21):
Grahame Grieve (Apr 19 2020 at 20:33):
the task is ambiguous about whether this is about snapshot, or also about differential. I was specifically asked to make the code handle a differential that just has binding in a profile
Patrick Werner (Apr 20 2020 at 07:35):
You are right, added a comment for clarification
Last updated: Apr 12 2022 at 19:14 UTC