Open Rosnyni opened 2 months ago
Hello,
In a structuremap, I want to map a non coded unit :
"valueQuantity" : { "value" : 3700, "unit" : "g" }
to a ucum coded one :
"valueQuantity": { "value": 3700, "code": "g", "unit": "g", "system": "http://unitsofmeasure.org" }
I have created a conceptMap:
* source = "localCoding" * target = "http://unitsofmeasure.org" * element[0] * code = #g * target[0] * code = #g * display = "g"
My idea was to do:
srcQuantity.unit as srcQuantityUnit-> tgtQty.unit = translate(srcQuantityUnit, 'ConceptMap/Unit', display), tgtQty.system = translate(srcQuantityUnit, 'ConceptMap/Unit', 'system'), tgtQty.code= translate(srcQuantityUnit, 'ConceptMap/Unit', 'code') "setQuantityUnit";
But only the target with the 'code' parameter works in matchbox, the two other are not working.
Would it be possible to provide a map and example with transform via a pr?
Hello,
In a structuremap, I want to map a non coded unit :
to a ucum coded one :
I have created a conceptMap:
My idea was to do:
But only the target with the 'code' parameter works in matchbox, the two other are not working.