fix compile errors re patientManager