A state appeals court Tuesday upheld the constitutionality of a controversial change in Florida’s medical-malpractice laws, ruling in part that some privacy rights are “waived” when people pursue malpractice lawsuits.

The decision by a three-judge panel of the First District Court of Appeal stemmed from a 2013 law, which the Republican-controlled Legislature passed after a lobbying battle between groups such as doctors and plaintiffs’ attorneys. A federal appeals court last year also upheld the change in a separate case.