Made addUpdatePatientRecord synchronous