CN111949420A - Business operation flow control method, terminal equipment and storage medium - Google Patents
Business operation flow control method, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN111949420A CN111949420A CN202010795472.6A CN202010795472A CN111949420A CN 111949420 A CN111949420 A CN 111949420A CN 202010795472 A CN202010795472 A CN 202010795472A CN 111949420 A CN111949420 A CN 111949420A
- Authority
- CN
- China
- Prior art keywords
- message
- event
- business operation
- consumer interface
- middleware
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H40/00—ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices
- G16H40/20—ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the management or administration of healthcare resources or facilities, e.g. managing hospital staff or surgery rooms
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Primary Health Care (AREA)
- Medical Informatics (AREA)
- General Health & Medical Sciences (AREA)
- Public Health (AREA)
- Epidemiology (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Biomedical Technology (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to a business operation process control method, a terminal device and a storage medium, comprising the following steps: constructing a message middleware by adopting Kafka and Zookeeper clusters, and respectively connecting each service system with a producer interface and a consumer interface of the message middleware; defining and recording events aiming at each service operation generated by each service system; simultaneously recording corresponding customer interfaces and message formats; when the business system generates business operation, the business operation is sent to the message middleware through a producer interface of the message middleware; and the message middleware checks the received message, reads a consumer interface corresponding to the event corresponding to the message when the check is successful, converts the message according to a message format corresponding to the consumer interface, and sends the converted message to a corresponding service system through the read consumer interface. The invention is based on the modularized design concept, adopts an event-driven architecture, and completes the cooperation among modules by means of the communication of event messages, thereby achieving the purpose of module decoupling.
Description
Technical Field
The present invention relates to the field of process control, and in particular, to a method for controlling a business operation process, a terminal device, and a storage medium.
Background
Hospital information systems involve a large number of clinical services, which are composed of events, such as doctor's order, nurse's order, patient's admission, etc., and there is a linkage relationship between the events. From the software aspect, these events correspond to functional blocks or operation sets in the same or different modules, and the functional modules are numerous, and there are a lot of correlations between modules and operations of the modules, and if these events are processed by using a conventional injection-dependent manner, a high degree of coupling between the modules is inevitably caused. For example, in the traditional admission operation, after a patient successfully enters the department, a plurality of logics such as medical record writing and admission evaluation within 8 hours of the admission are required to be continuously executed, if other operations are required to be expanded in the later period, the admission module needs to be modified, and the defects of the mode are obviously tight coupling, no linkage and poor expansion.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method for controlling a business operation process, a terminal device, and a storage medium.
The specific scheme is as follows:
a business operation process control method comprises the following steps:
constructing a message middleware by adopting Kafka and Zookeeper clusters, and respectively connecting each service system with a producer interface and a consumer interface of the message middleware;
defining events aiming at each service operation generated by each service system, and recording an event number, message content and a message check text contained in each event; simultaneously recording a consumer interface corresponding to each event and a message format corresponding to each consumer interface for each event;
when a business system generates business operation, sending the message of the event corresponding to the business operation to a message middleware through a producer interface of the message middleware;
and the message middleware checks the received message, reads a consumer interface corresponding to the event corresponding to the message when the check is successful, converts the message according to a message format corresponding to the consumer interface, and sends the converted message to a corresponding service system through the read consumer interface.
Further, the event definition method comprises the following steps: creating an event for each business operation, and setting an event number, an event name and an event type of the event; and setting parameters required by the event according to the content of the service operation, and generating the content of the message and a message check text according to the set parameters.
Further, the format of the message is an XML format or a JSON format.
Further, the checking of the message includes checking the duplicate of the producer of the message, and the specific method includes: when a message is received, whether the message is processed or not is judged according to the event number corresponding to the message, and if the message is processed, subsequent operation is not carried out.
Further, the checking of the message includes checking a format of the message, and the specific method includes: analyzing the content of the message, and extracting parameters in the content; and acquiring a message verification text corresponding to the message according to the event number corresponding to the message, and verifying the extracted parameters according to the message verification text.
A business operation process control terminal device includes a processor, a memory, and a computer program stored in the memory and operable on the processor, where the processor executes the computer program to implement the steps of the method described above in the embodiments of the present invention.
A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the method as described above for an embodiment of the invention.
According to the technical scheme, based on a modularized design concept, the event-driven architecture is adopted, cooperation among modules is completed by means of communication of event messages, all the modules only need to concentrate on self business logic, communication among the modules is completed by message middleware in a unified mode, and finally the purpose of module decoupling is achieved.
Drawings
Fig. 1 is a flowchart illustrating a first embodiment of the present invention.
Detailed Description
To further illustrate the various embodiments, the invention provides the accompanying drawings. The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the embodiments. Those skilled in the art will appreciate still other possible embodiments and advantages of the present invention with reference to these figures.
The invention will now be further described with reference to the accompanying drawings and detailed description.
The first embodiment is as follows:
an embodiment of the present invention provides a method for controlling a business operation process, as shown in fig. 1, including the following steps.
And constructing a message middleware by adopting Kafka and Zookeeper clusters, and respectively connecting each service system with a producer interface and a consumer interface of the message middleware.
The business systems in this embodiment are the business systems in the hospital, such as doctors, nurses, and so on. Each service system may be connected to the producer interface, the consumer interface, or both, and needs to be set according to an actual application scenario, which is not limited herein.
Events are defined aiming at each business operation generated by each business system, an event number, message content and a message check text contained in each event are recorded, and a consumer interface corresponding to each event and a message format corresponding to each consumer interface corresponding to each event are recorded.
The above contents are recorded by constructing an event dictionary table in this embodiment.
The method for defining the event comprises the following steps:
(1) creating an event for each business operation, and setting the attribute of the event, wherein the attribute at least comprises an event number and attributes such as an event name and an event category.
(2) And setting parameters required by the event according to the content of the service operation, and generating the content of the message and a message check text according to the set parameters.
Because different business operations require different subsequent operations, and therefore the content of the corresponding message to be sent is also different, parameters required by the content of the message need to be set for each business operation, and then the message is generated according to the parameters and a specific format.
In this embodiment, the format of the content of the message is an XML format or a JSON format. The format of the message check text is XSD format.
Since the formats of messages that can be recognized by different service systems may be different, when a service system needs to send a message to one or more service systems that employ different message formats, the format of the message needs to be converted, and thus, the message format corresponding to each customer interface needs to be recorded.
When the business system generates business operation, the producer interface of the message middleware sends the message of the event corresponding to the business operation to the message middleware.
And the message middleware checks the received message, reads a consumer interface corresponding to the event corresponding to the message when the check is successful, converts the message according to a message format corresponding to the consumer interface, and sends the converted message to a corresponding service system through the read consumer interface.
This embodiment includes at least checking the producer of the message for duplicates and checking the format of the message (e.g., XSD format).
The duplicate checking of the producer of the message is used for avoiding receiving repeated messages of the same producer, such as that the producer repeatedly sends two messages. The method is that the message corresponds to a unique event number, when the message is received, whether the message is processed or not is judged according to the event number corresponding to the message, if so, the subsequent operation is not carried out, namely, the repeated operation is not carried out.
The purpose of checking the message format is to filter messages that do not meet the rules, and the specific implementation method in this embodiment is as follows:
(1) and analyzing the content of the message and extracting the parameters in the message.
(2) And acquiring a message verification text corresponding to the message according to the event number corresponding to the message, and verifying the extracted parameters according to the message verification text.
In the embodiment, the complete life cycle of a message from sending to consuming is divided into 4 stages, and logging is performed on corresponding nodes, namely a message sending node, a message receiving node, a message distributing node and a message subscribing and receiving node. The log flow chart displays the whole process record of the message log, and can monitor the log conditions of different nodes in the whole life cycle of the message.
The following describes a specific application case of the present embodiment:
1) a doctor is used as a business system to generate business operation of 'grade nursing' advice, and an 'advice sending' event is generated;
2) after the message of the 'doctor advice sending' event is successfully verified, the message middleware reads that the consumer interface corresponding to the event is a nurse; reading the message format of the event corresponding to the consumer interface of the nurse as 'doctor' advice proofreading ', converting the message according to the' doctor 'advice proofreading' format, and sending the converted message to the nurse through the consumer interface;
3) when a nurse is used as a service system to finish the event of ' doctor ' advice proofreading ', generating a ' nursing grade change ' event;
4) after the message middleware successfully verifies the message of the nursing grade change event, reading that two consumer interfaces corresponding to the event are nurses; the message formats corresponding to the two consumer interfaces of the event are read as 'nursing record writing' and 'body temperature measurement' respectively, so that the messages are converted according to the formats of 'nursing record writing' and 'body temperature measurement' respectively, and the converted two messages are sent to nurses through the two consumer interfaces.
By the method, when an obligate operation is generated in one service system, other service systems can be rapidly informed to perform corresponding operation through the message middleware, and the process is linked and decoupled.
The embodiment is based on a modular design concept, adopts an event-driven architecture, and completes the cooperation among modules by means of the communication of event messages. All modules only need to be concentrated on self service logic, communication among the modules is uniformly communicated to be completed by the message middleware, and finally the purpose of module decoupling is achieved. After the method of the embodiment is adopted, the operation of entering the department only needs each service system to pay attention to the logic of the service system, other subsequent operations are handed to the message center piece for processing, and the operation needing to be expanded only needs to be processed by adding events.
Example two:
the invention further provides a business operation process control terminal device, which comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor executes the computer program to realize the steps of the method embodiment of the first embodiment of the invention.
Further, as an executable scheme, the business operation process control terminal device may be a desktop computer, a notebook, a cloud server, and other computing devices. The business operation process control terminal device can include, but is not limited to, a processor and a memory. It is understood by those skilled in the art that the above-mentioned structure of the terminal device for controlling the service operation flow is only an example of the terminal device for controlling the service operation flow, and does not constitute a limitation on the terminal device for controlling the service operation flow, and may include more or less components than the above, or combine some components, or different components, for example, the terminal device for controlling the service operation flow may further include an input/output device, a network access device, a bus, and the like, which is not limited in this embodiment of the present invention.
Further, as an executable solution, the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, and the like. The general processor may be a microprocessor or the processor may be any conventional processor, and the processor is a control center of the service operation flow control terminal device, and various interfaces and lines are used to connect various parts of the whole service operation flow control terminal device.
The memory can be used for storing the computer program and/or the module, and the processor realizes various functions of the business operation process control terminal equipment by running or executing the computer program and/or the module stored in the memory and calling data stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to the use of the mobile phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The invention also provides a computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned method of an embodiment of the invention.
The integrated module/unit of the business operation process control terminal device can be stored in a computer readable storage medium if it is implemented in the form of a software functional unit and sold or used as an independent product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM ), Random Access Memory (RAM), software distribution medium, and the like.
While the invention has been particularly shown and described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (7)
1. A business operation process control method is characterized by comprising the following steps:
constructing a message middleware by adopting Kafka and Zookeeper clusters, and respectively connecting each service system with a producer interface and a consumer interface of the message middleware;
defining events aiming at each service operation generated by each service system, and recording an event number, message content and a message check text contained in each event; simultaneously recording a consumer interface corresponding to each event and a message format corresponding to each consumer interface for each event;
when a business system generates business operation, sending the message of the event corresponding to the business operation to a message middleware through a producer interface of the message middleware;
and the message middleware checks the received message, reads a consumer interface corresponding to the event corresponding to the message when the check is successful, converts the message according to a message format corresponding to the consumer interface, and sends the converted message to a corresponding service system through the read consumer interface.
2. The business operation process control method according to claim 1, wherein: the method for defining the event comprises the following steps: creating an event for each business operation, and setting an event number, an event name and an event type of the event; and setting parameters required by the event according to the content of the service operation, and generating the content of the message and a message check text according to the set parameters.
3. The business operation process control method of claim 2, wherein: the format of the message is XML format or JSON format.
4. The business operation process control method according to claim 1, wherein: the verification of the message comprises the step of checking the duplicate of a producer of the message, and the specific method comprises the following steps: when a message is received, whether the message is processed or not is judged according to the event number corresponding to the message, and if the message is processed, subsequent operation is not carried out.
5. The business operation process control method according to claim 1, wherein: the message verification comprises the step of verifying the format of the message, and the specific method comprises the following steps: analyzing the content of the message, and extracting parameters in the content; and acquiring a message verification text corresponding to the message according to the event number corresponding to the message, and verifying the extracted parameters according to the message verification text.
6. A business operation process control terminal device is characterized in that: comprising a processor, a memory and a computer program stored in the memory and running on the processor, the processor implementing the steps of the method according to any of claims 1 to 5 when executing the computer program.
7. A computer-readable storage medium storing a computer program, characterized in that: the computer program when executed by a processor implementing the steps of the method as claimed in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010795472.6A CN111949420A (en) | 2020-08-10 | 2020-08-10 | Business operation flow control method, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010795472.6A CN111949420A (en) | 2020-08-10 | 2020-08-10 | Business operation flow control method, terminal equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111949420A true CN111949420A (en) | 2020-11-17 |
Family
ID=73333176
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010795472.6A Pending CN111949420A (en) | 2020-08-10 | 2020-08-10 | Business operation flow control method, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111949420A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112768049A (en) * | 2021-01-28 | 2021-05-07 | 山东众阳健康科技集团有限公司 | State-based medical advice execution system construction method and system |
CN112799891A (en) * | 2021-01-15 | 2021-05-14 | 网易(杭州)网络有限公司 | iOS device test method, device, system, storage medium and computer device |
CN113315750A (en) * | 2021-04-15 | 2021-08-27 | 新华三大数据技术有限公司 | Kafka message issuing method, device and storage medium |
CN117176680A (en) * | 2023-11-02 | 2023-12-05 | 智业软件股份有限公司 | Time limit quality control system and method based on event driving |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130066946A1 (en) * | 2011-09-09 | 2013-03-14 | Oracle International Corporation | System and method for providing a dynamic invocation and service interface for use in a middleware or other environment |
CN106385435A (en) * | 2016-08-30 | 2017-02-08 | 乐视控股(北京)有限公司 | Service treatment method and system of service system |
CN108289118A (en) * | 2017-12-12 | 2018-07-17 | 北京奇艺世纪科技有限公司 | A kind of management method and device of distributed message stream |
CN108600092A (en) * | 2018-05-03 | 2018-09-28 | 山东汇贸电子口岸有限公司 | A kind of software systems cooperation device and method based on event message mechanism |
CN109739654A (en) * | 2018-08-10 | 2019-05-10 | 比亚迪股份有限公司 | Message-oriented middleware and method for message transmission |
-
2020
- 2020-08-10 CN CN202010795472.6A patent/CN111949420A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130066946A1 (en) * | 2011-09-09 | 2013-03-14 | Oracle International Corporation | System and method for providing a dynamic invocation and service interface for use in a middleware or other environment |
CN106385435A (en) * | 2016-08-30 | 2017-02-08 | 乐视控股(北京)有限公司 | Service treatment method and system of service system |
CN108289118A (en) * | 2017-12-12 | 2018-07-17 | 北京奇艺世纪科技有限公司 | A kind of management method and device of distributed message stream |
CN108600092A (en) * | 2018-05-03 | 2018-09-28 | 山东汇贸电子口岸有限公司 | A kind of software systems cooperation device and method based on event message mechanism |
CN109739654A (en) * | 2018-08-10 | 2019-05-10 | 比亚迪股份有限公司 | Message-oriented middleware and method for message transmission |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112799891A (en) * | 2021-01-15 | 2021-05-14 | 网易(杭州)网络有限公司 | iOS device test method, device, system, storage medium and computer device |
CN112768049A (en) * | 2021-01-28 | 2021-05-07 | 山东众阳健康科技集团有限公司 | State-based medical advice execution system construction method and system |
CN112768049B (en) * | 2021-01-28 | 2023-11-14 | 众阳健康科技集团有限公司 | Construction method and system of doctor's advice execution system based on state |
CN113315750A (en) * | 2021-04-15 | 2021-08-27 | 新华三大数据技术有限公司 | Kafka message issuing method, device and storage medium |
CN113315750B (en) * | 2021-04-15 | 2022-05-27 | 新华三大数据技术有限公司 | Kafka message issuing method, device and storage medium |
CN117176680A (en) * | 2023-11-02 | 2023-12-05 | 智业软件股份有限公司 | Time limit quality control system and method based on event driving |
CN117176680B (en) * | 2023-11-02 | 2024-02-23 | 智业软件股份有限公司 | Time limit quality control system and method based on event driving |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111949420A (en) | Business operation flow control method, terminal equipment and storage medium | |
US20050182779A1 (en) | Method and system for storing and retrieving document data using a markup language string and a serialized string | |
CN110554958A (en) | Graph database testing method, system, device and storage medium | |
CN110275861A (en) | Date storage method and device, storage medium, electronic device | |
CN110069366A (en) | A kind of reloading method, apparatus and server | |
CN114490642A (en) | Patient master index generation method, apparatus and medium | |
CN110889013B (en) | Data association method, device, server and storage medium based on XML | |
US20180374047A1 (en) | Computing framework for compliance report generation | |
CN112131851B (en) | Target electronic medical record template generation method and device | |
CN114005498A (en) | Clinical test data logic checking method and device, equipment and storage medium | |
CN110070925A (en) | A kind of generation method of electronic health record, device and electronic equipment | |
CN101546395A (en) | Method and equipment for generating service process model and method for identifying status field | |
CN112204527A (en) | Method and system for processing engineering data in a multi-engineering system environment | |
US20150106116A1 (en) | System and method for obtaining and utilizing audits from disparate sources | |
CN114691768A (en) | Data processing method, accounting system and related equipment | |
CN113313492A (en) | Electronic certificate generation method and related device | |
US20080294645A1 (en) | System, method and computer program product for EDI-to-EDI translations | |
CN112650911A (en) | Service message issuing method, device, computer equipment and storage medium | |
CN113190463B (en) | Code testing method, node and system | |
CN111652747B (en) | Electronic policy processing method, device, equipment and computer readable storage medium | |
CN114443647A (en) | Method and device for processing data and storage medium | |
CN117331997A (en) | Recording data generation method, device, platform, equipment and readable storage medium | |
CN116150244A (en) | Database adaptation method, system, terminal equipment and storage medium | |
CN117455697A (en) | General reconciliation data processing method and system based on business attribute modeling | |
CN115576934A (en) | Data management method and device and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 361000 unit 404, No. 24, guanri Road, phase II, software park, Xiamen, Fujian Applicant after: XIAMEN ZHIYE SOFTWARE ENGINEERING CO.,LTD. Address before: 361000 No.24 guanri Road, Siming District, Xiamen City, Fujian Province Applicant before: XIAMEN ZHIYE SOFTWARE ENGINEERING CO.,LTD. |