CN116957491A - Service early warning method, system, equipment and medium - Google Patents
Service early warning method, system, equipment and medium Download PDFInfo
- Publication number
- CN116957491A CN116957491A CN202310815825.8A CN202310815825A CN116957491A CN 116957491 A CN116957491 A CN 116957491A CN 202310815825 A CN202310815825 A CN 202310815825A CN 116957491 A CN116957491 A CN 116957491A
- Authority
- CN
- China
- Prior art keywords
- early warning
- service
- strategy
- target service
- information
- 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
- 238000000034 method Methods 0.000 title claims abstract description 65
- 238000012544 monitoring process Methods 0.000 claims abstract description 17
- 238000012795 verification Methods 0.000 claims abstract description 7
- 230000001360 synchronised effect Effects 0.000 claims description 16
- 238000012545 processing Methods 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims 1
- 230000008878 coupling Effects 0.000 abstract description 5
- 238000010168 coupling process Methods 0.000 abstract description 5
- 238000005859 coupling reaction Methods 0.000 abstract description 5
- 239000003814 drug Substances 0.000 description 19
- 230000008569 process Effects 0.000 description 17
- 229940079593 drug Drugs 0.000 description 16
- 230000005540 biological transmission Effects 0.000 description 7
- 238000007726 management method Methods 0.000 description 5
- 230000004044 response Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 201000010099 disease Diseases 0.000 description 3
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 3
- 238000001802 infusion Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 241000208340 Araliaceae Species 0.000 description 2
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 2
- 235000003140 Panax quinquefolius Nutrition 0.000 description 2
- 230000000903 blocking effect Effects 0.000 description 2
- 230000000747 cardiac effect Effects 0.000 description 2
- 239000003795 chemical substances by application Substances 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000003745 diagnosis Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000005429 filling process Methods 0.000 description 2
- 235000008434 ginseng Nutrition 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000001105 regulatory effect Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000012550 audit Methods 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 238000007654 immersion Methods 0.000 description 1
- 206010022000 influenza Diseases 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 239000012567 medical material Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000002604 ultrasonography Methods 0.000 description 1
- 239000013598 vector Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
-
- 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)
- Human Resources & Organizations (AREA)
- Strategic Management (AREA)
- Health & Medical Sciences (AREA)
- Theoretical Computer Science (AREA)
- General Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Entrepreneurship & Innovation (AREA)
- General Physics & Mathematics (AREA)
- Economics (AREA)
- Computational Linguistics (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Marketing (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Tourism & Hospitality (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Biomedical Technology (AREA)
- Epidemiology (AREA)
- Medical Informatics (AREA)
- Primary Health Care (AREA)
- Public Health (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The application relates to the field of intelligent medical treatment, and discloses a business early warning method, which comprises the following steps: acquiring service information corresponding to a target service to be configured with early warning, and checking the service information, wherein the service information comprises a service identifier; if the verification is passed, generating a key file corresponding to the service information; generating an early warning strategy corresponding to the target service according to a preset strategy configuration template; and establishing and executing an early warning task according to the early warning strategy by utilizing the key file, wherein the early warning task comprises monitoring the target service, and generating early warning information and sending the early warning information to a preset early warning client if the target service is monitored to meet the early warning judgment condition in the early warning strategy. The method solves the problems of high service complexity and difficult updating of the early warning rule caused by the strong service coupling of the existing early warning method.
Description
Technical Field
The application relates to the field of intelligent medical treatment, in particular to a business early warning method, a business early warning system, business early warning equipment and business early warning media.
Background
The application of the early warning strategy in the business system in the medical field has great necessity. Medical services are a special service industry, and regarding the health and life of the people, any flaw may have irreparable consequences. Therefore, potential abnormality and risk can be detected in time in the running process of the system through the early warning strategy technology, continuous occurrence of accidents is avoided, and safety and quality of medical industry are improved. For example, by monitoring the data information of the medical system, relevant staff is timely notified when the residual quantity of certain medical resources is too low, so that the allocation and use of the medical resources are optimized, and the utilization rate of the medical resources is improved.
In the traditional early warning method, mostly, check sum early warning buried points are added in the logic process of the service, however, the method can lead to strong coupling of an early warning mechanism and the service, and along with the development of the service, the early warning rule also changes, and the version of the service system needs to be reissued and followed in time. Therefore, the method deepens the complexity of the service and also increases the difficulty of updating the early warning rule of the old system.
Disclosure of Invention
In view of the above, the application provides a service early warning method, a system, a medium and equipment, which solve the problems of high service complexity and difficult updating of early warning rules caused by the strong service coupling of the existing early warning method.
The application provides a service early warning method, which comprises the following steps:
acquiring service information corresponding to a target service to be configured with early warning, and checking the service information, wherein the service information comprises a service identifier;
if the verification is passed, generating a key file corresponding to the service information;
generating an early warning strategy corresponding to the target service according to a preset strategy configuration template;
and establishing and executing an early warning task according to the early warning strategy by using the key file, wherein the early warning task comprises monitoring the target service, and generating early warning information and sending the early warning information to a preset early warning client if the target service is monitored to meet the early warning judgment condition in the early warning strategy.
In a second aspect of the present application, there is provided a service early warning system, the system comprising:
the access module is used for acquiring service information corresponding to a target service to be configured with early warning and checking the service information, wherein the service information comprises a service identifier; if the auditing is passed, generating a key file corresponding to the service information;
the strategy module is used for generating an early warning strategy corresponding to the target service according to a preset strategy configuration template;
and the early warning module is used for establishing and executing an early warning task according to the early warning strategy by utilizing the key file, wherein the early warning task comprises monitoring the target service, and generating early warning information and sending the early warning information to a preset early warning client if the target service is monitored to meet the early warning judgment condition in the early warning strategy.
In a third aspect of the present application, there is provided an apparatus, including a storage medium, a processor, and instructions or codes stored on the storage medium and executable on the processor, where the processor implements the service early warning method described above when executing the instructions or codes.
In a fourth aspect of the present application, a medium is provided, on which instructions or codes are stored, the instructions or codes implementing the service early warning method described above when executed by a processor.
According to the scheme of the service early warning method, the system, the equipment and the medium, an intrusion-free mode is adopted, the early warning rule is not written in a service system where a target service is located, an independent early warning system is arranged, and connection between the early warning system and the target service is established through a data transmission interface. In an actual application scene, an early warning strategy corresponding to a target service is generated in an early warning system by using a preset template, then an early warning task is established and executed based on the early warning strategy, parameters to be monitored in the target service are monitored in real time and operated according to the parameters, if an operation result is a trigger early warning judgment condition, an early warning notification message is timely sent to an early warning client, and the safety and quality of a medical service are effectively improved. The coupling between the early warning mechanism established by the mode and the actual service is lower, if the actual service is regulated, the early warning rule is changed along with the regulation, and the early warning task is only needed to be re-established and executed by modifying the early warning strategy, and links such as modifying the early warning related codes in the service system and testing and publishing are not needed, so that the complexity of the service system is not increased by the addition and modification of the early warning rule, and the updating difficulty of the early warning rule of the service system is lower.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments of the present application will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a flow diagram of a service early warning method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of another service early warning method according to an embodiment of the present application;
fig. 3 is a schematic flow chart of an early warning task of another service early warning method according to an embodiment of the present application;
fig. 4 is a schematic flow chart of another service early warning method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a service early warning system according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The business early warning method provided by the embodiment of the application can be applied to the electronic equipment with the instruction or program running capability. The electronic device may be, but is not limited to, various servers, workstations, personal computers, notebook computers, and the like. Running on different computing devices is merely a difference in the implementation subject, and those skilled in the art will envision that running on different computing devices can produce the same technical effect. The present application will be described in detail with reference to specific examples.
Referring to fig. 1, fig. 1 is a schematic flow chart of a service early warning method according to an embodiment of the present application, including the following steps:
s101: and acquiring service information corresponding to the target service to be configured with the early warning, and checking the service information, wherein the service information comprises a service identifier.
The method provided by the application can be used for business early warning in the medical field, optimizing the allocation and use of medical resources, improving the safety of medical enterprises, for example, monitoring the stock quantity of each medical instrument in an inventory system in real time, if the consumption quantity of a certain medical instrument is greatly increased in a short time, the medical instrument can be considered to be consumed when a certain epidemic disease is likely to occur at present, and if the stock quantity is not high at this time, early warning information can be timely generated and related management staff can be notified.
In this embodiment, the early warning configuration is implemented in a non-invasive manner, and the code for the early warning policy is not added or modified in the service system, but the early warning configuration and execution are performed in a separate early warning system. Specifically, in this step, first, service information corresponding to a target service to be configured with early warning is acquired, where the service information includes a service identifier, and the target service can be uniquely located by the service identifier.
In addition, due to the specificity of the medical industry, the data security and compliance are required, so before the target service is accessed and pre-warned, the target service is checked from various aspects such as service, technology and the like. For example, whether the data transmission between the target service and the early warning system is safe and reliable or not can be checked, and whether the data privacy protection, sensitive data encryption and other data security problems are considered or not; the stability, reliability, maintainability and other operation and maintenance guarantee conditions of the data transmission interface between the target service and the early warning system can be checked; and the method can also check whether the legal compliance of the target business access meets the requirements of national laws and regulations and related standard specifications, and has perfect safety compliance system, industry authentication and the like.
S102: and if the verification is passed, generating a key file corresponding to the service information.
In this step, if the audit is passed, it is considered that data interaction can be achieved from the technical level, and the data interaction is compliant and safe from the service level. Thus, a key file corresponding to the service information is generated, an authorization operation is performed, and a key is assigned thereto. The key has uniqueness, and can be used for identifying and verifying the identity of the key file when the data is interacted between the early warning system and the service system.
S103: and generating an early warning strategy corresponding to the target service according to the preset strategy configuration template.
In the step, a template is configured by utilizing a preset strategy, and fields required in the template are filled according to a format specified in the template so as to generate an early warning strategy corresponding to the template service.
For example, the template may include an early warning policy ID, a policy basic rule, etc., where the early warning policy ID may be automatically generated, and the policy basic rule may be filled according to an actual requirement of a target service, for example, the foregoing early warning policy for the stock quantity of each medical apparatus in the inventory system may be filled with the policy basic rule: and when the consumption of a certain medical instrument is continuously increased in the last week and the current stock quantity of the medical instrument is smaller than a preset alarm line, generating early warning information.
S104: and establishing and executing an early warning task according to the early warning strategy by utilizing the key file, wherein the early warning task comprises monitoring the target service, and generating early warning information and sending the early warning information to a preset early warning client if the target service is monitored to meet the early warning judgment condition in the early warning strategy.
In the step, after the early warning strategy is generated, a corresponding early warning task is established, and the rights provided by the key file are utilized to monitor the target service so as to execute the early warning task. Specifically, the execution process of the early warning task is as follows, corresponding data in the target service is monitored in real time according to the early warning strategy, and whether the early warning judgment condition is met is judged according to the monitored data. If yes, triggering early warning, generating early warning information, and sending the early warning information to a preset early warning client in a mode of short message, mail or client pushing and the like so as to prompt relevant staff to process in time.
The embodiment adopts a non-invasive mode, does not write the early warning rule in a service system where the target service is located, but sets a separate early warning system, and establishes connection between the early warning system and the target service through a data transmission interface. In an actual application scene, an early warning strategy corresponding to a target service is generated in an early warning system by using a preset template, then an early warning task is established and executed based on the early warning strategy, parameters to be monitored in the target service are monitored in real time and operated according to the parameters, if an operation result is a trigger early warning judgment condition, an early warning notification message is timely sent to an early warning client, and the safety and quality of a medical service are effectively improved. The coupling between the early warning mechanism established by the mode and the actual service is lower, if the actual service is regulated, the early warning rule is changed along with the regulation, and the early warning task is only needed to be re-established and executed by modifying the early warning strategy, and links such as modifying the early warning related codes in the service system and testing and publishing are not needed, so that the complexity of the service system is not increased by the addition and modification of the early warning rule, and the updating difficulty of the early warning rule of the service system is lower.
Further, as a refinement and extension of the specific implementation manner of the foregoing embodiment, in order to fully describe the specific implementation process of the embodiment, other service early warning methods are provided, as shown in fig. 2, and another service early warning method includes the following steps:
s201: and acquiring service information corresponding to the target service to be configured with the early warning, and checking the service information, wherein the service information comprises a service identifier.
In addition, the service information further comprises an access type, wherein the access type is synchronous access or asynchronous access.
Specifically, the service information includes an access type in addition to the service identification. If the access type is synchronous access, the service system sends a request for monitoring whether early warning or not to the early warning system when executing the target service, and waits for the response of the early warning system. In the synchronous access process, the service system blocks the response of the waiting early warning system, and the subsequent operation of the target service can be continued only after the response is obtained. If the access type is asynchronous access, the service system sends a request for monitoring whether the early warning is performed or not to the early warning system, but does not wait for a response after the request is sent, and immediately continues to execute the subsequent operation of the target service.
It will be appreciated that synchronous access is relatively fast in terms of data transmission efficiency, but is prone to request blocking and system resource wastage under high concurrency and high load. The asynchronous access avoids the problems of blocking of the request and overhigh system load by means of asynchronous communication, and can flexibly process tasks in a message queue so as to achieve high processing efficiency of concurrent requests. The developer can flexibly select the proper access type according to the actual requirement. For example, a synchronous access mode can be adopted for a temperature and humidity monitoring system of a ward and a drug warehouse, so that the system can be used for processing when the temperature and humidity are abnormal as soon as possible; and the inventory management system for the drug warehouse can adopt an asynchronous access mode to reduce the load.
S202: and if the verification is passed, generating a key file corresponding to the service information.
S203: and generating an early warning strategy corresponding to the target service according to the preset strategy configuration template.
The preset strategy configuration template at least comprises a strategy name, a parameter entering mode, a parameter exiting mode, an early warning judging mode, a notification mode and an early warning client field.
Specifically, the preset policy configuration template may include a plurality of fields, and a corresponding early warning policy may be generated only by filling each field according to an actual service requirement. For example, a policy name may concisely identify the purpose of the pre-warning policy, and a string format may be populated during a particular population; the input parameters can be specific numerical values, can also be in other formats such as character strings, vectors, lists and the like, and can be filled in the acquisition mode of the input parameters in the specific filling process; the parameter output is a parameter obtained by calculating according to the parameter input, and in the specific filling process, the operation method can be filled; the early warning judging mode is a specific judging condition for judging whether to trigger early warning or not; the notification mode is a specific mode of sending the early warning to the early warning client, and can be a short message notification, a mail notification, a client application popup notification and the like; the early warning clients are clients for receiving early warning, one or more early warning clients can be configured for each early warning strategy, specific filling content can be determined according to a notification mode, if the notification mode is a short message notification, the early warning clients can be filled with mobile phone numbers, if the notification mode is a mail notification, the early warning clients can be filled with mailbox addresses, if the notification mode is a client application popup notification, the early warning clients can be filled with client network addresses or host names and the like.
In addition, the preset policy configuration template may further include other fields, for example, a policy type, an early warning mode, and the like.
In a specific application scenario, the following format may be used for the participation: { key: ", valueType:" string ", valueFormat:" input; the valueType identifies the data type of the input parameter, such as string character string, object and other types, and the valueFormat identifies the value taking mode of the input parameter, such as input, query of sql query through sql statement, and then use jsonPath statement processing and other value taking modes. The format of the outgoing ginseng is the same as that of the incoming ginseng, and will not be described here again.
S204: and establishing an early warning task corresponding to the target service according to the early warning strategy by utilizing the key file.
S205: and if the number of the early warning strategies is smaller than a preset grouping threshold value, executing an early warning task.
S206: if the number of the early warning strategies is larger than or equal to a preset grouping threshold, grouping the early warning strategies, decomposing the early warning task into a plurality of subtasks according to the early warning strategy group, distributing the subtasks to different servers, and executing the subtasks concurrently.
In steps S204-S206, in the practical application process, since there may be many target services to be monitored, each target service may also need to monitor multiple indicators, and thus multiple early warning strategies may be configured. If a single server monitors each index to be monitored in all target services, the load of I/O data transmission and operand exceeding may be caused, early warning cannot be performed in time, and medical safety is affected.
Based on the method, a plurality of early warning tasks can be distributed, and a single early warning task can be fragmented. Specifically, an early warning task is established for each target service, and if a plurality of target services in the hospital inventory management system are monitored at the same time, a plurality of early warning tasks are established, and the plurality of early warning tasks can be executed on the same server or on different servers.
For example, the inventory level of a hospital inventory management system is monitored as a target business for which a plurality of different pre-alarm strategies may be set, such as pre-alarm strategies for surgical instrument inventory, cardiac pacemaker inventory, implantable drug pumps, monitors, infusion pumps, ventilators, electrocardiographs, ultrasound devices, syringes, tourniquets, sterilants, infusers, regular drugs, and specialty drugs. At this time, the number of the early warning strategies is too large, so that the early warning strategies can be grouped, for example, the early warning strategies aiming at the stock of surgical instruments, the stock of cardiac pacemakers and the stock of implanted drug pumps are classified into high-value consumable stock early warning strategy groups, the early warning strategies aiming at monitors, infusion pumps, respirators, electrocardiographs and ultrasonic equipment are classified into diagnosis and treatment equipment stock early warning strategy groups, and the early warning strategies aiming at syringes, tourniquets, sterilizers and infusion equipment are classified into diagnosis and treatment tool stock early warning strategy groups, and the early warning strategies aiming at conventional drugs and special drugs are classified into medical drug stock early warning strategy groups. And then the early warning task is fragmented according to the partitioned early warning strategy group, so as to obtain a plurality of subtasks. Each subtask is assigned to a different server, and multiple servers can concurrently execute the subtasks to monitor inventory conditions within each group, respectively. For example, a certain server is used for executing subtasks corresponding to the high-value consumable inventory early warning strategy group, and if the recent increase of the consumption of surgical instruments and the lower inventory are monitored, early warning is timely carried out to inform a worker to order for an inventory for replenishment.
As shown in fig. 3, in step S204, the early warning task includes the following steps:
s2040: the access type is read.
S2041: judging whether the access type is synchronous access or not; if the access type is synchronous access, jumping to step S2042; if the access type is asynchronous access, the process goes to step S2044.
S2042: if the access type is synchronous access, configuring an early warning check interface so that a service system corresponding to the target service invokes an early warning strategy through the early warning check interface.
S2043: receiving an entry parameter sent by a service system, wherein the entry parameter is obtained according to an early warning strategy; the process goes to step S2046.
In steps S2042-S2043, access parameters are acquired in different manners according to different access types. Specifically, if the access type is synchronous access, an early warning check interface is configured for each early warning strategy, and the interface can be used for carrying out data transmission between the early warning system and the service system based on the early warning strategy. And when the service system executes the target service, calling an early warning strategy through the early warning check interface, taking the input parameters in the service system according to the early warning strategy, and sending the input parameters to the early warning system through the early warning check interface. The early warning system receives the input parameters sent by the service system, and can obtain the output parameters according to the input parameters operation, so as to judge whether the early warning needs to be sent.
S2044: if the access type is asynchronous access, asynchronously inquiring the issued strategy list and writing each inquired early warning strategy into the cache.
S2045: and acquiring an early warning strategy corresponding to the target service in the cache, and acquiring an incoming parameter from a service system corresponding to the target service according to the early warning strategy.
In step S2044-S2045, if the access type is asynchronous access, the issued policy list may be queried and the pre-warning policies in the list may be written into the cache. In the asynchronous access type, the access parameters corresponding to the early warning strategies in the service system can be actively acquired, then the early warning strategies are directly read in the cache to judge, and the storage and inquiry of the early warning strategies are not needed, so that the response efficiency of the asynchronous access can be improved.
S2046: and processing the input parameters according to the early warning strategy to obtain the output parameters.
In the step, according to a specific acquisition method of the outgoing parameters configured in the early warning strategy, the incoming parameters are calculated to obtain the outgoing parameters.
For example, for the entry of the parameter { "key": "a", valueType: "string", valueFormat: "input @1" }, and the exit of the parameter { "key": "r1", valueType: "string", valueFormat: "result @ jsonPath expression" }. The input parameter is input, and the output parameter is obtained by processing the input parameter by using a jsonPath statement.
S2047: and taking the early warning judgment mode as a relation operator, and establishing a relation by using the parameter, the relation operator and a preset early warning threshold.
S2048: if the relation is established, judging that the early warning judgment condition is met, otherwise, judging that the early warning judgment condition is not met.
In step S2047-S2048, the early warning judgment method may be equal to, unequal to, greater than, less than, including, not including, etc. the relational operators. The relation can be established by using parameter, relation operator and preset early warning threshold, for example, the following relation can be established for early warning of the medicine usage: result @ r1|GREATER|100. In the relational expression, r1 is a parameter, GREATER (GREATER than) is a preset judgment mode, 100 is a preset early warning threshold, and the relational expression is established when the parameter is GREATER than 100.
If the relation is established, that is, the parameter is greater than 100, the early warning judgment condition is met, so that early warning is triggered, and corresponding early warning information is sent to a preset early warning client to remind relevant personnel to process in time.
Wherein, the r1 parameter can be obtained by the following steps: { "key": "r1", valueType: "string", valueFormat: "sqlQuery @ sql statement @ jsonPath expression" }, sql statement (select from tb_use_ Log where channel =% s and TO_DAYS (NOW ()) -TO_DAYS (time field name) < = 1 gmt_created)), and the output parameters process the drug consumption record table into the parameters with the sql statement TO obtain the daily drug consumption.
And (3) taking part in the joint use of the relation expression of r1, meeting early warning judgment conditions when the yesterday medicine consumption is more than 100, and sending out corresponding early warning notification information. By setting the consumption early warning, hospitals can analyze and estimate the development condition of recent epidemic diseases such as influenza and the like, prepare sufficient medicines and medical instruments in advance, and purposefully schedule doctors in related departments so as to improve the utilization rate of medical resources and more effectively solve the problem of insufficient medical resources caused by the multiple epidemic diseases.
S2049: if the target service is monitored to meet the early warning judgment conditions in the early warning strategy, early warning information is generated and sent to a preset early warning client.
In the step, if the early warning judgment condition is judged to be met through the analysis, the early warning is triggered, and early warning information corresponding to the early warning strategy is generated and sent to a preset early warning client. The early warning information can comprise contents such as a target service name, an early warning strategy name, a parameter value, a preset early warning threshold value and the like, and related personnel receiving the notification message can accurately and timely locate a position where early warning is generated and take different solving measures according to the magnitude relation between the parameter value and the preset early warning threshold value.
For example, for the foregoing early warning policy of yesterday drug consumption, if it is monitored that the early warning judgment condition is satisfied, the following early warning information may be generated: { target traffic: drug consumption, early warning strategy: yesterday medicine consumption early warning, parameter value: 150, presetting an early warning threshold: 100, after receiving the early warning information, the relevant staff can contact the drug agent supplier in time to inform the drug agent supplier of increasing the supply quantity. If the early warning information with the output parameter value of 1000 is received, the management department can be informed that the risk of pandemic outbreak possibly exists because the output parameter value is far greater than the preset early warning threshold value, so that hospitals can prepare needed medical materials and manpower early.
Fig. 4 is a schematic flow chart of another service early warning method of the present application, where the task can be fragmented under the condition that the early warning task is too huge and exceeds the load of the server, and each subtask is used to execute the early warning policy in the corresponding early warning policy group, so as to implement the grouping concurrent execution of the early warning policies. In the specific execution process, firstly analyzing the early warning strategy, then calling data in the service system as an input parameter according to the early warning strategy, executing corresponding operation according to the input parameter, the output parameter, the early warning judgment mode and the like to obtain an operation result, judging that the early warning monitoring point corresponding to the target service is hit if the operation result shows that the early warning judgment condition is met, generating early warning notification information and sending the early warning notification information to a user, otherwise, not processing and continuing to monitor until the hit early warning monitoring point is monitored, and early warning is carried out to the user.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Compared with the traditional early warning method, the method has the advantages that the non-invasive service early warning system is arranged, the early warning rule is not modified in the service system in a code modifying mode, the early warning strategy is directly configured in the early warning system, and data are acquired from the service system to judge whether the early warning is triggered or not. The method does not need service layer access in the whole course, has no service immersion, and can be well adapted to history service. In addition, the general preset strategy template can be used for conveniently and rapidly generating and distributing the early warning strategy to be executed without stopping the service in the service system, and updating and releasing the service system, so that the dynamic configuration of the early warning strategy can be realized, the configuration process has no influence on the service system, and the expansion and updating of the early warning strategy are more convenient. On the basis, the embodiment also designs two access modes of synchronous access and asynchronous access, and can flexibly select a proper access mode according to specific use scenes, thereby being beneficial to meeting the requirement of diversity.
In an embodiment, a service early warning system is provided, where the service early warning system corresponds to the service early warning method in the foregoing embodiment one by one. As shown in fig. 5, the service early warning system includes: the system comprises an access module, a strategy module and an early warning module. The functional modules are described in detail as follows:
the access module is used for acquiring service information corresponding to a target service to be configured with early warning and checking the service information, wherein the service information comprises a service identifier; if the auditing is passed, generating a key file corresponding to the service information;
the strategy module is used for generating an early warning strategy corresponding to the target service according to a preset strategy configuration template;
and the early warning module is used for establishing and executing an early warning task according to an early warning strategy by utilizing the key file, wherein the early warning task comprises monitoring a target service, and generating early warning information and sending the early warning information to a preset early warning client if the monitored target service meets the early warning judgment condition in the early warning strategy.
In one embodiment, the early warning module is for:
establishing an early warning task corresponding to the target service;
if the number of the early warning strategies is smaller than a preset grouping threshold value, executing an early warning task;
if the number of the early warning strategies is larger than or equal to a preset grouping threshold, grouping the early warning strategies, decomposing the early warning task into a plurality of subtasks according to the early warning strategy group, distributing the subtasks to different servers, and executing the subtasks concurrently.
In one embodiment, the preset policy configuration template at least includes a policy name, a parameter entering, a parameter exiting, an early warning judgment mode, a notification mode, and an early warning client field.
In one embodiment, the service information further includes an access type, wherein the access type is synchronous access or asynchronous access;
accordingly, the early warning module is used for:
and reading the input parameters according to the access type, processing the input parameters according to the early warning strategy to obtain the output parameters, and judging whether the input parameters meet the early warning judgment conditions.
In one embodiment, the early warning module is for:
if the access type is synchronous access, configuring an early warning check interface so that a service system corresponding to the target service invokes an early warning strategy through the early warning check interface;
and receiving an entry parameter sent by the service system, wherein the entry parameter is obtained according to an early warning strategy.
In one embodiment, the early warning module is for:
if the access type is asynchronous access, asynchronously inquiring the issued strategy list and writing each inquired early warning strategy into a cache;
and acquiring an early warning strategy corresponding to the target service in the cache, and acquiring an incoming parameter from a service system corresponding to the target service according to the early warning strategy.
In one embodiment, the early warning judgment mode is one of the following: equal to, not equal to, greater than, less than, inclusive of, not inclusive of;
accordingly, the early warning module is used for:
taking the early warning judging mode as a relation operator, and establishing a relation by utilizing the parameter outputting, relation operator and a preset early warning threshold;
if the relation is established, judging that the early warning judgment condition is met, otherwise, judging that the early warning judgment condition is not met.
In one embodiment, an electronic device is provided, where the electronic device may be a computer, a server, a workstation, a mobile device such as a mobile phone, a tablet, a vehicle mobile terminal, or other devices with program execution capability, and the internal structure of the electronic device may be as shown in fig. 5. The electronic device includes a processor, a memory, and a network module. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic device includes non-volatile and/or volatile storage media and internal memory. The non-volatile storage medium stores an operating system, instructions or code. The internal memory provides an environment for the execution of an operating system and instructions or code in a non-volatile storage medium. The instructions or code, when executed by the processor, implement the functions or steps of a business pre-warning method as described above. The network module of the electronic device may include a network interface and/or a wireless network module through which the electronic device may communicate with other devices or service platforms. In addition, the electronic device may further include a display screen, an input device, and the like.
In one embodiment, an electronic device is provided that includes a memory, a processor, and instructions or code stored on the memory and executable on the processor, the processor implementing the following steps when executing the instructions or code:
acquiring service information corresponding to a target service to be configured with early warning, and checking the service information, wherein the service information comprises a service identifier;
if the verification is passed, generating a key file corresponding to the service information;
generating an early warning strategy corresponding to the target service according to a preset strategy configuration template;
and establishing and executing an early warning task according to the early warning strategy by utilizing the key file, wherein the early warning task comprises monitoring the target service, and generating early warning information and sending the early warning information to a preset early warning client if the target service is monitored to meet the early warning judgment condition in the early warning strategy.
In one embodiment, a storage medium having instructions or code stored thereon which when executed by a processor perform the steps of:
acquiring service information corresponding to a target service to be configured with early warning, and checking the service information, wherein the service information comprises a service identifier;
if the verification is passed, generating a key file corresponding to the service information;
generating an early warning strategy corresponding to the target service according to a preset strategy configuration template;
and establishing and executing an early warning task according to the early warning strategy by utilizing the key file, wherein the early warning task comprises monitoring the target service, and generating early warning information and sending the early warning information to a preset early warning client if the target service is monitored to meet the early warning judgment condition in the early warning strategy.
It should be noted that, the functions or steps that can be implemented by the storage medium or the electronic device may be referred to correspondingly with the descriptions in the foregoing method embodiments, and will not be described herein again for avoiding repetition.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by instructing the associated hardware by instructions or code that may be stored on a non-volatile readable storage medium that, when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the system is divided into different functional units or modules to perform all or part of the above-described functions.
Those skilled in the art will appreciate that the drawing is merely a schematic illustration of one preferred implementation scenario and that elements or processes in the drawing are not necessarily required to practice the application. Those skilled in the art will appreciate that elements of a system in an implementation may be distributed throughout the system in an implementation as described in the implementation, or that corresponding variations may be located in one or more systems other than the implementation. The units of the implementation scenario may be combined into one unit, or may be further split into a plurality of sub-units.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.
Claims (10)
1. A business pre-warning method, characterized in that the method comprises:
acquiring service information corresponding to a target service to be configured with early warning, and checking the service information, wherein the service information comprises a service identifier;
if the verification is passed, generating a key file corresponding to the service information;
generating an early warning strategy corresponding to the target service according to a preset strategy configuration template;
and establishing and executing an early warning task according to the early warning strategy by using the key file, wherein the early warning task comprises monitoring the target service, and generating early warning information and sending the early warning information to a preset early warning client if the target service is monitored to meet the early warning judgment condition in the early warning strategy.
2. The method of claim 1, wherein the establishing and performing the pre-warning task comprises:
establishing an early warning task corresponding to the target service;
if the number of the early warning strategies is smaller than a preset grouping threshold value, executing the early warning task;
if the number of the early warning strategies is larger than or equal to a preset grouping threshold, grouping a plurality of early warning strategies, decomposing the early warning task into a plurality of subtasks according to the early warning strategy group, distributing the subtasks to different servers, and concurrently executing the subtasks.
3. The method of claim 1, wherein the preset policy configuration template comprises at least a policy name, a parameter entry, a parameter exit, a warning judgment mode, a notification mode, and a warning client field.
4. The method of claim 3, wherein the traffic information further comprises an access type, wherein the access type is synchronous access or asynchronous access;
accordingly, the monitoring the target service includes:
and reading the incoming parameters according to the access type, processing the incoming parameters according to the early warning strategy to obtain the outgoing parameters, and judging whether the outgoing parameters meet the early warning judgment conditions.
5. The method of claim 4, wherein the reading an entry according to the access type comprises:
if the access type is synchronous access, configuring an early warning check interface so that a service system corresponding to the target service invokes the early warning strategy through the early warning check interface;
and receiving the entry sent by the service system, wherein the entry is obtained according to the early warning strategy.
6. The method of claim 4, wherein the reading an entry according to the access type comprises:
if the access type is asynchronous access, asynchronously inquiring a published strategy list and writing each inquired early warning strategy into a cache;
and acquiring an early warning strategy corresponding to the target service from the cache, and acquiring the entry from a service system corresponding to the target service according to the early warning strategy.
7. The method of claim 4, wherein the early warning determination means is one of: equal to, not equal to, greater than, less than, inclusive of, not inclusive of;
correspondingly, the judging whether the parameter meets the early warning judging condition comprises the following steps:
taking the early warning judging mode as a relation operator, and establishing a relation by utilizing the parameter, the relation operator and a preset early warning threshold;
and if the relation is established, judging that the early warning judgment condition is met, otherwise, judging that the early warning judgment condition is not met.
8. A business early warning system, the system comprising:
the access module is used for acquiring service information corresponding to a target service to be configured with early warning and checking the service information, wherein the service information comprises a service identifier; if the auditing is passed, generating a key file corresponding to the service information;
the strategy module is used for generating an early warning strategy corresponding to the target service according to a preset strategy configuration template;
and the early warning module is used for establishing and executing an early warning task according to the early warning strategy by utilizing the key file, wherein the early warning task comprises monitoring the target service, and generating early warning information and sending the early warning information to a preset early warning client if the target service is monitored to meet the early warning judgment condition in the early warning strategy.
9. A storage medium having stored thereon a program or instructions which, when executed by a processor, implement the method of any of claims 1 to 7.
10. An electronic device comprising a storage medium, a processor and a computer program stored on the storage medium and executable on the processor, characterized in that the processor implements the method of any one of claims 1 to 7 when executing the program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310815825.8A CN116957491A (en) | 2023-07-04 | 2023-07-04 | Service early warning method, system, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310815825.8A CN116957491A (en) | 2023-07-04 | 2023-07-04 | Service early warning method, system, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116957491A true CN116957491A (en) | 2023-10-27 |
Family
ID=88445466
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310815825.8A Pending CN116957491A (en) | 2023-07-04 | 2023-07-04 | Service early warning method, system, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116957491A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117827684A (en) * | 2024-03-05 | 2024-04-05 | 数翊科技(北京)有限公司武汉分公司 | Early warning method and device for data calculation operation, electronic equipment and storage medium |
-
2023
- 2023-07-04 CN CN202310815825.8A patent/CN116957491A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117827684A (en) * | 2024-03-05 | 2024-04-05 | 数翊科技(北京)有限公司武汉分公司 | Early warning method and device for data calculation operation, electronic equipment and storage medium |
CN117827684B (en) * | 2024-03-05 | 2024-05-24 | 数翊科技(北京)有限公司武汉分公司 | Early warning method and device for data calculation operation, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11587660B2 (en) | Methods and systems for managing patient treatment compliance | |
US10720232B2 (en) | Distributed healthcare records management | |
US8548824B1 (en) | Systems and methods for notifying of duplicate product prescriptions | |
US10055547B2 (en) | Intermediate check points in medical care lines for automatically identifying care deficiencies | |
US10777312B2 (en) | Dynamic critical access override for medication dispensing apparatuses | |
CA2779325C (en) | Health care incident prediction | |
CN116957491A (en) | Service early warning method, system, equipment and medium | |
US20130018921A1 (en) | Need-to-know information access using quantified risk | |
CN104133688A (en) | Medical service inspection and investigation system and method | |
US20190303360A1 (en) | Database lock | |
Finnegan et al. | A security argument pattern for medical device assurance cases | |
Li et al. | Leveraging standards based ontological concepts in distributed ledgers: a healthcare smart contract example | |
US20160342749A1 (en) | Privacy awareness tool | |
US11302427B2 (en) | System and method for managing medicine prescriptions | |
US11996173B1 (en) | System and method for timely multi-channel notification of treatment | |
Strielkina et al. | Modeling and availability assessment of mobile healthcare IoT using tree analysis and queueing theory | |
Arunachalam et al. | Linking patient alone time and provider time to staffing levels and LOS at the emergency department: a RFID based study | |
CN115910265A (en) | Paperless medical record generation method and system for hospital | |
CN111584059B (en) | System monitoring method, device and computer equipment | |
CN113779337A (en) | Supervision data uploading method, device, equipment and storage medium | |
US20130340032A1 (en) | System and method for achieving compliance through a closed loop integrated compliance framework and toolkit | |
Kougka et al. | A Conceptual Model for Assessing Security and Privacy Risks in Healthcare Information Infrastructures: The CUREX Approach | |
Qian et al. | Precision of EMR data: the case for a drug and alcohol service | |
Finnegan et al. | Framework to assist healthcare delivery organisations and medical device manufacturers establish security assurance for networked medical devices | |
US20240105324A1 (en) | Medical item resupply engine and engagement controller |
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 |