Rules
| Rule | Description | Default |
|---|---|---|
allow_declination | Whether 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
| Issue | Description | Decision |
|---|---|---|
not_enough_doses | The document does not have enough doses according to the rules | rejected |
unsupported_manufacturer | The manufacturer is not supported | rejected |
missing_declination_info | Required declination information is missing | rejected |
missing_declination_date | Declination date is missing | rejected |
missing_declination_reason | Declination reason is missing | rejected |
invalid_declination_reason | The declination reason provided is not valid | rejected |
missing_dose_date | One or more dose dates are missing | rejected |
missing_dose_administrator | Administrator information is missing for one or more doses | rejected |
unsupported_dose_combination | The combination of doses is not supported | rejected |
insufficient_waiting_period | The waiting period between doses does not meet requirements | rejected |
invalid_extraction | The document could not be properly extracted | flagged |
