Примеры:
Изменим заявку, используя УИД, полученный от сервиса «GetReserve». Установим ей длительность и пациента
Пример запроса:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ru="ru.umc" xmlns:core="http://v8.1c.ru/8.1/data/core">
<soap:Header/>
<soap:Body>
<ru:BookAnAppointmentWithParams>
<ru:EmployeeID>99868528-0928-11dc-93d1-0004614ae652</ru:EmployeeID>
<ru:PatientSurname>Иванов</ru:PatientSurname>
<ru:PatientName>Иван</ru:PatientName>
<ru:PatientFatherName>Иванович</ru:PatientFatherName>
<ru:Date>2025-02-05T00:00:00</ru:Date>
<ru:TimeBegin>0001-01-01T13:10:00</ru:TimeBegin>
<ru:Comment>Комментарий</ru:Comment>
<ru:Phone>89876543210</ru:Phone>
<ru:Email>bit@1cbit.ru</ru:Email>
<ru:Address>Ленина 1</ru:Address>
<ru:Clinic>f679444a-22b7-11df-8618-002618dcef2c</ru:Clinic>
<ru:GUID>9cc6b9fc-0b04-11e7-b13c-00e051000230</ru:GUID>
<ru:Params>
<core:Property name="Birthday">
<core:Value>1980-09-14T00:00:00</core:Value>
</core:Property>
<core:Property name="Duration">
<core:Value>0001-01-01T02:30:00</core:Value>
</core:Property>
</ru:Params>
</ru: BookAnAppointmentWithParams>
</soap:Body>
</soap:Envelope>
Пример ответа:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<m: BookAnAppointmentWithParamsResponse xmlns:m="ru.umc">
<m:return xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><![CDATA[<?xml version="1.0"?>
<string xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Ok</string>]]></m:return>
</m: BookAnAppointmentWithParamsResponse >
</soap:Body>
</soap:Envelope>
Перезапишем заявку, сменим пациента и добавим две услуги
Пример запроса:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ru="ru.umc" xmlns:core="http://v8.1c.ru/8.1/data/core">
<soap:Header/>
<soap:Body>
<ru:BookAnAppointmentWithParams>
<ru:EmployeeID>99868528-0928-11dc-93d1-0004614ae652</ru:EmployeeID>
<ru:PatientSurname>Бибикина</ru:PatientSurname>
<ru:PatientName>Алла</ru:PatientName>
<ru:PatientFatherName></ru:PatientFatherName>
<ru:Date>2025-02-05T00:00:00</ru:Date>
<ru:TimeBegin>0001-01-01T13:10:00</ru:TimeBegin>
<ru:Comment>Прием </ru:Comment>
<ru:Phone></ru:Phone>
<ru:Email></ru:Email>
<ru:Address></ru:Address>
<ru:Clinic>f679444a-22b7-11df-8618-002618dcef2c</ru:Clinic>
<ru:GUID>9cc6b9fc-0b04-11e7-b13c-00e051000230</ru:GUID>
<ru:Params>
<core:Property name="Birthday">
<core:Value>1975-11-18T00:00:00</core:Value>
</core:Property>
<core:Property name="DurationType">
<core:Value>ServiceDuration</core:Value>
</core:Property>
<core:Property name="Services">
<core:Value>eb20edcc-3ee0-11de-b0dd-0050bf5d92cb;8e045f06-da18-11e1-bab2-1803736d59cd</core:Value>
</core:Property>
</ru:Params>
</ru: BookAnAppointmentWithParams>
</soap:Body>
</soap:Envelope>
Пример ответа:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<m: BookAnAppointmentWithParamsResponse xmlns:m="ru.umc">
<m:return xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><![CDATA[<?xml version="1.0"?>
<string xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Ok</string>]]></m:return>
</m: BookAnAppointmentWithParamsResponse >
</soap:Body>
</soap:Envelope>
