Text this: Measuring the gains from medical research