Medicare Part B is medical coverage. It helps pay for doctor visits and outpatient care. This includes: Doctor visits, including when you are in the hospitalAn annual wellness visit and preventive services such as flu shots and mammogramsMedically necessary services and supplies needed to treat your medical condition