[dooshitan desuka]…sometimes reflects the speaker's surprise, suspicion, strong curiosity etc. Therefore, inappropriate use may offend the listner, so it's necessary to be careful when using this expression.
Example
(たおれている ひとを みて)どうしましたか。
(finding someone lying on the floor) Are you all right?