Derivation
variable: hh3date (table[s]: all_vaccination_records [derived table])
variable: birth_date (table[s]: all_vaccination_records [derived table])
*for DPT3, DPTHH3, PCV3 and P3: problem if vacc date is less than 3 weeks, or more than 6 weeks after second dose (supposed to be 1 month after second dose)
if "`vacc'"=="hh3" replace `vacc'Sprob=1 if (hh3date<birth_date | hh3date-hh2date<21 | hh3date-hh2date>42 | hh2date==.) & hh3date~=. & birth_date~=.