The doctor at centre of Gosport deaths scandal working in a "very inadequately resourced part of the health service".