IMMZD2DTTyphoidViPSLogic
type: Library
node role: treeRoot
id:
  v: IMMZD2DTTyphoidViPSLogic
meta:
  profile:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary
    l: crmi-shareablelibrary
  profile:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary
    l: crmi-publishablelibrary
  profile:
    v: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library
    l: cql-library
  profile:
    v: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module
    l: cql-module
text:
  status:
    v: extensions
  div:
    v: Title: IMMZD2DTTyphoidViPSLogic Id: IMMZD2DTTyphoidViPSLogic Version: 0.2.0 Url: IMMZD2DTTyphoidViPSLogic Status: draft Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2026-03-03 13:07:11+0000 Publisher: WHO Description: This library defines decision support logic for the IMMZ.D2.DT.Typhoid.ViPS decision table in the Immunization CPG Related Artifacts: Dependencies IMMZD2DTTyphoidEncounterElements Parameters: Name Type Min Max In/Out Today date 0 1 In Patient Patient 0 1 Out Client is not due for Typhoid vaccination boolean 0 1 Out Client is not due for Typhoid vaccination Guidance string 0 1 Out Client is due for Typhoid vaccination boolean 0 1 Out Client is due for Typhoid vaccination Guidance string 0 1 Out Primary series is complete. Client is not due for typhoid booster dose boolean 0 1 Out Primary series is complete. Client is not due for typhoid booster dose Guidance string 0 1 Out Primary series is complete. Client is due for typhoid booster dose boolean 0 1 Out Primary series is complete. Client is due for typhoid booster dose Guidance string 0 1 Out Guidance string 0 1 Out Has Guidance boolean 0 1 Out Test Validation Resource 0 1 Out Content: text/cql /* * Library: IMMZD2DTTyphoidViPSLogic (IMMZ.D2.DT.Typhoid.ViPS) * Rule: Determine if the client is due for a typhoid vaccination according to the national immunization schedule * Decision Table: Unconjugated Vi polysaccharide (ViPS) schedule * Trigger: IMMZ.D2 Determine required vaccination(s) if any */ library IMMZD2DTTyphoidViPSLogic using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include IMMZD2DTTyphoidEncounterElements called Encounter parameter Today Date default Today() context Patient /* @dynamicValue: Guidance */ define "Guidance": case when "Client is not due for Typhoid vaccination" then "Client is not due for Typhoid vaccination Guidance" when "Client is due for Typhoid vaccination" then "Client is due for Typhoid vaccination Guidance" when…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability
    l: cqf-knowledgeCapability
  value: Code
    v: computable
url:
  v: http://smart.who.int/immunizations/Library/IMMZD2DTTyphoidViPSLogic
  l: IMMZD2DTTyphoidViPSLogic
version:
  v: 0.2.0
name:
  v: IMMZD2DTTyphoidViPSLogic
title:
  v: IMMZD2DTTyphoidViPSLogic
status:
  v: draft
experimental:
  v: false
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
date:
  v: 2026-03-03T13:07:11+00:00
publisher:
  v: WHO
contact:
  name:
    v: WHO
  telecom:
    system:
      v: url
    value:
      v: http://who.int
description:
  v: This library defines decision support logic for the IMMZ.D2.DT.Typhoid.ViPS decision table in the Immunization CPG
related artifact:
  type:
    v: depends-on
  display:
    v: Library Encounter
  resource:
    v: http://smart.who.int/immunizations/Library/IMMZD2DTTyphoidEncounterElements
    l: IMMZD2DTTyphoidEncounterElements
parameter:
  name:
    v: Today
  use:
    v: in
  min:
    v: 0
  max:
    v: 1
  type:
    v: date
parameter:
  name:
    v: Patient
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Patient
parameter:
  name:
    v: Client is not due for Typhoid vaccination
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Client is not due for Typhoid vaccination Guidance
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: Client is due for Typhoid vaccination
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Client is due for Typhoid vaccination Guidance
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: Primary series is complete. Client is not due for typhoid booster dose
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Primary series is complete. Client is not due for typhoid booster dose Guidance
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: Primary series is complete. Client is due for typhoid booster dose
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Primary series is complete. Client is due for typhoid booster dose Guidance
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: Guidance
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: Has Guidance
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean

name:
  v: Test Validation
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Resource

content type:
  v: text/cql

content type:
  v: application/elm+xml