added code to handle printing of the Pathology section in the EDIT/ENTER mode