Skip to main content

Rules

RuleDescriptionDefault
allow_declinationWhether to allow declination forms.false

Extracted data

document_type: 'cdc' | 'digital' | 'electronic' | 'immunization_document' | 'declination';
person: {
    name: {
        source: string | null;
        extracted: string | null;
        status: 'match' | 'mismatch' | 'not_present';
    },
    dob: {
        source: string | null;
        extracted: string | null;
        status: 'match' | 'mismatch' | 'not_present';
    }
},
tests: {
    type: 'primary' | 'booster';
    date: string | null;
    manufacturer: 'moderna' | 'pfizer' | 'janssen' | 'astrazeneca' | 'novavax' | 'spikevax' | 'other';
    lot: string | null;
    administrator: {
        name: string | null;
        state: string | null;
        facility: string | null;
        signature: "present" | "not_present";
    };    
}[]
declination: {
    date: string | null;
    reason: 'medical' | 'personal' | 'religious' | null;
}

Issues

IssueDescriptionDecision
not_enough_dosesThe document does not have enough doses according to the rulesrejected
unsupported_manufacturerThe manufacturer is not supportedrejected
missing_declination_infoRequired declination information is missingrejected
missing_declination_dateDeclination date is missingrejected
missing_declination_reasonDeclination reason is missingrejected
invalid_declination_reasonThe declination reason provided is not validrejected
missing_dose_dateOne or more dose dates are missingrejected
missing_dose_administratorAdministrator information is missing for one or more dosesrejected
unsupported_dose_combinationThe combination of doses is not supportedrejected
insufficient_waiting_periodThe waiting period between doses does not meet requirementsrejected
invalid_extractionThe document could not be properly extractedflagged