fixed mastercard error
handled exception causing failure to pring patient demographics