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: IMMZD5DTRubellaEncounterElements

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

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

Title: IMMZD5DTRubellaEncounterElements
Id: IMMZD5DTRubellaEncounterElements
Version: 0.2.0
Url: IMMZD5DTRubellaEncounterElements
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 Rubella used throughout the Immunization CPG

Related Artifacts:

Dependencies

Parameters:
NameTypeMinMaxIn/Out
Todaydate01In
EncounterIdstring01In
PatientPatient01Out
Draft Medication Request for Rubella doseMedicationRequest0*Out
The client is currently pregnantboolean01Out
The client is planning to get pregnant in next monthboolean01Out
The client is receiving blood productsboolean01Out
The client has history of severe allergic reactionsboolean01Out
The client has symptomatic HIV infectionboolean01Out
The client has TB diseaseboolean01Out
The client has immunodeficiency syndromesboolean01Out
The client is exposed to immunosuppressive treatmentboolean01Out
Content: text/cql

/*
  * Library: IMMZD5DTRubellaEncounterElements
  */
library IMMZD5DTRubellaEncounterElements

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 IMMZD5DTRubellaElements called RubellaElements

parameter Today Date default Today()
parameter EncounterId String

context Patient

/*
@internal: Draft Medication Request for Rubella dose
*/
define "Draft Medication Request for Rubella dose":
  Encounter."Draft Medication Request for Patient" MR 
    where MR.medication in Concepts."Rubella-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 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 next month":
  Encounter."The client is planning to get pregnant in next month"

/*
@input: The client is receiving blood products
@pseudocode: "Potential contraindications" = "Receiving blood products"
@decision: Potential contraindications
*/
define "The client is receiving blood products":
  Encounter."The client is receiving blood products"

/*
@input: The client has history of severe allergic reactions
@pseudocode: "Potential contraindications" = "Severe allergic reactions"
@decision: Potential contraindications
*/
define "The client has history of severe allergic reactions":
  Encounter."The client has history of severe allergic reactions"

/*
@input: The client has symptomatic HIV infection
@pseudocode: "Potential contraindications" = "Symptomatic HIV infection"
@decision: Potential contraindications
*/
define "The client has symptomatic HIV infection":
  Encounter."The client has a symptomatic HIV infection"

/*
@input: The client has TB disease
@pseudocode: "Potential contraindications" = "TB disease"
@decision: Potential contraindications
*/
define "The client has TB disease":
  Encounter."The client has TB disease"

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

/*
@input: The client is exposed to immunosuppressive treatment
@pseudocode: "Potential contraindications" = "Exposed to immunosuppressive treatment"
@decision: Potential contraindications
*/
define "The client is exposed to immunosuppressive treatment":
  Encounter."The client is exposed to immunosuppressive treatment"

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