GIFT: a tool for generating free text reports from encoded data