Determining the need for terminal care for children