Related Artifacts depends-on FHIR model information http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1 depends-on Library FHIRHelpers http://smart.who.int/ig/smart-immunizations/Library/FHIRHelpers|4.0.1 depends-on Library IMMZCom IMMZCommon depends-on Library IMMZc IMMZConcepts depends-on Library IMMZCon IMMZConfig depends-on Library IMMZvl IMMZVaccineLibrary depends-on Library FC FHIRCommon depends-on Library input IMMZD2DTPolioInput depends-on Value set Polio Vaccine IMMZ.Z.DE14 Polio containing vaccines depends-on Value set Polio Vaccine - bOPV IMMZ.Z.DE14.bOPV Oral Polio containing vaccines depends-on Value set Polio Vaccine - IPV IMMZ.Z.DE14.IPV Inactiviated Polio containing vaccines Parameters Patient out 0 1 Patient Client is not due for bOPV vaccination out 0 1 boolean Client is not due for bOPV vaccination Guidance out 0 1 string Client is due for bOPV vaccination Case 1 out 0 1 boolean Client is due for bOPV vaccination Case 2 out 0 1 boolean Client is due for bOPV vaccination Case 3 out 0 1 boolean Client is due for bOPV vaccination Case 4 out 0 1 boolean Client is due for bOPV vaccination Case 5 out 0 1 boolean Client is due for bOPV vaccination Case 6 out 0 1 boolean Client is due for bOPV vaccination Case 7 out 0 1 boolean Client is due for bOPV vaccination Case 8 out 0 1 boolean Client is due for bOPV vaccination Case 9 out 0 1 boolean Client is due for bOPV vaccination out 0 1 boolean Client is due for bOPV vaccination Guidance out 0 1 string Client is due for bOPV and IPV vaccination Case 1 out 0 1 boolean Client is due for bOPV and IPV vaccination Case 2 out 0 1 boolean Client is due for bOPV and IPV vaccination Case 3 out 0 1 boolean Client is due for bOPV and IPV vaccination Case 4 out 0 1 boolean Client is due for bOPV and IPV vaccination Case 5 out 0 1 boolean Client is due for bOPV and IPV vaccination Case 6 out 0 1 boolean Client is due for bOPV and IPV vaccination out 0 1 boolean Client is due for bOPV and IPV vaccination Guidance out 0 1 string Client is not due for polio vaccination Case 1 out 0 1 boolean Client is not due for polio vaccination Case 2 out 0 1 boolean Client is not due for polio vaccination Case 3 out 0 1 boolean Client is not due for polio vaccination Case 4 out 0 1 boolean Client is not due for polio vaccination Case 5 out 0 1 boolean Client is not due for polio vaccination Case 6 out 0 1 boolean Client is not due for polio vaccination Case 7 out 0 1 boolean Client is not due for polio vaccination Case 8 out 0 1 boolean Client is not due for polio vaccination out 0 1 boolean Client is not due for polio vaccination Guidance out 0 1 string Client is due for IPV vaccination Case 1 out 0 1 boolean Client is due for IPV vaccination Case 2 out 0 1 boolean Client is due for IPV vaccination Case 3 out 0 1 boolean Client is due for IPV vaccination Case 4 out 0 1 boolean Client is due for IPV vaccination Case 5 out 0 1 boolean Client is due for IPV vaccination Case 6 out 0 1 boolean Client is due for IPV vaccination out 0 1 boolean Client is due for IPV vaccination Guidance out 0 1 string Polio immunization schedule is complete out 0 1 boolean Polio immunization schedule is complete Guidance out 0 1 string Guidance out 0 1 string Test Validation out 0 1 Resource Data Requirements Type: Patient (Patient) Type: Immunization (Immunization) Contents text/cql /* * Library: IMMZD2DTPoliobOPVIPV (IMMZ.D2.DT.Polio.bOPV plus IPV) * Rule: Determine if the client is due for a polio vaccination according to the national immunization protocol * Decision Table: bOPV plus IPV schedule (applicable for all countries) * Trigger: IMMZ.D2 Determine required vaccination(s) if any */ library IMMZD2DTPoliobOPVIPV // 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 IMMZVaccineLibrary called IMMZvl include FHIRCommon called FC include IMMZD2DTPolioInput called input // End Skeleton CQL context Patient /* @test: Test expected results based on example patients */ define "Test Validation": case when Patient.id = '18.Alt6w' then "Client is not due for bOPV vaccination" and "Guidance" = 'Should not vaccinate client for first bOPV dose as client\'s age is less than 6 weeks. Check for any other vaccines due, and inform the caregiver of when to come back for the first bOPV dose.' when Patient.id = '19.D0Abt6w3m' then "Client is due for bOPV vaccination Case 1" and "Guidance" = 'Should vaccinate client for first bOPV dose as no polio doses were administered and client\'s age is between 6 weeks and 3 months. Check for contraindications.' when Patient.id = '20.D0Agt3m' then "Client is due for bOPV and IPV vaccination Case 1" and "Guidance" = 'Should vaccinate client for first bOPV dose and first IPV dose as client\'s age is more than 3 months and no polio doses were administered. Check for contraindications.' when Patient.id = '21.D1Abt6w14wBlt4w' then "Client is not due for polio vaccination Case 1" and "Guidance" = 'Should not vaccinate client for polio dose as the latest bOPV dose was administered less than 4 weeks ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose.' when Patient.id = '22.D1Abt6w14wBgt4w' then "Client is due for bOPV vaccination Case 2" and "Guidance" = 'Should vaccinate client for second bOPV dose as the latest bOPV dose was administered more than 4 weeks ago. Check for contraindications' when Patient.id = '24.D1BAgt14wBgt4w' then "Client is due for bOPV and IPV vaccination Case 2" and "Guidance" = 'Should vaccinate client for first IPV dose and second bOPV dose as client\'s age is more than 14 weeks and the latest bOPV dose was administered more than 4 weeks ago. Check for contraindications.' when Patient.id = '23.D1BAgt14wBlt4w' then "Client is due for IPV vaccination Case 1" and "Guidance" = 'Should vaccinate client for first IPV dose as client\'s age is more than 14 weeks and the latest bOPV was administered less than 4 weeks ago. Check for contraindications.' when Patient.id = '25.D1IAgt14wIlt4m' then "Client is due for bOPV vaccination Case 3" and "Guidance" = 'Should vaccinate client for first bOPV dose as client\'s age is more than 14 weeks, bOPV dose was not administered and the first IPV dose was administered less than 4 months ago. Check for contraindications.' when Patient.id = '26.D1IAgt14wIgt4m' then "Client is due for bOPV and IPV vaccination Case 3" and "Guidance" = 'Should vaccinate client for first bOPV dose and second IPV dose as client\'s age is more than 14 weeks, bOPV dose was not administered and the first IPV dose was administered more than 4 months ago. Check for contraindications.' when Patient.id = '27.D2B2Abt6w14wBlt4w' then "Client is not due for polio vaccination Case 2" and "Guidance" = 'Should not vaccinate client for polio dose as client\'s age is between 6 and 14 weeks, two bOPV doses were administered and the latest bOPV dose was administered less than 4 weeks ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose.' when Patient.id = '28.D2B2Abt6w14wBgt4w' then "Client is due for bOPV vaccination Case 4" and "Guidance" = 'Should vaccinate client for third bOPV dose as client\'s age is between 6 and 14 weeks and the latest bOPV dose was administered more than 4 weeks ago. Check for contraindications.' when Patient.id = '29.D2B2Agt14wBlt4w' then "Client is due for IPV vaccination Case 2" and "Guidance" = 'Should vaccinate client for first IPV dose as client\'s age is more than 14 weeks, IPV dose was not administered and the latest bOPV dose was administered less than 4 weeks ago. Check for contraindications.' when Patient.id = '30.D2B2Agt14wBgt4w' then "Client is due for bOPV and IPV vaccination Case 4" and "Guidance" = 'Should vaccinate client for first IPV dose and third bOPV dose as client\'s age is more than 14 weeks, two bOPV doses and no IPV dose were administered and the latest bOPV dose was administered more than 4 weeks ago. Check for contraindications.' when Patient.id = '31.D2B1I1Blt4wIlt4m' then "Client is not due for polio vaccination Case 3" and "Guidance" = 'Should not vaccinate client for polio dose as the latest bOPV dose was administered less than 4 weeks ago and the latest IPV dose was administered less than 4 months ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose.' when Patient.id = '32.D2B1I1Blt4wIgt4m' then "Client is due for IPV vaccination Case 3" and "Guidance" = 'Should vaccinate client for second IPV dose as one bOPV dose and one IPV dose were administered, the latest bOPV dose was administered less than 4 weeks ago and the latest IPV dose was administered more than 4 months ago. Check for contraindications.' when Patient.id = '33.D2B1I1Bgt4wIlt4m' then "Client is due for bOPV vaccination Case 5" and "Guidance" = 'Should vaccinate client for second bOPV dose as one bOPV dose and one IPV dose were administered, the latest bOPV dose was administered more than 4 weeks ago and the latest IPV dose was administered less than 4 months ago. Check for contraindications.' when Patient.id = '34.D2B1I1Bgt4wIgt4m' then "Client is due for bOPV and IPV vaccination Case 5" and "Guidance" = 'Should vaccinate client for second bOPV dose and second IPV dose as one bOPV dose and one IPV dose were administered, the latest bOPV dose was administered more than 4 weeks ago and the latest IPV dose was administered more than 4 months ago. Check for contraindications.' when Patient.id = '35.D2I2' then "Client is due for bOPV vaccination Case 6" and "Guidance" = 'Should vaccinate client for first bOPV dose as bOPV dose was not administered and two IPV doses were administered. Check for contraindications.' when Patient.id = '36.D3B3Alt14w' then "Client is not due for polio vaccination Case 4" and "Guidance" = 'Should not vaccinate client for polio dose as client\'s age is less than 14 weeks and three bOPV doses were administered. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose.' when Patient.id = '37.D3B3Agt14w' then "Client is due for IPV vaccination Case 4" and "Guidance" = 'Should vaccinate client for first IPV dose as client\'s age is more than 14 weeks, three bOPV doses were administered and IPV dose was not administered. Check for contraindications.' when Patient.id = '38.D3B2I1Blt4wIlt4m' then "Client is not due for polio vaccination Case 5" and "Guidance" = 'Should not vaccinate client for polio dose as two bOPV doses and one IPV dose were administered, the latest bOPV dose was administered less than 4 weeks ago and the latest IPV dose was administered less than 4 months ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose.' when Patient.id = '39.D3B2I1Blt4wIgt4m' then "Client is due for IPV vaccination Case 5" and "Guidance" = 'Should vaccinate client for second IPV dose as two bOPV doses and one IPV dose were administered, the latest bOPV dose was administered less than 4 weeks ago and the latest IPV dose was administered more than 4 months ago. Check for contraindications.' when Patient.id = '40.D3B2I1Bgt4wIlt4m' then "Client is due for bOPV vaccination Case 7" and "Guidance" = 'Should vaccinate client for third bOPV dose as two bOPV doses and one IPV dose were administered, the latest bOPV dose was administered more than 4 weeks ago and the latest IPV dose was administered less than 4 months ago. Check for contraindications.' when Patient.id = '41.D3B2I1Bgt4wIgt4m' then "Client is due for bOPV and IPV vaccination Case 6" and "Guidance" = 'Should vaccinate client for third bOPV dose and second IPV dose as two bOPV doses and one IPV dose were administered, the latest bOPV dose was administered more than 4 weeks ago and the latest IPV dose was administered more than 4 months ago. Check for contraindications.' when Patient.id = '42.D3B1I2Blt4w' then "Client is not due for polio vaccination Case 6" and "Guidance" = 'Should not vaccinate client for polio dose as one bOPV dose and two IPV doses were administered and the latest bOPV dose was administered less than 4 weeks ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose.' when Patient.id = '43.D3B1I2Bgt4w' then "Client is due for bOPV vaccination Case 8" and "Guidance" = 'Should vaccinate client for second bOPV dose as one bOPV dose and two IPV doses were administered and the latest bOPV dose was administered more than 4 weeks ago. Check for contraindications.' when Patient.id = '44.D432I1Ilt4m' then "Client is not due for polio vaccination Case 7" and "Guidance" = 'Should not vaccinate client for polio dose as three bOPV doses and one IPV dose were administered and the latest IPV dose was administered less than 4 months ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose.' when Patient.id = '45.D432I1Igt4m' then "Client is due for IPV vaccination Case 6" and "Guidance" = 'Should vaccinate client for second IPV dose as three bOPV doses and one IPV dose were administered and the latest IPV dose was administered more than 4 months ago. Check for contraindications.' when Patient.id = '46.D4B2I2Blt4w' then "Client is not due for polio vaccination Case 8" and "Guidance" = 'Should not vaccinate client for polio dose as two bOPV doses and two IPV doses were administered and the latest bOPV dose was administered less than 4 weeks ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose.' when Patient.id = '47.D4B2I2Bgt4w' then "Client is due for bOPV vaccination Case 9" and "Guidance" = 'Should vaccinate client for third bOPV dose as two bOPV doses and two IPV doses were administered and the latest bOPV dose was administered more than 4 weeks ago. Check for contraindications.' when Patient.id = '48.D5' then "Polio immunization schedule is complete" and "Guidance" = 'Polio routine immunization schedule is complete. Five polio primary series doses were administered. Check for any vaccines due.' else 'No test case set' end /* @dynamicValue: Guidance */ define "Guidance": case when "Client is not due for bOPV vaccination" then "Client is not due for bOPV vaccination Guidance" when "Client is due for bOPV vaccination" then "Client is due for bOPV vaccination Guidance" when "Client is due for bOPV and IPV vaccination" then "Client is due for bOPV and IPV vaccination Guidance" when "Client is not due for polio vaccination" then "Client is not due for polio vaccination Guidance" when "Client is due for IPV vaccination" then "Client is due for IPV vaccination Guidance" when "Polio immunization schedule is complete" then "Polio immunization schedule is complete Guidance" else '' end /* @output: Client is not due for bOPV vaccination @pseudocode: "Immunization recommendation status" = 'Not due' */ define "Client is not due for bOPV vaccination": input."Client's age is less than 6 weeks" /* @output: Client is not due for bOPV vaccination Guidance @guidance: Should not vaccinate client for first bOPV dose as client's age is less than 6 weeks. Check for any other vaccines due, and inform the caregiver of when to come back for the first bOPV dose. */ define "Client is not due for bOPV vaccination Guidance": 'Should not vaccinate client for first bOPV dose as client\'s age is less than 6 weeks. Check for any other vaccines due, and inform the caregiver of when to come back for the first bOPV dose.' /* @output: Client is due for bOPV vaccination Case 1 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'bOPV') */ define "Client is due for bOPV vaccination Case 1": input."No polio primary series doses were administered" and input."Client's age is between 6 weeks and 3 months" /* @output: Client is due for bOPV vaccination Case 2 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'bOPV') */ define "Client is due for bOPV vaccination Case 2": input."One polio primary series dose was administered" and input."Client's age is between 6 weeks and 14 weeks" and input."The latest bOPV dose was administered more than 4 weeks ago" /* @output: Client is due for bOPV vaccination Case 3 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'bOPV') */ define "Client is due for bOPV vaccination Case 3": input."One polio primary series dose was administered" and input."The polio dose administered is IPV" and input."Client's age is more than or equal to 14 weeks" and input."The latest IPV dose was administered less than 4 months ago" /* @output: Client is due for bOPV vaccination Case 4 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'bOPV') */ define "Client is due for bOPV vaccination Case 4": input."Two polio primary series doses were administered" and input."The two doses administered are bOPV" and input."Client's age is between 6 weeks and 14 weeks" and input."The latest bOPV dose was administered more than 4 weeks ago" /* @output: Client is due for bOPV vaccination Case 5 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'bOPV') */ define "Client is due for bOPV vaccination Case 5": input."Two polio primary series doses were administered" and input."From the two doses administered one is bOPV and one is IPV" and input."The latest bOPV dose was administered more than 4 weeks ago" and input."The latest IPV dose was administered less than 4 months ago" /* @output: Client is due for bOPV vaccination Case 6 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'bOPV') */ define "Client is due for bOPV vaccination Case 6": input."Two polio primary series doses were administered" and input."The two doses administered are IPV" /* @output: Client is due for bOPV vaccination Case 7 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'bOPV') */ define "Client is due for bOPV vaccination Case 7": input."Three polio primary series doses were administered" and input."From the three doses administered one is IPV and two are bOPV" and input."The latest bOPV dose was administered more than 4 weeks ago" and input."The latest IPV dose was administered less than 4 months ago" /* @output: Client is due for bOPV vaccination Case 8 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'bOPV') */ define "Client is due for bOPV vaccination Case 8": input."Three polio primary series doses were administered" and input."From the three doses administered one is bOPV and two are IPV" and input."The latest bOPV dose was administered more than 4 weeks ago" /* @output: Client is due for bOPV vaccination Case 9 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'bOPV') */ define "Client is due for bOPV vaccination Case 9": input."Four polio primary series doses were administered" and input."From the four doses administered two are IPV and two are bOPV" and input."The latest bOPV dose was administered more than 4 weeks ago" /* @output: Client is due for bOPV vaccination @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'bOPV') */ define "Client is due for bOPV vaccination": "Client is due for bOPV vaccination Case 1" or "Client is due for bOPV vaccination Case 2" or "Client is due for bOPV vaccination Case 3" or "Client is due for bOPV vaccination Case 4" or "Client is due for bOPV vaccination Case 5" or "Client is due for bOPV vaccination Case 6" or "Client is due for bOPV vaccination Case 7" or "Client is due for bOPV vaccination Case 8" or "Client is due for bOPV vaccination Case 9" /* @output: Client is due for bOPV vaccination Guidance @guidance: Should vaccinate client for first bOPV dose as no polio doses were administered and client's age is between 6 weeks and 3 months. Check for contraindications. @guidance: Should vaccinate client for second bOPV dose as the latest bOPV dose was administered more than 4 weeks ago. Check for contraindications @guidance: Should vaccinate client for first bOPV dose as client's age is more than 14 weeks, bOPV dose was not administered and the first IPV dose was administered less than 4 months ago. Check for contraindications. @guidance: Should vaccinate client for third bOPV dose as client's age is between 6 and 14 weeks and the latest bOPV dose was administered more than 4 weeks ago. Check for contraindications. @guidance: Should vaccinate client for second bOPV dose as one bOPV dose and one IPV dose were administered, the latest bOPV dose was administered more than 4 weeks ago and the latest IPV dose was administered less than 4 months ago. Check for contraindications. @guidance: Should vaccinate client for first bOPV dose as bOPV dose was not administered and two IPV doses were administered. Check for contraindications. @guidance: Should vaccinate client for third bOPV dose as two bOPV doses and one IPV dose were administered, the latest bOPV dose was administered more than 4 weeks ago and the latest IPV dose was administered less than 4 months ago. Check for contraindications. @guidance: Should vaccinate client for second bOPV dose as one bOPV dose and two IPV doses were administered and the latest bOPV dose was administered more than 4 weeks ago. Check for contraindications. @guidance: Should vaccinate client for third bOPV dose as two bOPV doses and two IPV doses were administered and the latest bOPV dose was administered more than 4 weeks ago. Check for contraindications. */ define "Client is due for bOPV vaccination Guidance": case when "Client is due for bOPV vaccination Case 1" then 'Should vaccinate client for first bOPV dose as no polio doses were administered and client\'s age is between 6 weeks and 3 months. Check for contraindications.' when "Client is due for bOPV vaccination Case 2" then 'Should vaccinate client for second bOPV dose as the latest bOPV dose was administered more than 4 weeks ago. Check for contraindications' when "Client is due for bOPV vaccination Case 3" then 'Should vaccinate client for first bOPV dose as client\'s age is more than 14 weeks, bOPV dose was not administered and the first IPV dose was administered less than 4 months ago. Check for contraindications.' when "Client is due for bOPV vaccination Case 4" then 'Should vaccinate client for third bOPV dose as client\'s age is between 6 and 14 weeks and the latest bOPV dose was administered more than 4 weeks ago. Check for contraindications.' when "Client is due for bOPV vaccination Case 5" then 'Should vaccinate client for second bOPV dose as one bOPV dose and one IPV dose were administered, the latest bOPV dose was administered more than 4 weeks ago and the latest IPV dose was administered less than 4 months ago. Check for contraindications.' when "Client is due for bOPV vaccination Case 6" then 'Should vaccinate client for first bOPV dose as bOPV dose was not administered and two IPV doses were administered. Check for contraindications.' when "Client is due for bOPV vaccination Case 7" then 'Should vaccinate client for third bOPV dose as two bOPV doses and one IPV dose were administered, the latest bOPV dose was administered more than 4 weeks ago and the latest IPV dose was administered less than 4 months ago. Check for contraindications.' when "Client is due for bOPV vaccination Case 8" then 'Should vaccinate client for second bOPV dose as one bOPV dose and two IPV doses were administered and the latest bOPV dose was administered more than 4 weeks ago. Check for contraindications.' when "Client is due for bOPV vaccination Case 9" then 'Should vaccinate client for third bOPV dose as two bOPV doses and two IPV doses were administered and the latest bOPV dose was administered more than 4 weeks ago. Check for contraindications.' else '' end /* @output: Client is due for bOPV and IPV vaccination Case 1 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'bOPV') AND (where "Type of polio dose" = 'IPV') */ define "Client is due for bOPV and IPV vaccination Case 1": input."No polio primary series doses were administered" and input."Client's age is more than 3 months" /* @output: Client is due for bOPV and IPV vaccination Case 2 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'bOPV') AND (where "Type of polio dose" = 'IPV') */ define "Client is due for bOPV and IPV vaccination Case 2": input."One polio primary series dose was administered" and input."The polio dose administered is bOPV" and input."Client's age is more than or equal to 14 weeks" and input."The latest bOPV dose was administered more than 4 weeks ago" /* @output: Client is due for bOPV and IPV vaccination Case 3 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'bOPV') AND (where "Type of polio dose" = 'IPV') */ define "Client is due for bOPV and IPV vaccination Case 3": input."One polio primary series dose was administered" and input."The polio dose administered is IPV" and input."Client's age is more than or equal to 14 weeks" and input."The latest IPV dose was administered more than 4 months ago" /* @output: Client is due for bOPV and IPV vaccination Case 4 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'bOPV') AND (where "Type of polio dose" = 'IPV') */ define "Client is due for bOPV and IPV vaccination Case 4": input."Two polio primary series doses were administered" and input."The two doses administered are bOPV" and input."Client's age is more than or equal to 14 weeks" and input."The latest bOPV dose was administered more than 4 weeks ago" /* @output: Client is due for bOPV and IPV vaccination Case 5 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'bOPV') AND (where "Type of polio dose" = 'IPV') */ define "Client is due for bOPV and IPV vaccination Case 5": input."Two polio primary series doses were administered" and input."From the two doses administered one is bOPV and one is IPV" and input."The latest bOPV dose was administered more than 4 weeks ago" and input."The latest IPV dose was administered more than 4 months ago" /* @output: Client is due for bOPV and IPV vaccination Case 6 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'bOPV') AND (where "Type of polio dose" = 'IPV') */ define "Client is due for bOPV and IPV vaccination Case 6": input."Three polio primary series doses were administered" and input."From the three doses administered one is IPV and two are bOPV" and input."The latest bOPV dose was administered more than 4 weeks ago" and input."The latest IPV dose was administered more than 4 months ago" /* @output: Client is due for bOPV and IPV vaccination @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'bOPV') AND (where "Type of polio dose" = 'IPV') */ define "Client is due for bOPV and IPV vaccination": "Client is due for bOPV and IPV vaccination Case 1" or "Client is due for bOPV and IPV vaccination Case 2" or "Client is due for bOPV and IPV vaccination Case 3" or "Client is due for bOPV and IPV vaccination Case 4" or "Client is due for bOPV and IPV vaccination Case 5" or "Client is due for bOPV and IPV vaccination Case 6" /* @output: Client is due for bOPV and IPV vaccination Guidance @guidance: Should vaccinate client for first bOPV dose and first IPV dose as client's age is more than 3 months and no polio doses were administered. Check for contraindications. @guidance: Should vaccinate client for first IPV dose and second bOPV dose as client's age is more than 14 weeks and the latest bOPV dose was administered more than 4 weeks ago. Check for contraindications. @guidance: Should vaccinate client for first bOPV dose and second IPV dose as client's age is more than 14 weeks, bOPV dose was not administered and the first IPV dose was administered more than 4 months ago. Check for contraindications. @guidance: Should vaccinate client for first IPV dose and third bOPV dose as client's age is more than 14 weeks, two bOPV doses and no IPV dose were administered and the latest bOPV dose was administered more than 4 weeks ago. Check for contraindications. @guidance: Should vaccinate client for second bOPV dose and second IPV dose as one bOPV dose and one IPV dose were administered, the latest bOPV dose was administered more than 4 weeks ago and the latest IPV dose was administered more than 4 months ago. Check for contraindications. @guidance: Should vaccinate client for third bOPV dose and second IPV dose as two bOPV doses and one IPV dose were administered, the latest bOPV dose was administered more than 4 weeks ago and the latest IPV dose was administered more than 4 months ago. Check for contraindications. */ define "Client is due for bOPV and IPV vaccination Guidance": case when "Client is due for bOPV and IPV vaccination Case 1" then 'Should vaccinate client for first bOPV dose and first IPV dose as client\'s age is more than 3 months and no polio doses were administered. Check for contraindications.' when "Client is due for bOPV and IPV vaccination Case 2" then 'Should vaccinate client for first IPV dose and second bOPV dose as client\'s age is more than 14 weeks and the latest bOPV dose was administered more than 4 weeks ago. Check for contraindications.' when "Client is due for bOPV and IPV vaccination Case 3" then 'Should vaccinate client for first bOPV dose and second IPV dose as client\'s age is more than 14 weeks, bOPV dose was not administered and the first IPV dose was administered more than 4 months ago. Check for contraindications.' when "Client is due for bOPV and IPV vaccination Case 4" then 'Should vaccinate client for first IPV dose and third bOPV dose as client\'s age is more than 14 weeks, two bOPV doses and no IPV dose were administered and the latest bOPV dose was administered more than 4 weeks ago. Check for contraindications.' when "Client is due for bOPV and IPV vaccination Case 5" then 'Should vaccinate client for second bOPV dose and second IPV dose as one bOPV dose and one IPV dose were administered, the latest bOPV dose was administered more than 4 weeks ago and the latest IPV dose was administered more than 4 months ago. Check for contraindications.' when "Client is due for bOPV and IPV vaccination Case 6" then 'Should vaccinate client for third bOPV dose and second IPV dose as two bOPV doses and one IPV dose were administered, the latest bOPV dose was administered more than 4 weeks ago and the latest IPV dose was administered more than 4 months ago. Check for contraindications.' else '' end /* @output: Client is not due for polio vaccination Case 1 @pseudocode: "Immunization recommendation status" = 'Not due' */ define "Client is not due for polio vaccination Case 1": input."One polio primary series dose was administered" and input."Client's age is between 6 weeks and 14 weeks" and input."The latest bOPV dose was administered less than 4 weeks ago" /* @output: Client is not due for polio vaccination Case 2 @pseudocode: "Immunization recommendation status" = 'Not due' */ define "Client is not due for polio vaccination Case 2": input."Two polio primary series doses were administered" and input."The two doses administered are bOPV" and input."Client's age is between 6 weeks and 14 weeks" and input."The latest bOPV dose was administered less than 4 weeks ago" /* @output: Client is not due for polio vaccination Case 3 @pseudocode: "Immunization recommendation status" = 'Not due' */ define "Client is not due for polio vaccination Case 3": input."Two polio primary series doses were administered" and input."From the two doses administered one is bOPV and one is IPV" and input."The latest bOPV dose was administered less than 4 weeks ago" and input."The latest IPV dose was administered less than 4 months ago" /* @output: Client is not due for polio vaccination Case 4 @pseudocode: "Immunization recommendation status" = 'Not due' */ define "Client is not due for polio vaccination Case 4": input."Three polio primary series doses were administered" and input."The three doses administered are bOPV" and input."Client's age is less than 14 weeks" /* @output: Client is not due for polio vaccination Case 5 @pseudocode: "Immunization recommendation status" = 'Not due' */ define "Client is not due for polio vaccination Case 5": input."Three polio primary series doses were administered" and input."From the three doses administered one is IPV and two are bOPV" and input."The latest bOPV dose was administered less than 4 weeks ago" and input."The latest IPV dose was administered less than 4 months ago" /* @output: Client is not due for polio vaccination Case 6 @pseudocode: "Immunization recommendation status" = 'Not due' */ define "Client is not due for polio vaccination Case 6": input."Three polio primary series doses were administered" and input."From the three doses administered one is bOPV and two are IPV" and input."The latest bOPV dose was administered less than 4 weeks ago" /* @output: Client is not due for polio vaccination Case 7 @pseudocode: "Immunization recommendation status" = 'Not due' */ define "Client is not due for polio vaccination Case 7": input."Four polio primary series doses were administered" and input."From the four doses administered one is IPV and three are bOPV" and input."The latest IPV dose was administered less than 4 months ago" /* @output: Client is not due for polio vaccination Case 8 @pseudocode: "Immunization recommendation status" = 'Not due' */ define "Client is not due for polio vaccination Case 8": input."Four polio primary series doses were administered" and input."From the four doses administered two are IPV and two are bOPV" and input."The latest bOPV dose was administered less than 4 weeks ago" /* @output: Client is not due for polio vaccination @pseudocode: "Immunization recommendation status" = 'Not due' */ define "Client is not due for polio vaccination": "Client is not due for polio vaccination Case 1" or "Client is not due for polio vaccination Case 2" or "Client is not due for polio vaccination Case 3" or "Client is not due for polio vaccination Case 4" or "Client is not due for polio vaccination Case 5" or "Client is not due for polio vaccination Case 6" or "Client is not due for polio vaccination Case 7" or "Client is not due for polio vaccination Case 8" /* @output: Client is not due for polio vaccination Guidance @guidance: Should not vaccinate client for polio dose as the latest bOPV dose was administered less than 4 weeks ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose. @guidance: Should not vaccinate client for polio dose as client's age is between 6 and 14 weeks, two bOPV doses were administered and the latest bOPV dose was administered less than 4 weeks ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose. @guidance: Should not vaccinate client for polio dose as the latest bOPV dose was administered less than 4 weeks ago and the latest IPV dose was administered less than 4 months ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose. @guidance: Should not vaccinate client for polio dose as client's age is less than 14 weeks and three bOPV doses were administered. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose. @guidance: Should not vaccinate client for polio dose as two bOPV doses and one IPV dose were administered, the latest bOPV dose was administered less than 4 weeks ago and the latest IPV dose was administered less than 4 months ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose. @guidance: Should not vaccinate client for polio dose as one bOPV dose and two IPV doses were administered and the latest bOPV dose was administered less than 4 weeks ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose. @guidance: Should not vaccinate client for polio dose as three bOPV doses and one IPV dose were administered and the latest IPV dose was administered less than 4 months ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose. @guidance: Should not vaccinate client for polio dose as two bOPV doses and two IPV doses were administered and the latest bOPV dose was administered less than 4 weeks ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose. */ define "Client is not due for polio vaccination Guidance": case when "Client is not due for polio vaccination Case 1" then 'Should not vaccinate client for polio dose as the latest bOPV dose was administered less than 4 weeks ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose.' when "Client is not due for polio vaccination Case 2" then 'Should not vaccinate client for polio dose as client\'s age is between 6 and 14 weeks, two bOPV doses were administered and the latest bOPV dose was administered less than 4 weeks ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose.' when "Client is not due for polio vaccination Case 3" then 'Should not vaccinate client for polio dose as the latest bOPV dose was administered less than 4 weeks ago and the latest IPV dose was administered less than 4 months ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose.' when "Client is not due for polio vaccination Case 4" then 'Should not vaccinate client for polio dose as client\'s age is less than 14 weeks and three bOPV doses were administered. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose.' when "Client is not due for polio vaccination Case 5" then 'Should not vaccinate client for polio dose as two bOPV doses and one IPV dose were administered, the latest bOPV dose was administered less than 4 weeks ago and the latest IPV dose was administered less than 4 months ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose.' when "Client is not due for polio vaccination Case 6" then 'Should not vaccinate client for polio dose as one bOPV dose and two IPV doses were administered and the latest bOPV dose was administered less than 4 weeks ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose.' when "Client is not due for polio vaccination Case 7" then 'Should not vaccinate client for polio dose as three bOPV doses and one IPV dose were administered and the latest IPV dose was administered less than 4 months ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose.' when "Client is not due for polio vaccination Case 8" then 'Should not vaccinate client for polio dose as two bOPV doses and two IPV doses were administered and the latest bOPV dose was administered less than 4 weeks ago. Check for any other vaccines due, and inform the caregiver of when to come back for the next polio dose.' else '' end /* @output: Client is due for IPV vaccination Case 1 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'IPV') */ define "Client is due for IPV vaccination Case 1": input."One polio primary series dose was administered" and input."The polio dose administered is bOPV" and input."Client's age is more than or equal to 14 weeks" and input."The latest bOPV dose was administered less than 4 weeks ago" /* @output: Client is due for IPV vaccination Case 2 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'IPV') */ define "Client is due for IPV vaccination Case 2": input."Two polio primary series doses were administered" and input."The two doses administered are bOPV" and input."Client's age is more than or equal to 14 weeks" and input."The latest bOPV dose was administered less than 4 weeks ago" /* @output: Client is due for IPV vaccination Case 3 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'IPV') */ define "Client is due for IPV vaccination Case 3": input."Two polio primary series doses were administered" and input."From the two doses administered one is bOPV and one is IPV" and input."The latest bOPV dose was administered less than 4 weeks ago" and input."The latest IPV dose was administered more than 4 months ago" /* @output: Client is due for IPV vaccination Case 4 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'IPV') */ define "Client is due for IPV vaccination Case 4": input."Three polio primary series doses were administered" and input."The three doses administered are bOPV" and input."Client's age is more than or equal to 14 weeks" /* @output: Client is due for IPV vaccination Case 5 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'IPV') */ define "Client is due for IPV vaccination Case 5": input."Three polio primary series doses were administered" and input."From the three doses administered one is IPV and two are bOPV" and input."The latest bOPV dose was administered less than 4 weeks ago" and input."The latest IPV dose was administered more than 4 months ago" /* @output: Client is due for IPV vaccination Case 6 @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'IPV') */ define "Client is due for IPV vaccination Case 6": input."Four polio primary series doses were administered" and input."From the four doses administered one is IPV and three are bOPV" and input."The latest IPV dose was administered more than 4 months ago" /* @output: Client is due for IPV vaccination @pseudocode: "Immunization recommendation status" = 'Due' (where "Type of polio dose" = 'IPV') */ define "Client is due for IPV vaccination": "Client is due for IPV vaccination Case 1" or "Client is due for IPV vaccination Case 2" or "Client is due for IPV vaccination Case 3" or "Client is due for IPV vaccination Case 4" or "Client is due for IPV vaccination Case 5" or "Client is due for IPV vaccination Case 6" /* @output: Client is due for IPV vaccination Guidance @guidance: Should vaccinate client for first IPV dose as client's age is more than 14 weeks and the latest bOPV was administered less than 4 weeks ago. Check for contraindications. @guidance: Should vaccinate client for first IPV dose as client's age is more than 14 weeks, IPV dose was not administered and the latest bOPV dose was administered less than 4 weeks ago. Check for contraindications. @guidance: Should vaccinate client for second IPV dose as one bOPV dose and one IPV dose were administered, the latest bOPV dose was administered less than 4 weeks ago and the latest IPV dose was administered more than 4 months ago. Check for contraindications. @guidance: Should vaccinate client for first IPV dose as client's age is more than 14 weeks, three bOPV doses were administered and IPV dose was not administered. Check for contraindications. @guidance: Should vaccinate client for second IPV dose as two bOPV doses and one IPV dose were administered, the latest bOPV dose was administered less than 4 weeks ago and the latest IPV dose was administered more than 4 months ago. Check for contraindications. @guidance: Should vaccinate client for second IPV dose as three bOPV doses and one IPV dose were administered and the latest IPV dose was administered more than 4 months ago. Check for contraindications. */ define "Client is due for IPV vaccination Guidance": case when "Client is due for IPV vaccination Case 1" then 'Should vaccinate client for first IPV dose as client\'s age is more than 14 weeks and the latest bOPV was administered less than 4 weeks ago. Check for contraindications.' when "Client is due for IPV vaccination Case 2" then 'Should vaccinate client for first IPV dose as client\'s age is more than 14 weeks, IPV dose was not administered and the latest bOPV dose was administered less than 4 weeks ago. Check for contraindications.' when "Client is due for IPV vaccination Case 3" then 'Should vaccinate client for second IPV dose as one bOPV dose and one IPV dose were administered, the latest bOPV dose was administered less than 4 weeks ago and the latest IPV dose was administered more than 4 months ago. Check for contraindications.' when "Client is due for IPV vaccination Case 4" then 'Should vaccinate client for first IPV dose as client\'s age is more than 14 weeks, three bOPV doses were administered and IPV dose was not administered. Check for contraindications.' when "Client is due for IPV vaccination Case 5" then 'Should vaccinate client for second IPV dose as two bOPV doses and one IPV dose were administered, the latest bOPV dose was administered less than 4 weeks ago and the latest IPV dose was administered more than 4 months ago. Check for contraindications.' when "Client is due for IPV vaccination Case 6" then 'Should vaccinate client for second IPV dose as three bOPV doses and one IPV dose were administered and the latest IPV dose was administered more than 4 months ago. Check for contraindications.' else '' end /* @output: Polio immunization schedule is complete @pseudocode: "Immunization recommendation status" = 'Complete' */ define "Polio immunization schedule is complete": input."Five polio primary series doses were administered" /* @output: Polio immunization schedule is complete Guidance @guidance: Polio routine immunization schedule is complete. Five polio primary series doses were administered. Check for any vaccines due. */ define "Polio immunization schedule is complete Guidance": 'Polio routine immunization schedule is complete. Five polio primary series doses were administered. Check for any vaccines due.' Content not shown - (application/elm+xml, size = 293Kb) Content not shown - (application/elm+json, size = 503Kb)
Client is not due for bOPV vaccination Guidance
Client is due for bOPV vaccination Case 1
Client is due for bOPV vaccination Case 2
Client is due for bOPV vaccination Case 3
Client is due for bOPV vaccination Case 4
Client is due for bOPV vaccination Case 5
Client is due for bOPV vaccination Case 6
Client is due for bOPV vaccination Case 7
Client is due for bOPV vaccination Case 8
Client is due for bOPV vaccination Case 9
Client is due for bOPV vaccination Guidance
Client is due for bOPV and IPV vaccination Case 1
Client is due for bOPV and IPV vaccination Case 2
Client is due for bOPV and IPV vaccination Case 3
Client is due for bOPV and IPV vaccination Case 4
Client is due for bOPV and IPV vaccination Case 5
Client is due for bOPV and IPV vaccination Case 6
Client is due for bOPV and IPV vaccination
Client is due for bOPV and IPV vaccination Guidance
Client is not due for polio vaccination Case 1
Client is not due for polio vaccination Case 2
Client is not due for polio vaccination Case 3
Client is not due for polio vaccination Case 4
Client is not due for polio vaccination Case 5
Client is not due for polio vaccination Case 6
Client is not due for polio vaccination Case 7
Client is not due for polio vaccination Case 8
Client is not due for polio vaccination Guidance
Client is due for IPV vaccination Case 1
Client is due for IPV vaccination Case 2
Client is due for IPV vaccination Case 3
Client is due for IPV vaccination Case 4
Client is due for IPV vaccination Case 5
Client is due for IPV vaccination Case 6
Client is due for IPV vaccination Guidance
Polio immunization schedule is complete Guidance