...
Only authenticated and authorized OWNER, ADMIN, RECEPTIONIST, DOCTOR employees can use this WS.
Usage of this WS allowed in EMERGENCY, MSP, MSP_PHARMACY, OUTPATIENT, PRIMARY_CARE legal entities.
Person should confirm merge with preperson by auth method chosen on create patient request or create declaration request processes.
The request can be approved only by the employee who works in the same legal entity in which made the request was made.
Change status should be logged in the Event manager.
...
Validate preperson as on create preperson merge request process, but w/o searching pending merge requests.
Validate employee
Validate employee as on create reject preperson merge request process
...