Get people who are eligible for this dose, from the output of get_current_coverage. Because coverage is people (by age) who either have this dose or are scheduled for it, if we are checking eligibility for dose 1 we just want the complement of those people. For doses > 1 we need to first take the complement and then check to see who of those persons got their previous dose past the waiting threshold. This function returns a list of bitsets.

get_current_eligible_from_coverage(
  timestep,
  dt,
  coverage,
  variables,
  dose,
  parameters
)

Arguments

timestep

the current time step

dt

time step size

coverage

output of get_current_coverage

variables

a list of model variables

dose

what dose to get eligibility for

parameters

a list of parameters