convertAesVar: Convert aesthetic variable for patient profile visualization.
Description
This converts the empty values ('') to NA.
The variable is then converted as a factor.
Missing values are also included in the
levels of the factor, to ensure that missing values
are displayed in the legend of the plot.