An Iranian infant in need of life-saving heart surgery has arrived at a Portland hospital with her family after being temporarily banned from coming to the US by President Donald Trump's immigration orders.

Iranian doctors told Fatemeh Reshad's parents weeks ago that she needed at least one urgent surgery to correct serious heart defects, or she will die, according to her uncle, Samad Taghizadeh, a US citizen who lives in Portland.

The family previously had an appointment in Dubai to get a tourist visa. But it was abruptly cancelled after Trump announced his executive order banning the entry of people from seven countries with Muslim majorities. The girl and her parents had to return to Iran.

A Seattle judge issued a temporary restraining order on the ban the same day a waiver was granted for the baby.

“Fatemeh looks well,” said Dr. Laurie Armsby, interim head of the Division of Paediatric Cardiology at OHSU Doernbecher Children's Hospital. “Our tests this morning have confirmed her diagnosis and the urgent need for treatment.”

US Senator Jeff Merkley, an Oregon Democrat, was instrumental in getting the waiver for the baby's family, as were New York Governor Andrew Cuomo and immigration attorneys.

The hospital issued a statement saying that the family “would like to extend their heartfelt thanks to everyone who helped make their trip possible. The family would like to give special thanks to the congressional delegations and governors of Oregon and New York.”

Jennifer Morrissey, a Portland immigration attorney who championed the baby's cause, said “This was truly a team effort to beat the clock, given the medical and legal hurdles Fatemeh was facing.”

The family of the four-month-old chose Portland because of its proximity to relatives and because of OHSU's expertise in treatment of the heart condition.

Activists protest Donald Trump's proposed Muslim ban Show all 11 1 /11 Activists protest Donald Trump's proposed Muslim ban Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty

Armsby said the infant's heart condition had “resulted in injury to her lungs” but there is time “to reverse this process.”

The hospital said treatment would begin with a cardiac catheterisation, performed by Armsby, followed by a five- to six-hour surgical procedure performed by Dr. Irving Shen, a nationally respected expert on Fatemeh's condition.