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

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

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

Title: IMMZD5DTSeasonalinfluenzaEncounterElements
Id: IMMZD5DTSeasonalinfluenzaEncounterElements
Version: 0.2.0
Url: IMMZD5DTSeasonalinfluenzaEncounterElements
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 Seasonal influenza used throughout the Immunization CPG

Related Artifacts:

Dependencies

Parameters:
NameTypeMinMaxIn/Out
Todaydate01In
EncounterIdstring01In
PatientPatient01Out
Draft Medication Request for Seasonal influenza doseMedicationRequest0*Out
The client has a history of anaphylactic reactionsboolean01Out
The client has a history of severe allergic reactions after a previous dose or to a vaccine componentboolean01Out
Content: text/cql

/*
  * Library: IMMZD5DTSeasonalinfluenzaEncounterElements
  */
library IMMZD5DTSeasonalinfluenzaEncounterElements

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 IMMZD5DTSeasonalinfluenzaElements called SeasonalinfluenzaElements

parameter Today Date default Today()
parameter EncounterId String

context Patient

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


/*
@input: The client has a history of anaphylactic reactions
@pseudocode: "Potential contraindications" = "History of anaphylactic reactions"
@decision: Potential contraindications
*/
define "The client has a history of anaphylactic reactions":
  Encounter."The client has history of anaphylactic reactions"

/*
@input: The client has a history of severe allergic reactions after a previous dose or to a vaccine component
@pseudocode: "Potential contraindications" = "Severe allergic reactions"
@decision: Potential contraindications
*/
define "The client has a history of severe allergic reactions after a previous dose or to a vaccine component":
  Encounter."The client has history of severe allergic reactions"

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