(CNN) A judge has decided that a Texas children's hospital can remove an 11-month-old with a rare heart defect off life support despite her family's wishes.

For several months, the family of Tinslee Lewis has been fighting to continue her treatment at the Cook Children's Medical Center in Fort Worth, Texas after the facility planned to end care.

Tinslee was born with a rare heart defect called Ebstein's anomaly and suffers from chronic lung disease and severe chronic pulmonary hypertension. The hospital planned to remove her from life-support after her physicians said she is suffering and her condition is irreversible, Cook Children's Health Care System spokeswoman Winifred King had said in a statement.

On Thursday, Judge Sandee B. Marion of the Texas Fourth Court of Appeals denied a temporary injunction filed by Tinslee's family in an effort to keep her on life support for several weeks.

Kim Brown, a hospital spokeswoman, told CNN the hospital won't take any action for up to seven days to give the family time to decide on whether to appeal the judge's ruling.

Read More