What is the typical life expectancy of specialized hospital medical equipment. Will a gastroscope last 18 years?

As long as it is regularly serviced by the manufacturer and functions properly, it can continue to be used. In addition, the hospital's instrumentation department will calibrate the accuracy on a regular basis.