Royal Hobart Hospital's maternity issues linked to staff shortages