FHIR Chat · ConceptMap : 1 to x concepts · terminology

Stream: terminology

Topic: ConceptMap : 1 to x concepts


view this post on Zulip Frédéric Laurent (May 11 2021 at 17:34):

I want define a ConceptMap between more than 2 concepts.
For instance, the concept 'A' in the CodeSystem AA is mapped to the concept '12' in the CodeSystem BB and to 'Z' in the CodeSystem CC

  • AA:A -> BB:12
  • AA:A -> CC:Z

In the ConceptMap Resource, the target/targetUri has 0 or 1 value.
Then I can make mappings between 1 concept in 1 source CodeSystem to x concepts but only in 1 other (target) CodeSystem.

Or, can I define

  • 1 source/sourceUri : AA
  • 0 target/targetUri

and in the element list,

  {
    "code":"A",
    "target": [
        {
            "code":"12",
            "dependsOn":[{
                "system":"CodeSystem/BB"
            }]
        },
        {
            "code":"Z",
            "dependsOn":[{
                "system":"CodeSystem/CC"
            }]
        }
    ]
}

Is it the right way to define a mapping between 1 concept to x concepts in z different code system?

view this post on Zulip Michael Lawley (May 11 2021 at 20:01):

No, this is not correct. ConceptMap contains the group element, which is where the source and target code system is specified. With two target systems you'll need two groups:

"group": [{
  "source": "AA",
  "target": "BB",
  "element": [{
    "code":"A",
    "target": [{
            "code":"12"
      }]
  }]
}, {
  "source": "AA",
  "target": "CC",
  "element": [{
    "code":"A",
    "target": [{
            "code":"Z"
      }]
  }]
}]

view this post on Zulip Frédéric Laurent (May 12 2021 at 07:34):

Thanks Michael, I didn't notice the cardinality on the group element. It makes sense. :+1:


Last updated: Apr 12 2022 at 19:14 UTC