Derivation
variable: vita2date (table[s]: all_vaccination_records [derived table])
variable: birth_date (table[s]: all_vaccination_records [derived table])
*for VITA2: problem if vacc date is before 1st dose, or less than 11 months, or more than 18 months after birthdate (supposed to be at 12-17 months)
if "`vacc'"=="vita2" replace `vacc'Sprob=1 if (vita2date<vita1date | vita2date-birth_date<336 | vita2date-birth_date>549) & vita2date~=. & birth_date~=.