Trailing comma in some schemata in hapi-fhir-validation-resources-r4

XMLWordPrintableJSON

    • Type: Technical Correction
    • Resolution: Persuasive
    • Priority: Medium
    • FHIR Core (FHIR)
    • R4
    • FHIR Infrastructure
    • Schemas & Schematrons

      Some of the schemata in the hapi-fhir-validation-resources-r4 module are not valid.
      When trying to use them the following error can be seen:

       

      {{Bad assert: XPath syntax error. Unclosed parenthesis. Suggestion: add ')'.
      f:type/@value=('choice','open-choice','decimal','integer','date','dateTime','time','string','quantity',') or not(f:answerOption or f:answerValueSet)}}

      As a result the schemata validation is not happening at all.

      As can already be seen by the error message there is a trailing ,' in the expression.
      The fix is thus simple: just remove the trailing ,' - unless of course there is something supposed to be after the comma

       

      An associated issue has been raised for the hapi-fhir project:
      [https://github.com/hapifhir/hapi-fhir/issues/2414
      ]

       

      An simple fix is proposed in:

      https://github.com/hapifhir/hapi-fhir/pull/2413

            Assignee:
            Unassigned
            Reporter:
            hdc_icw
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: