Metadata Title Multi Rate Example Logic Library Version 2.0.0 Identifier MultiRateExample Identifier urn:oid:2.16.840.1.113883.4.642.40.61.28.29 Approval Date 2019-08-03 Last Review Date 2019-08-03 Experimental true Jurisdiction Global (Whole world) Steward (Publisher) HL7 International / Clinical Quality Information Description This library is used as an example in the FHIR Quality Measure Implementation Guide Type Logic Library Parameter Name: Location Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: Location Parameter Name: Patients Use: Out Min Cardinality: 0 Max Cardinality: * Type: Patient Parameter Name: Practitioners Use: Out Min Cardinality: 0 Max Cardinality: * Type: PractitionerRole Parameter Name: Beds Use: Out Min Cardinality: 0 Max Cardinality: * Type: Device Parameter Name: Screening Procedures Use: Out Min Cardinality: 0 Max Cardinality: * Type: Procedure Parameter Name: Initial Population Use: Out Min Cardinality: 0 Max Cardinality: * Type: Patient Parameter Name: Denominator Use: Out Min Cardinality: 0 Max Cardinality: * Type: Patient Parameter Name: Numerator Use: Out Min Cardinality: 0 Max Cardinality: * Type: Patient Data Requirement Type: Location Profile(s): Location Data Requirement Type: Patient Profile(s): Patient Must Support Elements: gender, id Data Requirement Type: PractitionerRole Profile(s): PractitionerRole Data Requirement Type: Device Profile(s): Device Must Support Elements: type Code Filter(s): Path: type ValueSet: http://example.org/fhir/ValueSet/TBD Data Requirement Type: Procedure Profile(s): Procedure Must Support Elements: code, subject, subject.reference Code Filter(s): Path: code ValueSet: http://example.org/fhir/ValueSet/TBD Library Content CQL Content library MultiRateExample#xD; #xD; using FHIR version '4.0.1'#xD; #xD; include hl7.fhir.uv.cql.FHIRHelpers version '4.0.1' called FHIRHelpers#xD; #xD; valueset "Bed Device Types": 'http://example.org/fhir/ValueSet/TBD'#xD; valueset "Screening Procedure Types": 'http://example.org/fhir/ValueSet/TBD'#xD; #xD; context Location#xD; #xD; // Number of patients#xD; define "Patients":#xD; [Patient]#xD; #xD; // Number of practitioners#xD; define "Practitioners":#xD; [PractitionerRole]#xD; #xD; // Number of beds#xD; define "Beds":#xD; [Device: "Bed Device Types"]#xD; #xD; // Number of screening procedures#xD; define "Screening Procedures":#xD; [Procedure: "Screening Procedure Types"]#xD; #xD; // Percentage of patients who received screening#xD; define "Initial Population":#xD; "Patients"#xD; #xD; define "Denominator":#xD; "Patients" P#xD; where P.gender = 'female'#xD; #xD; define "Numerator":#xD; "Patients" P#xD; with "Screening Procedures" SP#xD; such that P.id = Last(Split(SP.subject.reference, '/'))#xD; #xD; define function ToNumber(patient Patient):#xD; if patient is not null then 1 else 0#xD; #xD; define function ToNumber(practitionerRole PractitionerRole):#xD; if practitionerRole is not null then 1 else 0#xD; #xD; define function ToNumber(device Device):#xD; if device is not null then 1 else 0#xD; ELM XML Content Encoded data (26892 characters) ELM JSON Content Encoded data (47568 characters) Generated using version 0.4.9 of the sample-content-ig Liquid templates
HL7 International / Clinical Quality Information
This library is used as an example in the FHIR Quality Measure Implementation Guide