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