Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

limit in the 'output parameter of the translate transformation #34

Open
Rosnyni opened this issue Sep 12, 2024 · 1 comment
Open

limit in the 'output parameter of the translate transformation #34

Rosnyni opened this issue Sep 12, 2024 · 1 comment

Comments

@Rosnyni
Copy link
Contributor

Rosnyni commented Sep 12, 2024

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.

@oliveregger
Copy link
Member

Would it be possible to provide a map and example with transform via a pr?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants