public ImmunizationRecord(String immunizationName, int numberOfDosesGiven) { this.immunizationName = immunizationName; this.numberOfDosesGiven = numberOfDosesGiven; this.numberOfDosesPending = DayCareController.getImmunizationRule(this.immunizationName).getMaxNumberOfDoses() - this.numberOfDosesGiven; this.isOverdue = false; this.isImmune = false; }
public void checkImmunizationStatus(DateTime bDate) { if (this.numberOfDosesPending > 0) { this.nextDueDate = DayCareController.getImmunizationRule(immunizationName).getNextDueDate(bDate, this.numberOfDosesPending); this.isOverdue = nextDueDate < DateTime.Now ? true : false; } else if (this.numberOfDosesPending == 0) { this.isImmune = true; } }
public static void Main(string[] args) { DayCareController.demo(); CreateHostBuilder(args).Build().Run(); }
public void updateNumberofDosesPending() { this.numberOfDosesPending = DayCareController.getImmunizationRule(this.immunizationName).getMaxNumberOfDoses() - this.numberOfDosesGiven; }