I want to say it in English that I was in good health for some amount of time before I got a cold (I have some difficulty with its grammar)
I wanted to say "Before I was caught a cold, I had been in good health for nearly three years".
But it seems weird, I've never heard such thing.