Before giving birth to her own daughter, a Kentucky doctor had to ensure that her patient’s baby was born safely.

Leah Halliday Johnson was expected to give birth to her fourth child on Sunday, while Dr. Amanda Hess was scheduled to deliver her second kid.

Halliday Johnson claims that although Hess checked her during her pregnancy, she wasn’t her primary physician at Women’s Care of the Blue Grass, where Hess worked.

“I saw her three or four times and I liked her a lot,” Halliday Johnson said. “Since she was expecting a child, she wasn’t meant to be on duty.”

Hess was undergoing an induction at Frankfort Regional Medical Center when she overheard Halliday Johnson getting ready to give birth, according to a Facebook post by Dr. Hala Sabry, who founded the nonprofit Doctor Moms Group.

According to the post, Halliday Johnson’s baby was in distress and required immediate care. Hess got aware of the situation while the on-call doctor was still on the way and took immediate action. Before starting work, she put on a pair of boots over her flip-flops and a hospital gown to cover her back.

Hess said, “You know, I’m not on duty, I’m here in a gown, but I think we should have the baby,” in an interview.

Halliday Johnson claimed that she was unaware that Hess was in labor and that the doctor delivered the baby professionally.

According to Halliday Johnson, “She was obviously in medical mode.  She was wearing a hospital gown, so my husband could see something was odd, but I was preoccupied on the delivery table and didn’t notice.”

Hess claimed that although she anticipated working late in her pregnancy, she did not anticipate working on the day of delivery. Her labor reportedly began a short while after she gave birth to Halliday Johnson’s youngest kid.

“I assumed I was working up to the very last minute because I had really taken a call the day before. But this was literally at the last second.”

The two women haven’t spoken since becoming new mothers, but Halliday Johnson thanked Hess for intervening.

“She’s clearly earned her time off,” said Halliday Johnson. ” I appreciate what she did for my family because it says a lot about the kind of woman, mother, and doctor she is. Knowing that there are women like her who are willing to take on leadership roles helps you feel better about having a baby girl.”

Hess said she did her job. Every day, Hess said, “I deliver other people’s babies. And I feel much more comfortable giving birth to someone else’s child than my own.”