How legacy healthcare systems can lead patients’ data at high risk