Identification method and device, computer equipment and storage medium
By standardizing the drug names in the initial prescription and using the matching of computers to the basic prescription database, the accuracy and efficiency of basic prescription recognition in clinical prescriptions are solved, and the rapid and accurate identification results are achieved, providing medical analysis with the provision of medical analysis. Reliable support.
Patent Information
- Application Number
- CN202411388923.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2024-12-31
AI Technical Summary
The identification accuracy and efficiency of basic clinical prescriptions in the prior art are difficult to guarantee, and they remain in the manual identification stage, resulting in inaccurate and time-consuming identification results.
By traversing each drug name in the initial prescription to match the first and second information tables, replacing the non-standard name and abbreviation name as the standard name and split name, forming the target prescription, and combining it with the basic prescription database Make a match to determine the base side. This method relies entirely on computers for identification and avoids manual intervention.
It realizes rapid and accurate identification of basic formulas among clinical prescriptions, improves identification efficiency and accuracy, and provides reliable data support for medical analysis.
Smart Images

Figure CN119227687A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the field of computer technology, and more particularly to an identification method, apparatus, computer device and storage medium. Background Art
[0002] In TCM research and clinical practice, prescriptions are the core component of disease treatment. A prescription has three elements: composition of drugs, specific operation and application methods, and clear indications. None of them can be missing.
[0003] At present, prescriptions can be divided into basic prescriptions and clinical prescriptions. Basic prescriptions refer to prescriptions with clear drug composition, operation and application methods, and indications. Clinical prescriptions refer to Chinese medicine compound prescriptions prescribed by doctors for patients based on syndrome differentiation results in real clinical diagnosis and treatment processes. They can be obtained by adding, subtracting, and combining basic prescriptions. The identification of basic prescriptions in clinical prescriptions has certain guiding role and practical value for TCM teaching, scientific research, medical treatment, resource development, and new drug development.
[0004] Currently, the recognition of basic prescriptions in clinical prescriptions is still at the manual recognition stage, and its recognition accuracy is difficult to guarantee and its recognition efficiency is low. Summary of the invention
[0005] In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a method that can efficiently and accurately identify the basic prescriptions in clinical prescriptions.
[0006] A first aspect provides an identification method, the method comprising: Traversing each drug name in the initial prescription, matching each drug name with the first information table and the second information table respectively, and determining the first target drug and the second target drug in the initial prescription, wherein the first information table includes a plurality of standard drug names and non-standard names corresponding to each of the standard names, and the second information table includes a plurality of abbreviated drug names and split drug names corresponding to each of the abbreviated drug names, the first target drug is a drug using a non-standard name in the initial prescription, and the second target drug is a drug using an abbreviated drug name in the initial prescription; Replacing the non-standard name of the first target drug in the initial prescription with a standard name corresponding to the non-standard name of the first target drug based on the first information table, and replacing the name of the second target drug in the initial prescription with a split drug name corresponding to the name of the second target drug based on the second information table, to obtain a target prescription; The target prescription is matched with a basic prescription database, and the basic prescription in the target prescription is determined according to the matching result.
[0007] The identification method provided by the present application considers that the existing identification of the basic prescription in the clinical prescription is still at the stage of manual identification, and the accuracy and efficiency of its identification are difficult to guarantee. The present application provides an identification method. After obtaining an initial prescription, the identification method first matches each drug name in the initial prescription with the first information table and the second information table respectively to determine the drugs using non-standard names and the drugs using abbreviated drug names in the initial prescription, and replaces the drug names using non-standard names with standard names corresponding to the non-standard names and replaces the drug names using abbreviated drug names with split drug names corresponding to the abbreviated drug names to obtain the target drug, so that the drug names of each drug in the initial drug can be uniformly processed before the initial drug is identified, ensuring the consistency of the identification data and facilitating subsequent unified identification; and then matching the target prescription with a basic prescription database including multiple basic prescriptions, so as to obtain the basic prescription existing in the target drug according to the matching result, and the identification method completely relies on the computer for identification, and does not require human participation. Since the computer has a set of rigorous and efficient identification processes, it can quickly and accurately identify the basic prescriptions in the clinical prescriptions, and provide reliable data support for subsequent medical analysis.
[0008] A second aspect provides an identification device, the device comprising: A first matching determination module is used to traverse each drug name in the initial prescription, match each drug name with the first information table and the second information table respectively, and determine the first target drug and the second target drug in the initial prescription, wherein the first information table includes a plurality of standard drug names and non-standard names corresponding to each of the standard names, and the second information table includes a plurality of abbreviated drug names and split drug names corresponding to each of the abbreviated drug names, the first target drug is a drug using a non-standard name in the initial prescription, and the second target drug is a drug using an abbreviated drug name in the initial prescription; a replacement module, configured to replace the non-standard name of the first target drug in the initial prescription with a standard name corresponding to the non-standard name of the first target drug based on the first information table, and to replace the name of the second target drug in the initial prescription with a split drug name corresponding to the name of the second target drug based on the second information table, to obtain a target prescription; The second matching determination module is used to match the target prescription with a basic prescription database, and determine the basic prescription in the target prescription according to the matching result.
[0009] A third aspect provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method described in the first aspect are implemented.
[0010] A fourth aspect provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0011] A fifth aspect provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings: Figure 1 A schematic diagram of the structure of an identification system provided for this application; Figure 2 A flowchart of the steps of an identification method provided by this application; Figure 3 A flowchart of the steps of an identification method provided by this application; Figure 4 A flowchart of the steps of an identification method provided by this application; Figure 5 A flowchart of the steps of an identification method provided by this application; Figure 6 A schematic diagram of the structure of an identification device provided in this application; Figure 7 A schematic diagram of the structure of a computer device provided in this application. DETAILED DESCRIPTION
[0013] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.
[0014] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0015] Please refer to Figure 1 , Figure 1The present application provides a structural diagram of an identification system, which includes a prescription collection device and a computer device. The prescription collection device includes, for example, a scanner, a mobile terminal, a camera, a video camera, etc. The computer device is, for example, a laptop computer, a desktop computer, a single server, a server cluster, etc., which is not limited in the present application. After the prescription collection device collects the prescription to be identified, it sends the collected prescription to the computer device through the network so that the computer device performs the corresponding operation to identify the clinical prescription in the prescription.
[0016] like Figure 2 As shown, Figure 2 The following is a flowchart of a recognition method provided by an exemplary embodiment of the present application. Taking the recognition method applied to the above-mentioned computer device as an example, the method is described. The method includes the following steps: Step S20, traverse each drug name in the initial prescription, match each drug name with the first information table and the second information table respectively, determine the first target drug and the second target drug in the initial prescription, the first information table includes multiple standard drug names and non-standard names corresponding to each standard name, the second information table includes multiple abbreviated drug names and split drug names corresponding to each abbreviated drug name, the first target drug is a drug with a non-standard name in the initial prescription, and the second target drug is a drug with an abbreviated drug name in the initial prescription; The initial prescription may be a clinical prescription issued by a doctor and obtained through the prescription collection device, or may be a prescription input through an input module of a computer device based on the clinical prescription issued by a doctor. The initial prescription may include multiple drug names, and the multiple drug names may be displayed in a row or in a column on a display module of a computer device.
[0017] Exemplarily, the initial prescription is white peony root, four gentlemen, dandelion, scutellaria, phellodendron, gardenia, curcuma, raw rehmannia, ophiopogon, scrophularia, lotus root node, atractylodes, white hyacinth bean, and red dates.
[0018] The first information table includes multiple standard names of drugs and non-standard names corresponding to each standard name. The standard name of a drug is a standardized name for the drug, that is, a unified name, that is, no matter in Hunan, Guangzhou or Suzhou, the drug has only one name. The non-standard name is another way of saying the standard name of the drug, that is, other names of the drug besides the standard name.
[0019] Exemplarily, the first information table is: Standard name Non-standard name White peony root, white peony root, golden peony root, white peony root Turmeric laurel, yellow turmeric, purple turmeric, broad turmeric Indigo, blue dew, indigo flower Ginger, fresh ginger Angelica dahurica fragrance, fragrant Windproof copper vine, fennel, 100 branches, screen Xanthium sibiricum, ground sunflower, Taoist head, pig ear, thorny tree Qianghuo Qiangqing, the envoy to protect the Qiang, Qianghua, the envoy to retreat the wind Asarum, Xiaoxin, Xicao, Shaoxin, Duyecao, Mountain Ginseng Nepeta spicata, Nepeta spicata, Artemisia tetragonulata, Artemisia spicata Ephedra Longsha, dog bones, beixiang, beiyan Cimicifuga zhouma, chicken bone Cimicifuga, ghost face Cimicifuga Bupleurum, Radix Rucae, Radix Chaihu, Radix Cibotii … The standard name of the drug in the first information table can be obtained by referring to the Chinese Pharmacopoeia, and the non-standard name of the drug can be obtained by referring to the Chinese Materia Medica. After the first information table is successfully established, it can be pre-stored in the computer device, and when the prescription needs to be identified, it can be read from the memory address of the computer device through a function based on pandas in Python.
[0020] The second information table includes a plurality of abbreviated drug names and split drug names corresponding to each abbreviated drug name. The abbreviated drug name is a drug name expression method for conveniently representing the names of multiple drugs by one name.
[0021] Exemplarily, the second information table is: Abbreviated drug names Split drug names red and white peony root red and white peony root Atractylodes macrocephala, Atractylodes macrocephala Jiao Sanxian Jiao Hawthorn, Jiao Shenqu, Jiao Malt Four Gentlemen Ginseng, Poria, Atractylodes, Licorice Jade powder talc, liquorice, indigo … The abbreviated names and split names of the drugs in the second information table may be obtained based on other Chinese medicine classics, popular prescriptions, experience, etc. After the second information table is successfully established, it may be pre-stored in the computer device, and when the prescription needs to be identified, it is read from the memory address of the computer device based on the pandas function in Python.
[0022] Exemplarily, if the initial prescription is white peony root, Sijunzi, dandelion, Scutellaria baicalensis, Phellodendron chinense, Gardenia jasminoides, Curcuma aromatica, Rehmannia root, Ophiopogon japonicus, Scrophularia ningpoensis, Lotus root nodes, Atractylodes macrocephala, White lentil, and red dates, white peony root, Sijunzi, dandelion, Scutellaria baicalensis, Phellodendron chinense, Gardenia jasminoides, Curcuma aromatica, Rehmannia root, Ophiopogon japonicus, Scrophularia ningpoensis, Lotus root nodes, Atractylodes macrocephala, White lentil, and red dates are matched with the first information table and the second signal table respectively, and the first target drugs using non-standard names are white peony root and Curcuma aromatica, and the second target drug using abbreviated drug names is Sijunzi.
[0023] Step S30, replacing the non-standard name of the first target drug in the initial prescription with a standard name corresponding to the non-standard name of the first target drug based on the first information table, and replacing the name of the second target drug in the initial prescription with a split drug name corresponding to the name of the second target drug based on the second information table, to obtain a target prescription; Among them, according to the above, the first target drug in the initial prescription is a drug using a non-standard name, and the second target drug is a drug using an abbreviated drug name. In order to facilitate the recognition of computer equipment and subsequent comparison, the present application may be to replace the drug name of the first target drug with the corresponding standard name and replace the drug name of the second target drug with the corresponding split drug name after identifying the first target drug and the second target drug in the initial prescription.
[0024] Exemplarily, the computer device replaces the white peony root in the initial prescription with white peony root, replaces the radix curcumae with curcumae, and replaces the four gentlemen with ginseng, tuckahoe, atractylodes, and licorice. Then the target prescription obtained is: white peony root, ginseng, tuckahoe, atractylodes, licorice, dandelion, scutellaria, phellodendron, gardenia, curcuma, raw rehmannia root, ophiopogon, scrophularia, lotus root node, atractylodes, white lentil, and red dates.
[0025] Step S40, matching the target prescription with the basic prescription database, and determining the basic prescription in the target prescription according to the matching result.
[0026] Among them, the basic prescription database can be constructed with reference to the textbook "Pharmacology". Since the basic prescription database includes multiple basic prescriptions, by matching the target prescription with the basic prescription database, the common drugs in the target prescription and each basic prescription in the basic prescription database can be identified. Since the common drugs between the target prescription and the basic prescription are obtained by comparing with the basic prescription, the basic prescription existing in the target prescription can be determined in this way.
[0027] Exemplarily, the basic party database includes: 1. Chuanlianzi, Yuanhu, Trichosanthes, Salvia miltiorrhiza, White Peony Root, Curcuma Radix, Bupleurum, Chuanxiong, Angelica, Moutan Cortex, Gardenia 2. Raw white peony root, wormwood, chicken gizzard lining, turmeric, Toosendan, Corydalis, sea gold sand, money grass, roasted licorice, bupleurum, cyperus, gardenia, rhubarb 3. White peony root, asparagus, Chinese rhizome, raw dragon bone, raw oyster, raw ochre, Scrophularia, Chuanlianzi, raw turtle shell, Artemisia capillaris, raw malt, licorice, hawthorn 4. Bupleurum method: Pinellia, Codonopsis, Licorice, Ginger, Red Dates 5. Artemisia capillaris, gardenia, rhubarb, phellodendron, honeysuckle, scutellaria, forsythia 6. Stir-fried tangerine peel, white peony root, saposhnikovia root, atractylodes and cimicifuga 7. Coptis chinensis, ... Phellodendron chinense, Gardenia jasminoides 8. Coptis chinensis, ... Phellodendron chinense, Gardenia jasminoides, Ophiopogon japonicus … There are two ways to match the target prescription with the basic prescription database: The first method is to match each drug in the target prescription with each basic prescription in the basic prescription database in sequence.
[0028] Exemplarily, the target prescription is: white peony root, ginseng, Poria cocos, Atractylodes macrocephala, licorice, dandelion, Scutellaria baicalensis, Phellodendron chinense, Gardenia jasminoides, Curcuma aromatica, Rehmannia root, Ophiopogon japonicus, Scrophularia ningpoensis, Lotus root node, Atractylodes lancea, White hyacinth bean, and red dates.
[0029] Then the matching method is to match the target prescription with basic prescription No. 1, basic prescription No. 2, basic prescription No. 3... in the basic prescription database respectively.
[0030] The matching results obtained include: The common drug name of the target prescription and prescription No. 1 is: White Peony Root and Gardenia The common drug name of the target prescription and prescription No. 2 is: Curcuma Gardenia The common drug names of the target prescription and prescription No. 3 are: White Peony Root, Scrophularia, and Licorice The common drug name of the target prescription and prescription No. 4 is: Red Dates and Licorice The common drug name of the target prescription and prescription No. 5 is: Gardenia and Scutellaria The common drug name of the target prescription and prescription No. 6 is: White Peony Root and White Atractylodes Macrocephala The common drug names of the target prescription and prescription No. 7 are: Scutellaria baicalensis, Phellodendron chinense, Gardenia jasminoides The common drug names of the target prescription and prescription No. 8 are: Scutellaria baicalensis, Phellodendron chinense, Gardenia jasminoides, Radix Ophiopogonis … The second method: obtaining matching requirements, determining the target basic prescription from the basic prescription database according to the matching requirements, and matching each drug in the target prescription with the target basic prescription.
[0031] The matching requirement may be input by the user through an input module of the computer device, or may be preset by the computer device. The matching requirement may vary according to different users, different identification purposes, etc., and the specific content of the matching requirement is not limited here.
[0032] If the matching requirement is to match only with basic parties No. 7 and No. 8, the matching result is: The common drug names of the target prescription and prescription No. 7 are: Scutellaria baicalensis, Phellodendron chinense, Gardenia jasminoides The common drug names of the target prescription and prescription No. 8 are: Scutellaria baicalensis, Phellodendron chinense, Gardenia jasminoides, and Radix Ophiopogonis.
[0033] After obtaining the matching result of the target prescription and the basic prescription database according to any of the above methods, the matching result that the target prescription and the basic prescription in the basic prescription database have a common drug can be output as the basic prescription of the target prescription.
[0034] Exemplarily, after obtaining the matching results through the above matching, prescription No. 1, prescription No. 2, prescription No. 3, prescription No. 4, prescription No. 5, prescription No. 6, prescription No. 7, and prescription No. 8 can all be output as the basic prescriptions of the target prescription.
[0035] In an optional embodiment, since some shared drugs are only preset drugs with harmonizing and auxiliary effects, that is, the shared drugs can be added to any prescription or the shared drugs do not play a major therapeutic role in the prescription. Then, the preset drugs in the shared drugs can be not used as the basic prescription of the target prescription. Exemplary preset drugs include: ginger, red dates, licorice... Exemplarily, the common drug names of the target prescription and prescription No. 3 are: white peony root, Scrophularia ningpoensis, and licorice, which may be a basic prescription without licorice as the target prescription; The common drug name of the target prescription and prescription No. 4 is: red dates and licorice. It can be the basic prescription without red dates and licorice as the target prescription.
[0036] Exemplarily, after obtaining the matching results through the above matching, prescription No. 1, prescription No. 2, prescription No. 3, prescription No. 5, prescription No. 6, prescription No. 7, and prescription No. 8 may all be output as the basic prescriptions of the target prescription.
[0037] like Figure 3 As shown, in an optional embodiment, in order to facilitate better and faster matching of each drug in the initial drug with the first information table and the second information table, the present application may perform the following operations: Step S301, creating a comparison table based on each drug name in the initial prescription, each drug name being a row of data in the comparison table; Among them, the present application can be based on Python's table processing related functions to read the name of each drug in the initial prescription, and then write the name of each drug in the initial medicine into the corresponding position in the table to obtain a comparison table.
[0038] It should be noted that in the conversion process of writing the name of each drug in the initial medicine into the table, taking into account that prescriptions can be long or short, the present application does not limit the reading range of each drug name in the prescription. Preferably, in order to facilitate reading and query, it can be directly set to read and write all the drug names according to the maximum length of the prescription.
[0039] Exemplarily, the comparison table is, for example:
[0040] Step S302, removing interference characters in the comparison table; Among them, interference characters are, for example, spaces, colons, commas, semicolons, quotation marks, dashes, etc. If these interference characters appear in any of the above tables, they will affect the subsequent matching results. Therefore, in order to ensure data consistency, after creating the comparison table, the interference characters in the comparison table need to be removed.
[0041] Step S303, calling the first information table based on the Python import function, and traversing each drug name in the comparison table and each non-standard name in the first information table based on the built-in function of Python; In order to facilitate comparison, the first information table may also be stored in the same table format as the initial prescription in the memory address corresponding to the computer device. For example, the first information table is:
[0042] When prescription identification is required, the computer device calls the first information table based on the Python import function, and traverses each drug name in the comparison table and each non-standard name in the first information table based on Python's built-in function, and matches each drug name in the comparison table with each non-standard name in the first information table one by one. Exemplarily, the import function is, for example, a pandas function, and the built-in function is, for example, a range(len(df)) function.
[0043] Step S304, calling the second information table based on the Python import function, and traversing each drug name in the comparison table and each abbreviated drug name in the second information table based on Python's built-in function.
[0044] In order to facilitate comparison, the second information table may also be stored in the same table format as the initial prescription in the memory address corresponding to the computer device. For example, the second information table is:
[0045] When prescription identification is required, the computer device calls the second information table based on the Python import function, and traverses each drug name in the comparison table and each non-standard name in the second information table based on Python's built-in function, and matches each drug name in the comparison table with each non-standard name in the second information table one by one.
[0046] Since the Python language contains a wealth of data processing and pattern recognition technologies, the computer device of the present application performs operations based on the Python language, such as creating a comparison table, creating a first information table, creating a second information table, reading the first information table, reading the second information table, traversing the comparison table, the first information table, and the data in the second information table, thereby improving data processing efficiency and the accuracy and efficiency of prescription recognition.
[0047] After the basic prescription in the initial prescription is identified by the above identification method, the present application can provide reliable data support for performing the following operations. In another optional embodiment, Figure 4 As shown, the following operations are also included: Step S401, determining the difference between the target prescription and the basic prescription; Among them, the differences are actually the names of drugs in the target prescription that are different from those in the basic prescription.
[0048] Exemplarily, the differences between the target prescription and prescription No. 1 are: ginseng, Poria, Atractylodes macrocephala, Licorice, Taraxacum officinale, Scutellaria baicalensis, Phellodendron chinense, Curcuma aromatica, Rehmannia root, Ophiopogon japonicus, Scrophularia ningpoensis, Lotus root node, Atractylodes lancea, White lentil, Red dates; The differences between the target prescription and prescription No. 2 are: white peony root, ginseng, Poria, Atractylodes macrocephala, licorice, dandelion, Scutellaria baicalensis, Phellodendron chinense, Rehmannia root, Ophiopogon japonicus, Scrophularia ningpoensis, Lotus root node, Atractylodes lancea, White lentil, and red dates; The differences between the target prescription and prescription No. 3 are: ginseng, Poria, Atractylodes macrocephala, dandelion, Scutellaria baicalensis, Phellodendron chinense, Gardenia jasminoides, Curcuma aromatica, Rehmannia root, Ophiopogon japonicus, Lotus root node, Atractylodes lancea, White lentil, Red dates; The differences between the target prescription and prescription No. 4 are: white peony root, ginseng, Poria, Atractylodes macrocephala, dandelion, Scutellaria baicalensis, Phellodendron chinense, Gardenia jasminoides, Curcuma aromatica, Rehmannia root, Ophiopogon japonicus, Scrophularia ningpoensis, Lotus root node, Atractylodes lancea, and White Lablab; The differences between the target prescription and prescription No. 5 are: white peony root, ginseng, Poria, Atractylodes macrocephala, licorice, dandelion, Phellodendron, Curcuma, Rehmannia root, Ophiopogon japonicus, Scrophularia ningpoensis, Lotus root node, Atractylodes lancea, White lentil, and red dates; The differences between the target prescription and prescription No. 6 are: ginseng, Poria, licorice, dandelion, Scutellaria, Phellodendron, Gardenia, Curcuma, Rehmannia, Ophiopogon, Scrophularia, Lotus Root, Atractylodes, White Laba, Red Dates; The differences between the target prescription and prescription No. 7 are: white peony root, ginseng, Poria, Atractylodes macrocephala, licorice, dandelion, Curcuma, Rehmannia root, Ophiopogon japonicus, Scrophularia ningpoensis, lotus root node, Atractylodes lancea, white lentil, and red dates; The differences between the target prescription and prescription No. 8 are: white peony root, ginseng, Poria cocos, Atractylodes macrocephala, licorice, dandelion, Curcuma aromatica, Rehmannia root, Scrophularia ningpoensis, lotus root node, Atractylodes lancea, white hyacinth bean, and red dates.
[0049] Step S402, identifying new drugs or reduced drugs in the target prescription relative to the basic prescription based on the difference; The difference between the target prescription and the basic prescription may be that a drug is added to the basic prescription, or that a drug is reduced from the basic prescription. By obtaining the difference between the target prescription and the basic prescription, it is possible to determine whether the target prescription has a new drug or a reduced drug relative to the basic prescription, and the drug name of the new drug or the drug name of the reduced drug can be obtained.
[0050] Step S403, determining the relationship between the newly added or reduced drugs and the condition, and obtaining experience in adding or reducing drugs according to the condition.
[0051] Among them, after obtaining the new drugs or reduced drugs in the target prescription relative to the basic prescription based on the above operations, the present application can associate the new drugs or reduced drugs with the condition to be treated by the target prescription, obtain the experience of adding or subtracting drugs for the condition, and record it for subsequent learning or reference by other doctors.
[0052] In addition, after determining the basic prescription in the target prescription, the application can further analyze the reasons for retaining the basic prescription in the target prescription, so as to provide reliable data support for helping other doctors understand the application of basic prescriptions in clinical practice and reveal the use of basic prescriptions in different diseases.
[0053] In yet another optional embodiment, the present application also provides a method for constructing a first information table, such as Figure 5 As shown, the method comprises the following steps: Step S501, obtaining at least one non-standard name of each drug according to a first database, the first database including the non-standard name of each drug; Step S502, determining the standard name of each drug according to the second database, the second database including the standard name of each drug; Step S503, establishing a correspondence between the standard name of each drug and at least one non-standard name to obtain a first information table.
[0054] It should be noted that the first database can be constructed with reference to the Chinese Materia Medica; the second database can be constructed with reference to the Chinese Pharmacopoeia.
[0055] The recognition method provided by the present application considers that the existing recognition of the basic prescription in the clinical prescription is still at the stage of manual recognition, and the accuracy and efficiency of its recognition are difficult to guarantee. The present application provides a recognition method. After obtaining an initial prescription, the recognition method first matches each drug name in the initial prescription with the first signal table and the second information table respectively to determine the drugs using non-standard names and the drugs using abbreviated drug names in the initial prescription, and replaces the drug names using non-standard names with standard names corresponding to the non-standard names and replaces the drug names using abbreviated drug names with split drug names corresponding to the abbreviated drug names to obtain the target drug, so that the drug names of each drug in the initial drug can be uniformly processed before the initial drug is identified, ensuring the consistency of the identification data and facilitating subsequent unified identification; and then matching the target drug with a basic prescription database including multiple basic prescriptions, so as to obtain the basic prescription existing in the target drug according to the matching results, and the recognition method completely relies on computers for recognition, and does not require human participation. Since the computer has a set of rigorous and efficient recognition processes, it can quickly and accurately identify the basic prescriptions in the clinical prescriptions, and provide reliable data support for subsequent medical analysis.
[0056] It should be noted that although the operations of the method of the present invention are described in a particular order in the drawings, this does not require or imply that the operations must be performed in this particular order or that all illustrated operations must be performed to achieve desired results.
[0057] Further references Figure 6 , which shows an exemplary structural block diagram of an identification device 600 for identifying a basic prescription in a prescription according to an embodiment of the present application. The identification device 600 includes: a first matching determination module 601, a replacement module 602 and a second matching determination module 603.
[0058] The first matching determination module 601 is used to traverse each drug name in the initial prescription, match each drug name with the first information table and the second information table respectively, and determine the first target drug and the second target drug in the initial prescription, the first information table includes a plurality of standard drug names and non-standard names corresponding to each standard name, the second information table includes a plurality of abbreviated drug names and split drug names corresponding to each abbreviated drug name, the first target drug is a drug with a non-standard name in the initial prescription, and the second target drug is a drug with an abbreviated drug name in the initial prescription; A replacement module 602 is used to replace the non-standard name of the first target drug in the initial prescription with a regular name corresponding to the non-standard name of the first target drug based on the first information table, and replace the name of the second target drug in the initial prescription with a split drug name corresponding to the name of the second target drug based on the second information table, to obtain a target prescription; The second matching determination module 603 is used to match the target prescription with the basic prescription database, and determine the basic prescription in the target prescription according to the matching result.
[0059] In an optional embodiment, the first matching determination module 601 is specifically configured to create a comparison table based on each drug name in the initial prescription, each drug name being a row of data in the comparison table; Removing interfering characters in the comparison table; Calling the first information table based on a Python import function, and traversing each drug name in the comparison table and each non-standard name in the first information table based on a Python built-in function; The second information table is called based on the Python import function, and each drug name in the comparison table and each abbreviated drug name in the second information table are traversed based on the built-in function of Python.
[0060] In an optional embodiment, the second matching determination module 603 is specifically used to determine the basic prescription containing the common drug as the basic prescription of the target prescription if the matching result is that the target prescription and the basic prescription in the basic prescription database have common drugs, and the common drugs do not belong to the preset drugs. The preset drugs are drugs with harmonizing and auxiliary effects.
[0061] In an optional embodiment, the identification device 600 further includes an analysis module; an analysis module, for determining the difference between the target prescription and the basic prescription; Based on the difference, identifying the newly added drugs or reduced drugs in the target prescription relative to the basic prescription; Determine the relationship between the newly added drug or the reduced drug and the condition, and obtain experience in adding or subtracting drugs for the condition.
[0062] In an optional embodiment, an analysis module is used to analyze the reasons for retaining the basic prescription in the target prescription based on the basic prescription in the target prescription, and obtain the role of the basic prescription in the treatment.
[0063] In an optional embodiment, the identification device 600 further includes a construction module; A construction module is used to obtain at least one non-standard name of each drug according to a first database, wherein the first database includes the non-standard name of each drug; determining a standard name for each drug according to a second database, wherein the second database includes the standard name for each drug; A correspondence between the standard name of each drug and at least one non-standard name is established to obtain the first information table.
[0064] In an optional embodiment, the second matching determination module 603 is specifically configured to sequentially match each drug in the target prescription with each basic prescription in the basic prescription database; or, A matching requirement is obtained, a target basic prescription is determined from the basic prescription database according to the matching requirement, and each drug in the target prescription is matched with the target basic prescription.
[0065] It should be understood that the modules recorded in the identification device 600 and the reference Figure 2 The steps in the described method correspond to each other. Therefore, the operations and features described above for the method are also applicable to the identification device 600 and the modules contained therein, and will not be repeated here. The identification device 600 can be pre-implemented in the browser or other security applications of the electronic device, or loaded into the browser or its security application of the electronic device by downloading or the like. The corresponding modules in the identification device 600 can cooperate with the modules in the electronic device to implement the solution of the embodiment of the present application.
[0066] In another embodiment, the present application further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, any of the above method steps performed by the computer device is implemented.
[0067] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer device 200 suitable for implementing an embodiment of the present application.
[0068] like Figure 7 As shown, the computer device 200 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0069] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.
[0070] In particular, according to the embodiments of the present disclosure, the above reference Figure 2 The described processes may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising a computer program for executing Figure 2 In such an embodiment, the computer program may be downloaded and installed from a network via the communication section 709 and / or installed from the removable medium 711.
[0071] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a different order from the order marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0072] The units or modules involved in the embodiments described in the present application may be implemented by software or hardware. The units or modules described may also be arranged in a processor, for example, may be described as: a processor includes an XX unit, a YY unit, and a ZZ unit. The names of these units or modules do not, in some cases, constitute a limitation on the unit or module itself, for example, the XX unit may also be described as a "unit for XX".
[0073] As another aspect, the present application further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the device described in the above embodiment; or a computer-readable storage medium that exists independently and is not assembled into the device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the formula input method described in the present application.
[0074] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the present application.
Claims
1. A recognition method, characterized in that: The method comprises: Traversing each drug name in the initial prescription, matching each drug name with the first information table and the second information table respectively, and determining the first target drug and the second target drug in the initial prescription, wherein the first information table includes a plurality of standard drug names and non-standard names corresponding to each of the standard names, and the second information table includes a plurality of abbreviated drug names and split drug names corresponding to each of the abbreviated drug names, the first target drug is a drug in the initial prescription using a non-standard name, and the second target drug is a drug in the initial prescription using an abbreviated drug name; Replacing the non-standard name of the first target drug in the initial prescription with a standard name corresponding to the non-standard name of the first target drug based on the first information table, and replacing the name of the second target drug in the initial prescription with a split drug name corresponding to the name of the second target drug based on the second information table, to obtain a target prescription; The target prescription is matched with a basic prescription database, and the basic prescription in the target prescription is determined according to the matching result.
2. The identification method according to claim 1, characterized in that: The traversing each drug name in the initial prescription and matching each drug name with the first information table and the second information table respectively includes: Creating a comparison table based on each drug name in the initial prescription, each drug name being a row of data in the comparison table; Removing interfering characters in the comparison table; Calling the first information table based on a Python import function, and traversing each drug name in the comparison table and each non-standard name in the first information table based on a Python built-in function; The second information table is called based on the Python import function, and each drug name in the comparison table and each abbreviated drug name in the second information table are traversed based on the built-in function of Python.
3. The identification method according to claim 1, characterized in that: Determining the basic prescription in the target prescription according to the matching result includes: If the matching result is that the target prescription and the basic prescription in the basic prescription database have common drugs, and the common drugs do not belong to preset drugs, the basic prescription containing the common drugs is determined as the basic prescription of the target prescription, and the preset drugs are drugs with harmonizing and auxiliary effects.
4. The identification method according to claim 3, characterized in that: The method further comprises: determining the difference between the target prescription and the base prescription; Based on the difference, identifying the newly added drugs or reduced drugs in the target prescription relative to the basic prescription; Determine the relationship between the newly added drug or the reduced drug and the condition, and obtain experience in adding or subtracting drugs for the condition.
5. The identification method according to claim 3, characterized in that: The reason why the basic prescription is retained in the target prescription is analyzed based on the basic prescription in the target prescription to obtain the role of the basic prescription in the treatment.
6. The identification method according to claim 1, characterized in that: The method further comprises the step of constructing the first information table: acquiring at least one non-standard name for each drug according to a first database, wherein the first database includes the non-standard names for each drug; determining a standard name for each drug according to a second database, wherein the second database includes the standard name for each drug; A correspondence between the standard name of each drug and at least one non-standard name is established to obtain the first information table.
7. The identification method according to claim 1, characterized in that: The matching of the target prescription with the basic prescription database includes: Matching each drug in the target prescription with each basic prescription in the basic prescription database in sequence; or, A matching requirement is obtained, a target basic prescription is determined from the basic prescription database according to the matching requirement, and each drug in the target prescription is matched with the target basic prescription.
8. An identification device, characterized in that: The device comprises: A first matching determination module is used to traverse each drug name in the initial prescription, match each drug name with the first information table and the second information table respectively, and determine the first target drug and the second target drug in the initial prescription, wherein the first information table includes a plurality of standard drug names and non-standard names corresponding to each of the standard names, and the second information table includes a plurality of abbreviated drug names and split drug names corresponding to each of the abbreviated drug names, the first target drug is a drug using a non-standard name in the initial prescription, and the second target drug is a drug using an abbreviated drug name in the initial prescription; a replacement module, configured to replace the non-standard name of the first target drug in the initial prescription with a regular name corresponding to the non-standard name of the first target drug based on the first information table, and to replace the name of the second target drug in the initial prescription with a split drug name corresponding to the name of the second target drug based on the second information table, to obtain a target prescription; The second matching determination module is used to match the target prescription with a basic prescription database, and determine the basic prescription in the target prescription according to the matching result.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
