Christy (Jennifer Garner) grows frustrated when a steady stream of doctors can’t diagnose what’s wrong with her sick daughter, Anna (Kylie Rogers), in “Miracles from Heaven.” (Chuck Zlotnick/Sony Pictures Entertainment)

Mexican-born, California-based director Patricia Riggen has developed something of a specialization in marvels. Just a few months ago, her fact-based drama “The 33” celebrated the combination of technology and luck that saved 33 Chilean miners who had become trapped deep underground. In 2007, Riggen’s “Under the Same Moon” sent a young Mexican boy across the U.S. border on a providential quest for his mother.

With her latest film, Riggen has gone fully supernatural: In “Miracles from Heaven,” a little girl receives medical care from the physician upstairs.

The movie is based on a 2015 memoir by Christy Beam, whose daughter made a most unusual recovery from a severe gastrointestinal condition. It was produced by the team that made “Heaven is for Real,” adapted from a similar account of a child’s religious experience. The new film should draw the same sort of admirers — and detractors — as the earlier one.

Religious belief aside, “Miracles” is the weaker of the two films. Stretched across nearly two hours, it tells a story that would have been adequately laid out in a 30-second television spot. The question is never what will happen to 10-year-old Anna (Kylie Rogers), who suffers a bloated belly and chronic pain. The only issue is how long she, and the audience, will have to wait to find out.

When the film begins, Anna is living with her mother (Jennifer Garner), her veterinarian father (Martin Henderson) and two sisters on a Texas ranch. The family regularly attends one of those Protestant churches that seems to have traded the choir for a Christian-rock band.

Based on her memoir of the same name, Christy Beam's (Jennifer Garner) daughter is suffering from a serious digestive disorder. After a near-death experience falling out of a tree, she is subsequently cured of the disease. (  / Sony Pictures)

In this somewhat fictionalized account, Anna’s affliction arrives suddenly. A series of condescending doctors misdiagnose the problem, until Christy becomes angry and despondent. She even stops going to church.

Eventually, Christy takes her daughter to Boston Children’s Hospital, pushing past others on the waiting list for an appointment with the leading expert, Dr. Nurko (Eugenio Derbez). He’s competent and compassionate, and spends a lot of time at play with his patients. No wonder he has a nine-month backlog.

Although Dr. Nurko makes Anna somewhat better, a lasting cure would require one of two things: divine intercession or a medical fluke. The movie’s title has already telegraphed its choice.

The plight of ailing children and desperate parents can touch the hearts of anyone who has a kid, or who has been one. And Garner proves effective as the fierce, if occasionally weepy, mama bear. But the movie is stuffed with filler, notably an annoying interlude with a Waitress with a Heart of Gold (and a car of tin), played by Queen Latifah in a case of racial stereotyping.

While waiting for the advertised miracle, some viewers may wish for divine intervention of another sort — not from this movie’s God, who appears as a delicate butterfly, but from the cranky Old Testament one. He could sweep away the cardboard supporting characters as easily as he did the Egyptians in the Red Sea.

PG. At area theaters. Contains a child in peril and medical unpleasantness. 109 minutes.