Hospital ends first half of year in black