A college student who thought she was suffering from a painful kidney infection got the shock of her life when she found out she was actually in labor.

Allyson Opfer, 23, from Garrettsville, Ohio, 'freaked out' when doctors told her she was 42 weeks pregnant — two weeks overdue — and just minutes away from giving birth to her son Oliver David.

'The day before I had him I woke up with what I thought were just normal menstrual cramps and I was in a little bit of discomfort,' the Kent State University senior explained. 'But the cramps just got more intense as the day went on, they just kept getting worse and worse.'

Surprise: Allyson Opfer, 23, from Garrettsville, Ohio, gave birth to her son Oliver David on December 23, 2016, after being hospitalized for what thought was a kidney infection

Shock: Allyson (pictured the day before the gave birth) had been in a relationship nine months before, but she didn't suspect she was pregnant because her periods were often irregular

Allyson said she was in so much pain her mother brought her to the ER, where she was given a blood test.

Her white blood cell count was high, indicating what they thought was a kidney infection. However, when she was brought in for an ultrasound, they learned that she was actually pregnant.

'Obviously the technician could see that I was pregnant, but it was the doctor who had to tell me,' she recalled.

'He came in and he asked if I had ever been pregnant, and I said I hadn't, and then he told me he thought I was two weeks overdue and in labor.'

Stunned: Doctors initially thought Allyson's painful cramping was a kidney infection, but an ultrasound revealed that she was actually 42 weeks pregnant — and in labor

Initial scare: Allyson was suffering from pre-eclampsia, a condition that can be fatal for both mothers and babies, and doctors opted to deliver the baby via C-section

Allyson had been in brief relationship nine months before, but she didn't suspect that she was pregnant because her periods were often irregular.

The college student said she was frightened when doctors told her she was suffering from pre-eclampsia, a condition that can be fatal for both mothers and babies.

Due to her high blood pressure, they opted to perform an emergency C-section to deliver her 7lb, 8oz baby, who was born at 3:13 a.m. on December 23, 2016.

'When they said I had to have a C-section, I was so scared, I was crying and really freaking out,' she said.

Bundle of joy: 'I was so worried about him because he had no prenatal care but he was healthy thankfully,' Allyson said

Unforgettable moment: The mother-of-one said hearing her son cry for the first time was an 'incredible' experience

'My mom was trying to calm me down as they wheeled me up to the labor and delivery ward.'

Allyson said meeting her son Oliver David for the first time was an amazing moment, despite discovering she was to be a mom just half an hour before.

'I just couldn't believe I was about to give birth,' she explained. 'When I saw him and heard his cry, it was incredible.

'I was so worried about him because he had no prenatal care but he was healthy thankfully.'

Hard to believe: Allyson said her best friend didn't believe her when she first revealed that she had given birth to a baby boy

Look of love: The mom credits her 'wonderful' parents with helping her with her son, as his father isn't in the picture

The mom, who is studying to be an air traffic controller, said Oliver's birth was a huge shock to her friends, who did not believe her when she texted them about becoming a mom.

'When I texted my best friend Nicole the next day, she didn't believe me. I had to send her pictures of me and Oliver before she realized it wasn't a joke,' she said.

'Then she was like, "Wow this is crazy."'

Allyson said she is lucky to have the support of her 'wonderful' parents, Teresa and David Opfer, especially because Oliver's father is not involved in their lives.

Over the moon: 'Oliver is their first grandchild and they just love him so much,' she said

Adjusting: Allyson admitted that suddenly becoming a mom was overwhelming, explaining that she had to learn how to breast feed after finding out she was pregnant and giving birth

Cutie pie: Oliver is now 14 months old, and the proud mom said he is 'just the happiest baby'

'My parents were shocked, but they were extremely supportive,' she said. 'Oliver is their first grandchild and they just love him so much. I'm so lucky to have my parents, because it can be so overwhelming sometimes.

'I was so unprepared. I had to get to grips with breastfeeding when two days earlier, I didn't even know I was pregnant.'

Allyson said life with Oliver, now 14 months, can be just as crazy as his dramatic entrance into the world at University Hospitals Geauga Medical Center.

'He's so high-energy, he just never stops running around,' she said. 'He's just the happiest baby and he's always smiling.

'I've been lucky because he's always been such an easy baby. He's the best thing that ever happened to me.'