The doctor asked, “How do you feel?”
The doctor asked how I felt.
The doctor asked how did I feel.
The doctor asked how I had felt.