A teenage sex assault victim lost her baby, a shocking amount of blood and nearly her life when her belly was jumped and stomped on in an ultimately futile effort to cover up the original crime, Dallas prosecutors say.

The teen's younger sister, who was granted immunity in the trial, admitted holding the victim down at the demand of her aunt, one of four people charged in the beating.

On trial this week is Lonnell McDonald, who's married to the victim's cousin. The 28-year-old has pleaded not guilty to conspiracy to commit capital murder and aggravated assault and faces up to 99 years in prison, if convicted.

The sister, who was 12 at the time of the alleged assault, testified earlier Wednesday that there was blood "all over" the bathroom, and she had to bathe her sister because she was going in and out of consciousness.

She said the bathtub had to be drained at least once because there was so much blood in it.

The events surrounding the girl's miscarriage placed her in severe risk of postpartum hemorrhage and could have killed her, said Matthew Cox, the doctor who examined the teen victim two years after the alleged assault -- allegedly carried out by her extended family.

"All aspects of her description of giving birth were very abnormal," the doctor testified Wednesday.

Cox, who formerly practiced at Children's Medical Center, said the victim came for an examination two years after the March 2013 assault because she was worried she wouldn't be able to have children later in life.

Detective Kristin Alvarado also testified Wednesday. She told officials the teen victim, and the woman with whom she was living at the time, Ruthalee Brundidge, came to a police station in May 2015 and told police about the alleged rape and assault.

Brundidge, Cedric Jones Jr.'s girlfriend, witnessed the assault, according to the teen. Police say she was asked to leave before the assault occurred.

Dallas teen says relatives beat her up to force abortion, put baby on grill to hide lies to CPS

The teen said Brundidge decided to come clean to officials two years late because she thought Sharon Jones and Cecila McDonald were trying to make the teen move back in with them.

Brundidge didn't want the teen to move back in with the women because she had seen them assault the teen.

Alvarado said school records reflect the teen was out of school for about a week and a half sometime in March, which matches the victim's testimony.

The teen victim says she became pregnant after Cayald raped her in August 2012.

About seven months later she was told to take two handfuls of unidentified pills and assaulted at Sharon Jones' house on Pondwood Drive in Pleasant Grove, she told investigators.

Shortly afterward her water broke and she began bleeding.

The defense questioned whether it was possible that the pills had caused the miscarriage and not an alleged assault. Cox said that if she had taken too many "Plan B" pills they could have caused a hormone surge that complicated the pregnancy and caused bleeding.

Later that night, the teen gave birth to a stillborn child in Cecila McDonald's apartment bathroom in the 1200 block of North Masters Drive. The teen told officials Tuesday she gave birth to the baby in her pants. She never laid eyes on her stillborn child.

Sharon Jones later put the pants and fetus in a 5-gallon bucket, which she later placed in her car, according to the teen's sister. The baby was later placed into a charcoal grill in an attempt to destroy it, according to an affidavit.

When that didn't work, Sharon Jones paid Cedric Jones Jr. $25 to "take care of the rest of it," according to an affidavit. He is accused of putting the baby in a plastic bag and stashing it in a location still unknown to authorities.

The victim was never taken to see a doctor after the assault. The only medical treatment she received came in the form of iron pills, which Cecila McDonald gave her because she had lost so much blood, according to the teen.