After I talked to you, my phone rang. It was a police officer. He told me my parents had had a car accident and were taken to a hospital. I went to the hospital immediately. They are fine and will be discharged as soon as possible.
I've made a few corrections, please see if the meaning was preserved.
Before edits: After I had talked to you, my phone rang. It was police officer. He told me my parents had a traffic accident and were taken to a hospital. I went to the hospital immediately. They are fine and will be discharged as soon as possible