Uploaded image for project: 'MADiE Issue Tracker'
  1. MADiE Issue Tracker
  2. MADIE-1527

Unexpected test case result in MADiE for DeviceRequest.doNotPerform() is not true

XMLWordPrintable

      Hello,

      In MADiE, I have a CQL definition called "Has Criteria Indicating Frailty" in library AdvancedIllnessandFrailty 1.3.000 intending to retrieve a QICore 4.1.1 DeviceRequest instance, so it’s specified to include a statement that says "DeviceRequest.doNotPerform() is not true", written in accordance with QICore 4.1.1 authoring patterns and using the QICoreCommon 1.3.000 library’s fluent function doNotPerform.

      define "Has Criteria Indicating Frailty":
        exists ( (Status."Completed or Ongoing Device Request"([DeviceRequest: code in "Frailty Device"])) FrailtyDeviceOrder
            where FrailtyDeviceOrder.doNotPerform() is not true
            and QICoreCommon."ToInterval" ( FrailtyDeviceOrder.authoredOn ) during day of "Measurement Period"
        )
      
      define fluent function doNotPerform(deviceRequest DeviceRequest):
        singleton from (
          deviceRequest.modifierExtension E
            where E.url = 'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPerform'
            return E.value as Boolean
        )
      
      define function "Completed or Ongoing Service Request"(ServiceRequest List<ServiceRequest>):
        ServiceRequest S
          where S.status in { 'active', 'completed' }
            and S.intent = 'order'
      

      I’m creating an intentional failing test case for this instance by setting the modifierExtension value for doNotPerform to "true". However, this test case is passing and meeting the "Has Criteria Indicating Frailty" definition unexpectedly in MADiE.

          {
            "fullUrl": "633c9d020968f8012250fc66",
            "resource": {
              "resourceType": "DeviceRequest",
              "id": "DeviceRequest-1",
              "meta": {
                "profile": [
                  "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest"
                ]
              },
              "modifierExtension": [
                {
                  "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPeform",
                  "valueBoolean": true
                }
              ],
              "subject": {
                "reference": "Patient/Patient-1"
              },
              "codeCodeableConcept": {
                "coding": [
                  {
                    "code": "183240000",
                    "system": "http://snomed.info/sct",
                    "display": "Self-propelled wheelchair (physical object)"
                  }
                ]
              },
              "status": "completed",
              "intent": "order",
              "authoredOn": "2024-11-01T23:59:00.000Z"
            }
          } 

      Question: Is the JSON test case attached written correctly to fail the “Has Criteria Indicating Frailty” definition? The full JSON test case and measure CQL file (referencing library AdvancedIllnesssandFrailty 1.3.000 with the "Has Criteria Indicating Frailty" definition) are both attached for assessment. Thank you!

      cc andersol 

        1. 09202023 test case execution result.png
          207 kB
          Dorothy Lee
        2. 2023-05-17_16-53-33.png
          51 kB
          Dorothy Lee
        3. ControllingHighBloodPressureFHIR.txt
          7 kB
          Dorothy Lee
        4. DENEXFail-FrailtyDeviceRequestNotPerformedTrue.txt
          9 kB
          Dorothy Lee
        5. DENEXFail-FrailtyDeviceRequestNotPerformedTruePJM.json
          10 kB
          Peter Muir
        6. DeviceRequest negation example.json
          2 kB
          eCQM Standards Team
        7. DeviceRequest negation with code example.json
          2 kB
          eCQM Standards Team
        8. RESULTma-DENEXFail-FrailtyDeviceRequestNotPerformedTrue.png
          293 kB
          Peter Muir
        9. RESULTvs-DENEXFail-FrailtyDeviceRequestNotPerformedTrue.png
          310 kB
          Peter Muir

            cbartleman@telligen.com Chandra Bartleman
            dlee38 Dorothy Lee
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: