Two doctors have saved the life of a woman on a plane by constructing a makeshift medical ventilator in mid-air.

Anesthesiologists John Flanagan and Matthew Stevenson were on their way to Jamaica for a vacation with their wives when an elderly woman on the JetBlue flight went into respiratory arrest.

Stevenson noticed the woman was in distress about 20 minutes into the January 6 flight from Orlando, Florida to Montego Bay, Flanagan's wife Xenia wrote on Facebook.

'He flagged John down for help as the lady went into complete respiratory arrest,' Xenia wrote.

Finding that the woman was not breathing, the two doctors asked the flight crew if there was a hand-operated manual resuscitator on board to keep oxygen flowing to her lungs.

Anesthesiologists John Flanagan and Matthew Stevenson are seen giving life-saving intervention to an elderly woman who went into respiratory arrest on a plane last month

Other passengers leaned in to keep Stevenson and the elderly woman from sliding down the aisle of the plane as the plane diverted to make an emergency landing

After taking of from Orlando, flight 1721 diverted to Fort Lauderdale for the medical emergency

The crew didn't have the equipment needed though, and the emergency air masks in the ceiling aren't designed for ventilation. So the doctors, who have a practice together in Jacksonville, were forced to improvise.

While Flanagan used rescue breathing to keep the woman alive, Stevenson went about gathering materials to make a ventilator, Flanagan told the Daily Mirror.

Stevenson cut the tubing and air bag from the emergency masks in the ceiling and managed to connect it to an oxygen tank that was on board to create a ventilator.

'It was both amazing and terrifying at the same time to witness my husband and his friend do something they do everyday..save someone’s life,' recalled Xenia in her Facebook post.

The doctors advised the flight crew to make an emergency landing, and the plane diverted to Fort Lauderdale Airport.

The Airbus A320, like this one from a file photo, made an emergency landing

Flanagan (right) is seen explaining the situation to first responders after the plane made an emergency landing in Fort Lauderdale

Stevenson (left) and Flanagan (right) did finally make it to Jamaica with their wives, where the two doctors posed with a celebratory drink after saving the passenger's life

As the plane made the emergency landing, the makeshift ventilator kept the woman alive for nearly 45 minutes, Xenia said.

The passengers all gave the two doctors a round of applause when medics rushed on board to take over care for the woman.

'It was beautiful to witness so many good samaritans praying and holding them up during the entire ordeal,' the proud wife said.

'I’m so thankful God placed them there at the right time.'

After the crisis was over, the two doctors and their wives did eventually make it to Jamaica, where they posed with a celebratory beer at the Sandals resort.