Set initial as-of date for hospitalizations to avoid as of-finding loop/replot.
Factor out lists of allowed tabs x target variables for brevity. Use tab name to index into list to avoid plotting when selected target variable shouldn't be displayed on that tab (i.e. first attempted plot when user switches tabs).
Resolve issue where first "current" tab instance doesn't correctly show as-of truth data due to ifelse coercing dates into numerics; use dplyr::if_else instead.
ifelse
coercing dates into numerics; usedplyr::if_else
instead.