In a high court judgment released last week, Justice Gerald Nation ruled that Caitlyn Davies be sent back to South Africa after the girl's family appealed the move.
Immigration New Zealand argued that her condition would place a burden on the country's health services.
In 2015, Davies’ father Jonathan arrived in New Zealand from South Africa and was granted a one-year work visa.
He took a job as a farm manager in the small Canterbury town of Geraldine.