IMMZD2DTMeaslesDose0Logic
type: Library
node role: treeRoot
id:
  v: IMMZD2DTMeaslesDose0Logic
meta:
  profile:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary
    link: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary
  profile:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary
    link: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary
  profile:
    v: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library
    link: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library
  profile:
    v: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module
    link: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module
text:
  status:
    v: extensions
  div: Title: IMMZD2DTMeaslesDose0Logic Id: IMMZD2DTMeaslesDose0Logic Version: 0.2.0 Url: IMMZD2DTMeaslesDose0Logic Status: draft Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2025-07-23 20:56:04+0000 Publisher: WHO Description: This library defines decision support logic for the IMMZ.D2.DT.Measles.MCV dose 0 decision table in the Immunization CPG Related Artifacts: Dependencies IMMZD2DTMeaslesEncounterElements Parameters: Name Type Min Max In/Out Today date 0 1 In Patient Patient 0 1 Out Client is not due for MCV0 Case 1 boolean 0 1 Out Client is not due for MCV0 Case 2 boolean 0 1 Out Client is not due for MCV0 Case 3 boolean 0 1 Out Client is not due for MCV0 Case 4 boolean 0 1 Out Client is not due for MCV0 boolean 0 1 Out Client is not due for MCV0 Guidance string 0 1 Out Consider MCV0. boolean 0 1 Out Consider MCV0. 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: IMMZD2DTMeaslesDose0Logic (IMMZ.D2.DT.Measles.MCV dose 0) * Rule: Determine if the client is due for a measles vaccination according to the national immunization schedule * Decision Table: Measles-containing vaccine dose 0 (MCV0) administration * Trigger: IMMZ.D2 Determine required vaccination(s) if any */ library IMMZD2DTMeaslesDose0Logic using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include IMMZD2DTMeaslesEncounterElements called Encounter parameter Today Date default Today() context Patient /* @dynamicValue: Guidance */ define "Guidance": case when "Client is not due for MCV0" then "Client is not due for MCV0 Guidance" when "Consider MCV0." then "Consider MCV0. Guidance" else '' end define "Has Guidance": "Guidance" is not null and "Guidance" != '' /* @output: Client is not due for MCV0 Case 1 @pseudocode: "Immunization recommendation status" = "Not due" */ define "Client is not due for MCV0 Case 1": Encounter."Client's age is less than 6 months" /* @o…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability
  value: code
    v: computable
url:
  v: http://smart.who.int/immunizations/Library/IMMZD2DTMeaslesDose0Logic
version:
  v: 0.2.0
name:
  v: IMMZD2DTMeaslesDose0Logic
title:
  v: IMMZD2DTMeaslesDose0Logic
status:
  v: draft
experimental:
  v: false
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
    code:
      v: logic-library
date:
  v: 2025-07-23T20:56:04+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.Measles.MCV dose 0 decision table in the Immunization CPG
related artifact:
  type:
    v: depends-on
  display:
    v: Library Encounter
  resource:
    v: http://smart.who.int/immunizations/Library/IMMZD2DTMeaslesEncounterElements
    link: http://smart.who.int/immunizations/Library/IMMZD2DTMeaslesEncounterElements
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 MCV0 Case 1
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Client is not due for MCV0 Case 2
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Client is not due for MCV0 Case 3
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Client is not due for MCV0 Case 4
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Client is not due for MCV0
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Client is not due for MCV0 Guidance
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: Consider MCV0.
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Consider MCV0. 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
parameter:
  name:
    v: Test Validation

v: out

v: 0

v: 1

v: Resource

content type:
  v: text/cql

content type:
  v: application/elm+xml