ЕСОЗ - публічна документація
RCC (CSI-3377) Create Service Request
Send SMS notification
If inform_with is submitted in request and is type OTP or third_person.OTP, then:
send an SMS to the phone number with the requisition number if the auth_method_id (inform_with.auth_method_id) in the current service_request does not match any auth_method_id from other service_requests within the same encounter that do not have a performer.
otherwise, do not send an SMS.
If inform_with is not submitted in request and patient's default authentication method determined by Determination of a default authentication method and return person's active auth_methods is OTP or third_person.OTP - send SMS to phone number with requisition number
In order to optimize the costs, only one sms should be sent within one encounter when inform_with is not submitted. So that send sms only for the first service request for specific encounter
Do NOT send sms in case performer is present
Search for service requests with the same requisition number
if there is at least one service request with such number - do not send sms
if no service requests found - send sms to the patient
ЕСОЗ - публічна документація