convert_dates: converts date fields from ISO character string format to R Date format
Description
Date fields are determined by the date-fields element in the .ehr definition. Extra
date fields can be added to the extras argument or by setting `.ehr$date_fields`.
Usage
convert_dates(dat, extras = NULL)
Arguments
dat
a dataframe
extras
= a character vector of extra columns to convert or NULL for no extras