Text this: Implementing contract learning in a clinical context