Call getPatientData, instead of retrieving the data manually.