Ссылка скопирована
Search

For Medicine. Polyclinic and Medicine. Hospital

The integration of online recording is implemented using the MR_Integration web service.

Basic authorization is performed to access the database.

METHODS

CHECKING THE SERVER STATUS

POST request type

XML request body format

URL /ws/MR_Integration

Request body

<x:Envelope
xmlns:x="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ru="ru.umc"
xmlns:cor="http://v8.1c.ru/8.1/data/core">
<x:Header/>
<x:Body>
<ru:HealthCheck></ru:HealthCheck>
</x:Body>
</x:Envelope>

Response format:

<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:HealthCheckResponse
xmlns:m="ru.umc">
<m:return
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">&lt;?xml version="1.0"?&gt;
<mr_performance
xmlns="MR_S1"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
<Result&gt;true&lt;/The Result&gt;
<Error Description>
&lt;Status Code&gt;200&lt;/The Status Code
<lt;/mr_performance>
</m:return>
</m:HealthCheckResponse>
</soap:Body>
</soap:Envelope>

METADATA

POST request type

XML request body format

URL /ws/MR_Integration

Request body

<x:Envelope
xmlns:x="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ru="ru.umc"
xmlns:cor="http://v8.1c.ru/8.1/data/core">
<x:Header/>
<x:Body>
<ru:GetMetaData></ru:GetMetaData>
</x:Body>
</x:Envelope>

Response format:

<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:GetMetaDataResponse
xmlns:m="ru.umc">
<m:return
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">&lt;?xml version="1.0"?&gt;
<MR_MetaLogues
xmlns="MR_S1"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
&lt;Platform versions9.9.9.9&lt;/Platform versionsgt;
<Configuration&gt;Name of the configuration</Configuration>;
<Configuration Version>9.9.9.9<;/Configuration versionsgt;
&lt;Compatibility Mode&gt;Version9_9_9&lt;/Compatibility Mode&gt;
<Extension of the name&gt;Name of the extension;/
Extentionname&gt;
&lt;ExtensionvErsion&gt;9.9.9.9&lt;/ExtensionvErsion&gt;
<Expansion Compatibility Mode&gt;Version9_9_9&lt;/Expansion Compatibility Mode&gt;
&lt;Hash Sum Extension&gt;Hash sum of the Medflex extension&lt;/Expansion of the Maximum&gt;
<Available Configuration objects&gt;Web service: Webservice.MR_Integration &lt;/Availability of Configuration objects;
&lt;Status Code&gt;200&lt;/State Code&gt;
<Result&gt;true&lt;/The Result&gt;
<Unloading of receptacles&gt;false&lt;/Unloading of Receptions&gt;
<lt;/MR_MetaLogues>;
</m:return>
</m:GetMetaDataResponse>
</soap:Body>
</soap:Envelope>
  • Platform versionis the version of the 1C platform.
  • Configuration — the name of the installed configuration.
  • Configuration versionis the version of the installed configuration.
  • Compatibility Mode is the compatibility mode of the installed configuration.
  • Extentionname is the name of the installed MedFlex extension.
  • ExtensionvErsion is the version of the installed MedFlex extension.
  • Expansion Compatibility Mode is the compatibility mode of the installed MedFlex extension.
  • The hash sum is the hash amount of the installed MedFlex extension.
  • Configuration objectsthe list of MedFlex extension objects present in the database.
  • Status code is the status code of the request.
  • The result is the result of the query execution.
  • Receiver Unloading — whether extended receiver unloading is enabled or not.

DOCTORS' DATA

POST request type

XML request body format

URL /ws/MR_Integration

Request body

<x:Envelope
xmlns:x="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ru="ru.umc"
xmlns:cor="http://v8.1c.ru/8.1/data/core">
<x:Header/>
<x:Body>
<ru:Employees>
<StartDate>2025-08-01T13:39:48</StartDate>
<FinishDate>2025-08-30T13:39:48</FinishDate>
</ru:Employees>
</x:Body>
</x:Envelope>
  • StartDate — the beginning of the period in which the doctor's working hours should fall YYYY-MM-DDThh:mm:ss. Obligatory.
  • FinishDate — the end of the period in which the doctor's working hours should fall YYYY-MM-DDThh:mm:ss. Obligatory.

Response format:

<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:EmployeesResponse
xmlns:m="ru.umc">
<m:return
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">&lt;?xml version="1.0"?&gt;
<MR_WORKERS
xmlns="MR_S1"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
&lt;Branches&gt;
<lt;Branch>
&lt;Name&gt;The name of the branch of JSC&lt;/Name of the gt;
&lt;ID&gt;5c719bb0-8532-11EA-BB19-54e1ad84bf81&lt;/ID&gt;
&lt;Divisions&gt;
&lt;Division&gt;
&lt;Name&gt;Medical Center &lt;/Name of the gt;
<ID>0df79692-8536-11ea-bb19-54e1ad84bf81</ID>;
&lt;Doctors&gt;
&lt;Doctor&gt;
<FULL NAME&gt;Test Doctor Middle Name/FULL Name;
<ID>cbab1d28-7cd7-11F0-8150-96d03872bb29</ID>;
&lt;Workplace&gt;
<Working Space>;
&lt;Names of the workplace&gt;Test Doctor Middle Name;/Names of the Workplace&gt;
&lt;d87d7abc-7CD7-11F0-8150-96d03872bb29&lt;/Idrabochomesta&gt;
&lt;ID Divisions&gt;0df79692-8536-11ea-bb19-54e1ad84bf81&lt;/ID Divisions&gt;
&lt;Services&gt;
&lt;Service&gt;
&lt;Name&gt;Appointment of biotherapy using monoclonal antibodies for cancer in adults;/Name&gt;
&lt;ID&gt;55f53f64-a8c7-11EF-8129-96d03872bb29&lt;/ID&gt;
&lt;Duration&gt;30&lt;/Duration&gt;
&lt;/Service&gt;
&lt;/Services&gt;
&lt;/Workplace&gt;
&lt;/Workplace&gt;
&lt;/Doctor&gt;
&lt;/Doctors&gt;
&lt;/Division of&gt;
&lt;/Divisions of &gt;
<lt;/Branch>;
&lt;/Branches&gt;
&lt;/MR_Employees of&gt;
</m:return>
</m:EmployeesResponse>
</soap:Body>
</soap:Envelope>
  • Branches can contain any number of nested Branch type objects.
  • Branch:Name — the name of the branch.
  • Branch:The ID of the branch.
  • Branch:Divisions can contain any number of nested objects of the Division type (Business Structure directory).
  • Division:Name — the name of the department.
  • Division:The ID of the unit.
  • Division:Doctors can contain any number of nested objects of the type Doctor (reference Staff).
  • Doctor:Full name — full name of the doctor.
  • Doctor:Doctor's ID.
  • Doctor:A workplace can contain any number of nested objects of the Workplace type (directory of Medical Workplace).
  • Workplace:Workplace Name — the name of the medical workplace.
  • Workplace:Workplace ID is a TYPE of medical workplace.
  • Workplace:The unit ID is the unit ID that the medical workplace belongs to.
  • Workplace:Services can contain any number of nested objects of the Service type.
  • Service:Name — the name of the service that this medical workplace can provide.
  • Service:ID — UID services.
  • Service:Duration — the duration of reception for the performance of the service.

LIST OF DOCTORS

It differs from the Employees method in that it returns only a list of jobs and their IDs, excluding working hours.

POST request type

XML request body format

URL /ws/MR_Integration

Request body

<x:Envelope
xmlns:x="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ru="ru.umc"
xmlns:cor="http://v8.1c.ru/8.1/data/core">
<x:Header/>
<x:Body>
<ru:PDDoctorsList>
<ru:ClinicId>5c719bb0-8532-11ea-bb19-54e1ad84bf81</ru:ClinicId>
</ru:PDDoctorsList>
</x:Body>
</x:Envelope>
  • ClinicId is the type of department for which you need to get doctors. Obligatory.

Response format:

  • The data was received successfully:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:PDDoctorsListResponse
xmlns:m="ru.umc">
<m:return
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">&lt;?xml version="1.0"?&gt;
<mr_list of Doctors
xmlns="MR_S1"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
&lt;Doctor&gt;
<FULL NAME&gt;Ivanov II/FULL NAME;
&lt;ID&gt;d7a5edd0-C943-11ED-80E3-96d03872bb29&lt;/ID&gt;
&lt;/Doctor&gt;
&lt;/MR_List of Doctors&gt;
</m:return>
</m:PDDoctorsListResponse>
</soap:Body>
</soap:Envelope>
  • MR_The list of doctors can contain any number of nested objects of the Doctor type.
  • Doctor:Full name is the name of the medical workplace.
  • Doctor:ID is the ID of a medical workplace.
  • Couldn't find jobs for the specified division ID:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:PDDoctorsListResponse
xmlns:m="ru.umc">
<m:return
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance ">Jobs by Division ID: 5c719bb0-8532-11ea-bb19-54e1ad84bf82 not found
</m:return>
</m:PDDoctorsListResponse>
</soap:Body>
</soap:Envelope>

LIST OF SERVICES

POST request type

XML request body format

URL /ws/MR_Integration

Request body

<x:Envelope
xmlns:x="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ru="ru.umc"
xmlns:cor="http://v8.1c.ru/8.1/data/core">
<x:Header/>
<x:Body>
<ru:PDServicesList>
<ru:ClinicId>0df79692-8536-11ea-bb19-54e1ad84bf81</ru:ClinicId>
<ru:DoctorId>fab264ce-8539-11ea-bb19-54e1ad84bf81</ru:DoctorId>
</ru:PDServicesList>
</x:Body>
</x:Envelope>
  • DoctorID is the type of doctor whose services you need to receive. Obligatory.
  • ClinicId — The type of clinic where the specified doctor works. Obligatory.

Response format:

  • The data was received successfully:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:PDServicesListResponse
xmlns:m="ru.umc">
<m:return
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">&lt;?xml version="1.0"?&gt;
<mr_list of Services
xmlns="MR_S1"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
&lt;Service&gt;
&lt;Name&gt;Therapist's consultation (30 min.);/Name&gt;
&lt;ID&gt;38e3b69a-CC91-11ed-80e4-96d03872bb29&lt;/ID&gt;
&lt;/Service&gt;
&lt;/MR_List of Services&gt;
</m:return>
</m:PDServicesListResponse>
</soap:Body>
</soap:Envelope>
  • MR_The list of services can contain any number of nested objects of the Service type.
  • Service:Name — the name of the item.
  • Service:Nomenclature ID.
  • Couldn't find a doctor:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:PDServicesListResponse
xmlns:m="ru.umc">
<m:return
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance ">Workplace by ID: not found
</m:return>
</m:PDServicesListResponse>
</soap:Body>
</soap:Envelope>
  • Couldn't find services:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:PDServicesListResponse
xmlns:m="ru.umc">
<m:return
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Services were not found.
</m:return>
</m:PDServicesListResponse>
</soap:Body>
</soap:Envelope>

PRICE LIST

POST request type

XML request body format

URL /ws/MR_Integration

Request body

<x:Envelope
xmlns:x="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ru="ru.umc"
xmlns:cor="http://v8.1c.ru/8.1/data/core">
<x:Header/>
<x:Body>
<ru:GetPrice>
<ru:PricetypeID>772df792-853b-11ea-bb19-54e1ad84bf81</ru:PricetypeID>
</ru:GetPrice>
</x:Body>
</x:Envelope>
  • PricetypeID is the price type by which the services should be filtered. If you do not specify it, then filtering will not be performed.

Response format:

  • The data was received successfully:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:GetPriceResponse
xmlns:m="ru.umc">
<m:return
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">&lt;?xml version="1.0"?&gt;
<mr_prislist
xmlns="MR_S1"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
&lt;Nomenclature Values&gt;
&lt;Nomenclature Prices&gt;
&lt;id&gt;69073f5c-8537-11ea-bb19-54e1ad84bf81&lt;/id&gt;
&lt;service&gt;General&lt;/service&gt;
&lt;price&gt;1500&lt;/price&gt;
&lt;code&gt;M001&lt;/code&gt;
&lt;folder&gt;false&lt;/folder&gt;
&lt;parent&gt;Massage&lt;/parent&gt;
&lt;pricetype&gt;PLT&lt;/pricetype&gt;
&lt;pricetypeID&gt;772df792-853b-11ea-bb19-54e1ad84bf81&lt;/pricetypeID&gt;
<lt;/Price Nomenclature>;
&lt;/Nomenclature Values&gt;
&lt;/MR_Price List&gt;
</m:return>
</m:GetPriceResponse>
</soap:Body>
</soap:Envelope>
  • Price nomenclatures can contain any number of nested objects of the Price Nomenclature type.
  • ID is the item type.
  • Service — the name of the item.
  • Price — the price of the item.
  • Code — the code of the item.
  • Folder — whether the item is a catalog or not.
  • Parent is the parent directory.
  • Pricetype — the name of the type of prices.
  • PricetypeID — The price type type.
  • Couldn't find an agreement«ПроДокторов»:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:GetPriceResponse
xmlns:m="ru.umc">
<m:return
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">&lt;?xml version="1.0"?&gt;
<mr_performance
xmlns="MR_S1"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
<Result&gt;false&lt;/The Result&gt;
<Error descriptionreferences&gt;No "Producers" agreement found;/Error descriptiongt;
&lt;State Code&gt;400&lt;/State Code&gt;
<lt;/mr_performance>;
</m:return>
</m:GetPriceResponse>
</soap:Body>
</soap:Envelope>
  • The «ПроДокторов»price type is not specified in the agreement:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:GetPriceResponse
xmlns:m="ru.umc">
<m:return
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">&lt;?xml version="1.0"?&gt;
<mr_performance
xmlns="MR_S1"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
<Result&gt;false&lt;/The Result&gt;
<Error descriptionreferences&gt;The agreement does not specify the type of prices;/Error descriptiongt;
&lt;State Code&gt;400&lt;/State Code&gt;
<lt;/mr_performance>;
</m:return>
</m:GetPriceResponse>
</soap:Body>
</soap:Envelope>

schedule

POST request type

XML request body format

URL /ws/MR_Integration

Request body

<x:Envelope
xmlns:x="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ru="ru.umc"
xmlns:cor="http://v8.1c.ru/8.1/data/core">
<x:Header/>
<x:Body>
<ru:Schedule>
<ru:EmployeeID>fab264ce-8539-11ea-bb19-54e1ad84bf81</ru:EmployeeID>
<ru:StartDate>2025-09-01T00:00:00</ru:StartDate>
<ru:FinishDate>2025-09-22T00:00:00</ru:FinishDate>
</ru:Schedule>
</x:Body>
</x:Envelope>
  • EmployeeID is the type of medical workplace for which the schedule is uploaded. Obligatory.
  • StartDate — the beginning of the period for which the schedule is uploaded. Obligatory.
  • FinishDate — the end of the period for which the schedule is uploaded. Obligatory.

Response format:

  • The schedule was received successfully:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:ScheduleResponse
xmlns:m="ru.umc">
<m:return
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">&lt;?xml version="1.0"?&gt;
<MR_GRAPHIC
xmlns="MR_S1"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
<Cell Occupancy intervals>;
&lt;Intervalized Cells&gt;
&lt;Worksystem&gt;FAB264CE-8539-11EA-BB19-54e1ad84bf81&lt;/Workingstoid&gt;
<Planning Interval>;
<Planning Interval>;
<Start Time>2025-09-01T19:00:00<;/Start Time&gt;
&lt;End Time&gt;2025-09-01T20:00:00&lt;/End Time&gt;
&lt;Occupied Cells&gt;
<Busy Cell>;
<Start Time>2025-09-08T19:00:00<;/Start Time&gt;
&lt;End Time&gt;2025-09-08T19:30:00&lt;/End Time&gt;
<lt;/Busy Cell>;
<lt;/Occupied cells>;
&lt;/Scheduling Interval&gt;
&lt;/Planning Interval&gt;
&lt;/Intervalized Cells&gt;
&lt;/Intervals of Occupied Cells&gt;
<lt;/MR_Grafic>;
</m:return>
</m:ScheduleResponse>
</soap:Body>
</soap:Envelope>
  • The intervals of the occupied cells must contain one object of the type of the occupied cells.
  • The interval of the occupied cells must contain one object each of the types of workplace and planning interval.
  • Intervalized cells:Workplace View is a VIEW of a medical workplace.
  • Intervalized cells:The planning interval can contain any number of nested objects of the Planning interval type.
  • Planning Interval:Start Time — the start time of the working time interval.
  • Planning Interval:End time — the end time of the working time interval.
  • The scheduling interval must contain one Occupied Cell type object.
  • Planning Interval:An occupied cell can contain any number of nested objects of the Occupied cell type.
  • Busy Cell:Start Time — the start time of the occupied time interval.
  • Busy Cell:End Time — the end time of the occupied time interval.
  • The EmployeeID parameter is set incorrectly.:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Error when getting the workplace ID. </faultstring>
<detail/>
</soap:Fault>
</soap:Body>
</soap:Envelope>
  • Couldn't get a medical job:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Error when getting a workplace with a unique identifier.</faultstring>
<detail/>
</soap:Fault>
</soap:Body>
</soap:Envelope>

ONLINE RECORDING

POST request type

XML request body format

URL /ws/MR_Integration

Request body

<soap-env:Envelope
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Body>
<ns0:BookAnAppointmentWithParams
xmlns:ns0="ru.umc">
<ns0:WorkplaceID>c705d40c-8539-11ea-bb19-54e1ad84bf81</ns0:WorkplaceID>
<ns0:PatientSurname>New</ns0:PatientSurname>
<ns0:PatientName>The patient</ns0:PatientName>
<ns0:PatientFatherName>Middle name</ns0:PatientFatherName>
<ns0:Date>2025-06-11T00:00:00</ns0:Date>
<ns0:TimeBegin>0001-01-01T08:00:00</ns0:TimeBegin>
<ns0:Comment>This is a test record.</ns0:Comment>
<ns0:Phone>89181453123</ns0:Phone>
<ns0:Email>почта@mail.ru </ns0:Email>
<ns0:Address>Address</ns0:Address>
<ns0:Clinic>0df79692-8536-11ea-bb19-54e1ad84bf81</ns0:Clinic>
<ns0:GUID></ns0:GUID>
<ns0:Params>
<ns1:Property
xmlns:ns1="http://v8.1c.ru/8.1/data/core"
name="Birthday">
<ns1:Value>2004-03-10</ns1:Value>
</ns1:Property>
<ns1:Property
xmlns:ns1="http://v8.1c.ru/8.1/data/core"
name="Duration">
<ns1:Value>0001-01-01T00:00:00</ns1:Value>
</ns1:Property>
<ns1:Property
xmlns:ns1="http://v8.1c.ru/8.1/data/core"
name="ServiceID">
<ns1:Value>239329aa-a8c8-11ef-8129-96d03872bb29</ns1:Value>
</ns1:Property>
<ns1:Property
xmlns:ns1="http://v8.1c.ru/8.1/data/core"
name="IsFullOrder">
<ns1:Value>True</ns1:Value>
</ns1:Property>
<ns1:Property
xmlns:ns1="http://v8.1c.ru/8.1/data/core"
name="FilialsInUnits">
<ns1:Value>True</ns1:Value>
</ns1:Property>
</ns0:Params>
</ns0:BookAnAppointmentWithParams>
</soap-env:Body>
</soap-env:Envelope>
  • WorkplaceID is the type of medical workplace. Obligatory.
  • PatientSurname is the patient's last name.
  • PatientName is the patient's name.
  • PatientFatherName is the patronymic of the patient.
  • Date — the date of the start of admission. Obligatory.
  • TimeBegin is the start time of the reception. Obligatory.
  • Comment — a comment on the reception.
  • Phone — the patient's mobile phone.
  • Email — the patient's email address.
  • Address — the patient's residential address.
  • Clinic — The type of clinic where the patient is enrolled. Obligatory.
  • GUID is an outdated parameter that cannot be filled in.
  • Params:Birthday — date of birth of the patient YYYY-MM-dd.
  • Params:Duration — duration of reception YYYY-MM-DDThh:mm:ss.
  • Params:serviceId — The service TYPE to which the record is being performed. Obligatory.
  • Params:isfulorder — indicates whether to create an extended version of the reception or not.
  • Params:FilialsInUnits — if this parameter is set to true, the clinic search will be performed by department. Otherwise, by organizations.

Response format:

The response formats for recording, postponing, and canceling are repeated. In order to avoid filling the article with a large number of repetitive text in full size, the answer will be given only the first time for demonstration and in specific cases when it differs from the standard one. In all subsequent variations , only the fields «Результат», «Описание ошибки»and will change «Код состояния». In all responses with errors, the ID field is present, but not filled in.

  • The recording was completed successfully:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/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">&lt;?xml version="1.0"?&gt;
<mr_response_site
xmlns="MR_S1"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
<Result&gt;true&lt;/The Result&gt;
<Error description_/>;
&lt;Status Code&gt;204&lt;/State Code&gt;
&lt;UID&gt;5ee90a74-8d66-11f0-8154-96d03872bb29&lt;/WEED&gt;
&lt;/MR_The response to the recording of the site&gt;
</m:return>
</m:BookAnAppointmentWithParamsResponse>
</soap:Body>
</soap:Envelope>
  • The Birthday parameter is set incorrectly.:
<Result&gt;false&lt;/The result
Error DescriptionThe error occurred when converting Birthday to date. &lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • The Clinic parameter is set incorrectly.:
<Result&gt;false&lt;/The result
<Error Description>Error when getting a unique identifier based on Clinic.&lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • Couldn't find the division:
<Result&gt;false&lt;/The result
Error DescriptionThe error occurred when searching for a business unit using the transmitted unique identifier. The division with the specified ID was not found. &lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • Couldn't find a clinic:
<Result&gt;false&lt;/The result
Error DescriptionThe error occurred when searching for a clinic using the transmitted unique identifier. The clinic with the specified ID was not found.&lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • The WorkplaceID parameter is set incorrectly.:
<Result&gt;false&lt;/The result
Error DescriptionThe error occurred when obtaining a unique identifier based on the WorkPlaceID. &lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • Couldn't find a medical workplace:
<Result&gt;false&lt;/The result
Error DescriptionThe error occurred when searching for a workplace using the transmitted unique identifier. No workplace was found with the specified ID. &lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • The serviceId parameter is set incorrectly.:
<Result&gt;false&lt;/The result
<Error Description>Error when getting a unique identifier based on serviceId.&lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • Couldn't find the service:
<Result&gt;false&lt;/The Result&gt;
Error DescriptionThe error occurred when searching for a service using the transmitted unique identifier. The service with the specified ID was not found. - Unexpected error;/Error descriptiongt;
&lt;State Code&gt;400&lt;/State Code&gt;
  • The service is not specified:
<Result&gt;false&lt;/The result
Error DescriptionThe service is not specified (serviceId parameter). &lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • The Duration parameter is set incorrectly.:
<Result&gt;false&lt;/The result
Error DescriptionThe error occurred when converting Duration to date. &lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • Couldn't get the exchange settings from Medflex:
<Result&gt;false&lt;/The result
Error DescriptionThe sending settings could not be received for the following reason:;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • Failed to create a new client:
<Result&gt;false&lt;/The result
Error DescriptionThe New Patient Test client could not be created
&lt;/Error descriptiongt;
&lt;Status Code&gt;500&lt;/State Code&gt;
  • The patient has already made an appointment with another doctor at the specified time.:
<Result&gt;false&lt;/The result
Error DescriptIonyou cannot record an application, because there are already applications for the patient's New Patient Patronymic for this period: Order OO00-0000000273 dated 09.09.2025 13:18:47 on 01.09.2025: 19:00-19:30;/Error descriptiong;
<State Code&gt;423&lt;/State Code&gt;
  • The slot that is being recorded is already occupied:
<Result&gt;false&lt;/The result
Error DescriptIonyou cannot record an application, because there are already applications for the Ivanov II employee for this period: Order OO00-0000000274 dated 09.09.2025 14:00:42 on 02.09.2025: 05:00-05:30;/Error descriptiong;
<State Code&gt;423&lt;/State Code&gt;
  • The specified time is outside the employee's working hours:
<Result&gt;false&lt;/The Result&gt;
<Error descriptionreferences&gt;The time for completing the work on the application goes beyond the limits of the employee's working day — Ivanov II on this day;/Error descriptiongt;
<Status Code>404<;/State Code&gt;

TRANSFERRING A RECORD

POST request type

XML request body format

URL /ws/MR_Integration

Request body

<soap-env:Envelope
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Body>
<ns0:TransferAnAppointmentWithParams
xmlns:ns0="ru.umc">
<ns0:WorkplaceID>c705d40c-8539-11ea-bb19-54e1ad84bf81</ns0:WorkplaceID>
<ns0:PatientSurname>New</ns0:PatientSurname>
<ns0:PatientName>The patient</ns0:PatientName>
<ns0:PatientFatherName>Middle name</ns0:PatientFatherName>
<ns0:Date>2025-06-11T00:00:00</ns0:Date>
<ns0:TimeBegin>0001-01-01T08:00:00</ns0:TimeBegin>
<ns0:Comment>This is a test record.</ns0:Comment>
<ns0:Phone>89181453123</ns0:Phone>
<ns0:Email>почта@mail.ru </ns0:Email>
<ns0:Address>Address</ns0:Address>
<ns0:Clinic>0df79692-8536-11ea-bb19-54e1ad84bf81</ns0:Clinic>
<ns0:GUID>f1224a94-0a03-11f0-8139-96d03872bb29</ns0:GUID>
<ns0:Reason>The reason</ns0:Reason>
<ns0:Params>
<ns1:Property
xmlns:ns1="http://v8.1c.ru/8.1/data/core"
name="Birthday">
<ns1:Value>2004-03-10</ns1:Value>
</ns1:Property>
<ns1:Property
xmlns:ns1="http://v8.1c.ru/8.1/data/core"
name="Duration">
<ns1:Value>0001-01-01T00:00:00</ns1:Value>
</ns1:Property>
<ns1:Property
xmlns:ns1="http://v8.1c.ru/8.1/data/core"
name="ServiceID">
<ns1:Value>239329aa-a8c8-11ef-8129-96d03872bb29</ns1:Value>
</ns1:Property>
<ns1:Property
xmlns:ns1="http://v8.1c.ru/8.1/data/core"
name="IsFullOrder">
<ns1:Value>True</ns1:Value>
</ns1:Property>
<ns1:Property
xmlns:ns1="http://v8.1c.ru/8.1/data/core"
name="FilialsInUnits">
<ns1:Value>True</ns1:Value>
</ns1:Property>
</ns0:Params>
</ns0:TransferAnAppointmentWithParams>
</soap-env:Body>
</soap-env:Envelope>
  • WorkplaceID is the type of medical workplace. Obligatory.
  • PatientSurname is the patient's last name.
  • PatientName is the patient's name.
  • PatientFatherName is the patronymic of the patient.
  • Date — the date of the start of admission. Obligatory.
  • TimeBegin is the start time of the reception. Obligatory.
  • Comment — a comment on the reception.
  • Phone — the patient's mobile phone.
  • Email — the patient's email address.
  • Address — the patient's residential address.
  • Clinic — The type of clinic where the patient is enrolled. Obligatory.
  • GUID is the type of reception that needs to be rescheduled. Obligatory.
  • Reason — the reason for transferring the record.
  • Params:Birthday — date of birth of the patient YYYY-MM-dd.
  • Params:Duration — duration of reception YYYY-MM-DDThh:mm:ss.
  • Params:serviceId — The service TYPE to which the record is being performed. Obligatory.
  • Params:isfulorder — indicates whether to create an extended version of the reception or not.
  • Params:FilialsInUnits — if this parameter is set to true, the clinic search will be performed by department. Otherwise, by organizations.

Response format:

  • The recording was successfully transferred:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:TransferAnAppointmentWithParamsResponse
xmlns:m="ru.umc">
<m:return
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">&lt;?xml version="1.0"?&gt;
<mr_response_site record
xmlns="MR_S1"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
<Result&gt;true&lt;/The Result&gt;
<Error description_/>;
&lt;Status Code&gt;204&lt;/State Code&gt;
&lt;UID&gt;52944382-8d6d-11f0-8154-96d03872bb29&lt;/WEED&gt;
&lt;/MR_The response to the recording of the site&gt;
</m:return>
</m:TransferAnAppointmentWithParamsResponse>
</soap:Body>
</soap:Envelope>
  • UID — UID of the created record.
  • The GUID parameter is set incorrectly.:
<Result&gt;false&lt;/The result
Error DescriptionThe error occurred when receiving a unique application identifier based on a GUID;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • The Birthday parameter is set incorrectly.:
<Result&gt;false&lt;/The result
Error DescriptionThe error occurred when converting Birthday to date. &lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • The Clinic parameter is set incorrectly.:
<Result&gt;false&lt;/The result
<Error Description>Error when getting a unique identifier based on Clinic.&lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • Couldn't find the division:
<Result&gt;false&lt;/The result
Error DescriptionThe error occurred when searching for a business unit using the transmitted unique identifier. The division with the specified ID was not found. &lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • Couldn't find a clinic:
<Result&gt;false&lt;/The Result&gt;
Error DescriptionThe error occurred when searching for a clinic using the transmitted unique identifier. The clinic with the specified ID was not found.&lt;/Error descriptiongt;
&lt;State Code&gt;400&lt;/State Code&gt;
  • The WorkplaceID parameter is set incorrectly.:
<Result&gt;false&lt;/The Result&gt;
Error DescriptionThe error occurred when obtaining a unique identifier based on the WorkPlaceID. &lt;/Error descriptiongt;
&lt;State Code&gt;400&lt;/State Code&gt;
  • Couldn't find a medical workplace:
<Result&gt;false&lt;/The result
Error DescriptionThe error occurred when searching for a workplace using the transmitted unique identifier. No workplace was found with the specified ID. &lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • The serviceId parameter is set incorrectly.:
<Result&gt;false&lt;/The result
<Error Description>Error when getting a unique identifier based on serviceId.&lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • Couldn't find the service:
<Result&gt;false&lt;/The result
Error DescriptionThe error occurred when searching for a service using the transmitted unique identifier. The service with the specified ID was not found. - Unexpected error;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • The service is not specified:
<Result&gt;false&lt;/The result
Error DescriptionThe service is not specified (serviceId parameter). &lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • The Duration parameter is set incorrectly.:
<Result&gt;false&lt;/The result
Error DescriptionThe error occurred when converting Duration to date. &lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • Couldn't get the exchange settings from Medflex:
<Result&gt;false&lt;/The result
Error DescriptionThe sending settings could not be received for the following reason:;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • Failed to create a new client:
<Result&gt;false&lt;/The result
Error DescriptionThe New Patient Test client could not be created
&lt;/Error descriptiongt;
&lt;Status Code&gt;500&lt;/State Code&gt;
  • The patient has already made an appointment with another doctor at the specified time.:
<Result&gt;false&lt;/The result
Error DescriptIonyou cannot record an application, because there are already applications for the patient's New Patient Patronymic for this period: Order OO00-0000000273 dated 09.09.2025 13:18:47 on 01.09.2025: 19:00-19:30;/Error descriptiong;
<State Code&gt;423&lt;/State Code&gt;
  • The slot that is being recorded is already occupied:
<Result&gt;false&lt;/The result
Error DescriptIonyou cannot record an application, because there are already applications for the Ivanov II employee for this period: Order OO00-0000000274 dated 09.09.2025 14:00:42 on 02.09.2025: 05:00-05:30;/Error descriptiong;
<State Code&gt;423&lt;/State Code&gt;
  • The specified time is outside the employee's working hours:
<Result&gt;false&lt;/The result
<Error descriptionreferences&gt;The time for completing the work on the application goes beyond the limits of the employee's working day — Ivanov II on this day;/Error descriptiong;
<Status Code>404<;/State Code&gt;

RECORD CONFIRMATION

POST request type

XML request body format

URL /ws/MR_Integration

Request body

<soap-env:Envelope
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Body>
<ns0:ConfirmBookAppointment
xmlns:ns0="ru.umc">
<ns0:GUID>ba4553c3-0960-11f0-8139-96d03872bb29</ns0:GUID>
<ns0:ConfirmSource>medflex</ns0:ConfirmSource>
</ns0:ConfirmBookAppointment>
</soap-env:Body>
</soap-env:Envelope>
  • GUID — The GUID of the verified record.
  • ConfirmSource — the source of the confirmation.

Response format:

  • Confirmation is successful:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:ConfirmBookAppointmentResponse
xmlns:m="ru.umc">
<m:return
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">&lt;?xml version="1.0"?&gt;
<mr_performance
xmlns="MR_S1"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
<Result&gt;true&lt;/The Result&gt;
<Error description> <;/Error descriptiongt;
&lt;Status Code&gt;204&lt;/State Code&gt;
<lt;/mr_performance>;
</m:return>
</m:ConfirmBookAppointmentResponse>
</soap:Body>
</soap:Envelope>
  • The GUID parameter is specified incorrectly:
<Result&gt;false&lt;/The result
Error DescriptionThe error occurred when receiving a unique application identifier based on the GUID. &lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • Couldn't receive the application document:
<Result&gt;false&lt;/The result
Error DescriptionThe error occurred when searching for an application using a unique identifier. The application with the specified ID was not found. &lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;

CANCEL RECORDING

POST request type

XML request body format

URL /ws/MR_Integration

Request body

<x:Envelope
xmlns:x="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ru="ru.umc"
xmlns:cor="http://v8.1c.ru/8.1/data/core">
<x:Header/>
<x:Body>
<ns0:CancelBookAnAppointment
xmlns:ns0="ru.umc">
<ns0:GUID>226f017a-8d6d-11f0-8154-96d03872bb29</ns0:GUID>
<ns0:Reason>The reason</ns0:Reason>
<ns0:Params/>
</ns0:CancelBookAnAppointment>
</x:Body>
</x:Envelope>
  • GUID is the type of record that needs to be canceled.
  • Reason — the reason for canceling the recording.

Response format:

  • The recording was successfully canceled:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:CancelBookAnAppointmentResponse
xmlns:m="ru.umc">
<m:return
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">&lt;?xml version="1.0"?&gt;
<mr_performance
xmlns="MR_S1"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
<Result&gt;true&lt;/The Result&gt;
&lt;Error Description&gt; &lt;/Error descriptiongt;
&lt;Status Code&gt;204&lt;/State Code&gt;
<lt;/mr_performance>;
</m:return>
</m:CancelBookAnAppointmentResponse>
</soap:Body>
</soap:Envelope>
  • The GUID parameter is set incorrectly.:
<Result&gt;false&lt;/The result
Error DescriptionThe error occurred when receiving a unique application identifier based on the GUID. &lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • Couldn't cancel the request:
<Result&gt;false&lt;/The result
Error DescriptionThe cancellation documents could not be created. &lt;/Error descriptiong;
&lt;Status Code&gt;500&lt;/State Code&gt;

UPDATING AN ENTRY COMMENT

POST request type

XML request body format

URL /ws/MR_Integration

Request body

<x:Envelope
xmlns:x="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ru="ru.umc"
xmlns:cor="http://v8.1c.ru/8.1/data/core">
<x:Header/>
<x:Body>
<ru:UpdateCommentAppointment>
<ru:GUID>12c09d9c-1507-11f0-813a-96d03872bb29</ru:GUID>
<ru:Comment>New comment</ru:Comment>
</ru:UpdateCommentAppointment>
</x:Body>
</x:Envelope>
  • GUID is the type of record that needs to be canceled.
  • Comment — a new comment.

Response format:

  • The comment was successfully updated:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:UpdateCommentAppointmentResponse
xmlns:m="ru.umc">
<m:return
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">&lt;?xml version="1.0"?&gt;
<mr_performance
xmlns="MR_S1"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
<Result&gt;true&lt;/The Result&gt;
&lt;Error Description&gt; &lt;/Error descriptiongt;
&lt;Status Code&gt;204&lt;/State Code&gt;
<lt;/mr_performance>;
</m:return>
</m:UpdateCommentAppointmentResponse>
</soap:Body>
</soap:Envelope>
  • The GUID parameter is set incorrectly.:
<Result&gt;false&lt;/The result
Error DescriptionThe error occurred when receiving a unique application identifier based on the GUID. &lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;
  • Couldn't receive the application document:
<Result&gt;false&lt;/The result
Error DescriptionThe error occurred when searching for an application using a unique identifier. The application with the specified ID was not found. &lt;/Error descriptiong;
&lt;State Code&gt;400&lt;/State Code&gt;