Most research on the Illness Management and Recovery ( IMR ) program for people with severe mental illnesses has focused on individuals with stable symptoms living in the community , with less attention to persons being treated in an inpatient setting .