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

Invariants us-core-3 and us-core-4 are invalid

    XMLWordPrintableJSON

Details

    • Icon: Technical Correction Technical Correction
    • Resolution: Persuasive
    • Icon: Medium Medium
    • US Core (FHIR)
    • 6.1.0
    • Cross-Group Projects
    • US Core Laboratory Result Observation Profile
      US Core Observation Clinical Result Profile
      US Core Smoking Status Observation Profile
    • Hide

      fix as proposed

      Show
      fix as proposed
    • Correction

    Description

      Invalid Observation invariants us-core-3 and us-core-4 on:

      1. Gist is that they are all on the context of the value property and then the expressions try and walk into the value property on that
      e.g value.ofType(Quantity).system.empty() or value.ofType(Quantity).system = 'http://unitsofmeasure.org'
      should be
      ofType(Quantity).system.empty() or ofType(Quantity).system = 'http://unitsofmeasure.org'

      (not repeating the value at the start as already on that node)

      2. to address the warning 

      warning  us-core-4: The left side is inherently a collection, and so the expression 'ofType(CodeableConcept).coding.system = 'http://snomed.info/sct'' may fail or return false if there is more than one item in the content being evaluated

       change from :  ofType(CodeableConcept).coding.system.empty() or ofType(CodeableConcept).coding.system = 'http://snomed.info/sct'

      to ofType(CodeableConcept).coding.system.empty() or (ofType(CodeableConcept).coding.system contains 'http://snomed.info/sct')

      Attachments

        Activity

          People

            Unassigned Unassigned
            brian.postlethwaite Brian Postlethwaite
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: