Skip to content

Commit 20d4904

Browse files
committed
Updated measles CQL/Library files for updated expression names from the L2.
1 parent 7d6e5a2 commit 20d4904

14 files changed

+95
-416
lines changed

input/cql/IMMZD2DTMeaslesDose0.cql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,32 +65,32 @@ define "Client not due for MCV0 Case 1":
6565
@pseudocode: "Immunization recommendation status" = 'Not due'
6666
*/
6767
define "Client not due for MCV0 Case 2":
68-
input."MCV0 dose was NOT administered"
68+
input."MCV0 was not administered"
6969
and input."Client's age is between 6 months and 9 months"
70-
and input."Live vaccine was administered in the last four weeks"
70+
and input."Live vaccine was administered in the last 4 weeks"
7171

7272
/*
7373
@output: Client not due for MCV0 Case 3
7474
@pseudocode: "Immunization recommendation status" = 'Not due'"
7575
*/
7676
define "Client not due for MCV0 Case 3":
77-
input."Client's age is more than 9 months"
77+
input."Client's age is more than or equal to 9 months"
7878

7979
/*
8080
@output: Client not due for MCV0 Case 4
8181
@pseudocode: "Immunization recommendation status" = 'Not due'"
8282
*/
8383
define "Client not due for MCV0 Case 4":
84-
input."MCV0 dose was administered"
84+
input."MCV0 was administered"
8585

8686
/*
8787
@output: Consider MCV0. Create a clinical note.
8888
@pseudocode: "Immunization recommendation status" = 'Further evaluation needed'
8989
*/
9090
define "Consider MCV0. Create a clinical note.":
91-
input."No dose from primary MCV dose series administered"
91+
input."No measles primary series doses were administered"
9292
and input."Client's age is between 6 months and 9 months"
93-
and input."No live vaccine was administered in the last four weeks"
93+
and input."No live vaccine was administered in the last 4 weeks"
9494

9595
/*
9696
@output: Consider MCV0. Create a clinical note. Guidance

input/cql/IMMZD2DTMeaslesHighTx.cql

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,18 @@ define "Client is not due for MCV1 Case 1":
6868
@pseudocode: "Immunization recommendation status" = 'Not due'
6969
*/
7070
define "Client is not due for MCV1 Case 2":
71-
input."No dose from primary MCV dose series administered"
72-
and input."Client's age is more than 9 months"
73-
and input."Live vaccine was administered in the last four weeks"
71+
input."No measles primary series doses were administered"
72+
and input."Client's age is more than or equal to 9 months"
73+
and input."Live vaccine was administered in the last 4 weeks"
7474

7575
/*
7676
@output: Client is due for MCV1
7777
@pseudocode: "Immunization recommendation status" = 'Due'
7878
*/
7979
define "Client is due for MCV1":
80-
input."No dose from primary MCV dose series administered"
81-
and input."Client's age is more than 9 months"
82-
and input."No live vaccine was administered in the last four weeks"
80+
input."No measles primary series doses were administered"
81+
and input."Client's age is more than or equal to 9 months"
82+
and input."No live vaccine was administered in the last 4 weeks"
8383

8484
/*
8585
@output: Client is due for MCV1 Guidance
@@ -122,9 +122,9 @@ define "Client is not due for MCV2 Guidance":
122122
@guidance:Should vaccinate client for MCV2 as client is within appropriate age range and no live vaccine administered in the last 4 weeks. Check for contraindications.
123123
*/
124124
define "Client is due for MCV2":
125-
input."One dose from primary MCV dose series administered High Tx"
126-
and input."Client's age is more than 15 months"
127-
and input."No live vaccine was administered in the last four weeks"
125+
input."MCV1 was administered High Tx"
126+
and input."Client's age is more than or equal to 15 months"
127+
and input."No live vaccine was administered in the last 4 weeks"
128128

129129
/*
130130
@output: Client is due for MCV2 Guidance
@@ -140,16 +140,16 @@ define "Client is due for MCV2 Guidance":
140140
@pseudocode: "Immunization recommendation status" = 'Not due'
141141
*/
142142
define "Client is not due for MCV2 Case 2":
143-
input."One dose from primary MCV dose series administered High Tx"
144-
and input."Client's age is more than 15 months"
145-
and input."Live vaccine was administered in the last four weeks"
143+
input."MCV1 was administered High Tx"
144+
and input."Client's age is more than or equal to 15 months"
145+
and input."Live vaccine was administered in the last 4 weeks"
146146

147147
/*
148148
@output: Routine immunization schedule complete
149149
@pseudocode: "Completed the primary vaccination series" = TRUE (where "Vaccine type" = "Measles containing vaccines")
150150
*/
151151
define "Routine immunization schedule complete":
152-
input."Two doses from primary MCV dose series administered High Tx"
152+
input."MCV2 was administered High Tx"
153153

154154
/*
155155
@output: Routine immunization schedule complete Guidance

input/cql/IMMZD2DTMeaslesInput.cql

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,53 +25,53 @@ define "MCV Doses Administered to Patient":
2525
I.vaccineCode in IMMZc."MCV Vaccine"
2626

2727
/*
28-
@input: No dose from primary MCV dose series administered
28+
@input: No measles primary series doses were administered
2929
@psuedocode: Count of vaccines administered (where "Vaccine type" = 'Measles containing vaccines' and "Type of dose" = "Primary series" ) = 0
3030
*/
31-
define "No dose from primary MCV dose series administered":
31+
define "No measles primary series doses were administered":
3232
not exists("MCV Doses Administered to Patient" I where I.occurrence after Patient.birthDate + 9 months)
3333

3434
/*
35-
@input: MCV0 dose was administered
35+
@input: MCV0 was administered
3636
@pseudocode: Count of vaccines administered (where "Vaccine type" = 'Measles containing vaccines' and "Type of dose" = "Dose 0") = 1
3737
*/
38-
define "MCV0 dose was administered":
38+
define "MCV0 was administered":
3939
Count("MCV Doses Administered to Patient" I where I.occurrence between Patient.birthDate + 6 months and Patient.birthDate + 9 months) >= 1
4040

4141
/*
42-
@input: MCV0 dose was NOT administered
42+
@input: MCV0 was not administered
4343
@psuedocode: Count of vaccines administered (where "Vaccine type" = 'Measles containing vaccines' and "Type of dose" = "Dose 0") = 0
4444
*/
45-
define "MCV0 dose was NOT administered":
46-
Not("MCV0 dose was administered")
45+
define "MCV0 was not administered":
46+
Not("MCV0 was administered")
4747

4848
/*
49-
@input: One dose from primary MCV dose series administered High Tx
49+
@input: MCV1 was administered High Tx
5050
@pseudocode: Count of vaccines administered (where "Vaccine type" = 'Measles containing vaccines' and "Type of dose" = "Primary series" ) = 1
5151
*/
52-
define "One dose from primary MCV dose series administered High Tx":
52+
define "MCV1 was administered High Tx":
5353
Count("MCV Doses Administered to Patient" I where I.occurrence after Patient.birthDate + 9 months) = 1
5454

5555
/*
56-
@input: Two doses from primary MCV dose series administered High Tx
56+
@input: MCV2 was administered High Tx
5757
@pseudocode: Count of vaccines administered (where "Vaccine type" = 'Measles containing vaccines' and "Type of dose" = "Primary series" ) = 2
5858
*/
59-
define "Two doses from primary MCV dose series administered High Tx":
59+
define "MCV2 was administered High Tx":
6060
Count("MCV Doses Administered to Patient" I where I.occurrence after Patient.birthDate + 9 months) >= 2
6161
and Count("MCV Doses Administered to Patient" I where I.occurrence after Patient.birthDate + 15 months) >= 1
6262

6363
/*
64-
@input: One dose from primary MCV dose series administered Low Tx
64+
@input: MCV1 was administered Low Tx
6565
@pseudocode: Count of vaccines administered (where "Vaccine type" = 'Measles containing vaccines' and "Type of dose" = "Primary series" ) = 1
6666
*/
67-
define "One dose from primary MCV dose series administered Low Tx":
67+
define "MCV1 was administered Low Tx":
6868
Count("MCV Doses Administered to Patient" I where I.occurrence after Patient.birthDate + 12 months) = 1
6969

7070
/*
71-
@input: Two doses from primary MCV dose series administered Low Tx
71+
@input: MCV2 was administered Low Tx
7272
@pseudocode: Count of vaccines administered (where "Vaccine type" = 'Measles containing vaccines' and "Type of dose" = "Primary series" ) = 2
7373
*/
74-
define "Two doses from primary MCV dose series administered Low Tx":
74+
define "MCV2 was administered Low Tx":
7575
Count("MCV Doses Administered to Patient" I where I.occurrence after Patient.birthDate + 12 months) >= 2
7676
and Count("MCV Doses Administered to Patient" I where I.occurrence after Patient.birthDate + 15 months) >= 1
7777

@@ -83,25 +83,25 @@ define "Measles supplementary dose was administered":
8383
Count("MCV Doses Administered to Patient" I where I.occurrence after Patient.birthDate + 9 months) >= 3
8484

8585
/*
86-
@input: Measles supplementary dose was NOT administered
86+
@input: Measles supplementary dose was not administered
8787
@pseudocode: Count of vaccines administered (where "Vaccine type" = 'Measles containing vaccines' and "Type of dose" = "Supplementary dose") = 0
8888
*/
89-
define "Measles supplementary dose was NOT administered":
89+
define "Measles supplementary dose was not administered":
9090
Not("Measles supplementary dose was administered")
9191

9292
/*
9393
@input: Measles routine immunization schedule is complete High Tx
9494
@pseudocode: "Completed the primary vaccination series" = TRUE (where "Vaccine type" = "Measles containing vaccines")
9595
*/
9696
define "Measles routine immunization schedule is complete High Tx":
97-
"Two doses from primary MCV dose series administered High Tx"
97+
"MCV2 was administered High Tx"
9898

9999
/*
100100
@input: Measles routine immunization schedule is complete Low Tx
101101
@pseudocode: "Completed the primary vaccination series" = TRUE (where "Vaccine type" = "Measles containing vaccines")
102102
*/
103103
define "Measles routine immunization schedule is complete Low Tx":
104-
"Two doses from primary MCV dose series administered Low Tx"
104+
"MCV2 was administered Low Tx"
105105

106106
/*
107107
@input: Client's age is less than 6 months
@@ -125,10 +125,10 @@ define "Client's age is less than 9 months":
125125
IMMZCom."Current Patient Age In Months" < 9
126126

127127
/*
128-
@input: Client's age is more than 9 months
128+
@input: Client's age is more than or equal to 9 months
129129
@pseudocode: Today's date - "Date of birth" ≥ 9 'month'
130130
*/
131-
define "Client's age is more than 9 months":
131+
define "Client's age is more than or equal to 9 months":
132132
not ("Client's age is less than 9 months")
133133

134134
/*
@@ -139,10 +139,10 @@ define "Client's age is less than 12 months":
139139
IMMZCom."Current Patient Age In Months" < 12
140140

141141
/*
142-
@input: Client's age is more than 12 months
142+
@input: Client's age is more than or equal to 12 months
143143
Today's date - ""Date of birth"" ≥ 12 'month'
144144
*/
145-
define "Client's age is more than 12 months":
145+
define "Client's age is more than or equal to 12 months":
146146
not("Client's age is less than 12 months")
147147

148148
/*
@@ -154,25 +154,25 @@ define "Client's age is less than 15 months":
154154
IMMZCom."Current Patient Age In Months" < 15
155155

156156
/*
157-
@input: Client's age is more than 15 months
157+
@input: Client's age is more than or equal to 15 months
158158
@psuedocode: Today's date - "Date of birth" ≥ 15 'month'
159159
*/
160-
define "Client's age is more than 15 months":
160+
define "Client's age is more than or equal to 15 months":
161161
not("Client's age is less than 15 months")
162162

163163
/*
164164
@input: Live vaccine was administered in the last four weeks
165165
@pseudocode: Today's date - latest "Date and time of vaccination" (where "Live vaccine" = TRUE) < 4 'week'
166166
*/
167-
define "Live vaccine was administered in the last four weeks":
167+
define "Live vaccine was administered in the last 4 weeks":
168168
IMMZCom."Date of Latest Live Attenuated Vaccine" is not null and IMMZCom."Date of Latest Live Attenuated Vaccine" + 4 weeks > Now()
169169

170170
/*
171171
@input: No live vaccine was administered in the last four weeks
172172
@pseudocode: Today's date - latest "Date and time of vaccination" (where "Live vaccine" = TRUE) ≥ 4 'week'
173173
*/
174-
define "No live vaccine was administered in the last four weeks":
175-
not("Live vaccine was administered in the last four weeks")
174+
define "No live vaccine was administered in the last 4 weeks":
175+
not("Live vaccine was administered in the last 4 weeks")
176176

177177
/*
178178
@input: The client is pregnant

input/cql/IMMZD2DTMeaslesLowTx.cql

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,18 @@ define "Client is not due for MCV1 Case 1":
6767
@pseudocode: "Immunization recommendation status" = 'Not due'
6868
*/
6969
define "Client is not due for MCV1 Case 2":
70-
input."No dose from primary MCV dose series administered"
71-
and input."Client's age is more than 12 months"
72-
and input."Live vaccine was administered in the last four weeks"
70+
input."No measles primary series doses were administered"
71+
and input."Client's age is more than or equal to 12 months"
72+
and input."Live vaccine was administered in the last 4 weeks"
7373

7474
/*
7575
@output: Client is due for MCV1
7676
@pseudocode: "Immunization recommendation status" = 'Due'
7777
*/
7878
define "Client is due for MCV1":
79-
input."No dose from primary MCV dose series administered"
80-
and input."Client's age is more than 12 months"
81-
and input."No live vaccine was administered in the last four weeks"
79+
input."No measles primary series doses were administered"
80+
and input."Client's age is more than or equal to 12 months"
81+
and input."No live vaccine was administered in the last 4 weeks"
8282

8383
/*
8484
@output: Client is due for MCV1 Guidance
@@ -121,9 +121,9 @@ define "Client is not due for MCV2 Guidance":
121121
@guidance: MCV2 was NOT administered for the client. No live vaccine administered in the last 4 weeks. Client is due for MCV2.
122122
*/
123123
define "Client is due for MCV2":
124-
input."One dose from primary MCV dose series administered Low Tx"
125-
and input."Client's age is more than 15 months"
126-
and input."No live vaccine was administered in the last four weeks"
124+
input."MCV1 was administered Low Tx"
125+
and input."Client's age is more than or equal to 15 months"
126+
and input."No live vaccine was administered in the last 4 weeks"
127127

128128
/*
129129
@output: Client is due for MCV2 Guidance
@@ -139,16 +139,16 @@ define "Client is due for MCV2 Guidance":
139139
@pseudocode: "Immunization recommendation status" = 'Not due'
140140
*/
141141
define "Client is not due for MCV2 Case 2":
142-
input."One dose from primary MCV dose series administered Low Tx"
143-
and input."Client's age is more than 15 months"
144-
and input."Live vaccine was administered in the last four weeks"
142+
input."MCV1 was administered Low Tx"
143+
and input."Client's age is more than or equal to 15 months"
144+
and input."Live vaccine was administered in the last 4 weeks"
145145

146146
/*
147147
@output: Routine immunization schedule complete
148148
@pseudocode: "Completed the primary vaccination series" = TRUE (where "Vaccine type" = "Measles containing vaccines")
149149
*/
150150
define "Routine immunization schedule complete":
151-
input."Two doses from primary MCV dose series administered Low Tx"
151+
input."MCV2 was administered Low Tx"
152152

153153
/*
154154
@output: Routine immunization schedule complete Guidance

input/cql/IMMZD2DTMeaslesSupp.cql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ define "Guidance":
3939
@pseudocode: "Immunization recommendation status" = 'Not due'
4040
*/
4141
define "Client not due for measles supplementary dose":
42-
input."Measles supplementary dose was NOT administered"
42+
input."Measles supplementary dose was not administered"
4343
and input."Measles routine immunization schedule is complete High Tx"
44-
and input."Live vaccine was administered in the last four weeks"
44+
and input."Live vaccine was administered in the last 4 weeks"
4545

4646
/*
4747
@output: Client not due for measles supplementary dose Guidance
@@ -55,9 +55,9 @@ define "Client not due for measles supplementary dose Guidance":
5555
@pseudocode: "Immunization recommendation status" = 'Further evaluation needed'
5656
*/
5757
define "Consider measles supplementary dose. Create a clinical note.":
58-
input."Measles supplementary dose was NOT administered"
58+
input."Measles supplementary dose was not administered"
5959
and input."Measles routine immunization schedule is complete High Tx"
60-
and input."No live vaccine was administered in the last four weeks"
60+
and input."No live vaccine was administered in the last 4 weeks"
6161
/*
6262
@input: Consider measles supplementary dose. Create a clinical note. Guidance
6363
@guidance: May vaccinate client for measles supplementary dose as supplementary dose was not administered, measles routine immunization schedule is complete and no live vaccine administered in the last 4 weeks. Check if one of the measles supplementary dose specific scenarios is applicable.

input/fsh/codesystems/IMMZ.D.fsh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ Description: "CodeSystem for IMMZ.D Data Elements"
6464
* #DE26 "Expiration date" "The expiration date of the vaccine"
6565
* #DE34 "Dose quantity " "The quantity of vaccine product that was administered"
6666
* #DE35 "Health worker identifier" "The person, organization, or role of the entity that performed the act of giving the vaccine to the client. The implementing system can choose to populate this field using data from a health worker registry or health facility registry"
67+
* #DE201 "Contact date" "The date and time of the client's contact"
68+
* #DE202 "ANC contact number" "The ANC contact or visit number"
69+
* #DE203 "Currently pregnant" "Client's pregnancy status"
6770
* #DE86 "Client education and counselling on immunization" "Providing information, guidance, and support to client or caretakers (such as parents or legal guardians) regarding immunization practices"
6871
* #DE87 "Counselling on functions of the immunological system" "Explaining to the client or caregiver how the vaccines work by triggering the body to produce an immune response"
6972
* #DE88 "Advising about functions of the immunological system" "Explaining to the client or caregiver how the vaccines work by triggering the body to produce an immune response"

0 commit comments

Comments
 (0)