Poetry may be more than a distraction for those suffering from terminal illnesses and pain.