Student or Learner
"A police man walked up to the front door and knocked on it. A gray-haired man opened the door. The police officer asked if he would be the doctor."
Is the last sentence grammatically correct? Is it OK with ".....if he would be the doctor."? Or it must be "....if he was the doctor."?
In direct speech the police officer probably asked 'Would you be the doctor?' meaning 'Are you the doctor?'
In reported speech it should be 'The police officer asked if he was the doctor'.