After posting an $18 million deficit through the first nine months of the fiscal year, Massachusetts-based Partners HealthCare reported a $45 million gain for the 2009 fiscal year. The state's largest healthcare system had been in danger of recording the first annual loss in its 15-year history, but instead said it had operating income of $164 million for the 12 months ending Sept. 30. That was partly offset by nonoperating losses of $119 million, largely from the hospital group's $4.6 billion investment portfolio, the Boston Globe reports.