-
tctetv (total_cases_this_event_this_vax) [integer] (should match ctetv in table upper left, but collect anyway)
-
tcaetv (total_cases_ae_this_vax) [integer] (should match ctetv + coaetv in table upper left, but collect anyway)
-
total_anomaly1 [boolean] (append this field, and populate if tctetv != ctetv)
-
total_anomaly2 [boolean] (append this field, and populate if tcaetv != ctetv + coaetv
--- from code ---
"total_anomaly1": True if int(re.search(r"Total cases of this event for the vaccine:.*?<", response.text)
.group().replace("Total cases of this event for the vaccine:", "").replace(
"<", "")) !=
int(re.search(r"Total case reports associated with this vaccine:.*?<",
response.text)
.group().replace("Total case reports associated with this vaccine:",
"").replace("<", "")) else "",
"total_anomaly2": True if int(
re.search(r"Total case reports associated with this vaccine:.*?<", response.text)
.group().replace("Total case reports associated with this vaccine:", "").replace("<", "")) !=
int(df[1].iloc[2, 1]) + int(df[1].iloc[2, 1]) else ""