The sentence is ambiguous. Grammatically, “he” could refer to either:

- the doctor, or  
- the nurse  

English pronouns often default to the most recent male singular noun (“the nurse”), but world knowledge makes “the doctor” a more typical referent in many people’s interpretations. Without extra context, you can’t determine definitively who was late.
