Clinic companies are legal persons, on behalf of which the clinic provides its services. Go to Settings → Other → Clinic companies to add several entities (companies), on behalf of which your clinic provides its financial activity.
You shall also specify the clinic companies in the cash desk settings. Then you can use the option to group the patient payments by legal persons who receive the payments in the General clinic report.