Fixed some issues regarding residentmedicineactivity