IMMZD18SMeaslesOngoingTxLogic
type: Library
node role: treeRoot
id:
  v: IMMZD18SMeaslesOngoingTxLogic
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: IMMZD18SMeaslesOngoingTxLogic Id: IMMZD18SMeaslesOngoingTxLogic Version: 0.2.0 Url: IMMZD18SMeaslesOngoingTxLogic 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.D18.S.Measles.Ongoing transmission schedule 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 MCV dose 1 (MCV1) boolean 0 1 Out MCV dose 1 (MCV1) Due Date date 0 1 Out MCV dose 1 (MCV1) Create string 0 1 Out MCV dose 1 (MCV1) Overdue Resource 0 1 Out MCV dose 1 (MCV1) Expiration Resource 0 1 Out MCV1 was administered boolean 0 1 Out MCV2 was administered. The primary series has been completed. boolean 0 1 Out MCV2 boolean 0 1 Out MCV2 Due Date date 0 1 Out MCV2 Create string 0 1 Out MCV2 Overdue Resource 0 1 Out MCV2 Expiration Resource 0 1 Out Test Validation Resource 0 1 Out Content: text/cql /* * Library: IMMZD18SMeaslesOngoingTxLogic (IMMZ.D18.S.Measles.Ongoing transmission schedule) * Schedule Table: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months) */ library IMMZD18SMeaslesOngoingTxLogic using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include IMMZD2DTMeaslesEncounterElements called Encounter parameter Today Date default Today() context Patient /* @output: MCV dose 1 (MCV1) @description: Provision of MCV1 from the primary series @trigger: Child's birth @triggerDate: "Date of birth" */ define "MCV dose 1 (MCV1)": Encounter."No measles primary series doses were administered" /* @output: MCV dose 1 (MCV1) Create @create: The client is due for MCV1 if the client is at least 9 months of age. */ define "MCV dose 1 (MCV1) Create": if "MCV dose 1 …
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability
  value: code
    v: computable
url:
  v: http://smart.who.int/immunizations/Library/IMMZD18SMeaslesOngoingTxLogic
version:
  v: 0.2.0
name:
  v: IMMZD18SMeaslesOngoingTxLogic
title:
  v: IMMZD18SMeaslesOngoingTxLogic
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.D18.S.Measles.Ongoing transmission schedule 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: MCV dose 1 (MCV1)
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: MCV dose 1 (MCV1) Due Date
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: date
parameter:
  name:
    v: MCV dose 1 (MCV1) Create
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: MCV dose 1 (MCV1) Overdue
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Resource
parameter:
  name:
    v: MCV dose 1 (MCV1) Expiration
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Resource
parameter:
  name:
    v: MCV1 was administered
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: MCV2 was administered. The primary series has been completed.
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: MCV2
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: MCV2 Due Date
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: date
parameter:
  name:
    v: MCV2 Create
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: MCV2 Overdue

v: out

v: 0

v: 1

v: Resource

name:
  v: MCV2 Expiration
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Resource

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