Multi-source heterogeneous federal data real-time sharing and exchanging method and system
The real-time sharing method of multi-source heterogeneous federated data through star architecture and 5G high-speed bandwidth solves the problems of high storage pressure, data delay and high governance cost in multi-source data sharing, realizes real-time sharing and exchange of heterogeneous databases, and improves improved response speed and efficiency.
Patent Information
- Application Number
- CN202410629607.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-08-23
AI Technical Summary
Existing multi-source data sharing methods have problems such as high storage pressure, data delay and high data governance and maintenance costs. Especially in multi-source heterogeneous database environments, it is difficult to achieve real-time data sharing.
Using star architecture and 5G high-speed bandwidth, through the linkage between the center and the client, real-time sharing and exchange of remote data is realized. The client is responsible for data query and processing, and the center is responsible for routing, forwarding and result return, avoiding data aggregation and format conversion. .
Real-time sharing and exchange of multi-source heterogeneous databases is realized, which reduces the storage pressure and computing power requirements of the center, improves response speed and data transmission efficiency, and reduces data management and maintenance costs.
Smart Images

Figure CN118540382A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data sharing and exchange, and in particular to a method and system for real-time sharing and exchange of multi-source heterogeneous federated data. Background Art
[0002] The most common multi-source data sharing and exchange method in the industry is to first aggregate the scattered data into a data warehouse and then share it from the data warehouse.
[0003] For example, due to regulatory needs, local regulatory authorities often need to retrieve relevant data from various medical institutions. Generally, the method of aggregation first and then query is adopted: first aggregate the data of various medical structures and store them in a database, and then query the data. In order to accurately diagnose and understand the patient's historical medical treatment, each medical institution often needs to query the patient's examination and inspection information and historical medication information in other hospitals. The usual solution is to create an aggregation database to centrally store the patient's medical treatment information of each institution for query and use by each institution.
[0004] While this solution meets the needs of management departments and medical institutions, it has several drawbacks:
[0005] 1) High storage pressure: Since the medical data of all local medical institutions need to be stored, the amount of data is very large, which requires huge storage space.
[0006] 2) Data delay: Since data is first transferred to a centralized repository and then queried, data delays are bound to occur.
[0007] 3) High cost of data governance and maintenance: Since the database types of various medical institutions cannot be completely consistent, before the data of various institutions are aggregated into one database, it is necessary to first formulate unified data standards, convert the format of the data of each institution, and finally enter the database. This results in high manpower and time costs for data governance and maintenance.
[0008] In order to solve these problems and meet the real-time sharing requirements of multi-source data, the present invention proposes a multi-source heterogeneous federated data real-time sharing and exchange method and system. Summary of the invention
[0009] In order to overcome the defects of the prior art, the present invention provides a simple and efficient multi-source heterogeneous federated data real-time sharing and exchange method and system.
[0010] The present invention is achieved through the following technical solutions:
[0011] A method for real-time sharing and exchange of multi-source heterogeneous federated data, characterized by: adopting a star architecture and 5G high-speed bandwidth, and realizing sharing and exchange of remote data through the linkage between the center and the client;
[0012] The following steps are involved:
[0013] Step S1, the user end calls the data service interface of the center end and sends a request message in the json file format; the request message includes the name of the organization to be accessed, the name of the database and the sql statement to be executed;
[0014] Step S2: After receiving the user request, the center parses the request json file to obtain the name of the organization to be accessed, the name of the database, and the SQL statement to be executed;
[0015] Step S3: The center performs a routing search based on the organization name, determines the corresponding client, and then calls the corresponding client API to pass the request parameters;
[0016] Step S4: After receiving the request parameters, the called client parses the request parameters, obtains the database name and the SQL statement to be executed, establishes a database session connection, executes the received SQL statement, and returns the result returned by the database to the central end;
[0017] Step S5: After receiving the result returned by the client, the center returns the result to the user.
[0018] In step S3, when searching for a route, the site information registered to the central end is polled to determine the corresponding client, and then the corresponding client API is called to pass the request parameters, which include the database name and the SQL statement to be executed.
[0019] In step S4, the called client queries the locally registered database information according to the database name, parses the encrypted username and password, and then establishes a database session connection; executes the received SQL statement, encapsulates it in JSON according to the result returned by the database, and returns the encapsulated result to the central end.
[0020] A multi-source heterogeneous federated data real-time sharing and exchange system, characterized by: adopting a star architecture, including a central end and a client end, wherein the central end and the client end are connected to the network through a 5G high-speed bandwidth to carry large batches of data results and shorten data transmission time;
[0021] The central end, as a core component, is responsible for publishing data services in the form of service interfaces and realizing the functions of request, response and routing forwarding;
[0022] The client is installed and deployed at the front end of each institution, is responsible for implementing the actual data query and processing functions, and returns the results returned by the database to the center.
[0023] Implementing site registration at the central end, the registration information includes the organization name and the database name;
[0024] After receiving the service query request submitted by the user, the center forwards the service query request to the corresponding client, receives the client execution result, and returns it to the user.
[0025] Database registration is implemented on the client, and database information of each site is configured, including database identification and database address information; the database identification is consistent with the database name of the central end.
[0026] The client saves the encrypted database user name and password information of each site through a configuration file; when accessing the database of the site, the configuration file is read and decrypted to obtain the database access information.
[0027] The client accepts the data query request from the center, queries and processes the database, and then encapsulates the results returned by the database in JSON format and returns them to the center.
[0028] A multi-source heterogeneous federated data real-time sharing and exchange device, characterized in that it includes a memory and a processor; the memory is used to store a computer program, and the processor is used to implement the above method steps when executing the computer program.
[0029] A readable storage medium, characterized in that: a computer program is stored on the readable storage medium, and the computer program implements the above method steps when executed by a processor.
[0030] The beneficial effects of the present invention are as follows: the multi-source heterogeneous federated data real-time sharing and exchange method and system, while realizing the multi-source data exchange and sharing function, supports the real-time sharing and exchange of multiple heterogeneous databases, provides convenience for different types of databases to be shared with the outside at the same time, alleviates the pressure on the central end, improves the response speed, and ensures high efficiency, real-time, multi-source and heterogeneous. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] Attached Figure 1It is a schematic diagram of the real-time sharing and exchange method of multi-source heterogeneous federated data of the present invention. DETAILED DESCRIPTION
[0033] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0034] This multi-source heterogeneous federated data real-time sharing and exchange method adopts a star architecture and 5G high-speed bandwidth, and realizes the sharing and exchange of remote data through the linkage between the center and the client.
[0035] The following steps are involved:
[0036] Step S1, the user end calls the data service interface of the center end and sends a request message in the json file format; the request message includes the name of the organization to be accessed, the name of the database and the sql statement to be executed;
[0037] Step S2: After receiving the user request, the center parses the request json file to obtain the name of the organization to be accessed, the name of the database, and the SQL statement to be executed;
[0038] Step S3: The center performs a routing search based on the organization name, determines the corresponding client, and then calls the corresponding client API to pass the request parameters;
[0039] Step S4: After receiving the request parameters, the called client parses the request parameters, obtains the database name and the SQL statement to be executed, establishes a database session connection, executes the received SQL statement, and returns the result returned by the database to the central end;
[0040] Step S5: After receiving the result returned by the client, the center returns the result to the user.
[0041] In step S3, when searching for a route, the site information registered to the central end is polled to determine the corresponding client, and then the corresponding client API is called to pass the request parameters, which include the database name and the SQL statement to be executed.
[0042] In step S4, the called client queries the locally registered database information according to the database name, parses the encrypted username and password, and then establishes a database session connection; executes the received SQL statement, encapsulates it in JSON according to the result returned by the database, and returns the encapsulated result to the central end.
[0043] The multi-source heterogeneous federated data real-time sharing and exchange system adopts a star architecture, including a central end and a client end, and the central end and the client end are connected to the network through 5G high-speed bandwidth to carry large batches of data results and shorten data transmission time;
[0044] The central end, as a core component, is responsible for publishing data services in the form of service interfaces and realizing the functions of request, response and routing forwarding;
[0045] The client is installed and deployed at the front end of each institution, is responsible for implementing the actual data query and processing functions, and returns the results returned by the database to the center.
[0046] Implementing site registration at the central end, the registration information includes the organization name and the database name;
[0047] The following is an example of information items for site registration:
[0048] Table name Table Chinese name Field Name Field Chinese name Example RegInfo Registration Information orgCode Institution ID PDY999666 RegInfo Registration Information orgName Institution Name Municipal People's Hospital RegInfo Registration Information dbName Database Name LIS Database
[0049] After receiving the service query request submitted by the user, the center forwards the service query request to the corresponding client, receives the client execution result, and returns it to the user.
[0050] The service interface input parameters are as follows:
[0051] Add ginseng Meaning of the parameters Is this field required? orgCode Institution Name Required dbName Database Name Required sql Statements to be executed Required
[0052] Database registration is implemented on the client, and database information of each site is configured, including database identification and database address information; the database identification is consistent with the database name of the central end.
[0053] The information items required for database registration are as follows:
[0054]
[0055] The client saves the encrypted database user name and password information of each site through a configuration file; when accessing the database of the site, the configuration file is read and decrypted to obtain the database access information.
[0056] The client accepts the data query request from the center, queries and processes the database, and then encapsulates the results returned by the database in JSON format and returns them to the center.
[0057] The input parameters for the client service are as follows:
[0058] Add ginseng Meaning of the parameters Is this field required? dbName Database Name Required sql Database execution statement Required
[0059] The multi-source heterogeneous federated data real-time sharing and exchange device comprises a memory and a processor; the memory is used to store a computer program, and the processor is used to implement the above method steps when executing the computer program.
[0060] The readable storage medium stores a computer program, and when the computer program is executed by a processor, the above method steps are implemented.
[0061] Compared with the prior art, the method and system for real-time sharing and exchange of multi-source heterogeneous federated data has the following features:
[0062] First, distributed data processing is adopted, with the client performing actual data calculations and the calculation results transmitted back based on the 5G high-speed bandwidth, which not only improves the response speed but also alleviates the computing power requirements of the center.
[0063] Second, there is no need to aggregate multi-source data in advance, which greatly reduces the data storage pressure on the central end and reduces data conversion management and operation and maintenance pressure.
[0064] Third, it realizes real-time data sharing and exchange among heterogeneous data sources, making it convenient for users to query the latest business data and to achieve accurate data analysis.
[0065] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for real-time sharing and exchange of multi-source heterogeneous federated data, characterized by: Using star architecture and 5G high-speed bandwidth, remote data sharing and exchange can be achieved through the linkage between the center and the client. The following steps are involved: Step S1, the user end calls the data service interface of the center end and sends a request message in the json file format; the request message includes the name of the organization to be accessed, the name of the database and the sql statement to be executed; Step S2: After receiving the user request, the center parses the request json file to obtain the name of the organization to be accessed, the name of the database, and the SQL statement to be executed; Step S3: The center performs a routing search based on the organization name, determines the corresponding client, and then calls the corresponding client API to pass the request parameters; Step S4: After receiving the request parameters, the called client parses the request parameters, obtains the database name and the SQL statement to be executed, establishes a database session connection, executes the received SQL statement, and returns the result returned by the database to the central end; Step S5: After receiving the result returned by the client, the center returns the result to the user.
2. The multi-source heterogeneous federated data real-time sharing and exchange method according to claim 1 is characterized by: In step S3, when searching for a route, the site information registered to the central end is polled to determine the corresponding client, and then the corresponding client API is called to pass the request parameters, which include the database name and the SQL statement to be executed.
3. The multi-source heterogeneous federated data real-time sharing and exchange method according to claim 1 or 2, characterized in that: In step S4, the called client queries the locally registered database information according to the database name, parses the encrypted username and password, and then establishes a database session connection; executes the received SQL statement, encapsulates it in JSON according to the result returned by the database, and returns the encapsulated result to the central end.
4. A multi-source heterogeneous federated data real-time sharing and exchange system, characterized by: A star architecture is adopted, including a central end and a client end, and the central end and the client end are connected to the network through 5G high-speed bandwidth; The central end, as a core component, is responsible for publishing data services in the form of service interfaces and realizing the functions of request, response and routing forwarding; The client is installed and deployed at the front end of each institution, is responsible for implementing the actual data query and processing functions, and returns the results returned by the database to the center.
5. The multi-source heterogeneous federated data real-time sharing and exchange system according to claim 4 is characterized by: Implementing site registration at the central end, the registration information includes the organization name and the database name; After receiving the service query request submitted by the user, the center forwards the service query request to the corresponding client, receives the client execution result, and returns it to the user.
6. The multi-source heterogeneous federated data real-time sharing and exchange system according to claim 4 is characterized by: Database registration is implemented on the client, and database information of each site is configured, including database identification and database address information; the database identification is consistent with the database name of the central end.
7. The multi-source heterogeneous federated data real-time sharing and exchange system according to claim 4 is characterized by: The client saves the encrypted database user name and password information of each site through a configuration file; when accessing the database of the site, the configuration file is read and decrypted to obtain the database access information.
8. The multi-source heterogeneous federated data real-time sharing and exchange system according to claim 4 is characterized by: The client accepts the data query request from the center, queries and processes the database, and then encapsulates the results returned by the database in JSON format and returns them to the center.
9. A multi-source heterogeneous federated data real-time sharing and exchange device, characterized by: The method comprises a memory and a processor; the memory is used to store a computer program, and the processor is used to implement the method according to any one of claims 1 to 3 when executing the computer program.
10. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
