WHO Digital Documentation of COVID-19 Certificates (DDCC)
1.0.1 - release International flag

This page is part of the WHO Digital Documentation of COVID-19 Certificates (DDCC) (v1.0.1: releases Draft) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions

Library: ModernaOrPfizerPass (Experimental)

Official URL: http://localhost/Library/ModernaOrPfizerPass|1.0.0 Version: 1.0.1
Active as of 2024-12-18 Computable Name: Moderna Or Pfizer Pass

DDCC-compliant rule to evaluate if patients have an immunization from Moderna or Pfizer

Title: ModernaOrPfizerPass
Id: ModernaOrPfizerPass-1.0.0
Version: 1.0.1
Url: ModernaOrPfizerPass
Experimental: true
Type:

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

code: logic-library

Date: 2024-12-18 16:46:48+0100
Publisher: WHO
Description:

DDCC-compliant rule to evaluate if patients have an immunization from Moderna or Pfizer

Jurisdiction: 001
Content: text/cql
library ModernaOrPfizerPass version '1.0.0'

using FHIR version '4.0.1'

include "FHIRHelpers" version '4.0.1' called FHIRHelpers

context Patient

define "Completed Immunization":
  ModernaProtocol or PfizerProtocol

define "ModernaProtocol":
  Count(GetAllModerna) > 1

define "PfizerProtocol":
  Count(GetAllPfizer) > 1

define "GetAllModerna":
  [Immunization] I
    where I.vaccineCode.coding.code.value contains '207'

define "GetAllPfizer":
  [Immunization] I
    where I.vaccineCode.coding.code.value contains '208'
Content: application/elm+json
Encoded data (88100 characters)
Content: application/elm+xml
Encoded data (119244 characters)