Stream: implementers
Topic: valueset binding for the unit in value[x]:valueQuantity
Camille Van Assel (Feb 27 2020 at 09:58):
Hi everyone!
I have a question on an Observation I'm trying to create.
I want to put a valueset binding at the value[x] level, so that it binds the system and code to the elements in my valueset. So far, I put the binding at the level of value[x] but it's not working, I can still put any system and code and it will still validate. This is what my profile looks like:
{
"binding": {
"strength": "required",
"valueSet": "https://fhir.bbl.health/ValueSet/BblAlcoholConsumptionUnit"
},
"id": "Observation.value[x]:valueQuantity",
"path": "Observation.value[x]",
"sliceName": "valueQuantity",
"type": [
{
"code": "Quantity"
}
]
},
{
"id": "Observation.value[x]:valueQuantity.value",
"min": 1,
"path": "Observation.value[x].value"
},
{
"id": "Observation.value[x]:valueQuantity.system",
"min": 1,
"path": "Observation.value[x].system"
},
{
"id": "Observation.value[x]:valueQuantity.code",
"min": 1,
"path": "Observation.value[x].code"
}
Do you know how to change it so it would only accept system/code pairs that are in my valueset ?
Thanks for your help
Lloyd McKenzie (Feb 27 2020 at 15:28):
What are you using to perform validation?
Last updated: Apr 12 2022 at 19:14 UTC