WHO Digital Documentation of COVID-19 Certificates (DDCC)
1.0.0 - CI Build International flag

WHO Digital Documentation of COVID-19 Certificates (DDCC), published by WHO. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/WorldHealthOrganization/ddcc/tree/main and changes regularly. See the Directory of published versions

Library: AnyDosePass (Experimental)

Official URL: http://localhost/Library/AnyDosePass|1.0.0 Version: 1.0.0
Active as of 2025-03-10 Computable Name: Any Dose Pass

DDCC-compliant rule to evaluate if patients have a completed immunization schedule or just a single dose

Title: AnyDosePass
Id: AnyDosePass-1.0.0
Version: 1.0.0
Url: AnyDosePass
Experimental: true
Type:

system: http://terminology.hl7.org/CodeSystem/library-type

code: logic-library

Date: 2025-03-10 12:24:36+0000
Publisher: WHO
Description:

DDCC-compliant rule to evaluate if patients have a completed immunization schedule or just a single dose

Jurisdiction: 001
Content: text/cql
// Declare the name and version of the Library of functions
library AnyDosePass version '1.0.0'

// The version of FHIR we are using
using FHIR version '4.0.1'

// Execute all business rules relative to a specific Patient content
context Patient

// Define boolean valued business rule to check if there is an immunization that was completed
define "Completed Immunization": exists ("Completed Immunizations") or exists("Get Single Dose")

// Define a list of completed immunizations for which the dose number is the same as the series dose
// Immunization resources are queried from those that reference the Patient we are executing against
define "Completed Immunizations":
  [Immunization] I
    where ( I.protocolApplied.doseNumber.value = I.protocolApplied.seriesDoses.value )

// Define a list of immunizations that were provided once and do not have a predefined dose number
// Assumes a single vaccination to be enough for full immunization.
define "Get Single Dose":
  [Immunization] I
    where exists(I.protocolApplied)
      and exists(I.protocolApplied.doseNumber.value)
      and not exists(I.protocolApplied.seriesDoses.value)
Content: application/elm+json
Encoded data (130620 characters)
Content: application/elm+xml
Encoded data (180532 characters)