refactor visit scheduling
replace visitTemplate.day with visitTemplate.daysOffsetFromPrevious and visitTemplate.daysOffsetFromBaseline
add __getScheduledVisitsForPatientId, which mixes visits and visitTemplates and calculates dateScheduled
export visit.date and visit.dateScheduled