You should arrange insurance as soon as possible after you have booked your trip. This will ensure you will be covered for cancellation. If your condition changes after you have taken out cover, check your policy wording to see if you need to tell the insurer – most will require you to do this.
If you have an Annual policy, you may have to contact the insurer each time you book a trip to declare your medical condition(s).