To create an expression specifically requesting information that a ServiceRequest intentionally did not occur for a medical, patient or system reason, use the profile QICore-Servicenotrequested.


  define "Intervention Comfort Measures":
    (["ServiceRequest": "Comfort Measures"] P
      where P.intent = 'order'
    )
      union (["Procedure": "Comfort Measures"] InterventionPerformed
        where InterventionPerformed.status in {'completed', 'in-progress'}
      )

See the patterns page for implementation and usage patterns.