Thoma Bravo, L.P. is in advanced talks to buy health records software company NextGen Healthcare, Inc. (NasdaqGS:NXGN), according to people familiar with the matter. The private equity firm could announce a deal as soon as this week for NextGen, said the people, who asked to not be identified because the matter isn?t public. No final decision has been made and discussions could still fall through, the people added.

NextGen had drawn interest from several other buyout firms before talks accelerated with Thoma Bravo, according to the people.