FHIR Chat · how should duplicate mappings in diff be handled? · implementers

Stream: implementers

Topic: how should duplicate mappings in diff be handled?


view this post on Zulip Eric Haas (Nov 30 2021 at 22:38):

For US Core Organization I had a redundant mapping and it resulted in a repeated mapping in the snapshot.... apparently this is a feature but should it be? (It's currently not prohibited to have more than one mapping to the same source.) Should mappings in a differential override or add? Would like this to be explicitly documented whatever is decided.

# ==== US Core Organization profile snapshot for Organization.identifier element =====
      mustSupport: true
      isModifier: false
      isSummary: true
      mapping:
        - identity: w5
          map: FiveWs.identifier
        - identity: v2
          map: XON.10 / XON.3
        - identity: rim
          map: '.scopes[Role](classCode=IDENT)'
        - identity: servd #<<<<<<<<<<<<<<<< Repeats !
          map: ./Identifiers
        - identity: servd #<<<<<<<<<<<<<<<< Repeats !
          map: n/a
    - id: Organization.identifier.id
      path: Organization.identifier.id
#...
# ==== US Core Organization profile diff for Organization.identifier element =====
   - id: Organization.identifier
      path: Organization.identifier
      slicing:
        discriminator:
          - type: pattern
            path: $this
        rules: open
      comment: NPI preferred.
      mustSupport: true
      mapping:  #<<<<<< redundant mapping in the diff
        - identity: servd
          map: n/a
# ....

Last updated: Apr 12 2022 at 19:14 UTC