fix the processing of surgery note