I have custom Structure Definition based on Observation resource. Using HAPI for the validation. Is there a way to validate the value combination?
Ex:
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "76536-2",
"display": "Mean Arterial Pressure, Cuff"
}
]
},
When this one is used, the unit of measure from the valueQuantity should have only corresponding values, not anything from the code valueset for unitofmeasure.
"valueQuantity": {
"value": 90,
"unit": "mm Hg",
"system": "http://unitsofmeasure.org",
"code": "mm[Hg]"
}
In other words, for Mean Arial Pressure
LOINC code, valueQuantity.code
should not allow kg
, for example.