The Florida Department of Elder Affairs is shielded from a lawsuit filed by a former state ombudsman for long-term care residents who was fired after she made critical comments about the operation of the program, an appeals court ruled Thursday.

Clare Caldwell was dismissed in 2011 as a regional ombudsman in South Florida, shortly after the release of a federal report that questioned whether the department had improperly interfered in the ombudsman program.