IMMZD18SHepatitisBDelayedStartLogic
type: Library
node role: treeRoot
id:
  v: IMMZD18SHepatitisBDelayedStartLogic
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: IMMZD18SHepatitisBDelayedStartLogic Id: IMMZD18SHepatitisBDelayedStartLogic Version: 0.2.0 Url: IMMZD18SHepatitisBDelayedStartLogic Status: draft Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2025-12-05 23:35:21+0000 Publisher: WHO Description: This library defines decision support logic for the IMMZ.D18.S.Hepatitis B.Delayed start schedule table in the Immunization CPG Related Artifacts: Dependencies WHOCommon IMMZCommon IMMZConcepts IMMZEncounterElements IMMZD2DTHepatitisBEncounterElements Parameters: Name Type Min Max In/Out Today date 0 1 In Patient Patient 0 1 Out First hepatitis B dose was administered boolean 0 1 Out Second hepatitis B dose was administered boolean 0 1 Out Third hepatitis B dose was administered. The primary series has been completed boolean 0 1 Out Hepatitis B dose 1 boolean 0 1 Out Hepatitis B dose 1 Due Date date 0 1 Out Hepatitis B dose 1 Overdue date 0 1 Out Hepatitis B dose 1 Create string 0 1 Out Hepatitis B dose 1 Expiration Resource 0 1 Out Hepatitis B dose 2 boolean 0 1 Out Hepatitis B dose 2 Due Date date 0 1 Out Hepatitis B dose 2 Create string 0 1 Out Hepatitis B dose 2 Overdue Resource 0 1 Out Hepatitis B dose 2 Expiration Resource 0 1 Out Hepatitis B dose 3 boolean 0 1 Out Hepatitis B dose 3 Due Date date 0 1 Out Hepatitis B dose 3 Create string 0 1 Out Hepatitis B dose 3 Overdue Resource 0 1 Out Hepatitis B dose 3 Expiration Resource 0 1 Out Test Validation Resource 0 1 Out Content: text/cql /* * Library: IMMZD18SHepatitisBDelayedStartLogic (IMMZ.D18.S.Hepatitis B.Delayed start schedule) * Schedule Table: 3-dose schedule (no birth dose + 3 doses), delayed start */ library IMMZD18SHepatitisBDelayedStartLogic using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include WHOCommon called WC include IMMZCommon called Common include IMMZConcepts called Concepts include IMMZEncounterElements called IE include IMMZD2DTHepatitisBEncounterElements called Encounter parameter T…
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/IMMZD18SHepatitisBDelayedStartLogic
  l: IMMZD18SHepatitisBDelayedStartLogic
version:
  v: 0.2.0
name:
  v: IMMZD18SHepatitisBDelayedStartLogic
title:
  v: IMMZD18SHepatitisBDelayedStartLogic
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: 2025-12-05T23:35:21+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.Hepatitis B.Delayed start schedule table in the Immunization CPG
related artifact:
  type:
    v: depends-on
  display:
    v: Library WC
  resource:
    v: http://smart.who.int/immunizations/Library/WHOCommon
    l: WHOCommon
related artifact:
  type:
    v: depends-on
  display:
    v: Library Common
  resource:
    v: http://smart.who.int/immunizations/Library/IMMZCommon
    l: IMMZCommon
related artifact:
  type:
    v: depends-on
  display:
    v: Library Concepts
  resource:
    v: http://smart.who.int/immunizations/Library/IMMZConcepts
    l: IMMZConcepts
related artifact:
  type:
    v: depends-on
  display:
    v: Library IE
  resource:
    v: http://smart.who.int/immunizations/Library/IMMZEncounterElements
    l: IMMZEncounterElements
related artifact:
  type:
    v: depends-on
  display:
    v: Library Encounter
  resource:
    v: http://smart.who.int/immunizations/Library/IMMZD2DTHepatitisBEncounterElements
    l: IMMZD2DTHepatitisBEncounterElements
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: First hepatitis B dose was administered
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Second hepatitis B dose was administered
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Third hepatitis B dose was administered. The primary series has been completed
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Hepatitis B dose 1
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Hepatitis B dose 1 Due Date
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: date
parameter:
  name:
    v: Hepatitis B dose 1 Overdue
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: date
parameter:
  name:
    v: Hepatitis B dose 1 Create
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string

name:
  v: Hepatitis B dose 1 Expiration
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Resource

name:
  v: Hepatitis B dose 2
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Hepatitis B dose 2 Due Date
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: date

name:
  v: Hepatitis B dose 2 Create
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Hepatitis B dose 2 Overdue
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Resource

name:
  v: Hepatitis B dose 2 Expiration
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Resource

name:
  v: Hepatitis B dose 3
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Hepatitis B dose 3 Due Date
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: date

name:
  v: Hepatitis B dose 3 Create
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Hepatitis B dose 3 Overdue
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Resource

name:
  v: Hepatitis B dose 3 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