Panicked care staff called for paramedics when it emerged that a patient they did not know was pregnant had given birth.