Medicine searching method and device, storage medium and computer device
By combining the target doctor's search keywords and historical prescription information, and using the drug library query strategy, the drugs in the historical prescription information are matched first, which solves the problem of low efficiency of doctor's drug search in the existing technology and achieves efficient drug search results.
Patent Information
- Application Number
- CN202311065200.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-22
- Publication Date
- 2025-10-14
- Estimated Expiration
- 2043-08-22
AI Technical Summary
Existing drug search methods mainly use symptom-guided searches, which results in low efficiency, low hit rate, and a long selection time for doctors.
By obtaining the target doctor's search keywords and historical prescription information, combined with the drug library query strategy, priority is given to matching drugs in the historical prescription information, and drug searches are performed using keyword combinations and priority strategies to improve the hit rate and search efficiency.
It achieves the alignment of drug search results with doctors' prescription habits, improves the hit rate and efficiency of drug searches, and reduces search time.
Smart Images

Figure CN117112772B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of information processing, the field of digital medicine, and particularly relates to a medicine search method and device, a storage medium and a computer device. BACKGROUND
[0002] With the rapid development of computer network technology, the sales and circulation of medicines have been realized online. Whether it is the purchase of medicines by patients, the sale of medicines by pharmacies or the prescription of doctors, the search process for medicines cannot be avoided.
[0003] The existing medicine search mainly performs semantic analysis on the patient's symptoms and appeals, and matches the suitable medicines for the patient according to the semantic search. However, this symptom-guided medicine opening method is not suitable for experienced doctors, and instead, it will cause redundant input in the medicine search process of doctors. At the same time, the medicines matched based on the symptoms are numerous, and the hit rate is low, which requires a long time for further selection, resulting in low medicine search efficiency of doctors. SUMMARY
[0004] Therefore, the present application provides a medicine search method and device, a storage medium and a computer device, which mainly aims to solve the problem of low medicine search efficiency of doctors.
[0005] According to one aspect of the present application, a medicine search method is provided, which comprises:
[0006] obtaining a search keyword for a target doctor to open medicine for a target patient and historical prescription information of the target doctor;
[0007] performing medicine search based on the search keyword and the historical prescription information to obtain a target search result keyword combination strategy keyword priority strategy performing medicine search based on the search keyword and the historical prescription information to obtain a target search result;
[0008] sending the target search result to a terminal of the target doctor for display.
[0009] Further, the performing medicine search based on the search keyword and the historical prescription information to obtain a target search result performing medicine search based on the search keyword and the historical prescription information to obtain a target search result comprises:
[0010] matching the search keyword with the medicines in the historical prescription information to obtain a first query result;
[0011] if the number of medicines in the first query result is greater than or equal to a first preset number threshold, configuring the medicines in the first query result as the target search result;
[0012] If the number of medicines in the first query result is less than the first preset number threshold, the medicine library is queried based on the medicine library query strategy and the search keyword to obtain a target search result.
[0013] Further, if the number of medicines in the first query result is less than the first preset number threshold, the medicine library is queried based on the medicine library query strategy and the search keyword to obtain a target search result, which includes:
[0014] The keyword combination strategy if the number of medicines in the first query result is less than the first preset number threshold, in the case that the search keyword further includes accessory medicine description information, the medicine library is queried based on the search keyword and the keyword combination strategy to obtain a second query result.
[0015] The keyword priority strategy if the second query result is greater than a second preset number threshold, the second query result is filtered based on the current opened medicine of the target patient and the medicine inventory information to obtain a target search result.
[0016] If the second query result is less than the second preset number threshold, the medicine library is queried according to the search keyword and the keyword priority strategy to obtain a third query result, and the keyword priority strategy includes a plurality of query priorities corresponding to each category of query keyword.
[0017] The third query result is filtered based on the current opened medicine of the target patient and the medicine inventory information to obtain a target search result.
[0018] Further, the keyword combination strategy includes a plurality of preset keyword combinations and a priority of each preset keyword combination, and the keyword combination strategy queries the medicine library based on the search keyword and the keyword combination strategy to obtain a second query result, which includes:
[0019] The keyword combination strategy determines a target search keyword combination corresponding to the search keyword and a priority of the target search keyword combination according to the keyword combination strategy.
[0020] The target search keyword combination is executed according to the priority, and if the query result obtained after querying according to any target search keyword combination is not empty, the querying is stopped, and the query result is taken as a second query result.
[0021] Further, if the number of medicines in the first query result is greater than or equal to the first preset number threshold, the medicines in the first query result are configured as a target search result, which includes:
[0022] If the number of the drugs in the first query result is greater than or equal to a first preset number threshold, probabilities of each drug in the first query result appearing in the historical prescription information are calculated;
[0023] The drugs in the first query result are sorted based on the probabilities, and a sorting result is configured as a target search result.
[0024] Further, before the search keyword of the target doctor for prescribing drugs for the target patient and the historical prescription information of the target doctor are acquired, the method further comprises:
[0025] Acquiring search content input by the target doctor in a drug search page component;
[0026] Based on a preset regular expression, the search content is classified into keywords, and an initial classification result including at least one keyword category is obtained, the keyword category including at least one of at least one of a drug generic name, a bar code, an approval number, a specification, and a manufacturer;
[0027] If the initial classification result contains a specification category keyword, the specification category keyword is standardized based on a standardization strategy to obtain a search keyword, the standardization strategy being configured based on a drug library specification standardization rule;
[0028] If the initial classification result does not contain a specification keyword, the initial classification result is configured as a search keyword.
[0029] Further, after the target search result is sent to the terminal of the target doctor, the method further comprises:
[0030] If it is monitored that the current prescribed drug information of the target patient is updated, the updated current prescribed drug information is acquired;
[0031] According to the updated current prescribed drug information and the historical prescription information, an expected candidate drug is generated;
[0032] The expected candidate drug is sent to the terminal of the target doctor, so that the terminal displays the expected candidate drug in a drug selection box in response to an input instruction of a page drug search component.
[0033] According to another aspect of the present application, a drug search device is provided, comprising:
[0034] An acquisition module is configured to acquire a search keyword of a target doctor for prescribing drugs for a target patient and historical prescription information of the target doctor;
[0035] The matching module is configured to perform a drug search based on the search keyword and the historical prescription information to obtain a target search result.
[0036] The sending module is configured to send the target search result to a terminal of the target doctor for display.
[0037] Further, the matching module comprises:
[0038] The matching unit is configured to match the search keyword with the drugs in the historical prescription information to obtain a first query result.
[0039] The configuration unit is configured to, if the number of drugs in the first query result is greater than or equal to a first preset number threshold, configure the drugs in the first query result as a target search result.
[0040] The query unit is configured to, if the number of drugs in the first query result is less than the first preset number threshold, query a drug library based on the drug library query strategy and the search keyword to obtain a target search result.
[0041] Further, in a specific application scenario, the query unit is specifically configured to, if the number of drugs in the first query result is less than the first preset number threshold, query the drug library based on the search keyword and the keyword combination strategy to obtain a second query result, in a case where the search keyword further comprises accessory drug description information.
[0042] The keyword priority strategy is configured to, if the second query result is greater than a second preset number threshold, filter the second query result based on the drugs already prescribed for the target patient and drug inventory information to obtain a target search result.
[0043] If the second query result is less than the second preset number threshold, the drug library is queried based on the search keyword and a keyword priority strategy to obtain a third query result, the keyword priority strategy comprising a plurality of query priorities corresponding to each category of query keyword.
[0044] The third query result is filtered based on the drugs already prescribed for the target patient and drug inventory information to obtain a target search result.
[0045] Further, in a specific application scenario, the query unit is specifically configured to, according to the keyword combination strategy, determine a target search keyword combination corresponding to the search keyword and a priority of the target search keyword combination.
[0046] perform the target search keyword combination according to the priority, and if the query result obtained after querying according to any of the target search keyword combinations is not empty, stop querying and take the query result as a second query result.
[0047] Further, in a specific application scenario, the configuration unit is specifically configured to, if the number of drugs in the first query result is greater than or equal to a first preset number threshold, calculate the probability of each drug in the first query result appearing in the historical prescription information.
[0048] Based on the probability, the drugs in the first query result are sorted, and the sorting result is configured as a target search result.
[0049] Further, the device further comprises:
[0050] The acquisition module is further configured to acquire search content entered by a target doctor in a drug search page component.
[0051] The division module is configured to divide the search content into keyword categories based on a preset regular expression to obtain an initial division result including at least one keyword category, the keyword category including at least one of a drug generic name, a bar code, an approval number, a specification, and a manufacturer.
[0052] The standardization processing module is configured to, if the initial division result contains a specification category keyword, perform standardization processing on the specification category keyword based on a standardization strategy to obtain a search keyword, the standardization strategy being configured based on a drug library specification standardization rule.
[0053] The configuration module is configured to, if the initial division result does not contain a specification keyword, configure the initial division result as a search keyword.
[0054] Further, the device further comprises:
[0055] The listening module is configured to, if it is listened that the current opened drug information of the target patient is updated, acquire the updated current opened drug information.
[0056] The generation module is configured to generate an expected candidate drug according to the updated current opened drug information and the historical prescription information.
[0057] The sending module is further configured to send the expected candidate drug to a terminal of the target doctor, so that the terminal displays the expected candidate drug in a drug selection box in response to an entering instruction of a page drug search component.
[0058] According to another aspect of the present application, there is provided a storage medium having stored therein at least one executable instruction, which causes a processor to perform operations corresponding to the above-mentioned medicine searching method.
[0059] According to still another aspect of the present application, there is provided a computer device comprising a processor, a memory, a communication interface and a communication bus, the processor, the memory and the communication interface being capable of communicating with each other through the communication bus.
[0060] The memory is configured to store at least one executable instruction, which causes the processor to perform operations corresponding to the above-mentioned medicine searching method.
[0061] By means of the above technical solution, the technical solution provided by the embodiments of the present application has at least the following advantages:
[0062] The present application provides a medicine searching method and device, a storage medium and a computer device. Firstly, a search keyword for a target patient prescribed by a target doctor and historical prescription information of the target doctor are obtained. Then, medicine searching is performed based on the search keyword and the historical prescription information to obtain a target search result. Finally, the target search result is sent to a terminal of the target doctor for display. Compared with the prior art, the embodiments of the present application can make the medicine search result most consistent with the prescription habits of the current doctor, improve the hit rate of the searched medicine, greatly reduce the search time, and effectively improve the efficiency of medicine searching.
[0063] The above description is only a summary of the technical solution of the present application. In order to enable one of ordinary skill in the art to better understand the technical means of the present application and implement it according to the content of the description, and in order to enable the above and other purposes, features and advantages of the present application to be more apparent and understandable, the following specific embodiments of the present application are described in detail. BRIEF DESCRIPTION OF DRAWINGS
[0064] Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The accompanying drawings are included to provide a description of the preferred embodiments and are not meant to limit the present application. Furthermore, the same reference numerals are used throughout the several drawings to designate the same or similar parts. In the drawings:
[0065] Figure 1 A flowchart of a medicine searching method provided by an embodiment of the present application is shown;
[0066] Figure 2 A flowchart of another medicine searching method provided by an embodiment of the present application is shown;
[0067] Figure 3A block diagram of a drug search device according to an embodiment of the present invention is shown;
[0068] Figure 4 A schematic structural diagram of a computer device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0069] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0070] The existing drug search mainly performs semantic analysis on the patient's symptoms and demands, and matches the patient's suitable drugs based on semantic search. However, this symptom-guided prescription method is not suitable for experienced doctors. Instead, it will cause redundant input in the doctor's drug search process. At the same time, the drugs obtained based on symptom matching are numerous and the selection time is long, resulting in low efficiency of doctor's drug search. The embodiment of the present invention provides a drug search method, such as Figure 1 As shown, the method includes:
[0071] 101. Obtain search keywords for drugs prescribed by a target doctor for a target patient, and historical prescription information of the target doctor.
[0072] In an embodiment of the present invention, the target doctor is the doctor currently prescribing medication for the patient through the prescription prescribing component, and the target patient is the patient for whom the current diagnosis and treatment service is being provided. After the doctor enters the search content through the prescription prescribing component, the search content is identified and extracted to obtain search keywords. The search keywords include keywords from at least one category, such as the generic name, strength, and approval number of the drug. In addition, it is necessary to obtain the target doctor's historical prescription information, that is, the drug information contained in the prescriptions issued by the target doctor when providing diagnosis and treatment services to the current patient in the past, including all drug information, such as the generic name, strength, barcode, annotation number, manufacturer, etc. This historical prescription information is updated in response to the target doctor's instructions for each prescription completed. For example, if the target doctor submits a prescription for patient A, the drug information in this prescription will be added to the target doctor's historical prescription information. In the historical prescription information, there is an association between the various drugs in the same prescription.
[0073] It should be noted that the current execution subject is a back-end server corresponding to the hospital diagnosis and treatment system, which can be a drug database server independently serving the prescription opening component of the system, or a server serving the entire hospital diagnosis and treatment system. The device type of the server can be a cloud server, a local server, etc., and the embodiments of the present application are not limited. In this search process, the server as the execution subject is the original server of the hospital diagnosis and treatment system, and the algorithm and logic for realizing the search can be integrated into the existing diagnosis and treatment system, without occupying additional hardware resources, and the development is relatively low.
[0074] 102. Perform drug search based on the search keyword and the historical prescription information to obtain a target search result.
[0075] In the embodiments of the present application, since the historical prescription information can reflect the prescription habits of the target doctor, the drugs matched from the historical prescription information can have a higher probability of hitting the doctor's search, so the drugs in the historical prescription information can be searched based on the search keyword first. If the drugs matching the search keyword can be found in the historical prescription information, the drug library can not be queried, thereby improving the efficiency of drug search. If the drugs matching the search keyword cannot be found in the historical prescription information or the found drugs are out of stock, a supplementary query based on a drug library query strategy can be performed to obtain a target search result. The drug library query strategy is a way of querying the drug library based on the search keyword, which can be a combination of multiple category keywords, such as a combination query of drug bar code and common name, a combination query of common name and specification, or a single keyword query, such as a query in the order of bar code, approval number, and drug common name, and the embodiments of the present application are not limited. The drugs matched based on the historical prescription information of the doctor are more in line with the doctor's prescription habits, have a higher hit rate, and can greatly shorten the time of drug search.
[0076] 103. Send the target search result to the terminal of the target doctor for display.
[0077] In the embodiment of the present application, the target search result can include one drug or multiple drugs meeting the conditions. When multiple drugs are included, the order between the drugs can be random, or the result after sorting from large to small according to the usage rate in the historical prescription information or the usage rate in the drug library, for example, the drug with the generic name A and the specification 12mg has a higher usage rate than the drug with the generic name A and the specification 16mg, so the first drug is sorted in front of the second drug. When the target search result is sent to the terminal of the target doctor for display, the first drug is displayed in front of the second drug in the drug query result display box, which is more convenient for the doctor to select. The terminal of the target doctor can be a fixed terminal device such as an all-in-one machine, a desktop computer, etc., or a mobile terminal device such as a notebook computer, a tablet computer, etc., which is not limited in the embodiment of the present application.
[0078] It should be noted that the target search result obtained based on the target doctor's historical prescription information is displayed to the target doctor, which can enable the target doctor to see the drug with a higher hit probability in the drug query result display box, realize fast selection of the drug, avoid spending more time searching in the drug query result display box, and avoid repeatedly adjusting the search input content, thereby realizing efficient and convenient search of the drug by the doctor.
[0079] In one embodiment of the present application, in order to further illustrate and limit, as shown in Figure 2 The step of searching for drugs based on the search keyword and the historical prescription information to obtain the target search result includes:
[0080] 201, match the search keyword with the drugs in the historical prescription information to obtain a first query result.
[0081] 202, if the number of drugs in the first query result is greater than or equal to a first preset number threshold, the drugs in the first query result are configured as the target search result.
[0082] 203, if the number of drugs in the first query result is less than the first preset number threshold, query the drug library based on the drug library query strategy and the search keyword to obtain the target search result.
[0083] In the embodiment of the present application, the search keyword at least includes one of the generic name and the specification. In the process of matching the historical prescription information, if the search keyword includes only the generic name, the generic name is used to match the drug in the historical prescription information, if the search keyword includes the generic name and the specification, the generic name and the specification are used to match the drug in the historical prescription information to obtain the first query result. Since there may be a case that the appropriate drug cannot be matched from the historical prescription information based on the search keyword, it is necessary to determine the number of drugs in the first query result by using the first preset number threshold, and when the first query result does not include the drug, it is necessary to continue to query the drug from the drug library. The first preset number threshold is 0. Of course, the first preset number threshold can also be other values greater than zero, for example, the search keyword includes only the generic name, and only one or two drugs are matched from the historical prescription information. In order to make the query result cover more specifications and provide the doctor with more comprehensive choices, it is also necessary to further query the drug library, therefore, the first preset number threshold can be customized according to the specific application requirement, and the embodiment of the present application is not limited.
[0084] It should be noted that, based on the number of drugs included in the matching result of the historical prescription information of the target doctor, it is determined whether the drug library query is needed, which can improve the matching degree of the drug query result and the current doctor searching for the doctor, and realize convenient and efficient drug search. At the same time, the drug library query strategy includes the keyword combination strategy constituted by different categories of keywords, which can meet the various scene requirements of accurate drug search and fuzzy search. By adopting the combination of the drug library query strategy and the historical prescription information, the time-consuming of drug search can be greatly reduced while ensuring the comprehensiveness of the query, the drug search efficiency is improved, and the convenient search of the drug is realized.
[0085] In an embodiment of the present application, in order to further illustrate and limit, if the number of drugs in the first query result is less than the first preset number threshold, the drug library is queried based on the drug library query strategy and the search keyword to obtain the target search result, including:
[0086] If the number of drugs in the first query result is less than the first preset number threshold, the drug library is queried based on the search keyword and the keyword combination strategy to obtain the second query result, in the case that the search keyword also includes the accessory drug description information;
[0087] If the second query result is greater than the second preset number threshold, the second query result is filtered based on the current drug opened by the target patient and the drug inventory information to obtain the target search result;
[0088] If the second query result is less than the second preset quantity threshold, the medicine library is queried according to the search keyword and a keyword priority strategy to obtain a third query result.
[0089] The third query result is filtered based on the current medicine of the target patient and the medicine inventory information to obtain a target search result.
[0090] In the embodiment of the application, if the medicine satisfying the search requirement cannot be searched based on the historical prescription information, the medicine library is further queried based on a medicine library query strategy. The medicine library query strategy includes a keyword combination strategy and a keyword priority strategy. The keyword combination strategy is a query strategy combined by keywords of different categories, for example, the combination of a barcode (69 code) and a generic name, the combination between a note number and a generic name and a specification, the combination of a manufacturer, a generic name and a specification, etc. The query accuracy of the keyword combination strategy is higher than that of a single category keyword, and therefore, when the search keyword further includes accessory medicine description information, i.e., the category of the search keyword includes information for describing the medicine other than the generic name, such as the specification, the manufacturer, etc., the keyword combination strategy is preferentially used for the query. If the medicine cannot be searched based on the satisfied keyword combination strategy, or the number of medicines contained in the second query result does not satisfy the second preset quantity threshold, the keyword priority strategy is used for the query. The keyword priority strategy includes a plurality of query priorities corresponding to keywords of various categories. If the number of medicines contained in the second query result satisfies the second preset quantity threshold, the target search result is determined according to the second query result. The second preset quantity threshold can be 0 or other numerical values greater than 0, which is not limited in the application. The query of the single category keyword needs to be performed according to the keyword priority strategy. The priority setting can be barcode (69 code)>approval number>generic name>specification>manufacturer, or can be customized according to the specific application scenario, which is not limited in the application.
[0091] After the second query result or the third query result used for determining the target search result is obtained based on the above strategy, in order to avoid that the target search result contains medicines with insufficient inventory, or contains medicines that have been prescribed in the current patient's prescription process, the medicine inventory in the second query result or the third query result needs to be queried, the medicines with insufficient inventory are deleted, and the medicines contained in the current patient's prescription are deleted to obtain the target search result.
[0092] It should be noted that by combining the keyword combination strategy with different query accuracies and the keyword priority strategy of fuzzy search, multi-level division of search accuracy is realized, and the query mode with higher query accuracy is used preferentially. If the query result is not ideal, the query mode with lower query accuracy is used, for example, the search keyword includes specifications and generic name, and then the combination query condition of the generic name and the specification is used for query. If the query result is not ideal, the search is performed according to the single keyword of the generic name, so as to ensure the improvement of the query accuracy and the query comprehensiveness.
[0093] In an embodiment of the present application, in order to further illustrate and limit, the step of the keyword combination strategy queries the drug library based on the search keyword and the keyword combination strategy to obtain the second query result, which includes:
[0094] The keyword combination strategy determines the target search keyword combination corresponding to the search keyword and the priority of the target search keyword combination according to the keyword combination strategy;
[0095] The target search keyword combination is executed according to the priority. If the query result is not empty after the query according to any target search keyword combination, the query is stopped, and the query result is taken as the second query result.
[0096] In the embodiment of the present application, the keyword combination strategy includes a plurality of preset keyword combinations and the priority of each preset keyword combination. The search keyword can include one or several categories of keywords, therefore, the search keyword needs to be compared with the keyword categories included in the preset keyword combination strategy. If the keyword categories included in the search keyword satisfy one or more preset keyword combinations in the keyword combination strategy, the preset keyword combination is taken as the target search keyword combination to be executed, and the target keyword combination is executed according to the priority. If the keyword combination strategy with higher query accuracy obtains the drug, there is no need to perform other keyword combination strategies, and the second query result can be directly returned. For example, the search keyword includes a bar code, a generic name, a specification, and a note number, the keyword combination strategy includes a combination condition of a bar code, a generic name, a combination condition of a note number, a generic name, and a specification, and a combination condition of a manufacturer, a generic name, and a specification. The above a and b combination conditions are to be executed, and the a combination condition is preferentially executed according to the query accuracy. If the query result includes the drug, the next b combination condition is not executed, and the drug is taken as the second query result. If the query result does not include the drug, the next to-be-executed query condition is executed.
[0097] In an embodiment of the present application, in order to further illustrate and define, the step of configuring the medicines in the first query result as the target search result if the number of medicines in the first query result is greater than or equal to the first preset number threshold value includes:
[0098] If the number of medicines in the first query result is greater than or equal to the first preset number threshold value, the probability of each medicine in the first query result appearing in the historical prescription information is calculated.
[0099] The medicines in the first query result are sorted based on the probability, and the sorting result is configured as the target search result.
[0100] In an embodiment of the present application, in order to ensure a high hit rate, specifications and manufacturers cannot be used for query alone and must be combined with generic names, barcodes and approval numbers for query. After obtaining the first query result, the probabilities of medicines corresponding to different search terms appearing in the current doctor's historical prescriptions are calculated, for example, the search keywords are the generic name of a medicine and the specification, and the probabilities P(generic name|current doctor), P(specification|current doctor) and P(generic name, specification|current doctor) are calculated, and / or the probabilities in all prescriptions in the diagnosis and treatment system content (including other doctors), for example, P(medicine generic name), P(specification) and P(medicine generic name, specification), are calculated, and the medicines are sorted in order from small to large probability. After obtaining the sorting result, medicines with a probability less than a probability screening threshold value can be deleted, and medicines in the sorting result can also be deleted based on the inventory of the medicines and the medicines that have been dispensed this time.
[0101] In an embodiment of the present application, in order to further illustrate and define, before the step of obtaining the search keywords of the target patient dispensed by the target doctor and the historical prescription information of the target doctor, the method further includes:
[0102] Obtaining the search content entered by the target doctor in the medicine search page component;
[0103] Dividing the search content into keyword categories based on a preset regular expression to obtain an initial division result including at least one keyword category;
[0104] If the initial division result contains a specification category keyword, the specification category keyword is standardized based on a standardization strategy to obtain the search keywords.
[0105] If the initial division result does not contain a specification keyword, the initial division result is configured as the search keywords.
[0106] In the embodiment of the present application, when the search content input by the doctor through the search component is received, the current execution subject cannot determine the keyword category corresponding to the search content, and keyword category identification needs to be performed on the search content. Specifically, the word groups are split according to English spaces, and the category of each word group is parsed based on a preset expression, for example, whether it is a approval number is judged according to the regular expression: (drug standard word)? [A-Z0-9]{8,}, whether it is a bar code (69 code) is judged according to the regular expression: ^\d{13}$), whether it is a specification is judged according to whether it contains a packaging or dosage unit, wherein the list of available units includes milligrams, milligrams, micrograms, ug, micrograms, grams, milliliters, milliliters, liters, international units, ten units, ten U, particles, tablets, pills, bags, bags, clicks, sprays, plates, small s, small boxes, boxes, millimeters, centimeters, CM, tablets, stickers, plates, particles, tablets, pills, bottles, clicks, sprays, branches, tablets, pieces, blocks, sheets, stickers, etc. Common abbreviations or abbreviations; whether it is a manufacturer is judged according to whether it contains an address, province, city, company, factory, etc. information; and if it fails to match the above categories, it is determined to be a generic name of a drug.
[0107] In the embodiment of the present application, since the specifications of drugs are relatively complex and different production manufacturers have different specification calibration formats, when the drug information is entered into the drug library, the specification of the drug is standardized, for example, the specification of drug A is 12ml*12 bottles, and the specification of drug B is 12 bottles*12ml. According to the drug library specification standardization rule, the specifications of drugs A and B are standardized to 12 bottles*12ml. In the process of identifying the search keyword, in order to ensure the accuracy of the query, the search keyword is also standardized based on the drug library specification standardization rule, so as to ensure that the specification representation in the drug library is consistent with the specification representation of the search keyword, and the hit rate is improved. Specifically, a drug library specification standardization rule template is pre-configured, for example, the template standardization process shown in Table 1 below, wherein "s" is other Chinese characters, the group number corresponding to the corresponding letter sequence, and the value after the ":" and "=" symbols is the position of the standardized value of each group. In this template, va-vh are sequentially arranged, and any group value can be placed in front according to the application scenario, which is not limited in the embodiment of the present application. The search keyword is matched with each specification identifier in the template, and if it is matched, an placeholder is configured for the identifier. When the iteration is completed, the standardized specification keyword is obtained. The tail of the standardized character may be 2*3s or 16ml*1s, and the like, which will be simplified to 6s and 16ml. At present, only the special characters at the end will be simplified, and the middle characters will not be changed, for example, 16ml*1s*3s is the final form. In addition, unit conversion can also be added, such as 1g=1000mg, 1L=1000ml, etc. (need to convert to the smallest unit).
[0108] Table 1:
[0109]
[0110]
[0111] In an embodiment of the present application, in order to further illustrate and limit, after the step of sending the target search result to the terminal of the target doctor, the method further comprises:
[0112] If the current opened drug information of the target patient is updated, the updated current opened drug information is acquired;
[0113] The expected candidate drug is generated according to the updated current opened drug information and the historical prescription information;
[0114] The expected candidate drug is sent to the terminal of the target doctor, so that the terminal displays the expected candidate drug in the drug selection box in response to the typing instruction of the page drug search component.
[0115] In an embodiment of the present application, since the prescription opened by the doctor usually contains multiple drugs, and the combination of each drug in the prescription also has a relatively fixed case, in order to further facilitate the doctor to open the drug, the update of the opened drug information of the current patient is monitored, when the update is monitored, the current opened drug information is matched with the historical prescription information, if the historical prescription information contains a prescription including the current opened drug information, the remaining drugs in the prescription are taken as the expected candidate drug, when the doctor clicks the drug search component, the expected candidate drug is displayed in the drop-down box of the search component, if the doctor expects to search the drug by input, the expected candidate drug is not needed to be input again, and can be directly selected in the drop-down box, so that the search time is saved, and the search efficiency is improved.
[0116] The present application provides a drug search method, first acquires the search keyword of the target doctor for the target patient, and the historical prescription information of the target doctor; based on the search keyword and the historical prescription information, the drug search is performed, and the target search result is obtained; the target search result is sent to the terminal of the target doctor for display. Compared with the prior art, the embodiment of the present application realizes the search of the drug through the historical prescription information of the current doctor, can make the drug search result most consistent with the prescription habit of the current doctor, improve the hit rate of the searched drug, greatly reduce the search time, and effectively improve the efficiency of the drug search. Further, as the implementation of the method shown in the above Figure 1 The embodiment of the present application provides a drug search device, as shown in the device shown in the above Figure 3 The device comprises:
[0117] The acquisition module 31 is configured to acquire a search keyword of a drug prescribed by a target doctor for a target patient and historical prescription information of the target doctor.
[0118] The matching module 32 is configured to perform drug search based on the search keyword and the historical prescription information to obtain a target search result.
[0119] The sending module 33 is configured to send the target search result to a terminal of the target doctor for display.
[0120] Further, the matching module 32 comprises:
[0121] The matching unit is configured to match the search keyword with drugs in the historical prescription information to obtain a first query result.
[0122] The configuration unit is configured to, if the number of drugs in the first query result is greater than or equal to a first preset number threshold, configure the drugs in the first query result as a target search result.
[0123] The query unit is configured to, if the number of drugs in the first query result is less than the first preset number threshold, query a drug library based on the drug library query strategy and the search keyword to obtain a target search result.
[0124] Further, in a specific application scenario, the query unit is specifically configured to, if the number of drugs in the first query result is less than the first preset number threshold, query the drug library based on the search keyword and a keyword combination strategy to obtain a second query result, in a case where the search keyword further comprises accessory drug description information.
[0125] The keyword priority strategy is configured to, if the second query result is greater than a second preset number threshold, filter the second query result based on a drug that has been prescribed by the target patient at this time and drug inventory information to obtain a target search result.
[0126] If the second query result is less than the second preset number threshold, the drug library is queried based on the search keyword and a keyword priority strategy to obtain a third query result, the keyword priority strategy comprising a plurality of query priorities corresponding to query keywords of various categories.
[0127] The third query result is filtered based on the drug that has been prescribed by the target patient at this time and the drug inventory information to obtain a target search result.
[0128] Further, in a specific application scenario, the query unit is specifically configured to determine, according to a keyword combination strategy, a target search keyword combination corresponding to the search keyword and a priority of the target search keyword combination;
[0129] perform the target search keyword combination according to the priority, and if a query result obtained after querying according to any target search keyword combination is not empty, stop querying and take the query result as a second query result.
[0130] Further, in a specific application scenario, the configuration unit is specifically configured to, if the number of drugs in the first query result is greater than or equal to a first preset number threshold, calculate a probability of each drug in the first query result appearing in the historical prescription information;
[0131] sort the drugs in the first query result based on the probability, and configure a sorting result as a target search result.
[0132] Further, the device further comprises:
[0133] The acquisition module 31 is further configured to acquire search content input by a target doctor in a drug search page component;
[0134] The division module is configured to perform keyword category division on the search content based on a preset regular expression to obtain an initial division result including at least one keyword category, the keyword category including at least one of a drug generic name, a bar code, an approval number, a specification, and a manufacturer;
[0135] The standardization processing module is configured to, if the initial division result contains a specification category keyword, perform standardization processing on the specification category keyword based on a standardization strategy to obtain a search keyword, the standardization strategy being configured based on a drug library specification standardization rule;
[0136] The configuration module is configured to, if the initial division result does not contain a specification keyword, configure the initial division result as a search keyword.
[0137] Further, the device further comprises:
[0138] The listening module is configured to, if it is listened that the current opened drug information of the target patient is updated, acquire the updated current opened drug information;
[0139] The generation module is configured to generate an expected candidate drug according to the updated current opened drug information and the historical prescription information;
[0140] The sending module 33 is further configured to send the expected candidate drug to a terminal of the target doctor, so that the terminal displays the expected candidate drug in a drug selection box in response to a key-in instruction of a page drug search component.
[0141] The present application provides a drug search device, which first acquires a search keyword of a target doctor for a target patient and historical prescription information of the target doctor, performs drug search based on the search keyword and the historical prescription information to obtain a target search result, and sends the target search result to a terminal of the target doctor for display. Compared with the prior art, the present application can make the drug search result most consistent with the prescription habits of the current doctor, improve the hit rate of the searched drug, greatly reduce the search time, and thus effectively improve the efficiency of drug search.
[0142] According to an embodiment of the present application, a storage medium is provided, which stores at least one executable instruction, and the computer executable instruction can execute the drug search method in any method embodiment.
[0143] Figure 4 A structural schematic diagram of a computer device according to an embodiment of the present application is shown, and the specific embodiments of the present application do not limit the specific implementation of the computer device.
[0144] As shown in Figure 4 the computer device can include a processor 402, a communications interface 404, a memory 406, and a communications bus 408.
[0145] The processor 402, the communications interface 404, and the memory 406 can communicate with each other through the communications bus 408.
[0146] The communications interface 404 is configured to communicate with network elements of other devices such as clients or other servers.
[0147] The processor 402 is configured to execute the program 410, and specifically can execute the related steps in the above drug search method embodiments.
[0148] Specifically, the program 410 can include program code including computer operation instructions.
[0149] The processor 402 can be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to perform the embodiments of the present application. The computer device can include one or more processors of the same type or different types, such as one or more CPUs and one or more ASICs.
[0150] The memory 406 is configured to store a program 410. The memory 406 can include a high-speed RAM memory, and can further include a non-volatile memory, such as at least one disk memory.
[0151] The program 410 can be specifically configured to enable the processor 402 to perform the following operations:
[0152] Obtaining a search keyword for a target patient to be prescribed by a target doctor, and historical prescription information of the target doctor;
[0153] Performing a drug search based on the search keyword and the historical prescription information to obtain a target search result keyword combination strategy keyword priority strategy based on the search keyword and the historical prescription information to perform a drug search to obtain a target search result;
[0154] Sending the target search result to a terminal of the target doctor for display.
[0155] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application can be realized by general computing devices, which can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be realized by program codes executable by computing devices, so that they can be stored in storage devices and executed by computing devices, and in some cases, the steps shown or described can be executed in different order, or they can be manufactured into individual integrated circuit modules, or multiple modules or steps can be manufactured into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
[0156] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A drug search method, characterized in that: include: Obtain search keywords for drugs prescribed by a target doctor for a target patient, and historical prescription information of the target doctor; Performing a drug search based on the search keyword and the historical prescription information to obtain a target search result specifically includes: matching the search keyword with the drugs in the historical prescription information to obtain a first query result; If the quantity of the medicines in the first query result is greater than or equal to a first preset quantity threshold, configuring the medicines in the first query result as target search results; If the number of drugs in the first query result is less than the first preset quantity threshold, then, if the search keyword also includes the attached drug description information, query the drug library based on the search keyword and the keyword combination strategy to obtain a second query result; If the second query result is greater than a second preset quantity threshold, filtering the second query result based on the currently prescribed drugs and drug inventory information of the target patient to obtain a target search result; If the second query result is less than the second preset number threshold, querying the drug library according to the search keyword and the keyword priority strategy to obtain a third query result, wherein the keyword priority strategy includes a plurality of query priorities corresponding to each category of query keyword; Filtering the third query result based on the currently prescribed drugs and drug inventory information of the target patient to obtain target search results; The target search result is sent to the target doctor's terminal for display.
2. The method according to claim 1, characterized in that The keyword combination strategy includes a plurality of preset keyword combinations and a priority of each preset keyword combination. The second query result obtained by querying the drug library based on the search keyword and the keyword combination strategy includes: Determining the target search keyword combination corresponding to the search keyword and the priority of the target search keyword combination according to the keyword combination strategy; The target search keyword combination is executed according to the priority. If a query result obtained after querying according to any target search keyword combination is non-empty, the query is stopped and the query result is used as the second query result.
3. The method according to claim 1, characterized in that If the quantity of drugs in the first query result is greater than or equal to a first preset quantity threshold, configuring the drugs in the first query result as target search results includes: If the quantity of drugs in the first query result is greater than or equal to a first preset quantity threshold, calculating the probability of each drug in the first query result appearing in the historical prescription information; The drugs in the first query result are sorted based on the probability, and the sorted results are configured as target search results.
4. The method according to claim 1, wherein Before obtaining the search keywords for the target doctor's prescriptions for the target patient and the target doctor's historical prescription information, the method further includes: Get the search content typed by the target doctor in the drug search page component; Classifying the search content into keyword categories based on a preset regular expression to obtain an initial classification result including at least one keyword category, wherein the keyword category includes at least one of a generic name of a drug, a barcode, an approval number, a specification, and a manufacturer; If the initial classification result contains a specification keyword, the specification keyword is standardized based on a standardization strategy to obtain a search keyword, wherein the standardization strategy is configured based on a drug library specification standardization rule; If the initial division result does not include the specification keyword, the initial division result is configured as the search keyword.
5. The method according to any one of claims 1 to 4, characterized in that After sending the target search result to the target doctor's terminal, the method further includes: If the target patient's prescribed drug information is updated, the updated prescribed drug information is obtained; generating an expected candidate drug based on the updated currently prescribed drug information and the historical prescription information; The expected candidate drugs are sent to the terminal of the target doctor, so that the terminal displays the expected candidate drugs in a drug selection box in response to a key-in instruction of a page drug search component.
6. A drug search device, characterized in that: include: An acquisition module is used to acquire search keywords for drugs prescribed by a target doctor for a target patient, and historical prescription information of the target doctor; A matching module is configured to perform a drug search based on the search keyword and the historical prescription information to obtain a target search result. A keyword combination strategy and a keyword priority strategy are configured to perform a drug search based on the search keyword and the historical prescription information to obtain a target search result, specifically comprising: matching the search keyword with the drugs in the historical prescription information to obtain a first query result; If the quantity of the medicines in the first query result is greater than or equal to a first preset quantity threshold, configuring the medicines in the first query result as target search results; If the number of drugs in the first query result is less than the first preset quantity threshold, then, if the search keyword also includes the attached drug description information, query the drug library based on the search keyword and the keyword combination strategy to obtain a second query result; If the second query result is greater than a second preset quantity threshold, filtering the second query result based on the currently prescribed drugs and drug inventory information of the target patient to obtain a target search result; If the second query result is less than the second preset number threshold, querying the drug library according to the search keyword and the keyword priority strategy to obtain a third query result, wherein the keyword priority strategy includes a plurality of query priorities corresponding to each category of query keyword; Filtering the third query result based on the currently prescribed drugs and drug inventory information of the target patient to obtain target search results; The sending module is used to send the target search result to the terminal of the target doctor for display.
7. A storage medium storing at least one executable instruction, wherein the executable instruction enables a processor to execute an operation corresponding to the drug search method according to any one of claims 1 to 5.
8. A computer device comprising: A processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the drug search method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Prescribing assisting system and method based on medical informatization
CN106599589A
Medicine management method, device and equipment based on intelligent medicine box and storage medium
CN115662654A