A county-based medical association system deployment method and device
By using a one-click method to launch and configure multiple applications, the problem of low deployment efficiency of county hospital imaging reporting systems was solved, achieving automated management and upgrades, reducing labor costs and error rates, and improving system deployment efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-14
- Publication Date
- 2026-03-20
AI Technical Summary
County hospitals lack the qualifications to issue imaging reports and need to upload imaging files to higher-level hospitals for analysis and report generation. Traditional system deployment is inefficient, time-consuming, and labor-intensive, especially when upgrading the program, which consumes a lot of manpower.
This paper provides a system deployment method based on county-level medical consortia. By starting and configuring multiple related applications, including dicomServer, nginx, php, mysql, and FileTransfers, with one click, and utilizing a shared configuration pool and scheduled tasks, the system can automatically detect and upgrade the applications, thereby achieving automated deployment and upgrades.
It effectively reduces labor costs, decreases the chance of errors, improves work efficiency, simplifies system deployment processes, and enables automated management and one-click startup of multiple applications.
Smart Images

Figure CN115185596B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of computer application, in particular to a system deployment method and device based on county medical association. BACKGROUND
[0002] In some county hospitals, there are devices for taking image files for patients, but there is no qualification for issuing image reports for patients. In order to obtain an image report, an image file needs to be uploaded to a superior hospital. After the superior hospital receives the image file, the image file is parsed, a report is issued and returned to the medical association cloud platform. In this way, the county hospital can access the medical association cloud platform and view the image report. Considering the actual situation of the county hospital, a front-end machine needs to be arranged at the county hospital end, and image-related application programs and application programs for realizing file distribution and sharing functions need to be installed. At the same time, the superior hospital also needs to deploy a file distribution and sharing function program. Through the file distribution and sharing function program, image files are pulled from the image cloud platform at regular intervals. After the file is obtained, the file is parsed and transmitted to the PACS system and a report is issued. The report is returned to the image cloud platform.
[0003] Therefore, system deployment needs to be performed on the front-end machines of the county hospital end and the superior hospital end. Each front-end machine needs to start at least 5 programs, such as dicomServer, nginx, php, mysql, and FileTransfers. In addition, the configuration files of the various service programs need to be accurately and correctly configured before the programs can be run. If an operation and maintenance personnel makes a mistake in a step, it is very time-consuming to troubleshoot the problem. In addition, if the php program needs to be upgraded and database scripts and python scripts need to be executed in a system that is already running, the program needs to be upgraded in each hospital. It can be seen that the traditional system deployment method is low in efficiency, time-consuming, and consumes a large amount of labor cost. SUMMARY
[0004] In order to efficiently and simply deploy the platform system of the county medical association, the present application provides a system deployment method based on a county medical association, comprising the following steps:
[0005] In response to a start instruction, an application program group start configuration is obtained, and the start order of a plurality of application programs in the application program group is determined;
[0006] The application programs are started in order, and the application programs include the application programs included in the application program group and the application program tasks;
[0007] The start configuration of the application programs is obtained, and the system resources are obtained according to the start configuration;
[0008] The system resource is acquired according to the start configuration, including listening to the default resource port of the application program, judging whether the resource port is idle, if the resource port is occupied, allocating an alternative resource port for the application program.
[0009] Further, the start configuration further includes a timing task agreement, and the timing task supports a fixed time length task and a defined time length task.
[0010] Further, before the system resource is acquired according to the start configuration, application program state recognition and version information updating are further performed.
[0011] Before the response start instruction is executed, a shared configuration pool is started; the shared configuration pool is used for writing corresponding system information into the shared configuration pool when the application program is started, for use by other application programs when starting. The system information includes a file path, an access address, an access port and an application program state.
[0012] On the other hand, the application provides a system deployment device based on a county medical alliance, including:
[0013] A start instruction response module is configured to respond to a start instruction, acquire start configuration of an application program group, and determine a start order of a plurality of application programs in the application program group.
[0014] A start order control module is configured to start the application programs in the application program group in sequence, and the start order control module supports starting the application programs and application program tasks.
[0015] A system resource control module is configured to acquire start configuration of the application programs and acquire system resources according to the start configuration.
[0016] The system resource control module further includes a resource listening unit, a state judging unit and a resource re-allocation unit.
[0017] Further, the start order control module includes a timer configured to process a timing task, and the timer supports a fixed time length agreement and a defined time length agreement.
[0018] The system resource control module includes a version update control unit configured to recognize a state of the application programs and perform version information updating.
[0019] Further, the system deployment device based on the county medical alliance further includes a shared configuration module configured to write corresponding system information when the application program is started, for use by other application programs when starting. The shared configuration module is started before the response start instruction is executed. The system information includes a file path, an access address, an access port and an application program state.
[0020] According to the application, multiple associated application programs can be started and configured simultaneously in the simplest way, effectively reducing labor cost, reducing error probability and improving work efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0021] Figure 1 is a system deployment method flow chart of a county medical association according to an embodiment of the application;
[0022] Figure 2 is a method flow chart for updating version information in system deployment of a county medical association according to an embodiment of the application;
[0023] Figure 3 is a functional structure diagram of a system deployment method of a county medical association according to an embodiment of the application;
[0024] Figure 4 is a system device structure diagram of a county medical association according to an embodiment of the application. DETAILED DESCRIPTION
[0025] The system deployment method based on a county medical association provided by the application can start necessary application programs in a front-end machine in one key, including a dicomServer program for receiving DICOM files from an internal network PACS, a website application server php program, a database server mysql program, a website server nginx program, an FTP tool FileTransfers program for transmitting DICOM files, and a python program, in addition to the application programs. In addition to the application programs, an automatic detection function is also needed to automatically upgrade php, python script programs, and automatically execute database script upgrades. Through one-key system deployment, labor cost can be effectively reduced, error probability can be reduced, and work efficiency can be improved.
[0026] In the practical cases listed in the application, dicomServer, nginx, php, mysql and FileTransfers need to be installed and started in the front-end machine. The specific implementation manner of the application will be described in detail below in combination with the drawings of the specification.
[0027] Before deploying the system, the application programs such as dicomServer, nginx, php, mysql and FileTransfers are packaged into an installation package. The installation package includes an application program group composed of these application programs, an application program group startup configuration file defining information such as the startup order of the application programs. When a hospital needs to go online with the system, the installation package is directly double-clicked, the installation directory is selected, the next step is clicked, the application programs in the application program group can be installed, and then one-key startup is performed for system deployment.
[0028] The preparation step of system deployment includes opening a shared configuration pool; the shared configuration pool is used to write corresponding system information into the shared configuration pool when starting the application program, for use by other application programs. The shared configuration pool supports storage and shared information including file paths, such as: dicom monitoring directory, dicom recycling directory, database address information, port, whether the application program is alive, etc.
[0029] After the environment is prepared, the system deployment is started, Figure 1 The system deployment method flowchart in the case is shown in the figure, including the following steps:
[0030] Step S110: in response to a start instruction, obtaining application program group start configuration, determining the start order of multiple application programs in the application program group;
[0031] When this step is executed, the installation package has been obtained, the installation of the application program has been executed, and the application program group start configuration file encapsulated in the installation package has been obtained.
[0032] The application program group start configuration file includes the order and configuration of the installation of all application programs, and also includes the configuration of each application program.
[0033] The start configuration of the application program supports dynamically configuring multiple timers to support timing tasks, and the timing supports fixed time length (such as 30 seconds, 60 seconds) timing and custom time length. Through the timing task, the related services can be controlled when starting the application program, for example: if the python script needs to be executed every 30 seconds, a 30-second timer is added to execute the timing task, and if the execution request web interface needs to be executed every 60 seconds, a 60-second timer is added to execute the timing task.
[0034] Step S120: starting the application program in order, the application program including the application program group, application program task;
[0035] The start of each application program in the application program group often has a prior and subsequent dependent relationship, for example: starting php after nigix is started, starting the service related to the application program after the application program is started, for example: starting the file transfer service after starting the timing statistics service; starting the file transfer service after the timing statistics service is completed.
[0036] Step S130: obtaining the start configuration of the application program, and obtaining system resources according to the start configuration; the system resources in the application include the path of file storage, open access port, etc.
[0037] For example:
[0038] Before starting the dicomServer, the system automatically configures the configuration file of the service;
[0039] Before starting the nginx, the system automatically configures the configuration file of the nginx, configures the default port number as 80, configures the root directory of the website as the web directory under the current directory of the system, and configures the IP and port connected with the php;
[0040] Before starting the php, the system automatically configures the configuration file of the php, configures the extension directory of the php, configures the temporary directory of the php, and configures the error log file of the php;
[0041] Before starting the mysql, the system automatically configures the configuration file of the mysql, configures the root directory of the mysql, and configures the data storage directory of the mysql;
[0042] Before starting the FileTransfers, the system automatically configures the directory monitored by the ftp and the recycle directory;
[0043] When multiple application programs are started, there is a problem of resource preemption, and for this case, in the scheme of the application, in the process of starting the configuration to obtain system resources, further function decomposition is made, as shown in the steps S131: listening to the default resource port of the application program, step S132: judging whether the resource port is idle; step S133, if the resource port is occupied, then allocating a substitute resource port. Figure 1
[0044] For example, when starting the nginx, php and mysql, the default listening ports of the service programs are 80, 9000 and 3306 respectively, the system will first detect whether the port is used, if it is used, a substitute resource port will be allocated, and the idle detection of the substitute resource port will be performed. The method of allocating the substitute resource port supports multiple ways:
[0045] 1) automatically adding a specified parameter N to the original default port, N is a natural number, for example: adding 1 to the default port number, the port is changed from 80 to 81;
[0046] 2) providing a port redefinition interface: the interface is used for manual configuration by the management personnel, and the idle port is allocated in the manual specified way;
[0047] 3) uniformly defining the ports to be used by each application program in advance through a shared configuration pool.
[0048] For the sharing configuration pool, not only the unified definition of resources can be used, but also the information sharing between applications, for example, after the system resource allocation of an application, the other applications need to be notified, and the sharing configuration pool opened in the system deployment preparation is used to realize this function: for example, nginx and php are two separately managed applications, and there is a resource dependency between them. The php needs to open the default port 9000, and when starting php, it is found that the 9000 port is occupied, and the alternative resource port 9005 is obtained and started successfully; after starting successfully, the corresponding port information is written into the sharing configuration pool. When nginx needs to connect php, the corresponding information is obtained from the sharing configuration pool, the configuration file of nginx is updated, and nginx is restarted.
[0049] The sharing configuration pool can also be used for the sharing of application survival state, which provides each application with the judgment of survival, and can also store the configuration information of third-party applications for starting other applications in the method.
[0050] The operation and configuration generated in the configuration process are saved and consulted in the form of logs for the use of management personnel.
[0051] In the method of the application, before starting the configuration to obtain system resources, the identification of the application state and the update of the version information are also performed, for example, starting the timing task, automatically detecting and upgrading php, python and other applications, and automatically executing the Mysql database program, and the specific process is as shown in Figure 2
[0052] The implementation of this function needs the support of the server, that is, including the packaging preparation of the update program, and the update program is not limited to the application, but also includes the script program.
[0053] In step S210, it is judged whether the application needs to be upgraded, and in actual application, the judgment depends on not only the version date in the configuration file, but also the version configuration in the configuration file, accessing the specified interface to obtain update information, etc.
[0054] In step S220, the download of the update file is performed.
[0055] In step S230, it is judged whether the script file needs to be updated, which is the same as step S210, and in this step, it is not limited to judging by configuration, but also can be judged by obtaining data from the specified interface.
[0056] Figure 3 The functional structure diagram of the whole application is listed, as shown in the figure, the deployment system based on county medical association provided by the embodiment of the application supports automatic detection update and upgrade, supports one-key start for series application programs, detects the use situation of system resources required by the application program, configures resources, starts function programs, and realizes timing tasks, such as the task of acquiring image files, requesting interface to view files, etc.
[0057] Figure 4 The system device structure diagram of the county medical association is provided, as shown in the figure, including the following structure modules:
[0058] P410: shared configuration module, used for writing corresponding system information when executing the start application program, so as to facilitate the use of other application programs during startup; the system information includes file path, access address, access port, application program state, etc.
[0059] The shared configuration module is started before executing the response start instruction, in this embodiment, the shared configuration module at least supports information sharing of dicomServer, nginx, php, mysql, FileTransfers, such as sharing the following information: dicom monitoring directory, dicom recycling directory, access database address information, port, application survival state, etc.
[0060] P420: start instruction response module: used for responding to the start instruction, acquiring application group start configuration, and determining the start order of multiple application programs in the application group;
[0061] In this embodiment, the application programs in the application group at least include dicomServer, nginx, php, mysql, FileTransfers, and the application programs to be started, corresponding configurations, and specified or default start order are acquired through the start instruction response module.
[0062] P430: start order control module: used for starting the application programs in sequence, the start order control module supports starting the application programs and application program tasks contained in the application group;
[0063] In this case, the started application programs at least include dicomServer, nginx, php, mysql, FileTransfers, and the application program tasks further include the tasks of acquiring image files and requesting interface to view files, etc., and these tasks often need time control, therefore, the start order control module includes a timer for processing timing tasks, and the timer supports fixed time length agreement and defined time length agreement. For example, fixed 30 seconds, 1 minute, or self-defined 24 hours, etc.
[0064] P440: system resource control module: for obtaining the start configuration of the application program, obtaining the system resource according to the start configuration; wherein it comprises P441 resource monitoring unit, P442 state judging unit and P443 resource re-allocation unit. Through the resource monitoring unit, the state judging unit and the resource re-allocation unit, the corresponding resource port of the application program is monitored, and it is judged whether the resource port is idle; if the resource port has been occupied, a substitute resource port is allocated.
[0065] The resource re-allocation unit supports multiple allocation modes:
[0066] 1) automatically add a specified parameter N to the original default port, N is a natural number, for example: add 1 to the default port number, change the port from 80 to 81;
[0067] 2) provide a port redefinition interface: this interface is used for manual configuration by management personnel, and the allocation is performed in the mode of manually specifying idle ports;
[0068] 3) uniformly define the ports to be used by each application program in advance through a shared configuration pool.
[0069] The system resource control module further comprises a version update control unit for identifying the state of the application program, performing version information update, supporting the acquisition of data through a configuration data and a specified interface to identify the state and judge and perform the update.
[0070] In the present application, the specified application program combination can be uniformly started and managed, and the application programs in the combination can also be managed individually, while maintaining effective contact between the application programs in the individual management, supporting flexible control of the task, and realizing automatic identification and update of the version, that is, through the present application, the automatic deployment and one-key start function of multiple application programs are realized, and the automatic upgrade of multiple application programs and application tasks is realized, greatly reducing the work complexity of the operation and maintenance personnel, reducing repetitive work, reducing the probability of errors, and improving work efficiency.
[0071] The above disclosure is only a few specific embodiments of the present application, but the present application is not limited thereto, and any changes that can be thought of by those skilled in the art shall fall within the protection scope of the present application.
Claims
1. A system deployment method based on county-level medical consortia, characterized in that, Includes the following steps: In response to the startup command, the system obtains the application group startup configuration and determines the startup order of multiple applications in the application group. The applications are then launched sequentially, including the applications and application tasks contained in the application group. The startup configuration also includes a scheduled task agreement, which supports fixed-duration tasks and defined-duration tasks. Before executing the startup command, a shared configuration pool is enabled. This shared configuration pool is used to write corresponding system information when launching an application, for use by other applications during startup. The system information includes file path, access address, access port, and application status. The shared configuration pool also includes a unified definition for resources and information sharing between applications, including notifying other applications after system resources are allocated to one application. The shared configuration pool also includes a sharing mechanism for application liveness status, which allows applications to determine each other's liveness, and also includes the storage of configuration information for third-party applications. Obtain the startup configuration of the application, and acquire system resources based on the startup configuration; The process of acquiring system resources according to the startup configuration includes listening to the application's default resource port, determining whether the resource port is free, and if the resource port is occupied, allocating an alternative resource port for the application. This includes automatically adding a specified natural number N to the original default port, having an administrator manually specify a free port through a port redefinition interface, and pre-defining the ports to be used by each application through a shared configuration pool.
2. A system deployment device based on county-level medical consortia, characterized in that, include: Startup command response module: used to respond to startup commands, obtain the startup configuration of the application group, and determine the startup order of multiple applications in the application group; A shared configuration module is used to write corresponding system information when the application is launched, so that other applications can use it when they start. The shared configuration module is enabled before the response launch command is executed. It also includes enabling a shared configuration pool. The shared configuration pool is used to write corresponding system information into the shared configuration pool when the application is launched, so that other applications can use it when they start. The system information includes file path, access address, access port, and application status. The shared configuration pool also includes a unified definition for resources and information sharing between applications, including notifying other applications after system resources are allocated to one application. The shared configuration pool also includes a sharing mechanism for application liveness status, which allows applications to determine each other's liveness, and also includes a mechanism for storing configuration information of third-party applications. Startup order control module: used to start applications in sequence. The startup order control module supports starting applications and application tasks contained in the application group. It also includes a timer for handling timed tasks. The timer supports fixed duration conventions and defined duration conventions. System resource control module: used to obtain the startup configuration of the application and obtain system resources according to the startup configuration; wherein, the system resource control module further includes a resource monitoring unit, a status judgment unit and a resource reallocation unit; This includes determining whether a resource port is free; if the resource port is occupied, allocating an alternative resource port for the application, including automatically adding a specified natural number N to the original default port, having an administrator manually specify an available port through a port redefinition interface, and pre-defining the ports to be used by each application through a shared configuration pool.
Citation Information
Patent Citations
Routing method in server cluster system
CN102333029A
Starting method and device of embedded system
CN109634669A