Malpractice is a totally separate thing from Medicare Fraud. With respect to malpractice, having automated or semi-automated encounter notes with huge systematic similarity looks absolutely terrible if something goes wrong. Don't take my word for it, consult your attorneys.
With respect to Medicare fraud see the False Claims act and its interpretation in the enforcement actions against many parties beginning in 2016. Keywords would be like "not medically necessary" and "upcoding". I believe the monster enforcement action just this week against GHC also involves that.