I don't think the medicine you gave me was the medicine that I was prescribed.
I don't think you gave me the right medicine.
ーI don't think the medicine you gave me was the medicine that I was prescribed.
「あなたがくれた薬は処方された薬と違うと思います。」
medicine「薬」
prescribe で「処方する」という意味なので、was prescribed で「処方された」となります。
ーI don't think you gave me the right medicine.
「正しい薬じゃないと思います。」
このように簡単に right medicine「正しい薬」を使って言っても良いですよ。
ーI don't think you gave me the medicine that was on my prescription.
「私の処方箋に載っていた薬ではないと思います。」
prescription で「処方せん」という意味なので、on my prescription で「処方せんに書かれていた・記載されていた」という意味に訳せます。
ご参考まで!
・"I think I was given the wrong prescription."
「違う処方箋(お薬)を渡されたと思います」という意味です。
prescription(処方、処方薬)を使用して伝えることができます。
・"I don't think this is the medicine that was prescribed to me."
「これは私に処方された薬ではないと思います(処方された薬が違うと思います)」という意味の表現です。