I can't do the diagram here, but I can give you some directions: Main clause: The patient | was / sick. The first clause all is adverbial, listed under the verb 'was' [roughly]: the doctor | arrived (by the time) listed under 'arrived'.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.