Disclosure of Invention
In view of the above, it is necessary to provide a medical data abnormality detection method, apparatus, computer device, and storage medium capable of reducing the operating pressure of a server in response to the above technical problems.
A method of medical data anomaly detection, the method comprising:
receiving a medical data abnormity detection instruction, wherein the medical data abnormity detection instruction carries at least one to-be-detected case identifier, and searching corresponding to each to-be-detected case data according to each to-be-detected case identifier;
distributing each piece of case data to be detected to each target server according to each case identification to be detected, wherein the target servers are used for matching each piece of distributed case data to be detected by using a case category identification tree to obtain a case category corresponding to each piece of distributed case data to be detected;
acquiring a case category corresponding to each to-be-detected case data returned by each target server, searching a corresponding medicine normal use numerical value according to the case category, and comparing the medicine normal use numerical value with a medicine actual use numerical value in the corresponding to-be-detected case data;
and when the actual use value of the medicine in the target case data to be detected exceeds the normal use value of the medicine in the case category corresponding to the target case data to be detected, sending an abnormal prompt of the target case data to be detected to the target terminal.
In one embodiment, before receiving a medical data anomaly detection instruction, where the medical data anomaly detection instruction carries at least one to-be-detected case identifier, and searching for corresponding to-be-detected case data according to each to-be-detected case identifier, the method further includes:
acquiring historical case data, and dividing the historical case data according to disease codes to obtain each case group corresponding to the historical case data;
deleting historical case data of which the historical use value of the medicine exceeds the target value in each case group to obtain each target case group;
and performing binary division on the target case group according to the division conditions, obtaining a case category identification tree when the division completion conditions are met, and deploying the case category identification tree to each target server.
In one embodiment, deleting historical case data in which the historical usage value of the drug exceeds the target value in each case group to obtain each target case group comprises:
calculating quantiles of historical use values of the drugs in each case group, and calculating a first target value and a second target value corresponding to each case group according to the quantiles;
and obtaining a target numerical value area according to the second target numerical value and the second target numerical value, and deleting the historical case data of which the historical use numerical value is not in the target numerical value area when the historical use numerical value of the medicine in each case group is not in the target numerical value area to obtain each target case group.
In one embodiment, the step of distributing each piece of case data to be detected to each target server according to each piece of case identification to be detected, where the target server is configured to match each piece of distributed case data to be detected using a case category identification tree to obtain a case category corresponding to each piece of distributed case data to be detected includes:
and starting a parallel thread, inputting each case data to be detected into a case type identification tree by using the parallel thread for parallel identification, and obtaining each case type corresponding to each case data to be detected.
In one embodiment, allocating each piece of case data to be detected to each target server according to each case identifier to be detected includes:
and calculating the hash value of each to-be-detected case identifier, and distributing each to-be-detected case data to each target server according to the hash value.
A medical data anomaly detection apparatus, said apparatus comprising:
the data searching module is used for receiving a medical data abnormity detection instruction, the medical data abnormity detection instruction carries at least one to-be-detected case identifier, and searching corresponding to each to-be-detected case data according to each to-be-detected case identifier;
the data matching module is used for distributing each piece of case data to be detected to each target server according to each case identification to be detected, and the target servers are used for matching each piece of distributed case data to be detected by using a case category identification tree to obtain a case category corresponding to each piece of distributed case data to be detected;
the abnormality detection module is used for acquiring a case category corresponding to each to-be-detected case data returned by each target server, searching a corresponding medicine normal use value according to the case category, and comparing the medicine normal use value with a medicine actual use value in the corresponding to-be-detected case data;
and the abnormity prompting module is used for sending abnormity prompt of the target case data to be detected to the target terminal when the actual medicine use value in the target case data to be detected exceeds the normal medicine use value of the case category corresponding to the target case data to be detected.
In one embodiment, the apparatus further comprises:
the historical data dividing module is used for acquiring historical case data, dividing the historical case data according to the disease codes and obtaining each case group corresponding to the historical case data;
the data deleting module is used for deleting the historical case data of which the historical use value of the medicine exceeds the target value in each case group to obtain each target case group;
and the identification tree obtaining module is used for carrying out binary division on the target case group according to the division conditions, obtaining a case category identification tree when the division completion conditions are met, and deploying the case category identification tree to each target server.
In one embodiment, the data deleting module includes:
the target numerical value calculating unit is used for calculating the quantile of the historical use numerical values of the medicines in each case group and calculating a first target numerical value and a second target numerical value corresponding to each case group according to the quantile;
and the numerical value area judging unit is used for obtaining a target numerical value area according to the second target numerical value and the second target numerical value, and deleting the historical case data of which the historical use numerical value is not in the target numerical value area when the historical use numerical value of the medicine in each case group is not in the target numerical value area to obtain each target case group.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
receiving a medical data abnormity detection instruction, wherein the medical data abnormity detection instruction carries at least one to-be-detected case identifier, and searching corresponding to each to-be-detected case data according to each to-be-detected case identifier;
distributing each piece of case data to be detected to each target server according to each case identification to be detected, wherein the target servers are used for matching each piece of distributed case data to be detected by using a case category identification tree to obtain a case category corresponding to each piece of distributed case data to be detected;
acquiring a case category corresponding to each to-be-detected case data returned by each target server, searching a corresponding medicine normal use numerical value according to the case category, and comparing the medicine normal use numerical value with a medicine actual use numerical value in the corresponding to-be-detected case data;
and when the actual use value of the medicine in the target case data to be detected exceeds the normal use value of the medicine in the case category corresponding to the target case data to be detected, sending an abnormal prompt of the target case data to be detected to the target terminal.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving a medical data abnormity detection instruction, wherein the medical data abnormity detection instruction carries at least one to-be-detected case identifier, and searching corresponding to each to-be-detected case data according to each to-be-detected case identifier;
distributing each piece of case data to be detected to each target server according to each case identification to be detected, wherein the target servers are used for matching each piece of distributed case data to be detected by using a case category identification tree to obtain a case category corresponding to each piece of distributed case data to be detected;
acquiring a case category corresponding to each to-be-detected case data returned by each target server, searching a corresponding medicine normal use numerical value according to the case category, and comparing the medicine normal use numerical value with a medicine actual use numerical value in the corresponding to-be-detected case data;
and when the actual use value of the medicine in the target case data to be detected exceeds the normal use value of the medicine in the case category corresponding to the target case data to be detected, sending an abnormal prompt of the target case data to be detected to the target terminal.
According to the medical data anomaly detection method, the medical data anomaly detection device, the computer equipment and the storage medium, the case identification to be detected corresponding to the case identification to be detected is allocated to the target server for identification by obtaining each case identification to be detected, the case category returned by the target server is obtained, and the anomaly detection result of the case data to be detected is obtained by comparing the normal use value of the medicine corresponding to the case category with the actual use value of the medicine. The target server identifies the case types, so that the operating pressure of the server is reduced, and the downtime of the server is avoided. And the case type identification tree is used in the target server to identify the case type of the case data to be detected, so that the accuracy of obtaining the normal use numerical value of the medicine can be improved, and the accuracy of the abnormal detection result of the case data to be detected can be improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The medical data abnormality detection method provided by the application can be applied to the application environment shown in fig. 1. The terminal 102 and the server 104 communicate with each other through a network, and the server 104 and each target server communicate with each other through a network. The server 104 receives a medical data anomaly detection instruction sent by the terminal 102, the medical data anomaly detection instruction carries at least one to-be-detected case identifier, and corresponding to each to-be-detected case data is searched according to each to-be-detected case identifier; the server 104 distributes each piece of case data to be detected to each target server according to each piece of case identification to be detected, and the target servers are used for matching each piece of distributed case data to be detected by using a case category identification tree to obtain a case category corresponding to each piece of distributed case data to be detected; the server 104 acquires the case types corresponding to the case data to be detected returned by the target servers, searches corresponding medicine normal use values according to the case types, and compares the medicine normal use values with the actual use values of the medicines in the corresponding case data to be detected; when the actual use value of the medicine in the case data to be detected exceeds the normal use value of the medicine, the server 104 sends an abnormal prompt of the case data to be detected to the terminal 104. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a medical data anomaly detection method is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
s202, receiving a medical data abnormity detection instruction, wherein the medical data abnormity detection instruction carries at least one to-be-detected case identification, and searching corresponding to each to-be-detected case data according to each to-be-detected case identification.
The case identifier to be detected is used for uniquely identifying the case to be detected, and may be a character string, a name, a numerical value, or the like. The case data to be detected refers to information recorded when the patient visits the clinic. The case data to be detected comprises: disease type, operation level, operation cumulative time, implant condition in body, whether there is infection evidence, accompanying disease complication, age, ventilator use time, length of stay, and drug (antibacterial drug) use, etc
Specifically, the server receives the medical data anomaly detection instruction, analyzes the medical data anomaly detection instruction to obtain at least one to-be-detected case identifier, and searches corresponding to-be-detected case data according to the obtained to-be-detected case identifier, namely, each to-be-detected case identifier corresponds to the to-be-detected case data.
And S204, distributing each piece of case data to be detected to each target server according to each case identification to be detected, wherein the target servers are used for matching each piece of distributed case data to be detected by using a case category identification tree to obtain a case category corresponding to each piece of distributed case data to be detected.
The target server is used for matching each piece of distributed case data to be detected by using a case type identification tree to obtain a case type corresponding to each piece of distributed case data to be detected, and then returning the obtained case type to the server. The distributed case data to be detected refers to the case data to be detected distributed to the target server. The case category refers to the category to which the disease the patient is visiting belongs.
Specifically, the server distributes each case data to be detected to each target server according to each case identifier to be detected, may randomly distribute each case data to be detected to each target server, may distribute each case data to be detected according to the responsibility of each target server, and the like. The target server receives the case data to be detected distributed by the server, matches the distributed case data to be detected in the case category identification tree to obtain the case category corresponding to the distributed case data to be detected, and then returns the case category corresponding to the distributed case data to be detected to the server.
In one embodiment, a master-slave architecture can be used for building a server and a target server to obtain a master server and each slave server, and the master server distributes each piece of case data to be detected to each slave server according to each piece of case identification to be detected.
In an embodiment, the server may directly use the deployed case category identification tree to identify each case identifier to be detected, so as to obtain a case category corresponding to each case data to be detected.
S206, acquiring the case types corresponding to the case data to be detected returned by the target servers, searching corresponding medicine normal use values according to the case types, and comparing the medicine normal use values with the actual use values of the medicines in the corresponding case data to be detected.
The normal usage value of the drug refers to a normal usage value of the antibacterial drug, and may be a DDD (defined daily dose) value. The antibacterial drugs generally refer to drugs with bactericidal or bacteriostatic activity, including various chemically synthesized drugs such as antibiotics, sulfonamides, imidazoles, nitroimidazoles, quinolones and the like, and when the antibacterial drugs are used over the normal use value of the drugs, the immunity of patients is possibly reduced, adverse reactions occur, the bacteria generate drug resistance and the like. The actual drug use value refers to the use value of the antibacterial drug in the corresponding case data to be detected.
Specifically, the server obtains case categories corresponding to each to-be-detected case data returned by each target server, searches corresponding medicine normal use numerical values according to the case categories, and each case category has a corresponding medicine normal use numerical value which can be a specific numerical value or a numerical value interval and is configured in the server in advance. And the server compares the normal use value of the medicine of the case type corresponding to each to-be-detected case data with the actual use value of the medicine in each to-be-detected case data.
And S208, when the actual use value of the medicine in the target to-be-detected case data exceeds the normal use value of the medicine in the case category corresponding to the target to-be-detected case data, sending an abnormal prompt of the target to-be-detected case data to the target terminal.
The target terminal is a preset terminal for prompting data abnormality, and may be a terminal for sending a data abnormality detection instruction and receiving a data abnormality detection result, or a terminal for receiving only a data abnormality detection result. The target case data to be detected refers to the case data to be detected, wherein the actual use value of the medicine exceeds the normal use value of the medicine.
Specifically, when the actual use value of the medicine in the target case data to be detected exceeds the normal use value of the medicine in the case category corresponding to the target case data to be detected, an abnormal prompt of the target case data to be detected is sent to the target terminal. And when the actual use value of the medicine in the target case data to be detected does not exceed the normal use value of the medicine in the case category corresponding to the target case data to be detected, sending a normal prompt of the target case to be detected to the target terminal.
In the medical data abnormality detection method, the target server is used for identifying the case types, so that the operating pressure of the server is reduced, and the downtime of the server is avoided. And the case type identification tree is used in the target server to identify the case type of the case data to be detected, so that the accuracy of obtaining the normal use numerical value of the medicine can be improved, and the accuracy of the abnormal detection result of the case data to be detected can be improved.
In an embodiment, as shown in fig. 3, before step S202, that is, before receiving a medical data anomaly detection instruction, the medical data anomaly detection instruction carrying at least one to-be-detected case identifier, and before searching for corresponding each to-be-detected case data according to each to-be-detected case identifier, the method further includes the steps of:
s302, historical case data are obtained and divided according to disease codes to obtain each case group corresponding to the historical case data.
The disease code refers to International Classification of Diseases (ICD) standard code, and is a code that classifies basic classes according to disease characteristics and rules and represents the classes. The case groups are obtained by dividing case data encoded by the same disease.
Specifically, the server acquires each historical case data, divides each historical case data according to the disease code of each historical case data, and obtains each case group corresponding to each historical case data, namely each historical case data has a corresponding case group.
S304, deleting the historical case data of which the historical use value of the medicine exceeds the target value in each case group to obtain each target case group.
The target value is obtained according to the drug historical use value of each historical case data of the case group, and is used for searching case data with abnormal drug use value in the historical case data. The target case group is obtained from historical case data with normal drug use values.
Specifically, the server deletes the historical case data of which the historical usage value exceeds the target value in each case group to obtain each target case group, that is, compares the historical usage value of the historical case data in each case group with the target value, and deletes the historical case data exceeding the target value from the case group to obtain the deleted target case group.
S306, performing binary division on the target case group according to the division conditions, obtaining a case category identification tree when the division completion conditions are met, and deploying the case category identification tree to each target server.
Wherein the dividing completion condition is that the variation coefficient of the medicine history use numerical value of the history case data in the binary dividing result is smaller than a set threshold value. The partition condition refers to a judgment condition in binary partition, and may be a disease type, a (whether or not) operation level, an operation accumulation time, an implant condition in a body, whether or not there is evidence of infection, accompanying disease or complication, an age, whether or not a ventilator is used, or the like.
Specifically, historical case data in each target case group is acquired, all the historical case data are divided into two branches, the variation coefficient of the medicine historical use value corresponding to each division result is calculated, and when the variation coefficient is smaller than a set threshold (generally between 0.7 and 1), the division results are the historical case data of the same class. And when the coefficient of variation is not less than the set threshold, dividing the division results again according to the division conditions until the coefficient of variation of the medicine history use numerical value corresponding to each division result is less than the set threshold, and achieving the division finishing conditions to obtain the case category identification tree. At this time, a case category corresponding to each division result in case category identification and a drug normal use numerical value corresponding to the case category are set. And then deploying the set case category identification tree into each target server.
In the embodiment, the historical case data is screened, binary division is performed according to the screening result to obtain the case type identification tree, and the case type identification tree is deployed to each target server, so that the case type identification tree is convenient to use directly in the follow-up process, and the efficiency of obtaining the case type corresponding to the case data to be detected is improved.
In one embodiment, as shown in fig. 4, the step S304 of deleting historical case data with a drug historical usage value exceeding a target value in each case group to obtain each target case group includes the steps of:
s402, calculating quantiles of the historical use values of the drugs in each case group, and calculating a first target value and a second target value corresponding to each case group according to the quantiles.
Wherein, the quantile refers to 25% quantile and 75% quantile of the medicine historical use value corresponding to each historical case data in the case group. The first target value is the normal upper limit value of the historical usage value of the drug in the case group, and the second target value is the normal lower limit value of the historical usage value of the drug in the case group.
Specifically, the server calculates a 25% quantile and a 75% quantile of the historical use values of the drugs in each case group, and then calculates a first target value and a second target value corresponding to each case group according to the 25% quantile and the 75% quantile of each case group. Where the normal upper limit value Q may be used3+K(Q3-Q1) K ∈ (0,0.5) and a normal upper limit value ═ Q3-K(Q3-Q1) And calculating the K epsilon (0,0.5) to obtain a first target value and a second target value. Q3Is 75% quantile, Q1Is 25% quantile and K is the adjustment coefficient.
S404, obtaining a target numerical value area according to the second target numerical value and the second target numerical value, and deleting the historical case data of which the historical use numerical value is not in the target numerical value area when the historical use numerical value of the medicine in each case group is not in the target numerical value area to obtain each target case group.
The target numerical value region is a normal region of the medicine history use numerical values obtained according to the upper normal limit value and the lower normal limit value of the medicine history use.
Specifically, the server obtains a target value area according to the second target value and the second target value, and when the historical usage value of the drug in each case group is not in the target value area, it indicates that the historical case data of the historical usage value is abnormal historical case data, and deletes the historical case data of which the historical usage value is not in the target value area to obtain each target case group. The historical case data of which the historical use value of the medicine in the case group exceeds the normal upper limit value and the normal lower limit value corresponding to the case group is eliminated from the case group, and the target case group is obtained. And removing abnormal historical case data in all case groups to obtain each target case group.
In the above embodiment, the first target value and the second target value in the historical case data are obtained through calculation to obtain the target value area, the historical use value of the drug in the historical case data is judged according to the target value area to obtain the abnormal condition of the historical case data, the abnormal historical case data is removed to obtain each target case group, the historical case data are all normal historical case data, and the training of the case type identification tree is facilitated.
In one embodiment, step S204, allocating each to-be-detected case data to each target server according to each to-be-detected case identifier, where the target server is configured to match each allocated to-be-detected case data using a case category identification tree to obtain a case category corresponding to each allocated to-be-detected case data, and includes the steps of:
and starting a parallel thread, inputting each case data to be detected into a case type identification tree by using the parallel thread for parallel identification, and obtaining each case type corresponding to each case data to be detected.
Specifically, the server starts a parallel thread, and the parallel thread is used for inputting each case data to be detected into a case category identification tree to be identified in parallel to obtain each case category corresponding to each case data to be detected. The method and the system improve the utilization efficiency of server resources by parallelly identifying the case categories corresponding to the case data to be detected.
In one embodiment, the step S204 of distributing each to-be-detected case data to each target server according to each to-be-detected case identifier includes the steps of:
calculating the hash value of each to-be-detected case identification, and distributing each to-be-detected case data to each target server according to the hash value
Specifically, the server calculates the hash value of each to-be-detected case identifier, and distributes each to-be-detected case data to each target server according to the hash value
In the embodiment, the hash value of the identification of the case to be detected is calculated, and the case data to be detected is distributed according to the hash value, so that the case data to be detected can be distributed to the target server in a balanced manner, and the processing efficiency is improved.
In one embodiment, the corresponding data of each case to be detected can be distributed to each target server in a polling manner according to the identification of the case to be detected.
In one embodiment, the model-taking calculation may be performed on the to-be-detected case identifier, and the data of each to-be-detected case is distributed to each target server according to the result of the model-taking calculation.
In one embodiment, the to-be-detected case data corresponding to each to-be-detected case identifier is sent to a message queue according to the to-be-detected case identifier, and when the target server can perform task processing, the target server acquires the to-be-detected case data from the message queue.
It should be understood that although the various steps in the flow charts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided a medical data anomaly detection apparatus 500, comprising: a data lookup module 502, a data matching module 504, an anomaly detection module 506, and an anomaly prompt module 508, wherein:
the data searching module 502 is configured to receive a medical data anomaly detection instruction, where the medical data anomaly detection instruction carries at least one to-be-detected case identifier, and search, according to each to-be-detected case identifier, for corresponding each to-be-detected case data;
the data matching module 504 is configured to allocate each to-be-detected case data to each target server according to each to-be-detected case identifier, where the target servers are configured to match each allocated to-be-detected case data using a case category identification tree to obtain a case category corresponding to each allocated to-be-detected case data;
the anomaly detection module 506 is configured to acquire a case category corresponding to each to-be-detected case data returned by each target server, search a corresponding drug normal usage value according to the case category, and compare the drug normal usage value with a drug actual usage value in the corresponding to-be-detected case data;
the abnormality prompting module 508 is configured to send an abnormality prompt of the target case data to be detected to a target terminal when the actual usage value of the drug in the target case data to be detected exceeds the normal usage value of the drug in the case category corresponding to the target case data to be detected.
In one embodiment, the medical data anomaly detection apparatus 500 further includes:
the historical data dividing module is used for acquiring historical case data, dividing the historical case data according to the disease codes and obtaining each case group corresponding to the historical case data;
the data deleting module is used for deleting the historical case data of which the historical use value of the medicine exceeds the target value in each case group to obtain each target case group;
and the identification tree obtaining module is used for carrying out binary division on the target case group according to the division conditions, obtaining a case category identification tree when the division completion conditions are met, and deploying the case category identification tree to each target server.
In one embodiment, a data deletion module includes:
the target numerical value calculating unit is used for calculating the quantile of the historical use numerical values of the medicines in each case group and calculating a first target numerical value and a second target numerical value corresponding to each case group according to the quantile;
and the numerical value area judging unit is used for obtaining a target numerical value area according to the second target numerical value and the second target numerical value, and deleting the historical case data of which the historical use numerical value is not in the target numerical value area when the historical use numerical value of the medicine in each case group is not in the target numerical value area to obtain each target case group.
In an embodiment, the data matching module 504 is further configured to start a parallel thread, and input each case data to be detected into the case category identification tree by using the parallel thread for parallel identification, so as to obtain each case category corresponding to each case data to be detected.
In an embodiment, the data matching module 504 is further configured to calculate a hash value of each identifier of the case to be detected, and distribute each data of the case to be detected to each target server according to the hash value
For specific limitations of the medical data abnormality detection apparatus, reference may be made to the above limitations of the medical data abnormality detection method, which are not described herein again. All or part of the modules in the medical data abnormality detection device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing case data to be detected. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a medical data anomaly detection method.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: receiving a medical data abnormity detection instruction, wherein the medical data abnormity detection instruction carries at least one to-be-detected case identifier, and searching corresponding to each to-be-detected case data according to each to-be-detected case identifier; distributing each piece of case data to be detected to each target server according to each case identification to be detected, wherein the target servers are used for matching each piece of distributed case data to be detected by using a case category identification tree to obtain a case category corresponding to each piece of distributed case data to be detected; acquiring a case category corresponding to each to-be-detected case data returned by each target server, searching a corresponding medicine normal use numerical value according to the case category, and comparing the medicine normal use numerical value with a medicine actual use numerical value in the corresponding to-be-detected case data; and when the actual use value of the medicine in the target case data to be detected exceeds the normal use value of the medicine in the case category corresponding to the target case data to be detected, sending an abnormal prompt of the target case data to be detected to the target terminal.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring historical case data, and dividing the historical case data according to disease codes to obtain each case group corresponding to the historical case data; deleting historical case data of which the historical use value of the medicine exceeds the target value in each case group to obtain each target case group; and performing binary division on the target case group according to the division conditions, obtaining a case category identification tree when the division completion conditions are met, and deploying the case category identification tree to each target server.
In one embodiment, the processor, when executing the computer program, further performs the steps of: calculating quantiles of historical use values of the drugs in each case group, and calculating a first target value and a second target value corresponding to each case group according to the quantiles; and obtaining a target numerical value area according to the second target numerical value and the second target numerical value, and deleting the historical case data of which the historical use numerical value is not in the target numerical value area when the historical use numerical value of the medicine in each case group is not in the target numerical value area to obtain each target case group.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and starting a parallel thread, inputting each case data to be detected into a case type identification tree by using the parallel thread for parallel identification, and obtaining each case type corresponding to each case data to be detected.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and calculating the hash value of each to-be-detected case identifier, and distributing each to-be-detected case data to each target server according to the hash value.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving a medical data abnormity detection instruction, wherein the medical data abnormity detection instruction carries at least one to-be-detected case identifier, and searching corresponding to each to-be-detected case data according to each to-be-detected case identifier; distributing each piece of case data to be detected to each target server according to each case identification to be detected, wherein the target servers are used for matching each piece of distributed case data to be detected by using a case category identification tree to obtain a case category corresponding to each piece of distributed case data to be detected; acquiring a case category corresponding to each to-be-detected case data returned by each target server, searching a corresponding medicine normal use numerical value according to the case category, and comparing the medicine normal use numerical value with a medicine actual use numerical value in the corresponding to-be-detected case data; and when the actual use value of the medicine in the target case data to be detected exceeds the normal use value of the medicine in the case category corresponding to the target case data to be detected, sending an abnormal prompt of the target case data to be detected to the target terminal.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring historical case data, and dividing the historical case data according to disease codes to obtain each case group corresponding to the historical case data; deleting historical case data of which the historical use value of the medicine exceeds the target value in each case group to obtain each target case group; and performing binary division on the target case group according to the division conditions, obtaining a case category identification tree when the division completion conditions are met, and deploying the case category identification tree to each target server.
In one embodiment, the computer program when executed by the processor further performs the steps of: calculating quantiles of historical use values of the drugs in each case group, and calculating a first target value and a second target value corresponding to each case group according to the quantiles; and obtaining a target numerical value area according to the second target numerical value and the second target numerical value, and deleting the historical case data of which the historical use numerical value is not in the target numerical value area when the historical use numerical value of the medicine in each case group is not in the target numerical value area to obtain each target case group.
In one embodiment, the computer program when executed by the processor further performs the steps of: and starting a parallel thread, inputting each case data to be detected into a case type identification tree by using the parallel thread for parallel identification, and obtaining each case type corresponding to each case data to be detected.
In one embodiment, the computer program when executed by the processor further performs the steps of: and calculating the hash value of each to-be-detected case identifier, and distributing each to-be-detected case data to each target server according to the hash value.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile 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), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.