adding patient data to writeout