Function for generating the clinical table.