The doctor will assess you, and if they decide your health affects your fitness for work, they can issue a sick note.