Reconstructing clinical activities: patient records in medical history.