Have you ever told me that you were a doctor before?
I don't know if you ever told me you were a doctor or not.
この場合、次のように言えると思います。また時制の一致は起こります。
ーHave you ever told me that you were a doctor before?
「あなたが医者だって以前に教えてくれたことあった?」
ーI don't know if you ever told me you were a doctor or not.
「あなたが医者だって今までに言ってくれたかな」
ご参考まで!