WHO Immunization Implementation Guide
0.2.0 - ci-build

WHO Immunization Implementation Guide, published by WHO. This guide is not an authorized publication; it is the continuous build for version 0.2.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/WorldHealthOrganization/smart-immunizations/ and changes regularly. See the Directory of published versions

Library: IMMZD5DTVaricellaEncounterElements

Official URL: http://smart.who.int/immunizations/Library/IMMZD5DTVaricellaEncounterElements Version: 0.2.0
Draft as of 2025-08-08 Computable Name: IMMZD5DTVaricellaEncounterElements

This library defines encounter-based elements for Varicella used throughout the Immunization CPG

Title: IMMZD5DTVaricellaEncounterElements
Id: IMMZD5DTVaricellaEncounterElements
Version: 0.2.0
Url: IMMZD5DTVaricellaEncounterElements
Status: draft
Type:

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

code: logic-library

Date: 2025-08-08 19:12:11+0000
Publisher: WHO
Description:

This library defines encounter-based elements for Varicella used throughout the Immunization CPG

Related Artifacts:

Dependencies

Parameters:
NameTypeMinMaxIn/Out
Todaydate01In
EncounterIdstring01In
PatientPatient01Out
Draft Medication Request for Varicella doseMedicationRequest0*Out
The client is currently pregnantboolean01Out
The client is planning to get pregnant in the next monthboolean01Out
The client has immune deficiencyboolean01Out
The client is immunocompromisedboolean01Out
The client is receiving or has received medications that may be immunosuppressiveboolean01Out
Content: text/cql

/*
  * Library: IMMZD5DTVaricellaEncounterElements
  */
library IMMZD5DTVaricellaEncounterElements

using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1'

include WHOConcepts
include WHOCommon called WC
include WHOElements called WE

include IMMZCommon called Common
include IMMZConcepts called Concepts

include IMMZEncounterElements called Encounter

include IMMZD5DTVaricellaElements called VaricellaElements

parameter Today Date default Today()
parameter EncounterId String

context Patient

/*
@internal: Draft Medication Request for Varicella dose
*/
define "Draft Medication Request for Varicella dose":
  Encounter."Draft Medication Request for Patient" MR 
    where MR.medication in Concepts."Varicella-containing vaccines"

/*
@input: The client is currently pregnant
@pseudocode: "Potential contraindications" = "Currently pregnant"
@decision: Potential contraindications
*/
define "The client is currently pregnant":
  Encounter."The client is pregnant"

/*
@input: The client is planning to get pregnant in the next month
@pseudocode: "Potential contraindications" = "Planning to get pregnant in the next month"
@decision: Potential contraindications
*/
define "The client is planning to get pregnant in the next month":
  Encounter."The client is planning to get pregnant in next month"

/*
@input: The client has immune deficiency
@pseudocode: "Potential contraindications" = "Immunodeficiency syndromes"
@decision: Potential contraindications
*/
define "The client has immune deficiency":
  Encounter."The client has immunodeficiency syndromes"

/*
@input: The client is immunocompromised
@pseudocode: "Potential contraindications" = "Immunocompromised"
@decision: Potential contraindications
*/
define "The client is immunocompromised":
  Encounter."The client is immunocompromised"

/*
@input: The client is receiving or has received medications that may be immunosuppressive
@pseudocode: "Potential contraindications" = "Exposed to immunosuppressive treatment"
@decision: Potential contraindications
*/
define "The client is receiving or has received medications that may be immunosuppressive":
  Encounter."The client is exposed to immunosuppressive treatment"

Content: application/elm+xml
Encoded data (21996 characters)