A simple reflex test could help doctors identify when a patient is entering their final 24 hours.