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.
「あなたが医者だって今までに言ってくれたかな」
ご参考まで!
"Did you ever tell me before that you're a doctor?" と言えます。
ここでは「教えてくれたことある?」を表す "Did you ever tell me" と、「かつて」というニュアンスの "before" を使って、「君が医者だってこと」を伝えています。
別の言い方:
Have you mentioned before that you're a doctor? (君がお医者さんだって、以前に言ってたっけ?)