Using machine learning to impact on long-term clinical care: principles, challenges, and practicalities