A processing apparatus comprising: a processor including hardware, the processor being configured to: acquire an image in which region marker information of a lesion is set with respect to an ultrasonic image of an ultrasonic endoscope with a biopsy needle ; the processor being configured to: calculate an angle of the biopsy needle for inserting the biopsy needle into the lesion based on a movable range (R3) of the biopsy needle and the region marker information; characterised in that the processor is further configured to: determine whether the lesion is included in the movable range (R3); and where the lesion is not included in the movable range (R3), output instruction information to change an angle of a probe of the ultrasonic endoscope ; and/or wherein the processor is further configured to: determine whether the lesion and a predetermined tissue are included in the movable range (R3); and where the lesion is included in the movable range (R3) and the predetermined tissue is not included in the movable range (R3), perform control of inserting the biopsy needle into the lesion; and/or wherein the processor is further configured to: determine whether a predetermined tissue is included between a projection position of the biopsy needle and the lesion; and where the predetermined tissue is included between the projection position of the biopsy needle and the lesion, output instruction information to change a probe position of the ultrasonic endoscope . a processor including hardware, the processor being configured to: acquire an image in which region marker information of a lesion is set with respect to an ultrasonic image of an ultrasonic endoscope with a biopsy needle ; the processor being configured to: calculate an angle of the biopsy needle for inserting the biopsy needle into the lesion based on a movable range (R3) of the biopsy needle and the region marker information; determine whether the lesion is included in the movable range (R3); and where the lesion is not included in the movable range (R3), output instruction information to change an angle of a probe of the ultrasonic endoscope ; and/or wherein the processor is further configured to: determine whether the lesion and a predetermined tissue are included in the movable range (R3); and where the lesion is included in the movable range (R3) and the predetermined tissue is not included in the movable range (R3), perform control of inserting the biopsy needle into the lesion; and/or wherein the processor is further configured to: determine whether a predetermined tissue is included between a projection position of the biopsy needle and the lesion; and where the predetermined tissue is included between the projection position of the biopsy needle and the lesion, output instruction information to change a probe position of the ultrasonic endoscope . determine whether the lesion and a predetermined tissue are included in the movable range (R3); and where the lesion is included in the movable range (R3) and the predetermined tissue is not included in the movable range (R3), perform control of inserting the biopsy needle into the lesion; and/or wherein the processor is further configured to: determine whether a predetermined tissue is included between a projection position of the biopsy needle and the lesion; and where the predetermined tissue is included between the projection position of the biopsy needle and the lesion, output instruction information to change a probe position of the ultrasonic endoscope . determine whether a predetermined tissue is included between a projection position of the biopsy needle and the lesion; and where the predetermined tissue is included between the projection position of the biopsy needle and the lesion, output instruction information to change a probe position of the ultrasonic endoscope . <EOS>