It's been my experience that many doctors don't have a clue that a prescription they write might put a pilot on the "deny" list for a medical certificate. I don't think it's their fault for not knowing, but for some reason the information isn't communicated to them. For pilots that means you have to watch out for yourself.