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

Instructions for setting up auto-updating of 1C extensions

Table of contents

For the MedFlexUpdate extension to work, a 1C platform version of at least 8.3.21 is required.

1) Installing the MedFlexUpdate.cfe extension

The link to the current version of the extension is MedFlexUpdate.cfe

To install the extension, you must have rights to the functions of a technical specialist (roles Full rights/ "All functions" mode) to access the configurator.

The extension is installed by adding it through a special section in the Configurator. Configuration → Configuration extensions.

Загрузка расширения

After opening the window, you need to add an empty extension. After that, download the Medflex extension to it.

Раздел для загрузки расширения

Answer all subsequent questions in the affirmative. At the end of the download, uncheck «Безопасный режим»and «Защита от опасных действий».

Установленное расширение МедФлекс

To be able to update MedFlex extensions, the HTTP service from the MedFlexUpdate extension must be published. There are two ways to do this.:

  1. In the configurator, go to Administration → Publish on the web server...

1C_administration_server

In the window that opens, go to the HTTP services tab and set the flag«Публиковать HTTP сервисы расширений по умолчанию».

approve_publish_http

If the database has already been published with this flag set, the HTTP extension service will be published automatically, and there is no need to republish the database. If this flag has not been set before, then you must publish the database again by clicking on «Опубликовать». After that, you need to restart the web server.

2.If it is not possible to republish the database, then you can change the settings of the default.vrd file. You can find out its location through the configurator by opening Administration → Publish on the web server.... The file location will be indicated in the field«Каталог».

1c_catalog

Open the default file.You can use any text editor to edit vrd. Inside the file, you need to find a line starting «<httpServices»with where to add «publishExtensionsByDefault="true"»it . The final result is shown in the image below.

result_of_install_medflex_update

After that, it is recommended to restart the web server.

2) Updating the MedFlexAppointment extension version

For the MedFlexUpdate extension to work correctly, the MedFlexAppointment extension version must be installed at least below the minimum required. The minimum versions are different for different configurations. A list of them, along with the associated configurations and extensions, is given below.:

  • Bit UMC, Bit UMC CORP, Bit Dentistry — MedFlexAppointment_BitUMC — 3.1.0
  • Medicine. Polyclinic, Medicine. Hospital — MedFlexAppointment_Poliklinika — 3.1.0
  • Medicine. Dental Clinic — MedFlexAppointment_Stomatology — 2.1.0
  • MedAngel — MedFlexAppointment_MedAngel — 2.1.0

If the MedFlexAppointment extension is already installed in the minimum version or higher, then steps 2 and 3 can be skipped.

To avoid integration failures, you must make a copy of the already installed version of the MedFlexAppointment extension (ProdoctorovDirectAppointment). This can be done in the same window«Расширения конфигурации».

Сохранение установленного расширения в файл

After installing a newer version of the extension, the exchange settings with Medflex (vendors) created earlier will be lost. To restore them later, take a screenshot. Open Enterprise 1C, and go to Functions for Technical specialist → Exchange Settings with Medflex (for older versions, Exchange Settings with ProDoctorov).

Открытие функция для технического специалиста

Next, you need to update the MedFlexAppointment extension (ProdoctorovDirectAppointment) to a supported version. Request the extension file from your personal manager or arrange with him the date and time of remote access for the extension to be updated by the MedRoket Technical support manager.


To update the extension from the configurator, open the list of extensions in the current configuration, Configuration → Configuration Extension, similar to Figure 1. Then select the line with the extension MedFlexAppointment (ProdoctorovDirectAppointment) in the list and click «Загрузить конфигурацию из файла».

Загрузка расширения

Accept the offer to continue.

Предупреждение о замене текущего расширения

After updating the extension, the configurator will suggest making changes to the database configuration. We agree if there are no active users in the database. If there is, see section 5.

Загрузка изменений в конфигурацию базы данных

If it is not possible to make changes at the moment, you can do it later by clicking the button on the configurator toolbar, or by pressing F7.

Загрузка изменений в конфигурацию баз данных после обновления

3) Restore/create exchange settings with MedFlex

To create the settings, go to the Functions for Technical specialist → Exchange settings with Medflex. In the window that opens, if necessary, you can fill in the settings saved in the screenshot from point 2. The interface window may differ depending on the version of the 1C configuration.

The Medflex communication data is an important part of the settings. They are located on the tab«Настройка выгрузки приёмов». Here you need to fill in the address, port, and token. The token will be provided by a MedRoket employee.

Заполнение данных связи с МедФлекс (Ваше окно может отличаться от изображённого. Это пример только для одной из конфигураций)

After filling in the data, click on the button«Записать и закрыть».

4) Setting the rights to the MedFlex user (ProDoctorov)

""In order for our 1C extension to be automatically updated and correct errors without your participation, we will need to grant the user «MedFlex»(Or«ProDoctorov») the rights to "doctor" and "connect from the website" in your program.
For 1C "Medicine. Dental clinic""""""Hospital", "1C. Polyclinic" and "Medangel" you need to add the role of "system administrator".

This is a standard requirement of the 1C platform for installing updates programmatically.

Automatic updates will allow you to maintain the current version of the extension without the need for remote access.

Technical justification (for 1C specialists):

The Extension method is used to programmatically update the extension.Write down (the extension data). Using this method requires that the user who calls it has the above-described rights.

Thank you for your understanding.

To set the rights, open the configurator, go to Administration → Users.

Открытие окна пользователей

Next, double-click to open the card of the MedFlex user or another user through whom the Medflex connection is performed.

Список пользователей

In the window that opens«Прочие», check the box next «Врач»to the and field in the tab«Подключение с сайта».

This completes the installation of the auto-update extension, you can close the configurator, it will interfere with the auto-update process. It is also recommended to clear the cache. Upon completion of the configuration, notify the clinic's personal messenger about this in order to test and enable the functionality on the MedRoket side.

5) Blocking users (optional)

This step should only be performed when updating from versions older than 3.1.0 and if it is not possible to simply ask all users to log out of the database for a few minutes.

A user with access rights can block the database by sending a request to exit the program«Администратора». This will end the sessions of all active users.

To perform a database lock, go to the section: «Администрирование»- «Блокировка работы пользователей».

In the window that opens, you can use the button «Активные пользователи»to check which of the users is currently working in the database.

«Сообщение для пользователей»A message is written in the field asking you to exit the program as soon as possible. You can specify the reason for blocking the database and the time of unavailability. Text to copy:

Good afternoon! We ask everyone to complete their work and leave the base in the next 15 minutes.
At 00:00, work in the database will be forcibly completed in order to update.
The database will be available after 00:00.

The database lockdown period is indicated below (the time during which users will not be able to log in and work in the database).

In the field«Код для разблокировки», you can enter a code with which, if absolutely necessary, the user can log into the database, despite the lock.

Форма обработки «Блокировка работы пользователей»

When «Установить блокировку»you click on the button, a warning will be displayed on the screen, if everything is correct, click «ОК».

After that, a message will be displayed to all active users and all sessions (including yours) will be forcibly terminated at the set time.

You must open it before the start of the lock «конфигуратор»period.

A message to the users of the information base about the session lock.

Сообщение пользователям информационной базы о блокировке сеанса.

A message to the administrator of the information base about blocking the session.

Сообщение администратору информационной базы о блокировке сеанса.

In case of an emergency, the user can launch the database using the unlock code, if it was specified when creating the user lock.
To do this, in 1C Enterprise, click the button «Изменить»for the blocked database. And in the additional launch parameters, specify:
/C Allow users to work /UC <permission code>

Параметры запуска базы при внештатной ситуации.