Software that analyses the clinical data of aged-care residents for signs of deteriorating health is in development, which could reduce the number of emergency department visits and allow more time for enacting end-of-life plans.