PATH MER Indicators
0.1.0 - STU1
PATH MER Indicators, published by PATH. This is not an authorized publication; it is the continuous build for version 0.1.0). This version is based on the current content of https://github.com/PATH-Global-Health/MERindicators and changes regularly. See the Directory of published versions
Official URL: https://path-global-health.github.io/MERindicators/Library/DAKTXCURR | Version: 0.1.0 | |||
Draft as of 2023-10-19 | Computable Name: DAKTXCURR |
DAKTXCURR
depends-on | http://hl7.org/fhir/Library/FHIR-ModelInfo|4.0.1 |
depends-on | http://hl7.org/fhir/Library/FHIRHelpers|4.0.1 |
depends-on | FHIRCommon (version 4.0.1) |
depends-on | DAKConcepts |
depends-on | DAKDataElements |
depends-on | DAKStratifiers |
Patient | out | 0 | 1 | Patient |
Initial Population | out | 0 | 1 | boolean |
Measure Population | out | 0 | 1 | boolean |
Measure Population Exclusion | out | 0 | 1 | boolean |
Stratification | out | 0 | 1 | string |
Dispense Stratification | out | 0 | 1 | string |
text/cql
// TX_CURR, WHO HIV.IND.AV.1
// numerator only
// Number of adults and children currently receiving antiretroviral therapy (ART)
// Sum of age/sex disaggregates
library DAKTXCURR version '0.1.0'
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1'
include FHIRCommon version '4.0.1' called FC
include DAKConcepts called Cx
include DAKDataElements called PatientData
include DAKStratifiers called DAKStratifiers
context Patient
// for cohort
/*
define "Initial Population":
PatientData."PLHIV" and PatientData."On ART" and not PatientData."Deceased"
*/
// For continuous variable
define "Initial Population":
PatientData."PLHIV" and PatientData."On ART"
define "Measure Population":
"Initial Population"
define "Measure Population Exclusion":
PatientData."Deceased" or PatientData."Stopped ART"
define function "Measure Observation" (Patient "Patient"):
1
/* for proportion
define "Initial Population":
PatientData."PLHIV"
define "Denominator":
PatientData."PLHIV"
define "Denominator-Exclusion":
PatientData."Deceased"
define "Numerator-Exclusion":
PatientData."Deceased"
// todo: this is not showing up as true
define "Numerator":
PatientData."On ART"
*/
define "Stratification":
DAKStratifiers."Age Group/Sex/Location TXCURR"
define "Dispense Stratification":
DAKStratifiers."Dispensing Quantity/Coarse Age/Sex/Location"
// define "Initial population":
// exists "Anti Retroviral Therapy Adults And Children"
// define "Anti Retroviral Therapy Adults And Children":
// ( [Observation: "Anti Retroviral Therapy"] ) o
// where o.value.coding[1]= "Coded Answer"
// or o.value.coding[2]= "Coded Answer"
// and o.status in {'final', 'amended', 'corrected'}
// and o.effective in day of "Measurement Period"
Content not shown - (
application/elm+xml
, size = 10Kb)
Content not shown - (
application/elm+json
, size = 16Kb)