She was diagnosed with an ear infection at the hospital.
「病院に連れて行ったところ、中耳炎と診断されました」は、She was diagnosed with an ear infection at the hospital. と表現できます。
diagnosed with は「〜と診断される」という意味です。
I took my daughter to the hospital, and she was diagnosed with an ear infection.
(娘を病院に連れて行ったところ、中耳炎と診断されました。)