The effectiveness of a search warrant was discussed in federal court in Rapid City on Wednesday.
It stems from allegations made by young men against a former doctor at the Pine Ridge Hospital.
Stanley Patrick Weber of Spearfish is accused of aggravated sexual abuse, sexual abuse and sexual abuse of a minor between 1999 and 2011 while he was a doctor with Indian Health Services at Pine Ridge.
Inspector Curt Muller with the U.S. Department of Health and Human Services took the stand, testifying that some of the victims that he interviewed had said that Weber had given them items or money in exchange for sex.
He said he went through the normal procedure to obtain a search warrant for Weber's home, where investigators seized paper documents and electronic devices.
But Weber's attorney argues that the warrant was missing critical information and Muller agreed.
Weber's attorney says that makes the warrant defective.
No ruling was made on the warrant.
Weber faces up to life behind bars, if he's convicted.