Home · Solutions · Finance & accounting

Solution · Finance & accounting

Every doctor sees his statement line by line, with the rule that calculated it. The monthly spreadsheet and the monthly discussion disappear

Doctor payouts per treatment

We write down each doctor’s and cosmetologist’s payout rules once: the percentage per treatment, how product is deducted, packages, discounts, vouchers and touch-ups. From then on a robot calculates the statements itself, from visits and payments in the clinic system and product cost from the batch register. The doctor sees his month as it runs, comments on specific lines, the owner decides and approves, and the accountant receives ready data.

Quick winMicrosoft TeamsHuman in the loopDeterministic automation
14 hoursa month is what this model clinic spends preparing payouts for five doctors and cosmetologists: an export from the system, a spreadsheet, product deductions, then a conversation about every doubtful line.

Executive summary

The challenge

Doctors and cosmetologists in clinics are often paid a percentage per treatment after product cost, with different rates for each person and exceptions for packages, discounts and touch-ups; today a spreadsheet and the owner work it out.

What changes

A robot calculates statements from written rules using visits, payments, packages and product cost, shows every line with its rule, collects doctors’ comments on specific lines and prepares data for the invoice or payroll.

Business value

A dozen or more hours a month return to the owner, there are fewer errors, and the discussion is about one line instead of a whole spreadsheet; transparency that builds trust in the team.

Systems involved

visits, prices, discounts and packages from the clinic system; product cost from the batch register; rules in SharePoint; statements and comments in Microsoft Teams; data for the accountant in a file

Business problem

A doctor’s payout is hundreds of lines, each with its own exception, and the result is sent as a single amount

In an aesthetic clinic a doctor’s pay is rarely a simple salary. Most often it is a percentage per treatment, calculated after product cost, with different rates for different treatments and different people. Add consultations, packages sold in advance, discounts, vouchers and touch-ups done free of charge. Each of these has its own rule, and the rules often live in the owner’s memory and in old emails.

At month end the spreadsheet begins. An export of visits from the system, matching prices and discounts, looking up product cost per treatment in invoices or estimating it by eye, exceptions for packages and vouchers. Five people, hundreds of lines, a dozen or more hours of work from the person whose time is the most expensive in the clinic.

Then comes the discussion. The doctor gets one amount and asks why it is lower than last month. He cannot see the lines, so he cannot point to what does not add up, and the owner does not remember how she counted a package treatment from two months ago. The same conversation returns every month and slowly damages a relationship that in a small clinic is everything.

Errors go both ways. An overpayment rarely comes back; an underpayment always comes to light, usually at the worst moment. A robot has no better memory than the owner, but it has the rules written down and applies them the same way to every line, every month.

How it works today

Below is what the work looks like before anything is automated.

  1. PersonAt month end the owner exports visits from the system
  2. Risk of errorA spreadsheet: each doctor’s rates, packages, discounts, vouchers
  3. WaitingProduct cost per treatment estimated or looked up in invoices
  4. Risk of errorThe result sent to doctors as a single amount
  5. WaitingThe doctor asks about lines he cannot see
  6. Risk of errorA discussion about packages and touch-ups, every month anew
PersonRisk of errorWaiting

Why the current process costs more than it appears

The bill that never shows up in a budget.

  • How many hours a month does preparing doctor and cosmetologist payouts take you, including explanations?
  • Are the rules for packages, discounts and touch-ups written down anywhere, or do they live in memory?
  • Where does the product cost for a specific treatment come from: an invoice, a price list, or a guess?
  • How many times in the last six months did a payout have to be corrected after it was paid?

Cost of inaction

Yearly: the payout spreadsheet and explanations, about 14 hours a month≈ 7 600 € of the owner’s and manager’s time
Payout errors (model: 1% of payouts), mostly in the doctors’ favour≈ 4 200 € a year
The monthly discussion about packages, discounts and touch-upstension in the team that cannot be priced

The model assumes five people paid by percentage, payouts of about 35 000 € a month and a fully loaded owner or manager hour of 45 €. You will know your own numbers by timing the next month-end close and reviewing corrections from the last six months.

The third line has no amount, but in a small clinic losing one doctor over a sense of unfair payouts costs more than all the spreadsheets together.

Illustrative scenario

A model organisation with realistic proportions – the numbers exist so you can run the same maths on your own data; they are not a client result.

Organisation

An aesthetic clinic: 3 treatment rooms, 5 doctors and cosmetologists paid a percentage per treatment, each with different rates, about 600 treatment visits a month, Microsoft 365, a clinic system.

Volume

September, the start: the owner writes down the rules with each doctor. A percentage per treatment after product cost, separate rates for consultations, rules for packages, discounts, vouchers and free touch-ups. Both sides accept them.

Current process

Throughout the month the robot adds treatments daily. Each doctor can see his current month in Teams at any time, line by line.

Bottleneck

On 1 October the robot closes September. Each doctor’s statement shows visit number, date, treatment, price, discount, product cost from the batch register and the rule that calculated his share. The doctors have three days to comment.

Solution

A doctor flags one line: a free touch-up was counted as a regular treatment. The owner decides according to the written rule, and the robot recalculates the statement in seconds.

Potential effect

5 October: payouts approved. Contracted doctors receive the amount and description for their invoice, the accountant a payroll data package. Instead of 14 hours: two. In the modelled year that is about 9 000 €. These are model figures, not the clinic’s records.

Proposed solution

Rules first. With the owner and each doctor we write down how his share is calculated: a percentage for each treatment category, how product is deducted, by the batch purchase price or a fixed rate from the contract, consultations, prepaid packages, discounts, vouchers and free touch-ups. The rules go into one SharePoint list, and every change carries a date and both sides’ acceptance. This is the most important step, because it ends arguments about how things were meant to be.

Then the calculation. Every day the robot collects visits, prices, discounts and payments from the clinic system, product cost from the batch register and package redemptions, and assigns a rule to every line. The doctor can see his current month in Teams at any time. At month end the robot closes the statements, sends them to the doctors and collects comments on specific lines rather than on the total.

Decisions stay with people. The owner resolves doctors’ comments, and the robot only recalculates after her decision. Once approved, it prepares the amount and description for a contracted doctor’s invoice or a payroll data package for the accountant, in the format she uses. Statements contain visit numbers, not patient names, and the owner additionally sees the margin per doctor and treatment.

Native capabilities used

UiPath Orchestrator: daily treatment additions, month-end close, recalculations after decisions and an audit trail for every line; UiPath Integration Service connectors to Outlook 365, SharePoint and Teams

What we build

Written payout rules for each person, line-by-line statements with the rule, doctors’ comments on lines, the owner’s approval and data for invoices or payroll

Dedicated integrations

The clinic system with visits, prices, discounts and packages via export or API; product cost from the batch register; data for the accountant in a file matching her system

How the automated process works

  1. PersonEach doctor’s payout rules written once and accepted by both sides
  2. AutomationThe robot combines visits, payments, packages and product cost
  3. AutomationEach doctor’s statement with every line and the rule that calculated it
  4. PersonThe doctor reviews his statement and comments on specific lines
  5. PersonThe owner resolves the comments and approves
  6. SystemThe amount for the doctor’s invoice or payroll data for the accountant
AutomationPersonSystem

Human-in-the-loop model

Automation handles

  • Adding treatments daily according to the written rules
  • The month-end close, statements for doctors and comments collected on lines
  • Recalculations after decisions and data for invoices or payroll

People decide

  • The content of the payout rules and any change: the owner and the doctor, together
  • Resolving doctors’ comments: the owner
  • Approving the payout before it is paid: the owner

Before and after

BeforeAfter
Rulesin memory and old emailswritten, with date and acceptance by both sides
Product costestimated or looked up in invoicesfrom the batch register, at every treatment
What the doctor seesa single amountevery line with its rule, as it runs
The discussionabout the whole spreadsheet, every monthabout one line, settled by a rule

Systems and integrations

The stack is short on purpose: one engine, one execution layer, one place where a person decides.

Inputs

  • visits, treatments, prices, discounts and payments from the clinic system
  • product cost from the batch register and purchase prices
  • package and voucher redemptions
  • written payout rules for each person

Automation layer

  • UiPath Orchestrator
  • UiPath Robots
  • UiPath Integration Service
  • UiPath Action Center

Target systems

  • doctors’ line-by-line statements in Teams
  • amounts and descriptions for doctors’ invoices or payroll data for the accountant
  • margin per doctor and treatment for the owner

Human touchpoints: writing the rules once at the start; a monthly statement review by the doctor; resolving comments and approval by the owner

visits and payments + product cost + payout rulesUiPath OrchestratorUiPath Robotsa UiPath robot: daily additions, month-end close, recalculationsTeams (statements, comments, approvals) + data for the accountant

Technologies used

UiPath Robots + Orchestrator

daily and monthly calculations according to the rules, an audit trail for every line

A
UiPath Integration Service (Outlook, SharePoint, Teams connectors)

statements for doctors, comments, approvals, the package for the accountant

A
SharePoint lists and Excel Online

payout rules for each person and an archive of approved statements

A
The clinic system

visits, treatments, prices, discounts and packages via export or API

B
The batch register and the accounting system

product cost per treatment; payroll data in a file matching the accountant’s system

B
Averified product capability (vendor documentation)Bverified external source

Illustrative economic model

Numbers you can check against your own data.

Illustrative model
The payout calculates itself from the rules; the owner only resolves and approves≈ 6 000 € / year of the owner’s and manager’s time
Fewer errors thanks to rules and detail on every line (model: three quarters fewer)≈ 3 000 € / year
Disputes settled on a specific line, not on the whole spreadsheetpeace in the team; left unpriced
Yearly value of recovered time and fewer errors (illustrative)≈ 9 000 €

The model assumes five people paid by percentage and the cautious assumption that errors fall by three quarters, not to zero. The most important effect has no amount: the doctor sees how every line was calculated, so talking about money stops being a conversation about trust. Put your own figures into the calculator beside.

Run the maths on your data

hours to recover monthly
of annual capacity to recover

An illustrative estimate based on your inputs. It models freed capacity, not promised savings.

Business benefits

  • Payouts calculated from written rules, the same way every month
  • Every doctor sees his lines as the month runs, not just one amount at the end
  • Product cost per treatment from the batch register instead of estimates
  • Comments on specific lines, settled by a rule, not by recollection
  • Ready data for the doctor’s invoice or for payroll, without retyping

The management view

  • Transparent payouts are an argument when recruiting good doctors who have a choice
  • Margin per doctor and treatment shows the owner where the clinic really earns
  • Written rules make it easier to bring in a new person and change rates without misunderstandings

Board-level KPIs

hours to close the month’s payouts · corrections after payment · doctors’ comments per hundred lines · payout approval day · lines with product cost from the batch register

Security and governance

The automation has exactly the permissions it needs. Not one more.

  • Statements contain visit numbers, not patient names
  • Each doctor sees only his own statement; margins and comparisons are visible to the owner alone
  • Payout rules change only with a date and both sides’ acceptance
  • The robot pays nothing; it prepares the data, and a person approves
  • Data stays in your Microsoft 365 tenant; the robots run in the EU region of UiPath Automation Cloud

Why now

01

Every month closed in a spreadsheet means another dozen hours and another chance for a dispute.

02

Good doctors choose clinics where they understand their payouts.

03

A quick-win deployment takes weeks and works from the first month-end close after go-live.

Relevant executive roles

Clinic owner

A dozen or more hours a month back, margin per doctor and treatment, an end to monthly disputes

Doctor

Sees every line and rule as the month runs, and raises comments against a specific visit

Accountant

Receives ready payroll data or a statement for doctors’ invoices, always in the same format

Common questions and objections

Each of our doctors has different rules. Can the robot handle that?

Yes. The rules are written separately for each person and each treatment category. The robot does not need the rules to be the same, only to be written down.

How does the robot count product cost when one vial covers several treatments?

However you set it in the rules: by the usage actually recorded in the batch register, by a fraction of the pack, or by a fixed rate per treatment from the contract. What matters is that there is one rule and it is written down.

Will doctors see each other’s payouts?

No. Each sees only his own statement. Comparisons and margins are visible only to the owner or people she names.

When this is not the right solution

  • A clinic where everyone is on a fixed salary: there is nothing to calculate here
  • No willingness to write down payout rules: a robot cannot replace agreements that do not exist
  • Expecting the robot to negotiate rates: that is a conversation between the owner and the doctor

A question for the next management meeting

If a doctor asked today how the third line of his payout from two months ago was calculated, how long would the answer take?

Implementation approach

Scope without ambiguity, before anything is signed.

We deliver

  • Written payout rules for each person in SharePoint, with change history
  • Daily treatment additions and a current-month view for doctors in Teams
  • The month-end close, line-by-line statements and comments on lines
  • Data for doctors’ invoices or payroll for the accountant, plus margin per doctor and treatment
  • A handbook for the owner and doctors and assistance with the first two closes

We need from you

  • Your current payout rules, even if they exist only in a spreadsheet and in memory
  • Access to visits, prices, discounts and packages in the clinic system
  • An agreed format with the accountant for payroll or invoice data

Stages

Discovery

Today’s spreadsheet, contracts, exceptions; a conversation with the owner and the doctors

Rules

Writing down the rules for each person and acceptance by both sides

Build

Daily additions, statements, comments, recalculations, data for the accountant

Parallel run

One month calculated alongside the spreadsheet; we explain every difference

Go-live

Payouts only from the robot; a rules review after a quarter

A quick win. The most work goes into writing down rules that today exist only in people’s heads; after this step the team usually admits it was the most valuable one.