Whether private health insurance on standard terms succeeds despite a pre-existing condition depends mainly on the type and severity of the diagnosis, the time since the last treatment and whether you are currently free of complaints. A condition that healed years ago without follow-up treatment weighs little for the insurer. An active condition with ongoing therapy and an unclear course weighs more and makes a surcharge or exclusion more likely.
For example, if an applicant had knee surgery seven years ago, they have to state it for a health question that covers the past ten years. If the application only asks about the past five years, this operation does not have to be stated. The applicant is not hiding or concealing anything by doing so. However, if this operation left health impairments that still exist today, they must be stated on the application.
What counts is what your medical records and the billing data of your health insurance fund say. They often contain diagnoses you do not remember, for example a suspected diagnosis from a single visit to the doctor. So request the records before you apply. Under § 630g BGB you have a right to see your treatment records.