A form reconstruction method, device, equipment and storage medium thereof
By reconstructing the wide table of medical insurance data, multiple structured tables are generated to store rate factors and calculation coefficients, solving the maintenance difficulties under the traditional data storage method and improving the efficiency of premium calculation and system maintainability.
Patent Information
- Application Number
- CN202311112157.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-30
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-08-30
AI Technical Summary
Traditional medical insurance premium calculation and data storage uses wide tables, which leads to a large workload and high maintenance costs. As business needs iterate and change, the amount of premium data increases, and adding new factors requires adding columns to the table and modifying the logic code, making maintenance difficult.
By obtaining the rate factors, factor values, and calculation coefficients that affect pricing calculations from the target medical insurance data wide table, a query identifier code is generated using sorting rules. The data is then reconstructed into three separate tables with first, second, and third structures, storing the rate factor names, calculation coefficients, and factor values respectively, thereby reducing data congestion and improving maintenance efficiency.
It improves the efficiency of medical insurance premium calculation and system maintainability, reduces database resource consumption, and simplifies the premium calculation process.
Smart Images

Figure CN117172226B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of artificial intelligence and digital healthcare technology, and is applied to the medical premium calculation process in a comprehensive medical insurance system. In particular, it relates to a form reconstruction method, apparatus, device, and storage medium thereof. Background Technology
[0002] With the development of the computer industry, the traditional medical industry is also gradually transforming into digital healthcare, especially in cross-platform medical application systems. As more medical institutions are connected and the scope and coverage of medical services become wider, the corresponding medical insurance business will also increase.
[0003] Traditional medical insurance premium calculation and data storage follows a "siloed" development approach, gradually adding each new rate factor and its related data to a wide data table as an accumulation of entries. However, as business develops and product requirements iterate, the amount of rate data increases. When a new factor is added, a new column needs to be added to the table, and the input parameters of the trial calculation interface need to be modified, the trial calculation logic code needs to be adjusted, and the online release needs to be scheduled. The maintenance workload is relatively large, which can easily lead to increasingly higher maintenance costs. Summary of the Invention
[0004] The purpose of this application is to provide a form reconstruction method, apparatus, device and its storage medium to solve the problem that the use of wide data tables for rate data storage in the prior art easily leads to a large amount of maintenance workload and increasingly high maintenance costs.
[0005] To address the aforementioned technical problems, this application provides a form reconstruction method, employing the following technical solution:
[0006] A form reconstruction method includes the following steps:
[0007] Obtain all rate factors affecting the pricing calculation of the current medical insurance type from the target medical insurance data wide table, as well as the factor values and calculation coefficients corresponding to all rate factors;
[0008] All rate factors are sorted according to preset sorting rules to obtain sorting results;
[0009] Based on the sorting results, query identifier codes are set for different rate factors, and a first structure table is generated. The column field information of the first structure table includes the rate factor name, the calculation coefficient address code corresponding to the rate factor, and the query identifier code of the rate factor.
[0010] Based on the rate factors corresponding to the current medical insurance pricing, a second structure table is generated. The column fields of the second structure table include the current medical insurance, the names of all rate factors affecting the pricing of the current medical insurance, and the query identifier code corresponding to each rate factor.
[0011] Based on the factor value and calculation coefficient corresponding to each rate factor, a third structure sub-table corresponding to each rate factor is generated. The column field information of each third structure sub-table includes the calculation coefficient of each rate factor, the calculation coefficient identification code, and the factor value representation data corresponding to the calculation coefficient.
[0012] All rate factors affecting the pricing calculation of each type of medical insurance in the target medical insurance data wide table, the factor values and calculation coefficients corresponding to all rate factors, are written into the corresponding first structure table, second structure table and third structure table respectively, thus completing the form reconstruction of medical insurance data in the target medical insurance data wide table.
[0013] Furthermore, before performing the step of obtaining all rate factors affecting the pricing calculation of the current medical insurance type from the target medical insurance data wide table, the factor values corresponding to all rate factors, and the calculation coefficients, the method further includes:
[0014] Based on preset identification conditions and monitoring calculation components, identify whether the total number of data entries in the medical insurance data wide table meets the reconstruction requirements;
[0015] If the total number of data entries in the medical insurance data wide table reaches the reconstruction requirement, then obtain all rate factors that affect the pricing calculation of the current medical insurance type in the medical insurance data wide table, the factor values and calculation coefficients corresponding to all rate factors;
[0016] If the total number of data entries in the medical insurance data wide table does not meet the reconstruction requirements, the monitoring and calculation component will continue to monitor the data entry of the medical insurance data wide table.
[0017] Furthermore, the step of obtaining all rate factors affecting the pricing calculation of the current medical insurance type from the target medical insurance data wide table, the factor values corresponding to all rate factors, and the calculation coefficients specifically includes:
[0018] According to the row number information in the medical insurance data wide table, obtain each data information in the medical insurance data wide table row by row;
[0019] Based on a preset structured parsing template, each data entry in the medical insurance data wide table is parsed in a structured manner to obtain the structured parsing results;
[0020] The structured analysis results are classified and organized by different types of medical insurance, and all rate factors, factor values and calculation coefficients corresponding to each type of medical insurance are obtained as the classification and organization results.
[0021] Choose one medical insurance type from the different medical insurance types as the current medical insurance type, and select all the rate factors corresponding to the current medical insurance type, the factor values corresponding to all the rate factors, and the calculation coefficients from the classification and sorting results.
[0022] Furthermore, the step of sorting all the rate factors according to a preset sorting rule and obtaining the sorting result specifically includes:
[0023] Based on the structured parsing results, obtain the table entry timestamp information of all rate factors corresponding to the current medical insurance type;
[0024] Based on the entry timestamp information of all rate factors corresponding to the current medical insurance type, all rate factors corresponding to the current medical insurance type are sorted to obtain the sorting result.
[0025] Furthermore, the step of setting query identifier codes for different rate factors based on the sorting results specifically includes:
[0026] Based on the sorting results, all rate factors corresponding to the current medical insurance type are assigned positive integer numbers in ascending order, wherein the starting value of the positive integer number is the smallest positive integer;
[0027] Obtain the English identifiers pre-set for the current medical insurance type, and generate query identifier codes for all rate factors corresponding to the current medical insurance type by concatenating the corresponding English identifiers and positive integer numbers.
[0028] Furthermore, the step of generating the first structural table specifically includes:
[0029] Retrieve the names of all rate factors corresponding to the current medical insurance type;
[0030] Set the name information of all rate factors corresponding to the current medical insurance type to the first column of the first structure sub-table preset;
[0031] Retrieve the query identifier codes for all rate factors corresponding to the current medical insurance type;
[0032] Based on the name information of all rate factors corresponding to the current medical insurance type, set the query identifier code of all rate factors corresponding to the current medical insurance type to the second column item preset in the first structure sub-table;
[0033] A blank column is pre-added to the first structured sub-table as a third column item.
[0034] Furthermore, before performing the step of generating a third structure table corresponding to each rate factor based on the factor values and calculated coefficients corresponding to all rate factors, the method further includes:
[0035] Based on the structured analysis results, obtain the different calculation coefficients corresponding to each rate factor, and the factor value representation data corresponding to the different calculation coefficients respectively;
[0036] Determine the data type by identifying the factor values corresponding to different calculated coefficients of the same rate factor;
[0037] If the data type of the factor value representation data corresponding to the different calculated coefficients of the same rate factor is Boolean, then the Boolean values corresponding to the different calculated coefficients of the same rate factor are statistically analyzed based on the factor value representation data, and a one-to-one association relationship between the calculated coefficients and the corresponding Boolean values is constructed.
[0038] If the data type of the factor value representation data corresponding to the different calculated coefficients of the same rate factor is an interval value type, then the value intervals corresponding to the different calculated coefficients of the same rate factor are statistically analyzed based on the factor value representation data, and a one-to-one correlation relationship is constructed between the calculated coefficients and the corresponding value intervals.
[0039] The step of generating a third structure table corresponding to each rate factor based on the factor values and calculated coefficients corresponding to all rate factors specifically includes:
[0040] Obtain the different calculation coefficients corresponding to each rate factor, set the different codes according to the different calculation coefficients, and obtain the table name information of the pre-set third structure sub-table. Concatenate the table name information and the different codes to generate the calculation coefficient difference code corresponding to the different calculation coefficients. Set the calculation coefficient difference code corresponding to the different calculation coefficients into the preset first column item of the third structure sub-table.
[0041] Based on the different calculation coefficients corresponding to the calculation coefficients, the different calculation coefficients are set into the preset second column item in the third structure sub-table;
[0042] Based on the data type represented by the factor values corresponding to different calculation coefficients, obtain the Boolean values or value ranges corresponding to the different calculation coefficients, and set the Boolean values or value ranges into the preset third column of the third structure table according to the correspondence with the corresponding calculation coefficients to generate the third structure table corresponding to each rate factor.
[0043] After performing the step of generating a third structure table corresponding to each rate factor based on the factor values and calculated coefficients corresponding to all rate factors, the method further includes:
[0044] Obtain the table name information of the third structure sub-table corresponding to each rate factor;
[0045] Based on the name information of each rate factor, the table name information of the third structure sub-table corresponding to each rate factor is set into the third column of the first structure sub-table, thus completing the filling of the third column of the first structure sub-table.
[0046] To address the aforementioned technical problems, this application also provides a form reconstruction apparatus, which employs the following technical solution:
[0047] A form reconstruction apparatus, comprising:
[0048] The rate data acquisition module is used to acquire all rate factors that affect the pricing calculation of the current medical insurance type from the target medical insurance data wide table, as well as the factor values and calculation coefficients corresponding to all rate factors.
[0049] The rate factor sorting module is used to sort all the rate factors according to a preset sorting rule and obtain the sorting result;
[0050] The first structure partitioning module is used to set query identifier codes for different rate factors based on the sorting results and generate a first structure partitioning table. The column field information of the first structure partitioning table includes the rate factor name, the calculation coefficient address code corresponding to the rate factor, and the query identifier code of the rate factor.
[0051] The second structure table generation module is used to generate a second structure table based on the rate factor calculated according to the current medical insurance pricing. The column field information of the second structure table includes the current medical insurance, the names of all rate factors that affect the pricing of the current medical insurance, and the query identifier code corresponding to each rate factor.
[0052] The third structure table generation module is used to generate a third structure table corresponding to each rate factor based on the factor value and calculation coefficient corresponding to each rate factor. The column field information of each third structure table includes the calculation coefficient of each rate factor, the calculation coefficient identification code, and the factor value representation data corresponding to the calculation coefficient.
[0053] The rate data writing module is used to write all rate factors affecting the pricing calculation of each type of medical insurance, the factor values and calculation coefficients corresponding to all rate factors in the target medical insurance data wide table into the corresponding first structure table, second structure table and third structure table, respectively, to complete the form reconstruction of medical insurance data in the target medical insurance data wide table.
[0054] To address the aforementioned technical problems, this application also provides a computer device that employs the following technical solution:
[0055] A computer device includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the form reconstruction method described above.
[0056] To address the aforementioned technical problems, this application also provides a computer-readable storage medium, employing the technical solution described below:
[0057] A computer-readable storage medium storing computer-readable instructions that, when executed by a processor, implement the steps of the form reconstruction method described above.
[0058] Compared with the prior art, the embodiments of this application have the following main advantages:
[0059] The form reconstruction method described in this application involves obtaining all rate factors affecting the pricing calculation of medical insurance products, their corresponding factor values, and calculation coefficients from the target medical insurance data breadth table; setting query identifier codes for different rate factors and generating a first structural sub-table; generating a second structural sub-table based on the rate factors corresponding to the pricing calculation of each medical insurance product; generating a third structural sub-table for each rate factor based on the factor values and calculation coefficients corresponding to all rate factors; and writing all rate factors affecting the pricing calculation of medical insurance products, their corresponding factor values, and calculation coefficients from the target medical insurance data breadth table into the corresponding first, second, and third structural sub-tables, respectively, thereby completing the form reconstruction of the medical insurance data in the target medical insurance data breadth table, improving the efficiency of medical insurance premium calculation and the maintainability of the system. Attached Figure Description
[0060] To more clearly illustrate the solutions in this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0061] Figure 1 This is an exemplary system architecture diagram to which this application can be applied;
[0062] Figure 2 A flowchart of an embodiment of the form reconstruction method according to this application;
[0063] Figure 3 yes Figure 2 A flowchart of a specific embodiment of step 201 shown;
[0064] Figure 4 yes Figure 2 A flowchart of a specific embodiment of step 202 shown;
[0065] Figure 5 A flowchart of an embodiment of setting the query identifier code in the form reconstruction method of this application;
[0066] Figure 6 A flowchart of an embodiment of generating the first structure sub-table according to the form reconstruction method of this application;
[0067] Figure 7 yes Figure 2 A flowchart of a specific embodiment of step 205 shown;
[0068] Figure 8 A schematic diagram of a structure of an embodiment of the form reconstruction apparatus according to this application;
[0069] Figure 9 A schematic diagram of the structure of an embodiment of the computer device according to this application. Detailed Implementation
[0070] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein in the specification of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings of this application, are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings of this application are used to distinguish different objects, not to describe a particular order.
[0071] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0072] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
[0073] like Figure 1 As shown, system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a server 105. Network 104 serves as the medium for providing communication links between terminal devices 101, 102, and 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.
[0074] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social media platform software, etc.
[0075] Terminal devices 101, 102, and 103 can be various electronic devices with displays and support web browsing, including but not limited to smartphones, tablets, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 players (Moving Picture Experts Group Audio Layer IV), laptops, and desktop computers, etc.
[0076] Server 105 can be a server that provides various services, such as a backend server that supports the pages displayed on terminal devices 101, 102, and 103.
[0077] It should be noted that the form reconstruction method provided in this application embodiment is generally executed by the server, and correspondingly, the form reconstruction device is generally set in the server.
[0078] It should be understood that Figure 1The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0079] Continue to refer to Figure 2 A flowchart of an embodiment of the form reconstruction method according to this application is shown. The form reconstruction method includes the following steps:
[0080] Step 201: Obtain all rate factors affecting the pricing calculation of the current medical insurance type from the target medical insurance data wide table, as well as the factor values and calculation coefficients corresponding to all rate factors.
[0081] In this embodiment, before executing the step of obtaining all rate factors affecting the pricing calculation of the current medical insurance type in the target medical insurance data wide table, the factor values corresponding to all rate factors, and the calculation coefficients, the method further includes: based on preset identification conditions and monitoring calculation components, identifying whether the total number of data entries in the medical insurance data wide table meets the reconstruction requirements; if the total number of data entries in the medical insurance data wide table meets the reconstruction requirements, then obtaining all rate factors affecting the pricing calculation of the current medical insurance type in the medical insurance data wide table, the factor values corresponding to all rate factors, and the calculation coefficients; if the total number of data entries in the medical insurance data wide table does not meet the reconstruction requirements, then continuing to use the monitoring calculation components to monitor data entry in the medical insurance data wide table.
[0082] The monitoring and calculation component helps prevent excessive data entry into the medical insurance data spreadsheet. It also facilitates setting the form reconstruction method as an automated process; when the total number of data entries in the medical insurance data spreadsheet reaches a certain set value, the form reconstruction is performed automatically, increasing the program's scalability.
[0083] The factors affecting medical insurance rates include: the insured's age, gender, insured diseases, disease incidence rate, disease duration, disability incidence rate, mortality rate, claim level for each insured disease, whether or not they have social security, whether or not they have underlying diseases, and whether or not they have received the required vaccines. The medical insurance mentioned includes: health insurance, critical illness insurance, and basic medical insurance for urban and rural residents.
[0084] Continue to refer to Figure 3 , Figure 3 yes Figure 2 A flowchart of a specific embodiment of step 201 shown includes:
[0085] Step 301: Obtain each data entry in the medical insurance data wide table row by row according to the row number information in the medical insurance data wide table;
[0086] Step 302: Based on the preset structured parsing template, perform structured parsing on each data information in the medical insurance data wide table obtained row by row to obtain the structured parsing result;
[0087] The structured parsing template includes a JSON parsing template, which in turn includes a JSON array parsing template and a JSON collection parsing template. The JSON collection parsing template includes a List parsing template and / or a Map parsing template.
[0088] Step 303: Classify and organize the structured parsing results by different types of medical insurance, and obtain all the rate factors corresponding to each type of medical insurance, the factor values and calculation coefficients corresponding to all the rate factors, as the classification and organization results;
[0089] Step 304: Select one medical insurance type from the different medical insurance types as the current medical insurance type, and filter out all the rate factors corresponding to the current medical insurance type, the factor values corresponding to all the rate factors, and the calculation coefficients from the classification and sorting results.
[0090] By using the structured parsing template and different medical insurance types as classification items, the system classifies all rate factors, corresponding factor values, and calculated coefficients for each medical insurance type obtained from the parsing. This is more scientific, avoids fuzzy sorting of rate factors for all medical insurance types, and directly and accurately identifies the rate factors for each medical insurance type, thus reducing the complexity of the data structure.
[0091] Step 202: Sort all the rate factors according to the preset sorting rules and obtain the sorting results.
[0092] Continue to refer to Figure 4 , Figure 4 yes Figure 2 A flowchart of a specific embodiment of step 202 shown includes:
[0093] Step 401: Based on the structured parsing results, obtain the table entry timestamp information of all rate factors corresponding to the current medical insurance type;
[0094] Specifically, by traversing the structured parsing results, the table entry timestamp information of all rate factors corresponding to each medical insurance type is obtained. If, during the traversal, several table entry timestamp information of a certain target rate factor of the current medical insurance type is obtained, only the earliest table entry timestamp information is cached as the table entry timestamp information of the target rate factor.
[0095] Step 402: Based on the timestamp information of the entry of all rate factors corresponding to the current medical insurance type, sort all rate factors corresponding to the current medical insurance type and obtain the sorting result.
[0096] Specifically, based on the timing of the entry timestamps of all rate factors corresponding to each type of medical insurance, all rate factors corresponding to each type of medical insurance are sorted.
[0097] In addition, the premium factors can also be sorted according to their respective weights. The premium factors for each type of medical insurance can be sorted according to their weights, but this will not be elaborated on here.
[0098] By sorting the data, subsequent processing of all rate factors corresponding to each type of medical insurance is performed according to a specific processing sequence, thereby further improving the efficiency of subsequent form reconstruction.
[0099] Step 203: Based on the sorting results, set query identifier codes for different rate factors and generate the first structured sub-table.
[0100] In this embodiment, the column field information of the first structure table includes the rate factor name, the calculation coefficient address code corresponding to the rate factor, and the query identifier code of the rate factor. The rate factor name, the calculation coefficient address code, and the query identifier code are associated in a one-to-one relationship.
[0101] In this embodiment, the calculation coefficient address code is the table name information of the storage table corresponding to each calculation coefficient after this form reconstruction.
[0102] Continue to refer to Figure 5 , Figure 5 A flowchart illustrating an embodiment of setting the query identifier code in the form reconstruction method according to this application is shown, including:
[0103] Step 501: Based on the sorting result, assign positive integer numbers to all rate factors corresponding to the current medical insurance type in ascending order, wherein the starting value of the positive integer number is the smallest positive integer;
[0104] Step 502: Obtain the English identifier that has been pre-set for the current medical insurance type, and generate the query identifier code for all rate factors corresponding to the current medical insurance type by concatenating the corresponding English identifier and positive integer number.
[0105] By generating query identifiers for all rate factors corresponding to each type of medical insurance, it is easier to directly filter out the corresponding rate factors through configuration files and machine queries when calculating insurance premiums, making the process more intelligent. The configuration file contains a one-to-one correspondence between all rate factors corresponding to each type of medical insurance and their query identifiers.
[0106] Continue to refer to Figure 6 , Figure 6 A flowchart illustrating an embodiment of generating the first structural sub-table according to the form reconstruction method of this application is shown, including:
[0107] Step 601: Obtain the name information of all rate factors corresponding to the current medical insurance type;
[0108] Step 602: Set the name information of all rate factors corresponding to the current medical insurance type to the first column item preset in the first structure sub-table;
[0109] Step 603: Obtain the query identifier code for all rate factors corresponding to the current medical insurance type;
[0110] Step 604: Based on the name information of all rate factors corresponding to the current medical insurance type, set the query identifier code of all rate factors corresponding to the current medical insurance type to the second column item preset in the first structure sub-table;
[0111] Step 605: In advance, a blank column is redundantly added to the first structure sub-table as the third column item of the first structure sub-table.
[0112] By categorizing different medical insurance types, a first structural table is constructed for each type of medical insurance. A one-to-one association is established between the rate factor name, the calculation coefficient address code, and the query identifier code. This facilitates direct subsequent queries, eliminating the need for wide table queries for premium calculation, thus simplifying system maintenance and improving premium calculation efficiency. Specifically, the name of the current medical insurance type can be used as the distinguishing identifier field of the first structural table. The first column of the first structural table is filled with the rate factor name information, the second column with the rate factor query identifier code, and the third column with the corresponding calculation coefficient address code. The calculation coefficient address code is the address or information of the table where the calculation coefficient is stored.
[0113] Step 204: Calculate the corresponding rate factor based on the current medical insurance pricing and generate a second structured table. The column fields of the second structured table include the current medical insurance, the names of all rate factors affecting the pricing of the current medical insurance, and the query identifier code corresponding to each rate factor.
[0114] In this embodiment, the current medical insurance type and the names of all rate factors affecting the pricing of the current medical insurance type have a one-to-many relationship. Specifically, the first column of the second structural sub-table is filled with the current medical insurance type, the second column is filled with the names of all rate factors affecting the pricing of the current medical insurance type, and the third column is filled with the query identifier code corresponding to each rate factor.
[0115] Subsequently, when obtaining the rate factors corresponding to the pricing calculation of different medical insurance types, the second structural sub-table was gradually improved by directly splicing the rows in the table.
[0116] Step 205: Generate a third structure sub-table corresponding to each rate factor based on the factor values and calculation coefficients corresponding to all rate factors.
[0117] In this embodiment, the column field information of each third structure sub-table includes the calculation coefficient of each rate factor, the calculation coefficient identification code, and the factor value representation data corresponding to the calculation coefficient. The different calculation coefficients, the calculation coefficient address code, and the factor value representation data corresponding to the different calculation coefficients are associated in a one-to-one relationship.
[0118] In this embodiment, before performing the step of generating a third structured table corresponding to each rate factor based on the factor values and calculated coefficients corresponding to all rate factors, the method further includes: obtaining different calculated coefficients corresponding to each rate factor and factor value representation data corresponding to the different calculated coefficients based on the structured parsing results; determining the data type of the factor value representation data corresponding to the different calculated coefficients of the same rate factor; if the data type of the factor value representation data corresponding to the different calculated coefficients of the same rate factor is Boolean, then statistically analyzing the Boolean values corresponding to the different calculated coefficients of the same rate factor based on the factor value representation data, and constructing a one-to-one association between the calculated coefficients and the corresponding Boolean values; if the data type of the factor value representation data corresponding to the different calculated coefficients of the same rate factor is an interval value type, then statistically analyzing the value intervals corresponding to the different calculated coefficients of the same rate factor based on the factor value representation data, and constructing a one-to-one association between the calculated coefficients and the corresponding value intervals.
[0119] In this embodiment, it is assumed that the premium factor for a certain medical insurance product includes gender. In this case, the factor value representing the gender of the premium factor can only be male or female, or a pre-set 1 or 0, where 1 represents male and 0 represents female. That is, the data type of the factor value representing the data is Boolean, and male / female correspond to different calculation coefficients. Similarly, the premium factor for a certain medical insurance product includes age. For example, the incidence of a certain disease varies in different age ranges, such as heart disease and hypertension. The incidence rate in the 20-30 age group is generally much lower than that in the 50-60 age group. In this case, the 20-30 age group corresponds to one calculation coefficient, and the 50-60 age group corresponds to another calculation coefficient. That is, the data type of the factor value representing the data is a range value type, and different age groups correspond to different calculation coefficients.
[0120] Continue to refer to Figure 7 , Figure 7 yes Figure 2 A flowchart of a specific embodiment of step 205 shown includes:
[0121] Step 701: Obtain the different calculation coefficients corresponding to each rate factor, set the different codes according to the different calculation coefficients, and obtain the table name information of the pre-set third structure sub-table. Concatenate the table name information and the different codes to generate the calculation coefficient difference codes corresponding to the different calculation coefficients, and set the calculation coefficient difference codes corresponding to the different calculation coefficients into the preset first column item in the third structure sub-table.
[0122] In essence, the calculated coefficient distinguishing code is composed of the calculated coefficient address code and the corresponding distinguishing code.
[0123] Step 702: Based on the calculation coefficient differentiation code corresponding to different calculation coefficients, set the different calculation coefficients into the preset second column item in the third structure sub-table;
[0124] Step 703: Based on the data type of the factor values corresponding to different calculation coefficients, obtain the Boolean values or value ranges corresponding to the different calculation coefficients, and set the Boolean values or value ranges into the preset third column of the third structure table according to the correspondence with the corresponding calculation coefficients, thereby generating the third structure table corresponding to each rate factor.
[0125] In this embodiment, the first column of the third structural sub-table is filled with the calculation coefficient differentiation code corresponding to different calculation coefficients, the second column is filled with the different calculation coefficients, and the third column is filled with the factor value representation data corresponding to the different calculation coefficients.
[0126] In this embodiment, after performing the step of generating a third structural sub-table corresponding to each rate factor based on the factor values and calculated coefficients corresponding to all rate factors, the method further includes: obtaining the table name information of the third structural sub-table corresponding to each rate factor; setting the table name information of the third structural sub-table corresponding to each rate factor into the third column of the first structural sub-table according to the name information of each rate factor, thereby completing the filling of the third column of the first structural sub-table.
[0127] Step 206: Write all the rate factors that affect the pricing calculation of each type of medical insurance, the factor values and calculation coefficients corresponding to all the rate factors in the target medical insurance data wide table into the corresponding first structure table, second structure table and third structure table respectively, to complete the form reconstruction of the medical insurance data in the target medical insurance data wide table.
[0128] In this embodiment, the first structural sub-table is a rate factor table, the second structural sub-table is an insurance type rate table, and the third structural sub-table is a factor coefficient table. The form reconstruction of the medical insurance data in the target medical insurance data wide table is essentially a reconstruction of the rate factor related data of the medical insurance data in the target medical insurance data wide table.
[0129] In this embodiment, after performing step 206, the method further includes: cleaning the data in the target medical insurance data wide table so that the target medical insurance data wide table is in a zero-data state. This avoids excessive data cache in the database, reduces resource consumption, and improves premium calculation efficiency.
[0130] By organizing the target medical insurance data wide table into three sub-tables with different structures (first, second, and third), all premium rate data is not crammed into a single table. This sub-table approach is more conducive to premium calculation, improves calculation efficiency, and is easier to maintain.
[0131] This application obtains all rate factors, corresponding factor values, and calculation coefficients affecting the pricing calculation of medical insurance products from the target medical insurance data breadth table; sets query identifier codes for different rate factors and generates a first structural sub-table; generates a second structural sub-table based on the rate factors corresponding to the pricing calculation of each medical insurance product; generates a third structural sub-table for each rate factor based on the corresponding factor values and calculation coefficients; and writes all rate factors, corresponding factor values, and calculation coefficients affecting the pricing calculation of medical insurance products from the target medical insurance data breadth table into the corresponding first, second, and third structural sub-tables, respectively, thereby completing the form reconstruction of medical insurance data in the target medical insurance data breadth table, improving the efficiency of medical insurance premium calculation and the maintainability of the system.
[0132] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.
[0133] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.
[0134] In this embodiment, query identifier codes are set for different rate factors, and a first structural table is generated. A second structural table is generated based on the rate factor corresponding to the pricing calculation of each medical insurance type. A third structural table is generated based on the factor values and calculation coefficients corresponding to all rate factors. All rate factors affecting the pricing calculation of medical insurance types in the target medical insurance data wide table, as well as the factor values and calculation coefficients corresponding to all rate factors, are written into the corresponding first, second, and third structural tables, respectively. This completes the form reconstruction of medical insurance data in the target medical insurance data wide table, improving the efficiency of medical insurance premium calculation and the maintainability of the system.
[0135] Further reference Figure 8 As a response to the above Figure 2 To implement the method shown, this application provides an embodiment of a form reconstruction apparatus, which is similar to... Figure 2 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.
[0136] like Figure 8 As shown, the form reconstruction device 800 described in this embodiment includes: a rate data acquisition module 801, a rate factor sorting module 802, a first structure table generation module 803, a second structure table generation module 804, a third structure table generation module 805, and a rate data writing module 806.
[0137] in:
[0138] The rate data acquisition module 801 is used to acquire all rate factors that affect the pricing calculation of the current medical insurance type in the target medical insurance data wide table, the factor values and calculation coefficients corresponding to all rate factors;
[0139] The rate factor sorting module 802 is used to sort all the rate factors according to a preset sorting rule and obtain the sorting result;
[0140] The first structure partition table generation module 803 is used to set query identification codes for different rate factors based on the sorting results and generate a first structure partition table. The column field information of the first structure partition table includes the rate factor name, the calculation coefficient address code corresponding to the rate factor, and the query identification code of the rate factor.
[0141] The second structure table generation module 804 is used to generate a second structure table based on the rate factor calculated according to the current medical insurance pricing. The column field information of the second structure table includes the current medical insurance, the names of all rate factors that affect the pricing of the current medical insurance, and the query identifier code corresponding to each rate factor.
[0142] The third structure table generation module 805 is used to generate a third structure table corresponding to each rate factor based on the factor value and calculation coefficient corresponding to each rate factor. The column field information of each third structure table includes the calculation coefficient of each rate factor, the calculation coefficient identification code, and the factor value representation data corresponding to the calculation coefficient.
[0143] The rate data writing module 806 is used to write all rate factors affecting the pricing calculation of each type of medical insurance, the factor values and calculation coefficients corresponding to all rate factors in the target medical insurance data wide table into the corresponding first structure sub-table, second structure sub-table and third structure sub-table, respectively, to complete the form reconstruction of medical insurance data in the target medical insurance data wide table.
[0144] This application obtains all rate factors, corresponding factor values, and calculation coefficients affecting the pricing calculation of medical insurance products from the target medical insurance data breadth table; sets query identifier codes for different rate factors and generates a first structural sub-table; generates a second structural sub-table based on the rate factors corresponding to the pricing calculation of each medical insurance product; generates a third structural sub-table for each rate factor based on the corresponding factor values and calculation coefficients; and writes all rate factors, corresponding factor values, and calculation coefficients affecting the pricing calculation of medical insurance products from the target medical insurance data breadth table into the corresponding first, second, and third structural sub-tables, respectively, thereby completing the form reconstruction of medical insurance data in the target medical insurance data breadth table, improving the efficiency of medical insurance premium calculation and the maintainability of the system.
[0145] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware through computer-readable instructions. These computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the methods described above. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, optical disk, or read-only memory (ROM), or random access memory (RAM).
[0146] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0147] To address the aforementioned technical problems, embodiments of this application also provide a computer device. Please refer to [link / reference needed]. Figure 9 , Figure 9 This is a basic structural block diagram of the computer device in this embodiment.
[0148] The computer device 9 includes a memory 9a, a processor 9b, and a network interface 9c that are interconnected via a system bus. It should be noted that only the computer device 9 with components 9a-9c is shown in the figure; however, it should be understood that it is not required to implement all the shown components, and more or fewer components can be implemented alternatively. Those skilled in the art will understand that the computer device described here is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0149] The computer device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device can interact with the user via a keyboard, mouse, remote control, touchpad, or voice control.
[0150] The memory 9a includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), 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, magnetic disk, optical disk, etc. In some embodiments, the memory 9a may be an internal storage unit of the computer device 9, such as the hard disk or memory of the computer device 9. In other embodiments, the memory 9a may also be an external storage device of the computer device 9, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the computer device 9. Of course, the memory 9a may also include both the internal storage unit and its external storage device of the computer device 9. In this embodiment, the memory 9a is typically used to store the operating system and various application software installed on the computer device 9, such as computer-readable instructions for form reconstruction methods. In addition, the memory 9a can also be used to temporarily store various types of data that have been output or will be output.
[0151] In some embodiments, the processor 9b may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. The processor 9b is typically used to control the overall operation of the computer device 9. In this embodiment, the processor 9b is used to execute computer-readable instructions stored in the memory 9a or to process data, for example, to execute computer-readable instructions for the form reconstruction method.
[0152] The network interface 9c may include a wireless network interface or a wired network interface, which is typically used to establish communication connections between the computer device 9 and other electronic devices.
[0153] The computer equipment proposed in this embodiment belongs to the field of artificial intelligence and digital medical technology and is applied to the medical premium calculation process in a comprehensive medical insurance system. This application obtains all rate factors affecting medical insurance pricing calculations, their corresponding factor values, and calculation coefficients from the target medical insurance data breadth table; sets query identifier codes for different rate factors and generates a first structural sub-table; generates a second structural sub-table based on the rate factors corresponding to each medical insurance pricing calculation; generates a third structural sub-table for each rate factor based on the factor values and calculation coefficients corresponding to all rate factors; and writes all rate factors affecting medical insurance pricing calculations, their corresponding factor values, and calculation coefficients from the target medical insurance data breadth table into the corresponding first, second, and third structural sub-tables, respectively, thus completing the form reconstruction of the medical insurance data in the target medical insurance data breadth table, improving the efficiency of medical insurance premium calculations and the maintainability of the system.
[0154] This application also provides another embodiment, namely, providing a computer-readable storage medium storing computer-readable instructions that can be executed by a processor to cause the processor to perform the steps of the form reconstruction method described above.
[0155] The computer-readable storage medium proposed in this embodiment belongs to the field of artificial intelligence and digital healthcare technology and is applied to the medical premium calculation process in a comprehensive medical insurance system. This application obtains all rate factors affecting the pricing calculation of medical insurance products, the factor values corresponding to all rate factors, and the calculation coefficients from the target medical insurance data wide table; sets query identifier codes for different rate factors and generates a first structural sub-table; and calculates the corresponding rate factor based on the pricing of each medical insurance product.
[0156] Generate a second structural table; based on the factor values and calculation coefficients corresponding to all rate factors, generate a third structural table corresponding to each rate factor; write all rate factors affecting the pricing calculation of medical insurance products, the factor values and calculation coefficients corresponding to all rate factors in the target medical insurance data wide table into the corresponding first structural table, second structural table and third structural table respectively, to complete the form reconstruction of medical insurance data in the target medical insurance data wide table, thereby improving the efficiency of medical insurance premium calculation and the maintainability of the system.
[0157] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0158] Obviously, the embodiments described above are only some embodiments of this application, not all embodiments. The accompanying drawings show preferred embodiments of this application, but do not limit the patent scope of this application. This application can be implemented in many different forms; rather, the purpose of providing these embodiments is to provide a more thorough and comprehensive understanding of the disclosure of this application. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this application's specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the scope of patent protection of this application.
Claims
1. A form reconfiguration method characterized by, Includes the following steps: Obtain all rate factors affecting the pricing calculation of the current medical insurance type from the target medical insurance data wide table, as well as the factor values and calculation coefficients corresponding to all rate factors; All rate factors are sorted according to preset sorting rules to obtain sorting results; Based on the sorting results, query identifier codes are set for different rate factors, and a first structure table is generated. The column field information of the first structure table includes the rate factor name, the calculation coefficient address code corresponding to the rate factor, and the query identifier code of the rate factor. Based on the rate factors corresponding to the current medical insurance pricing, a second structure table is generated. The column fields of the second structure table include the current medical insurance, the names of all rate factors affecting the pricing of the current medical insurance, and the query identifier code corresponding to each rate factor. Based on the factor value and calculation coefficient corresponding to each rate factor, a third structure sub-table corresponding to each rate factor is generated. The column field information of each third structure sub-table includes the calculation coefficient of each rate factor, the calculation coefficient identification code, and the factor value representation data corresponding to the calculation coefficient. All rate factors affecting the pricing calculation of each type of medical insurance in the target medical insurance data wide table, the factor values and calculation coefficients corresponding to all rate factors, are written into the corresponding first structure table, second structure table and third structure table respectively, thus completing the form reconstruction of medical insurance data in the target medical insurance data wide table.
2. The form reconstruction method according to claim 1, characterized in that, Before performing the step of obtaining all rate factors affecting the pricing calculation of the current medical insurance type from the target medical insurance data wide table, the factor values corresponding to all rate factors, and the calculation coefficients, the method further includes: Based on preset identification conditions and monitoring calculation components, identify whether the total number of data entries in the medical insurance data wide table meets the reconstruction requirements; If the total number of data entries in the medical insurance data wide table reaches the reconstruction requirement, then obtain all rate factors that affect the pricing calculation of the current medical insurance type in the medical insurance data wide table, the factor values and calculation coefficients corresponding to all rate factors; If the total number of data entries in the medical insurance data wide table does not meet the reconstruction requirements, the monitoring and calculation component will continue to monitor the data entry of the medical insurance data wide table.
3. The form reconstruction method according to claim 1 or 2, characterized in that, The steps of obtaining all rate factors affecting the pricing calculation of the current medical insurance type from the target medical insurance data wide table, the factor values corresponding to all rate factors, and the calculation coefficients specifically include: According to the row number information in the medical insurance data wide table, obtain each data information in the medical insurance data wide table row by row; Based on a preset structured parsing template, each data entry in the medical insurance data wide table is parsed in a structured manner to obtain the structured parsing results; The structured analysis results are classified and organized by different types of medical insurance, and all rate factors, factor values and calculation coefficients corresponding to each type of medical insurance are obtained as the classification and organization results. Choose one medical insurance type from the different medical insurance types as the current medical insurance type, and select all the rate factors corresponding to the current medical insurance type, the factor values corresponding to all the rate factors, and the calculation coefficients from the classification and sorting results.
4. The form reconstruction method according to claim 3, characterized in that, The step of sorting all the rate factors according to a preset sorting rule and obtaining the sorting result specifically includes: Based on the structured parsing results, obtain the table entry timestamp information of all rate factors corresponding to the current medical insurance type; Based on the entry timestamp information of all rate factors corresponding to the current medical insurance type, all rate factors corresponding to the current medical insurance type are sorted to obtain the sorting result.
5. The form reconstruction method according to claim 4, characterized in that, The step of setting query identifier codes for different rate factors based on the sorting results specifically includes: Based on the sorting results, all rate factors corresponding to the current medical insurance type are assigned positive integer numbers in ascending order, wherein the starting value of the positive integer number is the smallest positive integer; Obtain the English identifiers pre-set for the current medical insurance type, and generate query identifier codes for all rate factors corresponding to the current medical insurance type by concatenating the corresponding English identifiers and positive integer numbers.
6. The form reconstruction method according to claim 5, characterized in that, The step of generating the first structural table specifically includes: Retrieve the names of all rate factors corresponding to the current medical insurance type; Set the name information of all rate factors corresponding to the current medical insurance type to the first column of the first structure sub-table preset; Retrieve the query identifier codes for all rate factors corresponding to the current medical insurance type; Based on the name information of all rate factors corresponding to the current medical insurance type, set the query identifier code of all rate factors corresponding to the current medical insurance type to the second column item preset in the first structure sub-table; A blank column is pre-added to the first structured sub-table as a third column item.
7. The form reconstruction method according to claim 6, characterized in that, Before performing the step of generating a third structure table corresponding to each rate factor based on the factor values and calculated coefficients corresponding to all rate factors, the method further includes: Based on the structured analysis results, obtain the different calculation coefficients corresponding to each rate factor, and the factor value representation data corresponding to the different calculation coefficients respectively; Determine the data type by identifying the factor values corresponding to different calculated coefficients of the same rate factor; If the data type of the factor value representation data corresponding to the different calculated coefficients of the same rate factor is Boolean, then the Boolean values corresponding to the different calculated coefficients of the same rate factor are statistically analyzed based on the factor value representation data, and a one-to-one association relationship between the calculated coefficients and the corresponding Boolean values is constructed. If the data type of the factor value representation data corresponding to the different calculated coefficients of the same rate factor is an interval value type, then the value intervals corresponding to the different calculated coefficients of the same rate factor are statistically analyzed based on the factor value representation data, and a one-to-one correlation relationship is constructed between the calculated coefficients and the corresponding value intervals. The step of generating a third structure table corresponding to each rate factor based on the factor values and calculated coefficients corresponding to all rate factors specifically includes: Obtain the different calculation coefficients corresponding to each rate factor, set the different codes according to the different calculation coefficients, and obtain the table name information of the pre-set third structure sub-table. Concatenate the table name information and the different codes to generate the calculation coefficient difference code corresponding to the different calculation coefficients. Set the calculation coefficient difference code corresponding to the different calculation coefficients into the preset first column item of the third structure sub-table. Based on the different calculation coefficients corresponding to the calculation coefficients, the different calculation coefficients are set into the preset second column item in the third structure sub-table; Based on the data type represented by the factor values corresponding to different calculation coefficients, the Boolean values or value ranges corresponding to the different calculation coefficients are obtained, and the Boolean values or value ranges are set into the preset third column of the third structure table according to the correspondence with the corresponding calculation coefficients, thereby generating the third structure table corresponding to each rate factor. After performing the step of generating a third structure table corresponding to each rate factor based on the factor values and calculated coefficients corresponding to all rate factors, the method further includes: Obtain the table name information of the third structure sub-table corresponding to each rate factor; Based on the name information of each rate factor, the table name information of the third structure sub-table corresponding to each rate factor is set into the third column of the first structure sub-table, thus completing the filling of the third column of the first structure sub-table.
8. A form reconstruction device, characterized in that, include: The rate data acquisition module is used to acquire all rate factors that affect the pricing calculation of the current medical insurance type from the target medical insurance data wide table, as well as the factor values and calculation coefficients corresponding to all rate factors. The rate factor sorting module is used to sort all the rate factors according to a preset sorting rule and obtain the sorting result; The first structure partitioning module is used to set query identifier codes for different rate factors based on the sorting results and generate a first structure partitioning table. The column field information of the first structure partitioning table includes the rate factor name, the calculation coefficient address code corresponding to the rate factor, and the query identifier code of the rate factor. The second structure table generation module is used to generate a second structure table based on the rate factor calculated according to the current medical insurance pricing. The column field information of the second structure table includes the current medical insurance, the names of all rate factors that affect the pricing of the current medical insurance, and the query identifier code corresponding to each rate factor. The third structure table generation module is used to generate a third structure table corresponding to each rate factor based on the factor value and calculation coefficient corresponding to each rate factor. The column field information of each third structure table includes the calculation coefficient of each rate factor, the calculation coefficient identification code, and the factor value representation data corresponding to the calculation coefficient. The rate data writing module is used to write all rate factors affecting the pricing calculation of each type of medical insurance, the factor values and calculation coefficients corresponding to all rate factors in the target medical insurance data wide table into the corresponding first structure table, second structure table and third structure table, respectively, to complete the form reconstruction of medical insurance data in the target medical insurance data wide table.
9. A computer device comprising a memory and a processor, the memory storing computer-readable instructions, wherein the processor, when executing the computer-readable instructions, implements the steps of the form reconstruction method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the form reconstruction method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Data processing method, electronic device and storage medium
CN110399380A
User-oriented quotation charging method and device, computer equipment and storage medium
CN115525192A
