A medical entity coding method, device, computer equipment and storage medium

By automatically calculating and screening standard medical items, the problem of time-consuming and laborious manual coding is solved, the intelligent and efficient coding of medical entities is realized, and labor costs are reduced.

CN111563545BActive Publication Date: 2024-09-20SHENZHEN PING AN MEDICAL HEALTH TECHNOLOGY SERVICES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010343748.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-27
Publication Date
2024-09-20
Estimated Expiration
2040-04-27

AI Technical Summary

Technical Problem

The existing medical entity coding technology requires manual operation, which is time-consuming and labor-intensive and increases labor costs, and fails to effectively solve this problem.

Method used

By obtaining non-standard medical items, the preset similarity algorithm and the target similarity data table are used to calculate the similarity, and standard medical items that meet the threshold are screened out and coded when the maximum similarity is greater than or equal to the threshold, achieving automatic and intelligent coding process.

Benefits of technology

It improves the accuracy and speed of code matching, reduces labor costs, realizes the automation of intelligent code matching, and ensures the accuracy of code matching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111563545B
    Figure CN111563545B
Patent Text Reader

Abstract

The present invention discloses a medical entity coding method, which can be applied to the field of smart medical care. First, some standard medical items that are relatively similar to non-standard medical items are roughly screened out from a large number of standard medical items in the target standard library, and then the second similarity between the non-standard medical items and each screened standard medical item is accurately calculated. Only when the accurately calculated maximum second similarity is greater than or equal to the second similarity threshold, the standard medical item corresponding to the maximum second similarity will be output to ensure the accuracy of the coding. Among them, the target standard library can be distributedly deployed in the blockchain node. This embodiment not only ensures the speed of intelligent coding, but also ensures the accuracy of intelligent coding and reduces the technical effect of labor costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a medical entity coding method, device, computer equipment and computer-readable storage medium. Background Art

[0002] Coding, also known as benchmarking, refers to converting non-standard data into standard data.

[0003] As data is expanding, a large amount of medical data is generated every day in the medical field. In order to make these medical data valuable, such as input for various models, as user case files, or to establish a medical database, these medical data need to be entered into an electronic system and saved. However, in order to save time, medical staff usually do not enter these medical data according to standards, which leads to the need to use standard medical entities to code these medical data later.

[0004] However, the inventors have found that existing medical entity coding technologies require manual coding, which is time-consuming and labor-intensive, and has high requirements for the medical knowledge level of the coding personnel, which increases the labor cost.

[0005] There is currently no effective solution to the technical problem that manual medical entity coding in the existing technology is time-consuming and labor-intensive and increases labor costs. Summary of the invention

[0006] The purpose of the present invention is to provide a medical entity coding method, device, computer equipment and computer-readable storage medium, which can solve the technical problems in the prior art that manual implementation of medical entity coding is time-consuming and labor-intensive and increases labor costs.

[0007] One aspect of the present invention provides a medical entity coding method, the method comprising: obtaining a non-standard medical entry, the non-standard medical entry comprising a plurality of non-standard medical entities; determining a target standard library consistent with the category of the non-standard medical entry; using a first preset similarity algorithm to calculate the similarity between the non-standard medical entry and each standard medical entry in the target standard library as a first similarity; screening out standard medical entries whose first similarity is greater than or equal to a first similarity threshold; when the screened out standard medical entry is not unique, obtaining a target similarity data table consistent with the category of the non-standard medical entry, the target similarity data table being The score of each medical entity is defined in the table; each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry are mapped to the medical entity in the target similarity data table; according to the score of the medical entity in the mapped target similarity data table, the similarity between the non-standard medical entry and each screened standard medical entry is calculated as the second similarity; when the maximum second similarity is greater than or equal to the second similarity threshold, the standard medical entity in the standard medical entry pointed to by the maximum second similarity is used as the standard to match the non-standard medical entity in the non-standard medical entry.

[0008] Optionally, the similarity between the non-standard medical entry and each screened standard medical entry is calculated according to the score of the medical entity mapped in the target similarity data table, and the step of calculating the second similarity includes: determining the similarity between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry according to the score of the medical entity mapped in the target similarity data table; calculating the second similarity between the non-standard medical entry and each screened standard medical entry according to the similarity between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry.

[0009] Optionally, the step of calculating the second similarity between the non-standard medical entry and each screened standard medical entry based on the similarity between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry includes: determining the sum of the similarities between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry as the third similarity between the non-standard medical entry and each screened standard medical entry; obtaining a weight prediction model, which is used to predict the weight value of a medical entry; inputting each screened standard medical entry into the weight prediction model to obtain the weight value of each screened standard medical entry output by the weight prediction model as the first weight value; and calculating the second similarity between the non-standard medical entry and each screened standard medical entry based on each of the third similarities and each of the first weight values.

[0010] Optionally, the step of calculating the second similarity between the non-standard medical entry and each screened standard medical entry according to each of the third similarities and each of the first weight values ​​includes: obtaining a target weight value data table consistent with the category of the non-standard medical entry, the target weight value data table including multiple other standard medical entries with defined weight values; in the target weight value data table, assigning the weight value of the other standard medical entry with the greatest similarity to each screened standard medical entry to the corresponding standard medical entry as the second weight value of each screened standard medical entry; calculating the second similarity between the non-standard medical entry and each screened standard medical entry according to each of the third similarities, each of the first weight values ​​and each of the second weight values.

[0011] Optionally, the step of calculating the second similarity between the non-standard medical entry and each screened standard medical entry according to each of the third similarities, each of the first weight values ​​and each of the second weight values ​​comprises: Among them, Score i is the second similarity between the non-standard medical entry and the i-th standard medical entry, is the first weight value of the i-th standard medical item, x is the fixed coefficient of the first weight value, is the second weight value of the i-th standard medical item, y is the fixed coefficient of the second weight value, X i is the third similarity between the non-standard medical entry and the th standard medical entry.

[0012] Optionally, the step of determining the similarity between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry according to the score of the medical entity mapped to the target similarity data table includes: if a non-standard medical entity in the non-standard medical entry and a corresponding standard medical entity in a screened standard medical entry are mapped to the same medical entity in the target similarity data table, then the score of the medical entity is used as the similarity between the non-standard medical entity and the corresponding standard medical entity; if a non-standard medical entity in the non-standard medical entry and a corresponding standard medical entity in a screened standard medical entry are mapped to two different medical entities in the target similarity data table, then the average of the scores of the two different medical entities is used as the similarity between the non-standard medical entity and the corresponding standard medical entity.

[0013] Another aspect of the present invention provides a medical entity coding device, the device comprising: a first acquisition module, used to acquire non-standard medical entries, the non-standard medical entries including a plurality of non-standard medical entities; a determination module, used to determine a target standard library consistent with the category of the non-standard medical entry; a first calculation module, used to calculate the similarity between the non-standard medical entry and each standard medical entry in the target standard library using a first preset similarity algorithm, as a first similarity; a screening module, used to screen out standard medical entries whose first similarity is greater than or equal to a first similarity threshold; a second acquisition module, used to acquire a target similarity data table consistent with the category of the non-standard medical entry when the screened standard medical entry is not unique , the target similarity data table defines the score of each medical entity; a mapping module is used to map each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry to the medical entity in the target similarity data table; a second calculation module is used to calculate the similarity between the non-standard medical entry and each screened standard medical entry according to the score of the medical entity in the target similarity data table mapped to, as the second similarity; a coding module is used to code the non-standard medical entity in the non-standard medical entry with the standard medical entity in the standard medical entry pointed to by the maximum second similarity as the standard when the maximum second similarity is greater than or equal to the second similarity threshold.

[0014] Optionally, the second calculation module includes: a determination unit, used to determine the similarity between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry according to the score of the medical entity mapped to the target similarity data table; a calculation unit, used to calculate the second similarity between the non-standard medical entry and each screened standard medical entry according to the similarity between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry.

[0015] Yet another aspect of the present invention provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the medical entity coding method described in any one of the above embodiments when executing the computer program.

[0016] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the medical entity coding method described in any of the above embodiments is implemented.

[0017] The medical entity matching method provided by the present invention first roughly selects some standard medical items that are relatively similar to non-standard medical items from a large number of standard medical items, and then accurately calculates the second similarity between the non-standard medical items and each of the selected standard medical items, and only when the accurately calculated maximum second similarity is greater than or equal to the second similarity threshold, the standard medical item corresponding to the maximum second similarity is output, that is, the standard medical entity in the standard medical item pointed to by the maximum second similarity is used as the standard to match the non-standard medical entity in the non-standard medical item, so as to ensure the accuracy of the matching. This embodiment solves the technical problem of the time-consuming and labor-intensive manual implementation of medical entity matching in the prior art and the additional increase in labor costs by automatically and intelligently selecting standard medical items for matching non-standard medical items, and achieves the technical effect of ensuring both the speed and accuracy of intelligent matching and reducing labor costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0019] Figure 1 A flowchart of a medical entity coding method according to an embodiment of the present invention is schematically shown;

[0020] Figure 2 A schematic diagram schematically shows a medical entity coding method according to an embodiment of the present invention;

[0021] Figure 3 A block diagram of a medical entity coding device according to an embodiment of the present invention is schematically shown;

[0022] Figure 4 A block diagram of a computer device suitable for implementing a medical entity coding method according to an embodiment of the present invention is schematically shown. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0024] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0025] In the prior art, medical staff will organize medical entities in the form of medical entries and enter them into the system, but these medical entries are not standard medical entries, and they need to be manually coded with standard medical entries in the later stage. Among them, the standard medical entry is, for example, (H010005TA, sodium fluoride glycerol paste, paste, Wuhan Woer Pharmaceutical Co., Ltd.), and the non-standard medical entry is, for example, (H010005TA, sodium fluoride glycerol, paste, Wuhan Woer).

[0026] Taking into account the technical problems in the prior art that manual medical entity matching is time-consuming and labor-intensive and adds additional labor costs, this proposal provides a medical matching method. For each non-standard medical entry, the category of the non-standard medical entry, such as the drug category, is determined, and then standard medical entries whose first similarity with the non-standard medical entry is greater than or equal to the first similarity threshold are roughly selected from the target standard library of the corresponding category. Further, the second similarity of each selected standard medical entry and non-standard medical entry is accurately calculated. Only when the accurately calculated maximum second similarity meets the threshold, the standard medical entry corresponding to the maximum second similarity will be output, otherwise it will be prompted that the standard medical entry is not found, so as to ensure the accuracy of the matching. Specifically, Figure 1 A flowchart of a medical entity coding method according to an embodiment of the present invention is schematically shown. Figure 1 As shown, the medical entity coding method may include steps S1 to S8, wherein:

[0027] Step S1, obtaining non-standard medical entries, wherein the non-standard medical entries include a number of non-standard medical entities.

[0028] Medical entries can have multiple categories, such as equipment category, disease category, surgery category, drug category and diagnosis and treatment category. Each non-standard medical entry includes several non-standard medical entities, and the category of the non-standard medical entry can be determined by these non-standard medical entities. Specifically, each category corresponds to a category set, and the category set includes all medical entities of the category. By comparing the non-standard medical entities of the non-standard medical entry with the medical entities in each category set, the category of the non-standard medical entry can be determined. If the non-standard medical entry is (H010005TA, sodium fluoride, paste, Wall), then the non-standard medical entry is a drug category.

[0029] Step S2, determining a target standard library consistent with the category of the non-standard medical item.

[0030] Multiple categories of standard libraries are pre-set, and each standard library corresponds to a category. In this embodiment, the corresponding target standard library can be determined according to the category of the non-standard medical item. For example, if the non-standard medical item is a drug category, the category of the target standard library is the drug category.

[0031] To ensure the privacy and security of data, the pre-set standard library can be distributed and deployed in the blockchain nodes, among which the target standard library can be distributed and deployed in the blockchain nodes. Information sharing between different platforms is achieved through blockchain. Blockchain is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, the platform product service layer, and the application service layer.

[0032] The categories of standard medical entries stored in the target standard library are consistent with the categories of non-standard medical entries. Each standard medical entry includes several standard medical entities. For example, the standard medical entry corresponding to the above example may be (H010005TA, sodium fluoride glycerol paste, paste, Wuhan Woer Pharmaceutical Co., Ltd.).

[0033] Step S3, using a first preset similarity algorithm to calculate the similarity between the non-standard medical item and each standard medical item in the target standard library as a first similarity.

[0034] The first preset similarity algorithm is used to calculate the first similarity between the non-standard medical entry and each standard medical entry, wherein the first preset similarity algorithm can be any algorithm for calculating similarity in the prior art, such as cosine similarity, Euclidean distance or Manhattan distance.

[0035] Step S4: Screen out standard medical items whose first similarity is greater than or equal to a first similarity threshold.

[0036] After calculating these first similarities, the Luence algorithm inverted index can be used to recall standard medical items whose first similarities are greater than or equal to the first similarity threshold from the target standard library.

[0037] Step S5: when the screened standard medical entry is not unique, a target similarity data table consistent with the category of the non-standard medical entry is obtained, wherein the target similarity data table defines the score of each medical entity.

[0038] A plurality of categories of similarity data tables are pre-set, and each similarity data table corresponds to a category. In this embodiment, the corresponding target similarity data table can be determined according to the category of the non-standard medical item. For example, if the non-standard medical item is a drug category, the category of the target similarity data table is also a drug category. Among them, the target similarity data table defines the score of each medical entity that is consistent with the category of the non-standard medical item, and there may be a superior-subordinate relationship between each medical entity, such as Table 1. If the non-standard medical item is a disease category, specifically a bone disease category, Table 1 divides the bone into multiple levels, and each level corresponds to a score, such as 0.1 points for the first level classification, ..., and 0.8 points for the eighth level classification.

[0039] Table 1

[0040]

[0041]

[0042] Step S6, mapping each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry to the medical entity in the target similarity data table.

[0043] For example, if a non-standard medical entity is the axial skeleton, and a standard medical entity corresponding to the non-standard medical entity in a standard medical entry is also the axial skeleton, then the medical entity mapped to the above Table 1 is the axial skeleton.

[0044] Step S7, calculating the similarity between the non-standard medical item and each screened standard medical item according to the score of the medical entity mapped to the target similarity data table, as a second similarity.

[0045] In this embodiment, the score of the medical entity in the mapped target similarity data table may be used as the second similarity between the non-standard medical item and each of the screened standard medical items.

[0046] In order to further improve the accuracy of calculation, step S7 may further include step S71 and step S72, wherein:

[0047] Step S71, determining the similarity between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry according to the score of the medical entity mapped to the target similarity data table.

[0048] Specifically, step S71 may include step S711 and step S712, wherein:

[0049] Step S711, if a non-standard medical entity in the non-standard medical entry and a corresponding standard medical entity in a screened standard medical entry are mapped to the same medical entity in the target similarity data table, the score of the medical entity is used as the similarity between the non-standard medical entity and the corresponding standard medical entity;

[0050] Step S712: If a non-standard medical entity in the non-standard medical entry and a corresponding standard medical entity in a screened standard medical entry are mapped to two different medical entities in the target similarity data table, the average of the scores of the two different medical entities is used as the similarity between the non-standard medical entity and the corresponding standard medical entity.

[0051] For example, if a non-standard medical entity in a non-standard medical entry is a thoracic vertebra, and the corresponding standard medical entity in a standard medical entry is also a thoracic vertebra, then the similarity between the non-standard medical entity and the standard medical entity can be determined to be 0.5. If the non-standard medical entity is a thoracic vertebra, and the corresponding standard medical entity in a standard medical entry is a vertebra, then the similarity between the non-standard medical entity and the standard medical entity can be determined to be (0.5+0.4) / 2=0.45.

[0052] Step S72, calculating a second similarity between the non-standard medical entry and each of the screened standard medical entries according to the similarity between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each of the screened standard medical entries.

[0053] In this embodiment, the similarity between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry may be directly added as the second similarity between the non-standard medical entry and the standard medical entry.

[0054] Further, in order to improve the accuracy of calculating the similarity, step S72 may include steps S721 to S724, wherein:

[0055] Step S721, determining the sum of the similarities between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry as the third similarity between the non-standard medical entry and each screened standard medical entry.

[0056] Step S722, obtaining a weight prediction model, wherein the weight prediction model is used to predict the weight value of the medical entry.

[0057] Step S723, input each screened standard medical item into the weight prediction model, and obtain the weight value of each screened standard medical item output by the weight prediction model as the first weight value.

[0058] Step S724: Calculate a second similarity between the non-standard medical item and each of the screened standard medical items according to each of the third similarities and each of the first weight values.

[0059] In this embodiment, the similarities between all non-standard medical entities in the non-standard medical entry and all standard medical entities in each screened standard medical entry can be determined, and then added to obtain a third similarity between the non-standard medical entry and each screened standard medical entry.

[0060] Before obtaining the weight prediction model, it is necessary to first train the preset algorithm to obtain the weight prediction model, wherein the preset algorithm is, for example, the Xgboost (extreme gradient boosting) algorithm, or the LightGBM (decision tree based on learning algorithm) algorithm, and the training set can be (historical standard medical items, historical weight values). The weight prediction model can be obtained by continuously training the preset algorithm. Then, based on the basic functions of the weight prediction model, each standard medical item screened out is input into the weight prediction model in turn, and the first weight value of each standard medical item screened out can be obtained.

[0061] Furthermore, each third similarity may be multiplied by each first weight value to obtain a second similarity between the non-standard medical entry and each screened standard medical entry.

[0062] Optionally, if the weight value of each screened standard medical item is determined solely by the weight prediction model, it may be too one-sided. Therefore, in order to further improve the accuracy, step S724 may include steps S7241 to S7243, wherein:

[0063] Step S7241, obtaining a target weight value data table consistent with the category of the non-standard medical item, wherein the target weight value data table includes a plurality of other standard medical items with defined weight values;

[0064] Step S7242, in the target weight value data table, assigning the weight value of other standard medical items with the greatest similarity to each screened standard medical item to the corresponding standard medical item as the second weight value of each screened standard medical item;

[0065] Step S7243: Calculate the second similarity between the non-standard medical entry and each of the screened standard medical entries according to each of the third similarities, each of the first weight values, and each of the second weight values.

[0066] A plurality of weight value data tables of different categories are preset, each weight value data table corresponds to a category. In this embodiment, the corresponding target weight value data table can be determined according to the category of the non-standard medical item. For example, if the non-standard medical item is a drug category, the category of the target weight value data table can also be a drug category. The target weight value data includes a plurality of other standard medical items and the weight value of each other standard medical item.

[0067] In this embodiment, the similarity between each selected standard medical item and each other standard medical item can be calculated by a second preset similarity algorithm, and the weight value of the other standard medical item corresponding to the maximum similarity among these similarities is used as the second weight value of the corresponding standard medical item. The second preset similarity algorithm can be any algorithm for calculating similarity in the prior art, such as cosine similarity, Euclidean distance, or Manhattan distance.

[0068] Further, step S7243 is executed to calculate the second similarity between the non-standard medical entry and each of the screened standard medical entries, such as multiplying each of the third similarities, each of the first weight values, and each of the second weight values ​​to calculate the second similarity between the non-standard medical entry and each of the screened standard medical entries. For another example, step S7243 may be:

[0069]

[0070] Among them, Score i is the second similarity between the non-standard medical entry and the i-th standard medical entry, is the first weight value of the i-th standard medical item, x is the fixed coefficient of the first weight value, is the second weight value of the i-th standard medical item, y is the fixed coefficient of the second weight value, X i is the third similarity between the non-standard medical entry and the i-th standard medical entry.

[0071] It should be noted that x and y can be obtained based on empirical values ​​or set according to actual needs of users, and are not limited here.

[0072] Step S8, when the maximum second similarity is greater than or equal to the second similarity threshold, the non-standard medical entities in the non-standard medical entries are coded based on the standard medical entities in the standard medical entries pointed to by the maximum second similarity.

[0073] In this embodiment, the maximum second similarity is screened out from all the calculated second similarities, and the maximum second similarity is compared with the second similarity threshold. Only when the maximum second similarity exceeds the second similarity threshold, it is considered that the standard medical entry corresponding to the maximum second similarity can be used to achieve coding of the non-standard medical entry. Otherwise, a null value is output to ensure the accuracy of the coding.

[0074] The medical entity matching method provided by the present invention first roughly selects some standard medical items that are relatively similar to non-standard medical items from a large number of standard medical items, and then accurately calculates the second similarity between the non-standard medical items and each of the selected standard medical items, and only when the accurately calculated maximum second similarity is greater than or equal to the second similarity threshold, the standard medical item corresponding to the maximum second similarity is output, that is, the standard medical entity in the standard medical item pointed to by the maximum second similarity is used as the standard to match the non-standard medical entity in the non-standard medical item, so as to ensure the accuracy of the matching. This embodiment solves the technical problem of the time-consuming and labor-intensive manual implementation of medical entity matching in the prior art and the additional increase in labor costs by automatically and intelligently selecting standard medical items for matching non-standard medical items, and achieves the technical effect of ensuring both the speed and accuracy of intelligent matching and reducing labor costs.

[0075] In addition, during the selection process, this embodiment also uses a weight prediction model and a target weight value data table to determine the weight value of each standard medical entry, further improving the accuracy and recall rate of screening standard medical entries for coding non-standard medical entries.

[0076] This solution can be applied in the field of smart medical care, thereby promoting the construction of smart cities.

[0077] Figure 2 The following is a schematic diagram of a medical entity coding method according to an embodiment of the present invention.

[0078] like Figure 2As shown, the input data can be non-standard medical entries, which can be input in the form of Excel, search box input or interface parameter transmission. The system receives the input non-standard medical entries and classifies the non-standard medical entries through natural language processing technology to identify the intent, that is, to identify the category of the non-standard medical entries, and then use the Luence algorithm inverted index to roughly select K standard medical entries in the target standard library whose first similarity with the non-standard medical entries is greater than or equal to the first similarity threshold. Among them, each medical entry can be composed of (Chunk1, Chunk2, Chunk3, ...), Chunki is a block, also called a medical entity, and the medical entry is also called a Chunk block object. Then enter the selection process, that is, through the Luence algorithm inverted index, The formula calculates the second similarity, i.e., Score, between the non-standard medical entry and each roughly selected standard medical entry, wherein the selection process is completed by an expert system (i.e., a target weight value data table) and an artificial intelligence algorithm system (i.e., a weight prediction model). When the maximum Score is greater than or equal to the second similarity threshold, the corresponding standard medical entry is output to achieve standard matching, otherwise, a prompt is given to find the corresponding standard medical entry. The output format can also be in the form of Excel, search box result display, or parameter return of the interface.

[0079] It should be noted that during use, users can also supplement and optimize the weight value data table through correct matching, increase the matching ability of the weight value data table, and collect and crawl a certain amount of data, import prediction algorithms to improve the weight prediction model, and achieve continuous enhancement of the model.

[0080] The embodiment of the present invention provides a medical entity coding device, which corresponds to the medical entity coding method described in the above embodiment. The corresponding technical features and technical effects are not described in detail in this embodiment, and the relevant parts can refer to the above embodiment. Specifically, Figure 3 A block diagram of a medical entity coding device according to an embodiment of the present invention is schematically shown. Figure 3 As shown, the medical entity coding device 300 may include a first acquisition module 301, a determination module 302, a first calculation module 303, a screening module 304, a second acquisition module 305, a mapping module 306, a second calculation module 307 and a coding module 308, wherein:

[0081] A first acquisition module 301 is used to acquire non-standard medical items, where the non-standard medical items include a number of non-standard medical entities;

[0082] A determination module 302 is used to determine a target standard library consistent with the category of the non-standard medical item;

[0083] A first calculation module 303, configured to calculate the similarity between the non-standard medical item and each standard medical item in the target standard library using a first preset similarity algorithm as a first similarity;

[0084] A screening module 304 is used to screen out standard medical items whose first similarity is greater than or equal to a first similarity threshold;

[0085] A second acquisition module 305 is used to acquire a target similarity data table consistent with the category of the non-standard medical entry when the screened standard medical entry is not unique, wherein the target similarity data table defines a score for each medical entity;

[0086] A mapping module 306, configured to map each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry to a medical entity in the target similarity data table;

[0087] A second calculation module 307, configured to calculate the similarity between the non-standard medical item and each of the screened standard medical items according to the scores of the medical entities in the target similarity data table mapped thereto, as a second similarity;

[0088] The coding module 308 is used to code the non-standard medical entity in the non-standard medical entry based on the standard medical entity in the standard medical entry pointed to by the maximum second similarity when the maximum second similarity is greater than or equal to the second similarity threshold.

[0089] Optionally, the second calculation module may include: a determination unit, used to determine the similarity between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry based on the score of the medical entity mapped to the target similarity data table; a calculation unit, used to calculate the second similarity between the non-standard medical entry and each screened standard medical entry based on the similarity between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry.

[0090] Optionally, the calculation unit may include: a determination subunit, used to determine the sum of the similarities between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry as the third similarity between the non-standard medical entry and each screened standard medical entry; an acquisition subunit, used to acquire a weight prediction model, wherein the weight prediction model is used to predict the weight value of the medical entry; an input subunit, used to input each screened standard medical entry into the weight prediction model, and obtain the weight value of each screened standard medical entry output by the weight prediction model as the first weight value; and a calculation subunit, used to calculate the second similarity between the non-standard medical entry and each screened standard medical entry based on each of the third similarities and each of the first weight values.

[0091] Optionally, the calculation subunit can also be used to: obtain a target weight value data table consistent with the category of the non-standard medical entry, the target weight value data table including multiple other standard medical entries with defined weight values; in the target weight value data table, assign the weight value of the other standard medical entry with the greatest similarity to each screened standard medical entry to the corresponding standard medical entry as the second weight value of each screened standard medical entry; and calculate the second similarity between the non-standard medical entry and each screened standard medical entry based on each of the third similarities, each of the first weight values ​​and each of the second weight values.

[0092] Optionally, when the calculation subunit calculates the second similarity between the non-standard medical entry and each of the screened standard medical entries according to each of the third similarities, each of the first weight values, and each of the second weight values, it may also be used to: Among them, Score i is the second similarity between the non-standard medical entry and the i-th standard medical entry, is the first weight value of the i-th standard medical item, x is the fixed coefficient of the first weight value, is the second weight value of the i-th standard medical item, y is the fixed coefficient of the second weight value, X i is the third similarity between the non-standard medical entry and the i-th standard medical entry.

[0093] Optionally, the determination unit may include: a first determination subunit, used to, when a non-standard medical entity in the non-standard medical entry and a corresponding standard medical entity in a screened standard medical entry are mapped to the same medical entity in the target similarity data table, use the score of the medical entity as the similarity between the non-standard medical entity and the corresponding standard medical entity; and a second determination subunit, used to, when a non-standard medical entity in the non-standard medical entry and a corresponding standard medical entity in a screened standard medical entry are mapped to two different medical entities in the target similarity data table, use the average of the scores of the two different medical entities as the similarity between the non-standard medical entity and the corresponding standard medical entity.

[0094] Figure 4 A block diagram of a computer device suitable for implementing a medical entity coding method according to an embodiment of the present invention is schematically shown. In this embodiment, the computer device 400 may be a smart phone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server or cabinet server (including an independent server or a server cluster composed of multiple servers) that executes a program. Figure 4 As shown, the computer device 400 of this embodiment includes at least but is not limited to: a memory 401, a processor 402, and a network interface 403 that can be interconnected through a system bus. It should be noted that Figure 4 Only computer device 400 is shown with components 401 - 403 , but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0095] In this embodiment, the memory 403 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 401 can be an internal storage unit of the computer device 400, such as a hard disk or memory of the computer device 400. In other embodiments, the memory 401 can also be an external storage device of the computer device 400, such as a plug-in hard disk equipped on the computer device 400, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 401 can also include both the internal storage unit of the computer device 400 and its external storage device. In this embodiment, the memory 401 is generally used to store the operating system and various application software installed on the computer device 400, such as the program code of the medical entity coding method, etc. In addition, the memory 401 can also be used to temporarily store various types of data that have been output or are to be output.

[0096] In some embodiments, the processor 402 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 402 is generally used to control the overall operation of the computer device 400. For example, the program code of the medical entity coding method for executing control and processing related to data interaction or communication with the computer device 400.

[0097] In this embodiment, the medical entity coding method stored in the memory 401 can also be divided into one or more program modules and executed by one or more processors (processor 402 in this embodiment) to complete the present invention.

[0098] The network interface 403 may include a wireless network interface or a wired network interface, and the network interface 403 is generally used to establish a communication link between the computer device 400 and other computer devices. For example, the network interface 403 is used to connect the computer device 400 to an external terminal through a network, and to establish a data transmission channel and a communication link between the computer device 400 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.

[0099] This embodiment also provides a computer-readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, server, App application store, etc., on which a computer program is stored, and the computer program implements the medical entity coding method when executed by a processor.

[0100] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present invention are not limited to any specific combination of hardware and software.

[0101] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.

[0102] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A medical entity coding method, characterized in that: The method comprises: Acquire a non-standard medical entry, wherein the non-standard medical entry includes a plurality of non-standard medical entities; determining a target standard library consistent with the category of the non-standard medical item; Calculating the similarity between the non-standard medical item and each standard medical item in the target standard library using a first preset similarity algorithm as a first similarity; Screening out standard medical entries whose first similarity is greater than or equal to a first similarity threshold; When the screened standard medical entry is not unique, obtaining a target similarity data table consistent with the category of the non-standard medical entry, wherein the target similarity data table defines a score for each medical entity; Mapping each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry to the medical entity in the target similarity data table; Calculating the similarity between the non-standard medical item and each screened standard medical item according to the score of the medical entity in the target similarity data table mapped thereto as a second similarity; When the maximum second similarity is greater than or equal to the second similarity threshold, the non-standard medical entity in the non-standard medical entry is coded based on the standard medical entity in the standard medical entry pointed to by the maximum second similarity; The step of calculating the similarity between the non-standard medical item and each screened standard medical item as the second similarity according to the score of the medical entity in the target similarity data table mapped thereto comprises: Determining the similarity between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry according to the score of the medical entity in the target similarity data table mapped to it; Determining the sum of the similarities between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry as a third similarity between the non-standard medical entry and each screened standard medical entry; Acquire a weight prediction model, wherein the weight prediction model is used to predict the weight value of a medical entry; Inputting each screened standard medical item into the weight prediction model, and obtaining a weight value of each screened standard medical item output by the weight prediction model as a first weight value; Acquire a target weight value data table consistent with the category of the non-standard medical item, wherein the target weight value data table includes a plurality of other standard medical items with defined weight values; In the target weight value data table, the weight value of other standard medical items with the greatest similarity to each screened standard medical item is assigned to the corresponding standard medical item as the second weight value of each screened standard medical item; A second similarity between the non-standard medical entry and each of the screened standard medical entries is calculated according to each of the third similarities, each of the first weight values, and each of the second weight values.

2. The method according to claim 1, characterized in that The step of calculating the second similarity between the non-standard medical item and each of the screened standard medical items according to each of the third similarities, each of the first weight values, and each of the second weight values ​​comprises: in, is the second similarity between the non-standard medical entry and the i-th standard medical entry, is the first weight value of the i-th standard medical item, x is the fixed coefficient of the first weight value, is the second weight value of the i-th standard medical item, is the fixed coefficient of the second weight value, is the third similarity between the non-standard medical entry and the i-th standard medical entry.

3. The method according to claim 1, characterized in that The step of determining the similarity between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry according to the score of the medical entity in the target similarity data table mapped thereto comprises: If a non-standard medical entity in the non-standard medical entry and a corresponding standard medical entity in a screened standard medical entry are mapped to the same medical entity in the target similarity data table, the score of the medical entity is used as the similarity between the non-standard medical entity and the corresponding standard medical entity; If a non-standard medical entity in the non-standard medical entry and a corresponding standard medical entity in a screened standard medical entry are mapped to two different medical entities in the target similarity data table, the average of the scores of the two different medical entities is taken as the similarity between the non-standard medical entity and the corresponding standard medical entity.

4. A medical entity coding device for implementing the method according to any one of claims 1 to 3, characterized in that: The device comprises: A first acquisition module is used to acquire non-standard medical entries, wherein the non-standard medical entries include a plurality of non-standard medical entities; A determination module, used for determining a target standard library consistent with the category of the non-standard medical entry; A first calculation module, configured to calculate the similarity between the non-standard medical item and each standard medical item in the target standard library using a first preset similarity algorithm as a first similarity; A screening module, used for screening out standard medical items whose first similarity is greater than or equal to a first similarity threshold; A second acquisition module is used to acquire a target similarity data table consistent with the category of the non-standard medical entry when the screened standard medical entry is not unique, wherein the target similarity data table defines a score for each medical entity; A mapping module, used for mapping each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry to a medical entity in the target similarity data table; A second calculation module, configured to calculate the similarity between the non-standard medical item and each screened standard medical item according to the score of the medical entity in the target similarity data table mapped thereto, as a second similarity; The coding module is used to code the non-standard medical entity in the non-standard medical entry based on the standard medical entity in the standard medical entry pointed to by the maximum second similarity when the maximum second similarity is greater than or equal to the second similarity threshold.

5. The device according to claim 4, characterized in that The second calculation module includes: a determination unit, configured to determine the similarity between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each screened standard medical entry according to the score of the medical entity in the target similarity data table mapped to the non-standard medical entry; A calculation unit is used to calculate a second similarity between the non-standard medical entry and each of the screened standard medical entries based on the similarity between each non-standard medical entity in the non-standard medical entry and the corresponding standard medical entity in each of the screened standard medical entries.

6. A computer device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 3 when executing the computer program.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.