From 5d13a6f1ad59dbc284dde14d1c09d617bcebb998 Mon Sep 17 00:00:00 2001 From: Ryan Slobojan Date: Thu, 14 Oct 2021 12:17:08 -0400 Subject: [PATCH] Completed list of CVX codes to include all known COVID vaccine codes to date --- src/decode.ts | 12 +++++++++++- src/process.ts | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/decode.ts b/src/decode.ts index 17f39f6..71c1324 100644 --- a/src/decode.ts +++ b/src/decode.ts @@ -47,8 +47,9 @@ function getOrganizationForResource(immunizationResource: any) : string { export function decodedStringToReceipt(decoded: object) : SHCReceipt { const cvxCodeToVaccineName = { // https://www2a.cdc.gov/vaccines/iis/iisstandards/vaccines.asp?rpt=cvx - '208': 'PFIZER', + '208': 'PFIZER', // Nominally for 16+, in practice seems to be used for 12+ // The two records below are for childrens' doses of Pfizer, they have different CVX codes. + '217': 'PFIZER', // 12+ dose size, unclear how this differs from 208 '218': 'PFIZER', // 5-11 dose size '219': 'PFIZER', // 2-4 dose size '212': 'JANSSEN', @@ -61,6 +62,15 @@ export function decodedStringToReceipt(decoded: object) : SHCReceipt { '505': 'SPUTNIK V', '506': 'CONVIDECIA', '507': 'ZIFIVAX', + // All of the vaccines below are listed as CVX codes, but we haven't seen them yet in our data - adding for completeness + '501': 'QAZCOVID-IN', + '503': 'COVIVAC', + '500': 'UNKNOWN', + '213': 'UNKNOWN', + '509': 'EPIVACCORONA', + '508': 'CHOCELL', + '211': 'NOVAVAX', + '504': 'SPUTNIK LIGHT', } // Track whether the SHC code is validated - if it is not, we will record it so that we can diff --git a/src/process.ts b/src/process.ts index e63ae8b..e6132a5 100644 --- a/src/process.ts +++ b/src/process.ts @@ -343,7 +343,7 @@ async function processSHC(allImageData : ImageData[]) : Promise { // We blew up during processing - log it and move on to the next page console.log(e); } - } + } } }