Medicine specification processing method and device, electronic equipment and storage medium
By obtaining key information from drug instructions and expanding indication information using reference tables, the problem of insufficient indication information in drug instructions has been solved, enabling automatic expansion of drug indications and improving medication safety.
Patent Information
- Application Number
- CN202411286969.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-09-13
AI Technical Summary
The indications for drugs in existing drug instructions are often omitted with the word "etc.", making it impossible to know the specific indications.
By obtaining key information from drug instructions and utilizing pre-set symptom information reference tables and ingredient indication reference tables, drug indication information can be expanded to generate target indication information.
It enables the automatic expansion of indication information in drug instructions, enriching drug indication information and improving medication safety.
Smart Images

Figure CN119271809A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology applications, and in particular to a drug instruction sheet processing method, device, electronic equipment and storage medium. Background Art
[0002] Drug instructions are reference materials for Chinese medicines that guide doctors in treatment. They are instructions written by companies after a large amount of preclinical and postclinical test data. They are the most important evidence-based evidence for clinicians and clinical pharmacists when providing drug treatment plans for patients. The drug indications, contraindications and other information in drug instructions are generally given in an abbreviated form with the word "etc.", that is, a general statement is used. For example, "XXX's indications are A, B, etc." The word "etc." will result in not knowing what other symptoms the drug can be used for. Therefore, based on the existing drug instructions, it is impossible to know its specific indication information. Summary of the invention
[0003] In view of the above technical problems, the technical solution adopted by the present invention is:
[0004] According to a first aspect of the present invention, a method for processing drug instructions is provided, the method comprising the following steps:
[0005] S100, obtaining the drug instructions to be processed as the target processing text.
[0006] S200, obtaining the first key information KI1 and the second key information KI2 in the target processing text; wherein KI1={KI11, KI12, ……, KI1 i , ..., KI1 m}, KI1 i is the i-th keyword obtained based on the indication information corresponding to the target treatment text, i is 1 to m, and m is the number of keywords obtained based on the indication information corresponding to the target treatment text; KI2 = {KI21, KI22, ..., KI2 j , ..., KI2 n}, KI2 j The jth component obtained based on the component information corresponding to the target processed text, where j is a value from 1 to n, and n is the number of components obtained based on the component information corresponding to the target processed text.
[0007] S300, based on KI1 and a preset symptom information reference table, obtain label information M of the symptom corresponding to KI1; wherein M=(M1∪M2∪……∪M i ∪……∪M m ), M i KI1 i Label information of the corresponding symptom.
[0008] S400, obtaining a common keyword Ck corresponding to M, and based on Ck and the preset symptom information reference table, obtaining a symptom name set NS corresponding to Ck.
[0009] S500, obtaining KI1∪NS as the first indication information ID1 of the target processing text.
[0010] S600, based on KI2 and a preset component indication reference table, obtaining an indication symptom name set corresponding to KI2 as the second indication information ID2 of the target processing text.
[0011] S700, obtaining the indication corresponding to ID1∩ID2 as target indication information of the target processing text.
[0012] According to a second aspect of the present invention, there is provided an electronic device comprising a processor and a memory; the processor is used to execute the steps of the method described in the first aspect of the present invention by calling a program or instruction stored in the memory.
[0013] According to a second aspect of the present invention, there is provided a non-transitory computer-readable storage medium storing a program or instructions, wherein the program or instructions enable a computer to execute the steps of the method described in the first aspect of the present invention.
[0014] The present invention has at least the following beneficial effects:
[0015] The drug instructions processing method provided by the embodiment of the present invention can automatically expand the indication information in the drug instructions, thereby enriching the drug indication information.
[0016] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 A flowchart of a method for processing drug instructions provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.
[0021] It should be noted that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0022] The embodiment of the present invention provides a method for processing drug instructions, which is intended to extract key information from drug instructions and generate target indication information of the drug. Figure 1 As shown, the method may include the following steps:
[0023] S100, obtaining the drug instructions to be processed as the target processing text.
[0024] In the embodiment of the present invention, the drug instructions to be processed may be instructions for any drug, and the specific content of the drug instructions may be determined based on the current drug instructions writing specification.
[0025] S200, obtaining the first key information KI1 and the second key information KI2 in the target processing text; wherein KI1={KI11, KI12, ……, KI1 i , ..., KI1 m}, KI1 i is the i-th keyword obtained based on the indication information corresponding to the target treatment text, i is 1 to m, and m is the number of keywords obtained based on the indication information corresponding to the target treatment text; KI2 = {KI21, KI22, ..., KI2 j , ..., KI2 n}, KI2 jThe jth component obtained based on the component information corresponding to the target processed text, where j is a value from 1 to n, and n is the number of components obtained based on the component information corresponding to the target processed text.
[0026] In the embodiment of the present invention, KI1 can be obtained based on the existing keyword acquisition method. For example, for the indication information of a certain drug "suitable for various infections caused by sensitive bacteria, such as respiratory tract infection (pneumonia, acute and chronic bronchitis, tonsillitis, otitis media, etc.); genital urinary tract infection (gonorrhea, urethritis, cystitis, pyelonephritis, etc.); skin and soft tissue infection; typhoid and paratyphoid, etc.", the first key information obtained may include: respiratory tract infection, pneumonia, acute and chronic bronchitis, tonsillitis, otitis media, genital urinary tract infection, gonorrhea, urethritis, cystitis, pyelonephritis, skin and soft tissue infection, typhoid and paratyphoid.
[0027] In the embodiment of the present invention, the ingredient information corresponding to the target processing text is the ingredient information of the medicine.
[0028] S300, based on KI1 and a preset symptom information reference table, obtain label information M of the symptom corresponding to KI1; wherein M=(M1∪M2∪……∪M i ∪……∪M m ), M i KI1 i Label information of the corresponding symptom.
[0029] In an embodiment of the present invention, each row of information in the preset symptom information reference table may include a symptom name and corresponding label information. The label information at least includes symptom manifestation and symptom cause, i.e., what causes the symptom, for example, the cause of bronchitis is mycoplasma infection.
[0030] In an embodiment of the present invention, the preset symptom information reference table can be obtained based on historical data, that is, the drug instructions obtained within a preset time period, and the specific acquisition method can be an existing method.
[0031] M i The method of obtaining is: i As the search term, search in the preset symptom information reference table, and use the label information corresponding to the queried indication name as M i .
[0032] S400, obtaining a common keyword Ck corresponding to M, and based on Ck and the preset symptom information reference table, obtaining a symptom name set NS corresponding to Ck.
[0033] Furthermore, S400 may specifically include:
[0034] S401, obtaining the common keyword Ck1 corresponding to the symptom manifestations in M, using Ck1 to query the preset symptom information reference table, and obtaining the corresponding query result as the first symptom name set NS1.
[0035] S402, obtaining the common keyword Ck2 corresponding to the symptom causes in M, using Ck2 to query in the preset symptom information reference table, and obtaining the corresponding query result as the second symptom name set NS2.
[0036] S403, obtaining NS=NS1∪NS2, that is, taking the union of NS1 and NS2 as NS.
[0037] In an embodiment of the present invention, the common keywords corresponding to the symptom manifestations are the common features of all symptom manifestations, and the common keywords corresponding to the symptom causes are the common features of all symptom causes. The common keywords are obtained based on a clustering method. The clustering method can be any existing clustering method, and the present invention is not particularly limited, as long as it is a method that can cluster. Those skilled in the art know that the number of common keywords can be determined based on the number of clustering clusters after clustering, that is, the number of common keywords is the same as the number of clustering clusters. Obviously, Ck1 is all the common keywords corresponding to the symptom manifestations in M, and Ck2 is all the common keywords corresponding to the symptom causes in M. The number of Ck1 and Ck2 is greater than or equal to 1.
[0038] S500, obtaining KI1∪NS, that is, taking the union of KI1 and NS as the first indication information ID1 of the target processing text.
[0039] S600, based on KI2 and a preset component indication reference table, obtaining an indication symptom name set corresponding to KI2 as the second indication information ID2 of the target processing text.
[0040] In an embodiment of the present invention, each row of data in the preset component indication reference table may include at least the component name, indication, and contraindication information. In an embodiment of the present invention, the component name may be a common name or a chemical formula. The preset component indication reference table may be obtained based on historical data, and the specific acquisition method may adopt an existing method.
[0041] S700, obtaining ID1∩ID2, that is, taking the indication corresponding to the intersection of ID1 and ID2 as the target indication information of the target processing text.
[0042] In an embodiment of the present invention, first, corresponding label information is obtained from a preset symptom information reference table based on the indication information of the drug instructions, then, common keywords of the label information are obtained, and based on the common keywords, corresponding indication names are obtained from the preset symptom information reference table, and the union of the obtained indication names and the indication information of the drug instructions is used as the first indication information, and then, based on the ingredient information of the drug instructions, corresponding indication information is obtained from the preset ingredient indication reference table as the second indication information, and finally, the intersection of the first indication information and the second indication information is used as the target indication information of the drug instructions. Since both the indication information of the drug instructions and the drug ingredient information are considered at the same time, the indication information of the drug instructions can be expanded as much and as accurately as possible.
[0043] Furthermore, the method provided by the embodiment of the present invention also includes the following steps:
[0044] S800, based on KI2 and a preset component indication reference table, obtain prohibited use and caution information PCU2 corresponding to KI2.
[0045] S900, obtaining prohibited use information PCU corresponding to the target processing text.
[0046] S1000: If there is at least one piece of information in PCU2 that does not belong to PCU, that is, if PCU∩PCU2≠PCU2, the description of the prohibited and cautious information in the target processing text of the manual is not standardized, then outputting prompt information indicating that the target processing text is an abnormal text.
[0047] In the embodiment of the present invention, since the prohibition and caution information of the drug instruction sheet is confirmed, the hidden danger of drug safety caused by inaccurate prohibition and caution information can be avoided, making the drug instruction sheet more accurate.
[0048] Based on the same inventive concept, an embodiment of the present invention further provides a drug instruction sheet processing device, the device comprising:
[0049] The text acquisition module is used to acquire the drug instructions to be processed as the target processing text.
[0050] The key information acquisition module is used to acquire the first key information KI1 and the second key information KI2 in the target processing text; wherein KI1={KI11, KI12, ..., KI1 i , ..., KI1 m}, KI1 i is the i-th keyword obtained based on the indication information corresponding to the target treatment text, i is 1 to m, and m is the number of keywords obtained based on the indication information corresponding to the target treatment text; KI2 = {KI21, KI22, ..., KI2j , ..., KI2 n}, KI2 j The jth component obtained based on the component information corresponding to the target processed text, where j is a value from 1 to n, and n is the number of components obtained based on the component information corresponding to the target processed text.
[0051] The label information acquisition module is used to obtain the label information M of the adaptive symptom corresponding to KI1 based on KI1 and the preset symptom information reference table; wherein M=(M1∪M2∪……∪M i ∪……∪M m ), M i KI1 i Corresponding label information for the applicable symptoms.
[0052] The first information acquisition module is used to obtain the common keyword Ck corresponding to M, and based on Ck and the preset symptom information reference table, obtain the symptom name set NS corresponding to Ck; and obtain KI1∪NS as the first indication information ID1 of the target processing text.
[0053] The second information acquisition module is used to acquire the indication symptom name set corresponding to KI2 based on KI2 and a preset component indication reference table as the second indication information ID2 of the target processing text.
[0054] The target information acquisition module is used to acquire the indication corresponding to ID1∩ID2 as the target indication information of the target processing text.
[0055] Furthermore, the device also includes:
[0056] A prohibited use with caution information acquisition module, used to acquire prohibited use with caution information PCU corresponding to the target processing text and acquire prohibited use with caution information PCU2 corresponding to KI2 based on KI2 and a preset component indication reference table;
[0057] The output module is used to output prompt information indicating that the target processing text is an abnormal text when there is at least one information that does not belong to the PCU in the PCU2.
[0058] The device can be used to perform Figure 1 Therefore, for the functions that can be realized by each functional module of the device, please refer to Figure 1 The description of the illustrated embodiment is not repeated in detail.
[0059] An embodiment of the present invention also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are configured to execute the method described in the embodiment of the present invention.
[0060] The embodiment of the present invention further provides a non-transitory computer-readable storage medium storing computer-executable instructions, wherein the computer instructions are used to execute the method described in the embodiment of the present invention.
[0061] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in the present invention can be achieved, and this document does not limit this.
[0062] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for processing drug instructions, characterized in that: The method comprises the following steps: S100, obtaining the drug instructions to be processed as the target processing text; S200, obtaining the first key information KI1 and the second key information KI2 in the target processing text; wherein KI1={KI11, KI12, ……, KI1 i , ..., KI1 m }, KI1 i is the i-th keyword obtained based on the indication information corresponding to the target treatment text, i is 1 to m, and m is the number of keywords obtained based on the indication information corresponding to the target treatment text; KI2 = {KI21, KI22, ..., KI2 j , ..., KI2 n }, KI2 j is the jth component obtained based on the component information corresponding to the target processed text, where j is a value from 1 to n, and n is the number of components obtained based on the component information corresponding to the target processed text; S300, based on KI1 and a preset symptom information reference table, obtain label information M of the symptom corresponding to KI1; wherein M=(M1∪M2∪……∪M i ∪……∪M m ), M i KI1 i Label information of the corresponding symptoms; S400, obtaining a common keyword Ck corresponding to M, and based on Ck and the preset symptom information reference table, obtaining a symptom name set NS corresponding to Ck; S500, obtaining KI1∪NS as the first indication information ID1 of the target processing text; S600, based on KI2 and a preset component indication reference table, obtaining an indication symptom name set corresponding to KI2 as the second indication information ID2 of the target processing text; S700, obtaining the indication corresponding to ID1∩ID2 as target indication information of the target processing text.
2. The method according to claim 1, characterized in that The label information at least includes symptom manifestations and symptom causes.
3. The method according to claim 2, characterized in that S400 specifically includes: S401, obtaining a common keyword Ck1 corresponding to the symptom manifestation in M, using Ck1 to search in the preset symptom information reference table, and obtaining a corresponding search result as a first symptom name set NS1; S402, obtaining a common keyword Ck2 corresponding to the symptom cause in M, and using Ck2 to search in the preset symptom information reference table to obtain a corresponding search result as a second symptom name set NS2; S403, obtain NS=NS1∪NS2.
4. The method according to claim 1, characterized in that The common keywords are obtained based on a clustering method.
5. The method according to claim 1, characterized in that The following steps are also included: S800, based on KI2 and a preset component indication reference table, obtaining prohibited use and caution information PCU2 corresponding to KI2; S900, obtaining the prohibited use information PCU corresponding to the target processing text; S1000: If there is at least one piece of information in PCU2 that does not belong to PCU, output prompt information indicating that the target processing text is an abnormal text.
6. A drug instruction sheet processing device, characterized in that: The device comprises: A text acquisition module is used to acquire the drug instructions to be processed as the target processing text; The key information acquisition module is used to acquire the first key information KI1 and the second key information KI2 in the target processing text; wherein KI1 = {KI11, KI12, ..., KI1 i , ..., KI1 m }, KI1 i is the i-th keyword obtained based on the indication information corresponding to the target treatment text, i is 1 to m, and m is the number of keywords obtained based on the indication information corresponding to the target treatment text; KI2 = {KI21, KI22, ..., KI2 j , ..., KI2 n }, KI2 j is the jth component obtained based on the component information corresponding to the target processed text, where j is a value from 1 to n, and n is the number of components obtained based on the component information corresponding to the target processed text; The label information acquisition module is used to obtain the label information M of the symptom corresponding to KI1 based on KI1 and the preset symptom information reference table; wherein M=(M1∪M2∪……∪M i ∪……∪M m ), M i KI1 i Label information of the corresponding symptoms; The first information acquisition module is used to acquire the common keyword Ck corresponding to M, and based on Ck and the preset symptom information reference table, acquire the symptom name set NS corresponding to Ck; and acquire KI1∪NS as the first indication information ID1 of the target processing text; A second information acquisition module, for acquiring a set of indication symptom names corresponding to KI2 based on KI2 and a preset component indication reference table as second indication information ID2 of the target processing text; The target information acquisition module is used to acquire the indication corresponding to ID1∩ID2 as the target indication information of the target processing text.
7. The device according to claim 6, characterized in that Also includes: A prohibited use with caution information acquisition module, used to acquire prohibited use with caution information PCU corresponding to the target processing text and acquire prohibited use with caution information PCU2 corresponding to KI2 based on KI2 and a preset component indication reference table; The output module is used to output prompt information indicating that the target processing text is an abnormal text when there is at least one information that does not belong to the PCU in the PCU2.
8. An electronic device, characterized in that: including a processor and a memory; The processor is used to execute the steps of the method according to any one of claims 1 to 5 by calling the program or instruction stored in the memory.
9. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium is used to store a program or instruction, and the program or instruction enables a computer to execute the steps of the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device for determining push priority information
CN109992719A
Construction method and device for knowledge graph of medicine specification
CN111968756A
Knowledge base construction method, information query method, device and equipment
CN113076301A
Data processing method and device, equipment and storage medium
CN114329140A
Prediction method for drug indications and related equipment
CN114496302A