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

Condition validation schematron rule for abatement (con-4) seems incorrect

    XMLWordPrintableJSON

    Details

    • Type: Technical Correction
    • Status: Resolved - No Change (View Workflow)
    • Priority: Medium
    • Resolution: Not Persuasive
    • Specification:
      FHIR Core (FHIR)
    • Raised in Version:
      R4
    • Work Group:
      Patient Care
    • Related Artifact(s):
      Condition
    • Resolution Description:
      Hide

      See Lloyd's comments

      Both the XPath and the FHIRPath extension look right to me.  (If they're using the validator, on the FHIRPath should be running.  If they're not using the validator, no clue how they're getting XPath to run against a JSON instance...

      I tested their instance using the fhirpath tester with the FHIRPath expression from R4 (unchanged in R5) and it validated fine.  

      Show
      See Lloyd's comments Both the XPath and the FHIRPath extension look right to me.  (If they're using the validator, on the FHIRPath should be running.  If they're not using the validator, no clue how they're getting XPath to run against a JSON instance... I tested their instance using the fhirpath tester with the FHIRPath expression from R4 (unchanged in R5) and it validated fine.  

      Description

      Condition con-4: If condition is abated, then clinicalStatus must be either inactive, resolved, or remission

      {
         "resourceType": "Condition",
         "id": "69fa1876-6ad9-4735-9f6d-28378b57a03a",
          "clinicalStatus": {
             "coding": [
              

      {            "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",            "code": "inactive",            "display": "Inactive"          }

              ]
              },
          "code": {
            "coding": [
              

      {           "system": "http://hl7.org/fhir/sid/icd-10",           "code": "G00.1",           "display": "Pneumococcal meningitis"         }

            ]
          },
          "subject":

      {       "reference": "Patient/7a9a995e-e03f-4e76-bd5b-f5461532ad0d"     }

      ,
          "onsetDateTime": "2019-09-15T18:30:00+00:00",
          "abatementDateTime": "2019-09-25T18:30:00+00:00",
          "recordedDate": "2019-09-16T05:44:24+00:00"
      }

       

      fails the validation. Test is

      test="not(exists(*[starts-with(local-name(.), 'abatement')])) or exists(f:clinicalStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-clinical' and f:code/@value=('resolved', 'remission', 'inactive')])"

      Seems like the test should be 

      test="not(exists(*[starts-with(local-name(.), 'abatement')])) or not(exists(f:clinicalStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-clinical' and f:code/@value=('resolved', 'remission', 'inactive')]))"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mholck Michael Holck
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: