Derivation
variable: p3date (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'"=="p3" replace `vacc'Sprob=1 if (p3date<birth_date | p3date-p2date<21 | p3date-p2date>42 | p2date==.) & p3date~=. & birth_date~=.