Uploaded image for project: 'FHIR Specification Feedback'
  1. FHIR Specification Feedback
  2. FHIR-27762

CodeSystem FHIRPath expression is incorrect in validating unique concept code values

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive with Modification
    • Icon: Medium Medium
    • FHIR Core (FHIR)
    • R4
    • Terminology Infrastructure
    • CodeSystem
    • (profiles)
      FHIRPath (fluentpath)
    • Hide

      Update FHIRPath expression as described by @bryn rhodes

      Show
      Update FHIRPath expression as described by @bryn rhodes
    • Carmela Couderc/Reuben Daniels: 9-0-0
    • Correction
    • Compatible, substantive
    • R5

    Description

      Once of the constraints of the `CodeSystem` resource is the following expression:

      concept.code.combine($this.descendants().concept.code).isDistinct()

       

      The use of the `$this` invocation is incorrect. The input collection that `$this.descendants()` will operate under will only return the extensions or `id` of `concept.code`. Please see discussion at: http://community.fhir.org/t/codesystem-constraint-fhir-path-expression-seems-to-always-be-false/1999

       

      Recommend the following changes:

      concept.code.combine(%resource.concept.descendants().select(concept).code).isDistinct()

       

      or 

       

      concept.code.combine(%resource.concept.descendants().concept.code).isDistinct()

      Attachments

        Activity

          People

            marc.duteau Marc Duteau
            mhaque Mahbubul Haque (Inactive)
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: