Patient primary index construction method and device, electronic equipment and storage medium
By disassembling and retrieving the ID card number to be filled, matching similar main index information, and filling patient information into similar indexes, solving the problem of poor patient main index construction performance in the prior art and improving query efficiency.
Patent Information
- Application Number
- CN202510120722.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2025-05-23
AI Technical Summary
The prior art may not be able to effectively support the query of patient information when building a patient's main index, resulting in poor construction performance.
By disassembling the ID number to be filled, obtain the ID number, and search the main index information in the target main index table based on the ID number to match the similar main index information. If the match is successful, fill the patient information to be filled into the similar main index information.
It improves the construction performance of the patient's main index, realizes the effective utilization of patient information, and enhances query efficiency.
Smart Images

Figure CN120030016A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device, electronic device and storage medium for constructing a patient master index. Background Art
[0002] In the medical system, a patient primary index is usually used to store patient information to facilitate subsequent queries on patient information. In the relevant technical solutions, the patient primary index is usually constructed based on the patient name and the patient ID number. Specifically, in the process of constructing the patient primary index, the abnormal patient names and patient ID numbers are removed to achieve rapid construction of the patient primary index. However, the patient primary index constructed in the above manner may not be able to support the query of patient information well, resulting in poor construction performance of the patient primary index.
[0003] Therefore, how to improve the performance of constructing the patient master index is a key issue that technicians in this field are concerned about. Summary of the invention
[0004] Based on the above problems, the present application provides a method, device, electronic device and storage medium for constructing a patient master index to improve the construction performance of the patient master index. The present application embodiment discloses the following technical solutions:
[0005] In a first aspect, the present application discloses a method for constructing a patient master index, comprising:
[0006] Obtaining the target primary index table and the patient information to be filled in corresponding to the target patient, wherein the patient information to be filled in includes the ID number to be filled in and the patient name to be filled in, and the target primary index table includes a plurality of primary index information;
[0007] The ID card number to be filled is disassembled to obtain the ID card sub-number to be filled corresponding to the ID card number to be filled;
[0008] Based on the ID card sub-number to be filled, the multiple primary index information are searched and processed to obtain similar primary index information corresponding to the ID card sub-number to be filled, wherein the similar primary index information includes the target ID card number;
[0009] Using a first matching mode to match the ID card number to be filled and the target ID card number to obtain a first similarity score, wherein the first matching mode is used to match whether the information is the same;
[0010] If the first similarity score meets the preset similarity score, the patient information to be filled in is filled into the similar main index information.
[0011] In a second aspect, the present application discloses a device for constructing a patient master index, comprising:
[0012] An index table information acquisition unit, used to acquire the target main index table and the patient information to be filled in corresponding to the target patient, wherein the patient information to be filled in includes the identity card number to be filled in and the patient name to be filled in, and the target main index table includes a plurality of main index information;
[0013] An identity card number disassembling unit, used to disassemble the identity card number to be filled in, and obtain the identity card sub-number to be filled in corresponding to the identity card number to be filled in;
[0014] A primary index information retrieval unit, configured to retrieve the plurality of primary index information based on the ID card sub-number to be filled in, and obtain similar primary index information corresponding to the ID card sub-number to be filled in, wherein the similar primary index information includes a target ID card number;
[0015] an identity card number matching unit, configured to match the identity card number to be filled in with the target identity card number using a first matching mode to obtain a first similarity score, wherein the first matching mode is used to match whether information is identical;
[0016] A patient information filling unit is used to fill the patient information to be filled into the similar main index information if the first similarity score meets a preset similarity score.
[0017] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0018] Memory for storing computer programs;
[0019] A processor is used to implement the steps of the method for constructing any patient master index in the first aspect when executing the computer program.
[0020] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method for constructing any patient master index in the first aspect described above are implemented.
[0021] Compared with the prior art, this application has the following beneficial effects:
[0022] In the present application, the target primary index table and the patient information to be filled corresponding to the target patient are first obtained, and then the ID card number to be filled is disassembled to obtain the ID card sub-number to be filled corresponding to the ID card number to be filled, and multiple primary index information are retrieved based on the ID card sub-number to be filled to obtain similar primary index information corresponding to the ID card sub-number to be filled, and finally the ID card number to be filled and the target ID card number are matched using the first matching mode to obtain the first similarity score, and if the first similarity score meets the preset similarity score, the patient information to be filled is filled into the similar primary index information. It should be noted that the patient information to be filled includes the ID card number to be filled and the patient name to be filled, the target primary index table includes multiple primary index information, the similar primary index information includes the target ID card number, and the first matching mode is used to match whether the information is the same.
[0023] It can be seen that in the present application, the ID card number to be filled in the patient information to be filled can be first disassembled to obtain the ID card sub-number to be filled. After that, the multiple main index information in the target main index table can be retrieved based on the ID card sub-number to be filled to obtain the similar main index information corresponding to the ID card sub-number to be filled (that is, the target ID card number). At this time, the ID card number to be filled and the target ID card number can be matched to realize the filling of the patient information to be filled. In this way, in the present application, the patient information can be retrieved and matched with the similar main index information by disassembling the patient information. If the match is successful, the patient information can be further filled into the similar main index information, so that the effective use of the patient information can be realized, thereby improving the construction performance of the patient main index. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0025] Figure 1 A flowchart of a method for constructing a patient master index provided in an embodiment of the present application;
[0026] Figure 2 A full flow chart of the construction of a primary index for a patient in a method for constructing a primary index for a patient provided in an embodiment of the present application;
[0027] Figure 3 A schematic diagram of the structure of a device for constructing a patient master index provided in an embodiment of the present application;
[0028] Figure 4A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0030] It should be noted that the method, device, electronic device and storage medium for constructing a patient master index provided in the present application are used in the field of data processing technology. The above are only examples and do not limit the application fields of the method and device names provided in the present application.
[0031] As described above, in the medical system, a patient primary index is usually used to store patient information, so as to facilitate subsequent query of patient information. In the relevant technical solution, a patient primary index is usually constructed based on the patient's name and the patient's ID number, that is, in the subsequent process, the patient's ID number under the patient primary index can be obtained based on the patient's ID number to achieve matching and query of patient information.
[0032] Specifically, in the process of constructing the patient primary index, abnormal patient names and patient ID numbers are removed to achieve rapid construction of the patient primary index. For example, if the patient ID number corresponding to patient A has missing or incorrect digits (such as the patient ID number corresponding to patient A has only 15 digits, or the patient ID number corresponding to patient A does not meet the ID number legitimacy algorithm requirements), the patient ID number corresponding to patient A will be deleted and the patient primary index will be constructed only by the patient name corresponding to patient A.
[0033] However, the patient master index constructed in the above manner may not be able to support the query of patient information well. It is understandable that the patient name and patient ID number under the patient master index number can be matched based on the patient name and patient ID number of patient A. If the patient ID number is removed due to an abnormality when constructing the patient master index, the query of patient information is only based on the matching of the patient name, which may result in poor query performance, thereby resulting in poor construction performance of the patient master index. Therefore, how to improve search efficiency is a key issue that technicians in this field are concerned about.
[0034] Therefore, the inventor proposed the technical solution of the present application. In the present application, the target main index table and the patient information to be filled corresponding to the target patient can be first obtained; thereafter, the ID card number to be filled in the patient information to be filled can be disassembled to obtain the ID card sub-number to be filled corresponding to the ID card number to be filled, and based on the ID card sub-number to be filled, multiple main index information in the target main index table can be retrieved to obtain similar main index information corresponding to the ID card sub-number to be filled, and the similar main index information includes the target ID card number; finally, the ID card number to be filled and the target ID card number can be matched using the first matching mode to obtain a first similarity score, and if the first similarity score meets the preset similarity score, the patient information to be filled can be filled into the similar main index information. It can be seen that in the present application, the retrieval and matching of patient information and similar main index information can be realized by disassembling the patient information. If the match is successful, the patient information can be further filled into the similar main index information, so that the effective use of patient information can be achieved, thereby improving the construction performance of the patient main index.
[0035] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0036] The following is an example of an example of a method for constructing a patient master index provided by the present application. Figure 1 , which is a flow chart of a method for constructing a patient master index provided in an embodiment of the present application, such as Figure 1 As shown, the method includes steps S101 to S105, and steps S101 to S105 are specifically as follows:
[0037] S101: Obtain the target main index table and the patient information to be filled in corresponding to the target patient.
[0038] In this step, the patient information to be filled in includes the ID number to be filled in and the patient name to be filled in, and the patient information to be filled in can be obtained by the target patient. The target master index table includes multiple master index information, and one master index information corresponds to one patient, that is, one master index information includes the patient information of the corresponding patient. In a feasible implementation, the target master index table includes a patient ID number field and a patient name field, wherein the patient ID number field contains the patient ID number, and the patient name field contains the patient name. It should be noted that the relevant data collection and processing in this application should be strictly in accordance with the requirements of relevant regional laws and regulations when applied in examples, and the informed consent or separate consent of the subject of personal information should be obtained, and subsequent data use and processing should be carried out within the scope of authorization of laws and regulations and the subject of personal information.
[0039] As shown in Table 1, Table 1 is a schematic table of a target primary index table in a method for constructing a patient primary index provided in an embodiment of the present application, wherein the target primary index table shown in the present application is only a partial example and is not specifically limited here. In Table 1, the primary index number represents the primary index number field, that is, the patient primary index number may exist in the primary index number field, for example, in actual applications, the patient primary index number may be 123456; the identification number represents the patient identification number field, that is, the patient identifier may exist in the patient identification number field, for example, in actual applications, the patient identifier may be 001; the name represents the patient name field, that is, the patient name may exist in the patient name field, for example, in actual applications, the patient name may be A Yiyi; the ID number represents the patient ID number field, that is, the patient ID number may exist in the patient ID number field.
[0040] Table 1
[0041] Primary index number Identification number Name ID number Patient primary index number Patient identification number Patient Name Patient ID number
[0042] It should be noted that the patient primary index number is globally unique and is generated when the primary index is created. There may be one or more patient identification numbers under the patient primary index number, where one or more patient identification numbers all indicate the same patient. It is understandable that the patient identification numbers may be different due to different hospitals or changes in the manufacturer in the same hospital. For example: Patient A only provides the patient name corresponding to patient A in Hospital A, and patient A only provides the patient ID number corresponding to patient A in Hospital B. At this time, the patient name corresponding to patient A and the patient ID number corresponding to patient A can be integrated into the patient primary index to realize the construction of the patient primary index.
[0043] S102: Decompose the ID card number to be filled in, and obtain the ID card sub-number to be filled in corresponding to the ID card number to be filled in.
[0044] It should be noted that before executing step S102, the present application can also determine whether the length of the ID number to be filled is greater than or equal to 14. If the length of the ID number to be filled is greater than or equal to 14, the first 14 digits in the ID number to be filled are used as the ID sub-number to be filled corresponding to the ID number to be filled in accordance with the arrangement order of the ID number to be filled; if the length of the ID number to be filled is not greater than or equal to 14, the subsequent screening and matching operations of the ID number to be filled can be ignored, or if the length of the ID number to be filled is not greater than or equal to 14, and the name of the patient to be filled in the patient information to be filled does not match the primary index information in the target primary index table, then new primary index information can be constructed based on the patient information to be filled. In this way, in the present application, while ensuring that the length of the ID number is greater than or equal to 14, the abnormal ID number can be effectively utilized, so that the retrieval of similar primary index information can be realized based on the disassembled ID number in the subsequent process.
[0045] It should also be noted that if the length of the ID number to be filled in is greater than 14, and less than or equal to 18, then in this application, the numbers in the ID number to be filled in except for the ID number to be filled in corresponding to the ID number to be filled in can also be used as another ID number to be filled in corresponding to the ID number to be filled in, so as to facilitate the retrieval of similar main index information based on the other ID number to be filled in the subsequent process when similar main index information is not retrieved based on the ID number to be filled in. For example, if the ID number to be filled in is xxxxxx1211yyyyzzzz, it can be determined that the length of the ID number to be filled in is 18 (which is greater than or equal to 14), and the ID number to be filled in can be disassembled into the ID number to be filled in (xxxxxx1211yyyy), and another ID number to be filled in (zzzz).
[0046] It should be further explained that in this application, the text index content can be formed based on the telephone number to be filled and the patient name to be filled, where the text index content is separated by spaces (such as Zhang San xxxxxx1211yyyy) to meet the use of monogoDB document index. After that, the $text and $search operators of mongoDB can be used to retrieve similar primary index information based on the formed text index content.
[0047] S103: Based on the ID card sub-number to be filled in, the multiple primary index information are searched and processed to obtain similar primary index information corresponding to the ID card sub-number to be filled in.
[0048] It should be noted that the multiple primary index information includes multiple ID numbers to be matched and multiple ID sub-numbers to be matched, one ID number to be matched and one ID sub-number to be matched belong to one primary index information, and the length of one ID sub-number to be matched is 14. In an achievable implementation, the multiple primary index information also includes multiple other ID sub-numbers to be matched, and the length of one other ID sub-number to be matched is 4, so that the multiple other ID sub-numbers to be matched can support the retrieval of another ID sub-number to be filled.
[0049] Specifically, in the present application, firstly, a sub-number search can be performed on multiple ID card sub-numbers to be matched based on the ID card sub-number to be filled, so as to obtain a target ID card sub-number that is the same as the ID card sub-number to be filled in the multiple ID card sub-numbers to be matched. Thereafter, a certificate number search can be performed on multiple ID card numbers to be matched based on the target ID card sub-number, so as to obtain a target ID card number that is similar to the target ID card sub-number in the multiple ID card numbers to be matched. Finally, the target ID card number can be used as the similar primary index information corresponding to the ID card sub-number to be filled. In order to compress the amount of similar primary index data retrieved and improve the rate, the $meta operator in mongoDB can be used to obtain the text content similarity score, and the first several similar primary index information retrieved can be obtained by sorting. The first several similar primary index information can be one or more, which is not specifically limited here. In this way, in the present application, the disassembled ID card number can be used to search multiple primary index information to obtain an ID card number similar to the disassembled ID card number, so as to support the subsequent process of matching the ID card number.
[0050] As shown in Table 2, Table 2 is a schematic table of information retrieval in a method for constructing a patient master index provided in an embodiment of the present application, wherein the schematic table is only a partial example in the present application and is not specifically limited here. In Table 2, ID card number 1 represents the first ID card number field, that is, a sub-segment of the ID card number (i.e., the ID card sub-number to be matched) may exist in the first ID card number field, and ID card number 2 represents the second ID card number field, that is, another sub-segment of the ID card number (i.e., another ID card sub-number to be matched) may exist in the second ID card number field.
[0051] In one example, if the ID number to be filled in is xxxxxx1211yyyy, then the ID sub-number to be filled in obtained by disassembling the ID number to be filled in is xxxxxx1211yyyy. Thereafter, multiple ID sub-numbers to be matched are retrieved according to the ID sub-number to be filled in, and the target ID sub-number that is the same as the ID sub-number to be filled in can be obtained as xxxxxx1211yyyy, thereby determining the similar main index information (that is, the target ID number is xxxxxx1211yyyyzzzz). In this way, in the present application, similar main index information can be retrieved based on the disassembly and segmentation method, reducing the interference of abnormal information on the matching accuracy of the main index information.
[0052] Table 2
[0053] ID number 1 ID number 2 Similar main index information xxxxxx1211yyyy zzzz Disassembly certificate number information xxxxxx1211yyyy
[0054] S104: Use a first matching pattern to match the ID card number to be filled in and the target ID card number to obtain a first similarity score.
[0055] In this step, the first matching mode is used to match whether the information is the same. It can be understood that if the matching mode is specified as the first matching mode in this application, it can be determined whether the ID number to be filled in and the target ID number are the same to obtain a first similarity score, wherein if the ID number to be filled in and the target ID number are not the same, the first similarity score is 0; if the ID number to be filled in and the target ID number are the same, the first similarity score is 100. It should be noted that in actual applications, if the ID numbers match the same, the first similarity score can be preset to different scores as needed, and the scores shown in this application are only examples. In this way, accurate matching of the ID number can be achieved in this application to improve the readiness of retrieval matching.
[0056] S105: If the first similarity score meets a preset similarity score, fill the patient information to be filled into the similar main index information.
[0057] In this step, the preset similarity score can be 100, which can be adjusted as needed in actual applications and is only an example in this application. It can be understood that if the first similarity score (such as 100) satisfies the preset similarity score (such as 100), the name of the patient to be filled in the patient information to be filled can be filled into the similar main index information to complete the information in the similar main index information, which is convenient for subsequent query of the main index information, thereby improving the construction of the patient main index.
[0058] It should be noted that the patient information to be filled in also includes the patient's gender to be filled in, and the similar main index information also includes the target patient's name and the target patient's gender. It can be understood that after obtaining the target ID number based on the retrieval of the ID card sub-number to be filled in, the patient information corresponding to the target ID number can be further determined based on the target ID number. The patient information can include the target patient's name and the target patient's gender.
[0059] Furthermore, if the first similarity score does not meet the preset similarity score, the first similarity score can be updated to obtain a second similarity score. Specifically, in the present application, a second matching mode can be used to calculate the similarity between the ID number to be filled and the target ID number to obtain a second similarity score, and the first similarity score is updated to the second similarity score, wherein the second matching mode is used to match whether the information is similar.
[0060] In a feasible implementation, the ID number to be filled and the target ID number can be similarly calculated by the shortest edit distance algorithm under the second matching mode to obtain the ID number similarity between the ID number to be filled and the target ID number, and the ID number similarity is multiplied by the ID number preset score to obtain the second similarity score, wherein the ID number preset score is the preset full score for the similarity of the ID number. In this way, in the present application, when the ID number to be filled and the target ID number do not match, the ID number to be filled and the target ID number can be similarly matched to support the subsequent matching of the remaining patient information.
[0061] At the same time, if the first similarity score does not meet the preset similarity score, the first matching mode can be used to match the gender of the patient to be filled and the gender of the target patient to obtain a gender similarity score, that is, to determine whether the gender of the patient to be filled and the gender of the target patient are the same. If the gender of the patient to be filled and the gender of the target patient are not the same, the gender similarity score is 0; if the gender of the patient to be filled and the gender of the target patient are the same, the gender similarity score is 5. It should be noted that in actual applications, if the gender matches are the same, the gender similarity score can be preset to different scores as needed, and the scores shown in this application are only examples.
[0062] And if the first similarity score does not meet the preset similarity score, the first matching mode can be used to match the name of the patient to be filled and the name of the target patient to obtain a name similarity score, that is, to determine whether the name of the patient to be filled and the name of the target patient are the same. If the name of the patient to be filled and the name of the target patient are not the same, the name similarity score is 0; if the name of the patient to be filled and the name of the target patient are the same, the name similarity score is 15. It should be noted that in actual applications, if the names match the same, the name similarity score can be preset to different scores as needed, and the scores shown in this application are only examples.
[0063] Finally, if the sum of the second similarity score, the gender similarity score, and the name similarity score is equal to or greater than the first preset score, the patient information to be filled in can be filled in the similar primary index information to supplement the similar primary index information for subsequent patient information queries. For example, if the first preset score is 80, the gender similarity score is 5, the name similarity score is 15, and the second similarity score is 70, then the sum is 90 (i.e., greater than the first preset score), and the ID number to be filled in the patient information to be filled in can be filled in the similar primary index information.
[0064] It should be further explained that the patient information to be filled in also includes the patient's phone number and the patient's address to be filled in, and the similar main index information also includes the target patient's phone number and the target patient's address. It can be understood that after obtaining the target ID number based on the retrieval of the ID card sub-number to be filled in, the patient information corresponding to the target ID number can be further determined based on the target ID number. The patient information can also include the target patient's phone number and the target patient's address.
[0065] Furthermore, if the sum of the second similarity score, the gender similarity score and the name similarity score is not equal to or greater than the first preset score, the second matching mode can be used to match the phone number of the patient to be filled in and the target patient's phone number to obtain a phone similarity score, that is, under the action of the second matching mode, the similarity of the patient to be filled in and the target patient's phone number is calculated by the shortest edit distance algorithm to obtain the phone similarity, and the phone similarity is multiplied by the phone preset score to obtain a second similarity score, wherein the phone preset score is the preset full score for the similarity of the phone.
[0066] At the same time, if the sum of the second similarity score, the gender similarity score and the name similarity score is not equal to or greater than the first preset score, the second matching mode can be used to match the address of the patient to be filled and the target patient address to obtain an address similarity score, that is, under the action of the second matching mode, the similarity of the patient to be filled and the target patient address is calculated by the shortest edit distance algorithm to obtain the address similarity, and the address similarity is multiplied by the address preset score to obtain a second similarity score, wherein the address preset score is the preset full score for the similarity of the address.
[0067] Finally, if the name similarity score, phone similarity score, and address similarity score meet or exceed the second preset score, the patient information to be filled in can be filled into the similar main index information to supplement the similar main index information, so as to facilitate subsequent queries on patient information. For example, if the second preset threshold is 95, the name similarity score is 15, the phone similarity score is 75, and the second similarity score is 5, then the sum is 95 (i.e., equal to the second preset score), and the patient phone number and the patient address in the patient information to be filled in can be filled into the similar main index information. In this way, in the present application, the matching method for patient information can be continuously adjusted, and the effective use of the patient information to be filled is realized to expand the matching range of patient information, thereby improving the construction performance of the patient main index to a certain extent.
[0068] It should also be noted that in this application, if the sum of the name similarity score, the phone number similarity score and the address similarity score is not equal to or greater than the second preset score, new primary index information is constructed based on the patient information to be filled in. That is, if there is no patient information corresponding to the target patient in the current target primary index table, new primary index information can be constructed at this time. In this way, the probability of duplicate patient information appearing in the primary index table is reduced.
[0069] In addition, in this application, if there is a patient phone number to be filled in the patient information to be filled, if the length of the patient phone number to be filled is equal to 11, the patient phone number to be filled can be disassembled to obtain the telephone number to be filled corresponding to the patient phone number to be filled, that is, according to the arrangement order of the patient phone numbers to be filled, the first 7 digits in the patient phone number to be filled are used as the telephone number to be filled corresponding to the patient phone number to be filled. In this way, the subsequent retrieval, matching and filling process can be realized, and the process can refer to the above retrieval, matching and filling process, which will not be repeated here.
[0070] And in this application, if there is a patient address to be filled in the patient information to be filled, the patient address to be filled can be disassembled to obtain the address sub-segment to be filled corresponding to the patient address to be filled, that is, the patient address to be filled is split into five parts according to the province, city, county (district), street (village), and other (detailed address), and the street (village) in the patient address to be filled is retained as the address sub-segment to be filled, and other (detailed address) is another address sub-segment to be filled. In this way, the subsequent retrieval, matching and filling process can be realized, and the process can refer to the above-mentioned retrieval, matching and filling process, which will not be repeated here. It should be noted that in this application, if any one of the ID card number to be filled, the patient phone number to be filled and the patient address to be filled in the patient information to be filled meets the disassembly rules, the disassembly of any one of the ID card number to be filled, the patient phone number to be filled and the patient address to be filled in the patient information to be filled can be realized. In this way, similar primary index information can be retrieved by relying on some fields, which greatly improves the utilization efficiency of patient information.
[0071] As shown in Table 3, Table 3 is a schematic table of information matching in a method for constructing a patient master index provided in an embodiment of the present application. After obtaining the target master index table and the patient information to be filled in, the present application can first match the patient's ID number based on the first matching mode under the action of Rule 1; if Rule 1 fails to match, then under the action of Rule 2, the patient's ID number can be matched based on the second matching mode, the patient's name can be matched based on the first matching mode, and the patient's gender can be matched based on the first matching mode; if Rule 2 fails to match, then under the action of Rule 3, the patient's name can be matched based on the first matching mode, the patient's telephone number can be matched based on the second matching mode, and the patient's address can be matched based on the second matching mode.
[0072] Table 3
[0073]
[0074] like Figure 2 As shown, Figure 2A full flow chart of the construction of a primary index in a method for constructing a patient primary index provided in an embodiment of the present application. First, obtain the target primary index table and the patient information to be filled in. If the patient identification number in the patient information to be filled in does not exist in the target primary index table or the patient identification number does not exist in the patient information to be filled in, then the similar primary index information detection process can be performed based on the patient information to be filled in. If similar primary index information is retrieved, a matching operation based on the above rules is performed. If similar primary index information is not retrieved, new primary index information can be constructed based on the patient information to be filled in. If the similarity score of the patient information to be filled in and the similar primary index information meets the preset similarity score, the patient information to be filled in is filled into the similar primary index information; if the similarity score of the patient information to be filled in and the similar primary index information does not meet the preset similarity score, a new primary index information is constructed based on the patient information to be filled in. In this way, the matching and construction process of the primary index information is realized, and the construction performance of the patient primary index is improved.
[0075] In summary, in the embodiment of the present application, the ID card number to be filled in the patient information to be filled can be first disassembled to obtain the ID card sub-number to be filled, and then the multiple main index information in the target main index table can be retrieved based on the ID card sub-number to be filled to obtain the similar main index information corresponding to the ID card sub-number to be filled (that is, the target ID card number). At this time, the ID card number to be filled and the target ID card number can be matched to achieve the filling of the patient information to be filled. In this way, in the present application, the patient information can be disassembled to achieve the retrieval and matching of the patient information and the similar main index information. If the match is successful, the patient information can be further filled into the similar main index information, so that the effective use of the patient information can be achieved, thereby improving the construction performance of the patient main index.
[0076] The following is an introduction to a patient master index construction device provided in an embodiment of the present application. The patient master index construction device described below and the patient master index construction method described above can be referenced to each other. Figure 3 , which is a schematic diagram of the structure of a device for constructing a patient master index provided in an embodiment of the present application, such as Figure 3 As shown, the device for constructing the patient master index includes:
[0077] The index table information acquisition unit 301 is used to acquire the target main index table and the patient information to be filled in corresponding to the target patient, wherein the patient information to be filled in includes the identity card number to be filled in and the patient name to be filled in, and the target main index table includes a plurality of main index information;
[0078] The ID card number disassembling unit 302 is used to disassemble the ID card number to be filled in, and obtain the ID card sub-number to be filled in corresponding to the ID card number to be filled in;
[0079] A primary index information retrieval unit 303 is used to retrieve the plurality of primary index information based on the ID card sub-number to be filled in, and obtain similar primary index information corresponding to the ID card sub-number to be filled in, wherein the similar primary index information includes the target ID card number;
[0080] The ID card number matching unit 304 is used to match the ID card number to be filled and the target ID card number using a first matching mode to obtain a first similarity score, wherein the first matching mode is used to match whether the information is the same;
[0081] The patient information filling unit 305 is configured to fill the patient information to be filled into the similar primary index information if the first similarity score satisfies a preset similarity score.
[0082] In one feasible embodiment, the device further includes:
[0083] An identity card number determination unit, used to determine whether the length of the identity card number to be filled is greater than or equal to 14;
[0084] The ID number disassembly unit 302 is specifically used for:
[0085] If the length of the ID card number to be filled in is greater than or equal to 14, according to the arrangement order of the ID card number to be filled in, the first 14 digits in the ID card number to be filled in will be used as the ID card sub-number to be filled corresponding to the ID card number to be filled in.
[0086] In an achievable implementation, the main index information retrieval unit 303 is specifically used to:
[0087] Based on the ID card sub-number to be filled, a sub-number search is performed on the multiple ID card sub-numbers to be matched, and a target ID card sub-number that is the same as the ID card sub-number to be filled is obtained from the multiple ID card sub-numbers to be matched;
[0088] Based on the target ID card number, the multiple ID card numbers to be matched are searched for ID number, and a target ID card number similar to the target ID card number is obtained from the multiple ID card numbers to be matched;
[0089] Based on the target ID number, determine the similar primary index information corresponding to the ID sub-number to be filled in.
[0090] In one feasible embodiment, the device further includes:
[0091] a similarity score updating unit, configured to update the first similarity score to obtain a second similarity score if the first similarity score does not meet a preset similarity score;
[0092] a patient gender matching unit, configured to, if the first similarity score does not meet a preset similarity score, match the gender of the patient to be filled with the gender of the target patient using the first matching mode to obtain a gender similarity score, and match the name of the patient to be filled with the name of the target patient using the first matching mode to obtain a name similarity score;
[0093] The first sum judgment unit is used to fill the patient information to be filled into the similar main index information if the sum of the second similarity score, the gender similarity score and the name similarity score is equal to or greater than a first preset score.
[0094] In an achievable implementation, the similarity score updating unit is specifically used to:
[0095] Calculating the similarity between the ID card number to be filled and the target ID card number using a second matching mode to obtain a second similarity score, wherein the second matching mode is used to match whether the information is similar;
[0096] The first similarity score is updated to a second similarity score.
[0097] In one feasible embodiment, the device further includes:
[0098] a patient telephone number matching unit, configured to match the to-be-filled patient telephone number with the target patient telephone number using the second matching mode to obtain a telephone number similarity score if the sum of the second similarity score, the gender similarity score and the name similarity score is not equal to or greater than the first preset score;
[0099] a patient address matching unit, configured to match the to-be-filled patient address with the target patient address using the second matching mode to obtain an address similarity score if the sum of the second similarity score, the gender similarity score and the name similarity score is not equal to or greater than the first preset score;
[0100] The second sum judgment unit is used to fill the patient information to be filled into the similar main index information if the sum of the name similarity score, the phone similarity score and the address similarity score is equal to or greater than a second preset score.
[0101] In one feasible embodiment, the device further includes:
[0102] The primary index building unit is used to build new primary index information based on the patient information to be filled in if the sum of the name similarity score, the phone number similarity score and the address similarity score is not equal to or greater than a second preset score.
[0103] The apparatus for constructing the patient master index provided in the embodiment of the present application has the same beneficial effects as the method for constructing the patient master index provided in the above embodiment, and therefore will not be described in detail.
[0104] Electronic device embodiment
[0105] See also Figure 4 , which is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 4 As shown, including:
[0106] A memory 11, used for storing computer programs;
[0107] The processor 12 is configured to implement the steps of the method for constructing the patient master index described in any of the above method embodiments when executing the computer program.
[0108] In this embodiment, the device may be a vehicle-mounted computer, a PC (Personal Computer), or a terminal device such as a smart phone, a tablet computer, a PDA, or a portable computer.
[0109] The device may include a memory 11, a processor 12 and a bus 13. The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. The memory 11 may be an internal storage unit of the device in some embodiments, such as a hard disk of the device. The memory 11 may also be an external storage device of the device in other embodiments, such as a plug-in hard disk equipped on the device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Further, the memory 11 may also include both an internal storage unit of the device and an external storage device. The memory 11 may not only be used to store application software and various types of data installed on the device, such as program code for executing a method for constructing a patient master index, but may also be used to temporarily store data that has been output or is to be output.
[0110] In some embodiments, the processor 12 can be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run the program code stored in the memory 11 or process data, such as the program code for executing the method for constructing the patient master index.
[0111] The bus 13 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0112] Furthermore, the device may also include a network interface 14, which may optionally include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the device and other electronic devices.
[0113] Optionally, the device may further include a user interface 15, which may include a display (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 15 may also include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the device and to display a visual user interface.
[0114] Figure 4 Only the device with components 11-15 is shown, and it can be understood by those skilled in the art that Figure 4 The structure shown does not constitute a limitation of the device, and may include fewer or more components than shown, or combine certain components, or arrange the components differently.
[0115] Readable storage medium embodiment
[0116] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for constructing the patient master index described in any of the above method embodiments are implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0117] It should also be noted that the "first" and "second" (if any) in the names such as "first" and "second" mentioned in the embodiments of the present application are only used as name identifiers and do not represent the first or second in order.
[0118] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0119] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0120] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0121] The above is a detailed introduction to a method, device, electronic device and storage medium for constructing a patient master index provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A method for constructing a patient master index, characterized in that: include: Obtaining the target primary index table and the patient information to be filled in corresponding to the target patient, wherein the patient information to be filled in includes the ID number to be filled in and the patient name to be filled in, and the target primary index table includes a plurality of primary index information; The ID card number to be filled is disassembled to obtain the ID card sub-number to be filled corresponding to the ID card number to be filled; Based on the ID card sub-number to be filled, the multiple primary index information are searched and processed to obtain similar primary index information corresponding to the ID card sub-number to be filled, wherein the similar primary index information includes the target ID card number; Using a first matching mode to match the ID card number to be filled and the target ID card number to obtain a first similarity score, wherein the first matching mode is used to match whether the information is the same; If the first similarity score meets the preset similarity score, the patient information to be filled in is filled into the similar main index information.
2. The method according to claim 1, characterized in that Before the ID card number to be filled is disassembled to obtain the ID card sub-number to be filled corresponding to the ID card number to be filled, the method further includes: Determine whether the length of the ID card number to be filled is greater than or equal to 14; The step of disassembling the ID card number to be filled in to obtain the ID card sub-number to be filled in corresponding to the ID card number to be filled in includes: If the length of the ID card number to be filled in is greater than or equal to 14, according to the arrangement order of the ID card number to be filled in, the first 14 digits in the ID card number to be filled in will be used as the ID card sub-number to be filled corresponding to the ID card number to be filled in.
3. The method according to claim 1, characterized in that: The multiple primary index information includes multiple ID card numbers to be matched and multiple ID card sub-numbers to be matched. One ID card number to be matched and one ID card sub-number to be matched belong to one primary index information, and the length of one ID card sub-number to be matched is 14; The retrieving and processing the plurality of primary index information based on the ID card sub-number to be filled in, and obtaining similar primary index information corresponding to the ID card sub-number to be filled in, includes: Based on the ID card sub-number to be filled, a sub-number search is performed on the multiple ID card sub-numbers to be matched, and a target ID card sub-number that is the same as the ID card sub-number to be filled is obtained from the multiple ID card sub-numbers to be matched; Based on the target ID card number, the multiple ID card numbers to be matched are searched for ID number, and a target ID card number similar to the target ID card number is obtained from the multiple ID card numbers to be matched; Based on the target ID number, determine the similar primary index information corresponding to the ID sub-number to be filled in.
4. The method according to claim 1, characterized in that: The patient information to be filled in also includes the gender of the patient to be filled in, the similar primary index information also includes the name of the target patient and the gender of the target patient, and further includes: If the first similarity score does not meet the preset similarity score, updating the first similarity score to obtain a second similarity score; If the first similarity score does not meet the preset similarity score, the first matching mode is used to match the gender of the patient to be filled and the gender of the target patient to obtain a gender similarity score, and the first matching mode is used to match the name of the patient to be filled and the name of the target patient to obtain a name similarity score; If the sum of the second similarity score, the gender similarity score and the name similarity score is equal to or greater than the first preset score, the patient information to be filled in is filled into the similar main index information.
5. The method according to claim 4, characterized in that The updating of the first similarity score to obtain a second similarity score includes: Calculating the similarity between the ID card number to be filled and the target ID card number using a second matching mode to obtain a second similarity score, wherein the second matching mode is used to match whether the information is similar; The first similarity score is updated to a second similarity score.
6. The method according to claim 5, characterized in that The patient information to be filled in further includes the patient telephone number to be filled in and the patient address to be filled in, the similar primary index information further includes the target patient telephone number and the target patient address, and further includes: If the sum of the second similarity score, the gender similarity score and the name similarity score is not equal to or greater than the first preset score, matching the to-be-filled patient phone number with the target patient phone number using the second matching mode to obtain a phone similarity score; If the sum of the second similarity score, the gender similarity score and the name similarity score is not equal to or greater than the first preset score, matching the address of the patient to be filled with the address of the target patient using the second matching mode to obtain an address similarity score; If the sum of the name similarity score, the telephone similarity score and the address similarity score is equal to or greater than a second preset score, the patient information to be filled in is filled into the similar main index information.
7. The method according to claim 6, characterized in that Also includes: If the sum of the name similarity score, the phone number similarity score and the address similarity score is not equal to or greater than a second preset score, new primary index information is constructed based on the patient information to be filled.
8. A device for constructing a patient master index, characterized in that: include: An index table information acquisition unit, used to acquire the target main index table and the patient information to be filled in corresponding to the target patient, wherein the patient information to be filled in includes the identity card number to be filled in and the patient name to be filled in, and the target main index table includes a plurality of main index information; An identity card number disassembling unit, used to disassemble the identity card number to be filled in, and obtain the identity card sub-number to be filled in corresponding to the identity card number to be filled in; A primary index information retrieval unit, configured to retrieve the plurality of primary index information based on the ID card sub-number to be filled in, and obtain similar primary index information corresponding to the ID card sub-number to be filled in, wherein the similar primary index information includes a target ID card number; an identity card number matching unit, configured to match the identity card number to be filled in with the target identity card number using a first matching mode to obtain a first similarity score, wherein the first matching mode is used to match whether information is identical; A patient information filling unit is used to fill the patient information to be filled into the similar main index information if the first similarity score meets a preset similarity score.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the method for constructing a patient master index as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for constructing a patient master index as described in any one of claims 1 to 7.