They'll ask you to take out life insurance to cover the mortgage - depending on your answers to the questions when getting a quote for that, the life insurance company may ask for a medical.
The bank don't need to know the results of the medical but the price of your life insurance may increase, or you may be declined altogether, based on the results.