Exported patient data with flags