Health New Zealand's embattled chief executive Fepulea'i Margie Apa has resigned - four months ahead of her contract coming to an end - in a "mutual agreement" with the health commissioner.