SAN FRANCISCO — In 2017, the University of Chicago Medical Center announced that it was teaming up with Google to use data from patients’ electronic medical records to try to make better predictions and advance artificial intelligence in medicine.

Two years later, a law firm alleged Wednesday that the hospital handed vast amounts of data over to the tech giant without removing potentially identifying information like physicians’ notes or date stamps of when patients checked in and out of the hospital. The suit was filed on behalf of a single patient, with the goal of expanding it to a class action suit if more patients come forward.