The test, which is being trialled in three hospitals, could make a “vital difference” to the care of children.