Starter FHIR Implementation Guide
1.0.1 - draft International flag

Starter FHIR Implementation Guide, published by Jembi Health Systems. This guide is not an authorized publication; it is the continuous build for version 1.0.1 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/jembi/Starter-FHIR-IG/ and changes regularly. See the Directory of published versions

Library: CQL - Viral Load (Outpatients only) (Experimental)

Official URL: http://jembi.org/fhir/Library/OutpatientViralLoad Version: 1.0.1
Active as of 2024-12-11 Computable Name: OutpatientViralLoad

CQL Measure that reports on all outpatients who have a HIV viral load date within the reporting period.

Numerator: Count all outpatients who have an HIV viral load result within the reporting period.

Denominator: Count all patients where the encounter class is for outpatient and the encounter date is within the reporting period.

Title: CQL - Viral Load (Outpatients only)
Id: OutpatientViralLoad
Version: 1.0.1
Url: CQL - Viral Load (Outpatients only)
Experimental: true
Type:

system: http://terminology.hl7.org/CodeSystem/library-type

code: logic-library

Date: 2024-12-11 06:22:36+0000
Publisher: Jembi Health Systems
Description:

CQL Measure that reports on all outpatients who have a HIV viral load date within the reporting period.

Numerator: Count all outpatients who have an HIV viral load result within the reporting period.

Denominator: Count all patients where the encounter class is for outpatient and the encounter date is within the reporting period.
Jurisdiction: 001
Related Artifacts:

Dependencies

Parameters:
NameTypeMinMaxIn/Out
Measurement PeriodPeriod01In
PatientPatient01Out
OutpatientEncounter0*Out
Initial Populationboolean01Out
Denominatorboolean01Out
Viral Load ResultsObservation0*Out
Numeratorboolean01Out
Data Requirements:
TypeProfileMSCode Filter
Encounter http://hl7.org/fhir/StructureDefinition/Encounter code filter:
path: class

system: http://terminology.hl7.org/CodeSystem/v3-ActCode

code: AMB

Content: text/cql
library OutpatientViralLoad version '1.0.1'

using FHIR version '4.0.1'

include FHIRHelpers version '4.0.1'
//include fhir.cqf.common.FHIRCommon version '4.0.1'
include HIVCommon called HIVC

codesystem "Encounter Class Codes": 'http://terminology.hl7.org/CodeSystem/v3-ActCode'

code "Outpatient Encounter Class": 'AMB' from "Encounter Class Codes"

parameter "Measurement Period" Interval<DateTime>
default Interval[@2023-12-01, @2023-12-31] //For testing only

context Patient

define "Outpatient":
  [Encounter: class = "Outpatient Encounter Class"] E
    where E.period during "Measurement Period"
      and E.status = 'finished'

define "Initial Population":
  exists ( "Outpatient" )

define "Denominator":
  "Initial Population"

define "Viral Load Results":
  HIVC.ViralLoadResult ( "Measurement Period")

define "Numerator":
  exists ( "Viral Load Results" )
  
Content: application/elm+xml
Encoded data (22972 characters)
Content: application/elm+json
Encoded data (42312 characters)