-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added in Yellow Fever indicator (26) and measure. Updated measures to…
… use a rulesets.
- Loading branch information
1 parent
d70e1e5
commit 086f220
Showing
27 changed files
with
954 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/* | ||
* Library: IMMZ.IND.26.YellowFever | ||
* Immunization coverage for Yellow Fever containing vaccine | ||
* The percentage in the target population who have received one dose of Yellow Fever (YF) vaccine during reporting period | ||
* | ||
* | ||
* References: WHO / UNICEF Joint Reporting Form | ||
* WHO Immunization data portal | ||
*/ | ||
|
||
library IMMZIND26YellowFever | ||
|
||
// Start Skeleton CQL | ||
using FHIR version '4.0.1' | ||
include FHIRHelpers version '4.0.1' | ||
include IMMZCommon called IMMZCom | ||
include IMMZConcepts called IMMZc | ||
include IMMZConfig called IMMZCon | ||
//include IMMZIndicatorCommon called IMMZIndCom | ||
include IMMZVaccineLibrary called IMMZvl | ||
include FHIRCommon called FC | ||
include IMMZINDYellowFever called Ind | ||
include IMMZStratifiers called Stratifiers | ||
// End Skeleton CQL | ||
parameter "Measurement Period" Interval<DateTime> default Interval[@2023-01-01T00:00:00.0, @2023-12-31T23:59:59.9] | ||
|
||
context Patient | ||
|
||
/* | ||
@population: Initial population for first dose: Any one over 9 months | ||
*/ | ||
define "Initial Population": | ||
Patient.birthDate + 9 months before end of "Measurement Period" | ||
|
||
/* | ||
@numerator: Number of yellow fever doses administered through routine services during reporting period | ||
@computation: COUNT of immunization events WHERE "Vaccine type" = "Yellow fever containing vaccines" AND "Date and time of vaccination" is during the reporting period | ||
*/ | ||
define "Numerator": | ||
exists( Ind."Yellow Fever Doses in Measurement Period" I where IMMZCom.ToPositiveInt((singleton from I.protocolApplied).doseNumber) = 1 ) | ||
|
||
/* | ||
@denominator: Number in target group | ||
@computation: As defined by the Member States | ||
*/ | ||
define "Denominator": | ||
"Initial Population" | ||
|
||
/* | ||
@disaggregation: Administrative area | ||
Sex | ||
Age in years | ||
Age group (depending on schedule) | ||
*/ | ||
define "Stratification 1": | ||
Stratifiers."Administrative Area" | ||
|
||
define "Stratification 2": | ||
Stratifiers."Sex" | ||
|
||
define "Stratification 3": | ||
Stratifiers."Age" | ||
|
||
define "Stratification 4": | ||
Stratifiers."Age Group" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Library: IMMZ.IND.YellowFever | ||
*/ | ||
|
||
library IMMZINDYellowFever | ||
|
||
// Start Skeleton CQL | ||
using FHIR version '4.0.1' | ||
include FHIRHelpers version '4.0.1' | ||
include IMMZCommon called IMMZCom | ||
include IMMZConcepts called IMMZc | ||
include IMMZConfig called IMMZCon | ||
//include IMMZIndicatorCommon called IMMZIndCom | ||
include IMMZVaccineLibrary called IMMZvl | ||
include FHIRCommon called FC | ||
include IMMZD2DTYellowFeverInput called YF | ||
// End Skeleton CQL | ||
parameter "Measurement Period" Interval<DateTime> default Interval[@2023-01-01T00:00:00.0, @2023-12-31T23:59:59.9] | ||
|
||
context Patient | ||
|
||
/* | ||
* Measles doses given during measurement period | ||
*/ | ||
define "Yellow Fever Doses in Measurement Period": | ||
YF."Yellow Fever Doses Administered to Patient" I where I.occurrence during "Measurement Period" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Instance: IMMZIND26YellowFever | ||
InstanceOf: http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/proportion-measure-cqfm | ||
Title: "IMMZIND26YellowFever" | ||
|
||
* insert MeasureProportion( IMMZ.IND.26 Yellow Fever indicator for first dose., IMMZIND26YellowFever, | ||
0.1.0, 2024-01-06, IMMZ.IND.26) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
RuleSet: Stratifier( idprefix, count ) | ||
* stratifier[+] | ||
* id = "{idprefix}.S{count}" | ||
* criteria.language = #text/cql | ||
* criteria.expression = "Stratification {count}" | ||
|
||
RuleSet: MeasureProportion( description, library, version, date, idprefix) | ||
* description = "{description}" | ||
* url = "http://smart.who.int/ig/smart-immunizations/Measure/{library}" | ||
* version = "{version}" | ||
* status = #draft | ||
* experimental = false | ||
* date = "{date}" | ||
* name = "{library}" | ||
* publisher = "World Health Organization (WHO)" | ||
* library = "http://smart.who.int/ig/smart-immunizations/Library/{library}" | ||
* scoring = $measure-scoring#proportion "Proportion" | ||
* group[+] | ||
* population[initialPopulation] | ||
* extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean | ||
* id = "{idprefix}.IP" | ||
* description = "Initial Population" | ||
* code = $measure-population#initial-population "Initial Population" | ||
* criteria.language = #text/cql | ||
* criteria.expression = "Initial Population" | ||
* population[denominator] | ||
* extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean | ||
* id = "{idprefix}.D" | ||
* description = "Denominator" | ||
* code = $measure-population#denominator "Denominator" | ||
* criteria.language = #text/cql | ||
* criteria.expression = "Denominator" | ||
* population[numerator] | ||
* extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean | ||
* id = "{idprefix}.N" | ||
* description = "Numerator" | ||
* code = $measure-population#numerator "Numerator" | ||
* criteria.language = #text/cql | ||
* criteria.expression = "Numerator" | ||
* insert Stratifier( {idprefix}, 1 ) | ||
* insert Stratifier( {idprefix}, 2 ) | ||
* insert Stratifier( {idprefix}, 3 ) | ||
* insert Stratifier( {idprefix}, 4 ) |
Oops, something went wrong.