An Australian woman who was told she would never be able to have children visited her doctor complaining of stomach cramps. Two and a half hours later she went into labor and gave birth to a baby girl.

Earlier this year, Kim Walsh made a trip to the doctor after she began experiencing abdominal pain. She had no clue that she was with child, especially because the 38-year-old suffers from polycystic ovary syndrome, a disease that causes testosterone imbalance, which leads to infertility, obesity and irregular or no periods and excessive hair growth.

Despite the fact that she had been told numerous times that she would never conceive naturally, it was discovered during that visit that she was indeed pregnant, reports My Fox Chicago.

In shock, Walsh revealed the astonishing news to her husband of 15 years, Anthony.

"My husband was parked outside the surgery. I climbed into the car. He asked, 'How did you go?'" she said. "You're going to be a father ... today."

She said they were in "sheer disbelief" and drove to the the hospital at 2 p.m.

She then gave birth at 4:30 p.m. to a daughter named Shelby at Fairfield Hospital in Sydney, the Sydney Morning Herald reports.

Charles McCusker, the hospital's head of obstetrics and gynaecology, said he doesn't use the word "miracle" loosely, but that's the only way to describe the "unusual" and "inspirational" chain of events that resulted in Shelby's birth.

According McCusker, the circumstances could have easily ended in "disaster." Fortunately, the new mother decided to see a physician about her pain rather than self-medicate at home. In addition, it was a good thing that the GP didn't stick with his original diagnosis and instead order Walsh to take a precautionary pregnancy test. If not, "the outcome would have been tragic," he said.

"What an incredible gift for two of the most wonderful, genuine, people you could ever wish to meet," McCusker said. "Even to a gnarled old timer like me, she is a cute baby."

The new parents were overjoyed with happiness about the birth of their child, according to a report.