Bank and medical interface adaptation method, system and device based on multi-protocol adaptation and intelligent verification and medium

By employing a multi-protocol adaptation and intelligent verification interface adaptation method, the complexity and reliability issues of traditional interface adaptation solutions are resolved, achieving efficient and stable data interaction and business continuity, and reducing system integration and maintenance costs.

CN120935285APending Publication Date: 2025-11-11INSPUR FINANCIAL INFORMATION TECHNOLOGY CO LTD

Patent Information

Application Number
CN202511180546.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-22
Publication Date
2025-11-11

AI Technical Summary

Technical Problem

Traditional interface adaptation solutions lack a unified configuration management and protocol adaptation mechanism, resulting in high interface development complexity and maintenance costs. Furthermore, issues such as non-standard formatting and missing fields during parameter transmission can lead to call failures, affecting business continuity.

Method used

By using a multi-protocol adaptation and intelligent verification method, the calling relationship between communication protocols and interface definitions is configured, a standardized request body is constructed and verified, and an adaptation component is used for data transmission and parsing, thereby achieving unified data format conversion and exception handling.

Benefits of technology

It reduces system integration complexity and maintenance costs, improves the reliability of data interaction and business continuity, reduces the error rate of manual intervention, and ensures the stable operation of core businesses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120935285A_ABST
    Figure CN120935285A_ABST
Patent Text Reader

Abstract

The invention discloses a bank and medical interface adaptation method, system and device based on multi-protocol adaptation and intelligent verification and a medium, mainly relates to the technical field of interface adaptation, and is used for solving the problem that a traditional interface adaptation scheme lacks a unified configuration management and protocol adaptation mechanism, and the configuration management and protocol adaptation are not uniform in the parameter transmission process. And calling failure is often caused by the problems of non-standard format, field missing and the like. Comprising the steps of configuring a corresponding communication protocol based on an interface definition of a target system; constructing a standardized request body according to the interface definition; obtaining a verification rule corresponding to the standardized request body, and verifying the field integrity and format requirements of the standardized request body through the verification rule; when an interface calling request is triggered, transmitting a standardized request body meeting field integrity and format requirements to a target system corresponding to interface calling through a communication protocol; obtaining return data of the target system; performing formatting analysis on the returned data to obtain analyzed data; and extracting a return result from the analyzed data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of interface adaptation technology, and in particular to a method, system, device and medium for adapting bank-medical interfaces based on multi-protocol adaptation and intelligent verification. Background Technology

[0002] In the current hospital information system construction, self-service terminals for medical institutions frequently need to connect to multiple external systems such as HIS, LIS, PACS, medical insurance, and payment systems. Because these systems use significantly different communication protocols and data formats (such as HTTP, WSDL / ASMX, Socket, SQL Server, Oracle, etc.), interface development is complex and maintenance costs are high. Traditional interface adaptation solutions lack unified configuration management and protocol adaptation mechanisms, making it difficult to meet the modern medical service's demands for efficient, stable, and secure data interaction. Furthermore, during parameter transmission, call failures often occur due to non-standard formats and missing fields, affecting business continuity. Summary of the Invention

[0003] This application provides a method, system, device, and medium for adapting bank-medical interfaces based on multi-protocol adaptation and intelligent verification, in order to solve the problems of traditional interface adaptation schemes lacking unified configuration management and protocol adaptation mechanisms, and the frequent failures caused by non-standard formats and missing fields during parameter transmission.

[0004] Firstly, this application provides a method for adapting bank-medical interfaces based on multi-protocol adaptation and intelligent verification, the method including: Based on the interface definition of the target system, configure the corresponding communication protocol and the calling relationship between the communication protocol and the interface definition; Based on the interface definition, construct a standardized request body; obtain the corresponding validation rules for the standardized request body, and validate the field integrity and format requirements of the standardized request body through the validation rules; when an interface call request is triggered, transmit the standardized request body that meets the field integrity and format requirements to the target system corresponding to the interface call through the communication protocol; Obtain the return data from the target system; format and parse the return data to obtain the parsed data; extract the return result from the parsed data.

[0005] In one implementation of this application, a standardized request body is constructed according to the interface definition, specifically including: Based on the target system's received data structure and the system's requested data structure in the interface definition, construct the mapping relationship between the received data structure and the requested data structure. Based on the mapping relationship, a standardized request body is constructed that can convert the request data structure into the receiving data structure.

[0006] In one implementation of this application, after configuring the corresponding communication protocol and the calling relationship between the communication protocol and the interface definition, the method further includes: Encapsulate the call relationships into adaptive components; When transmitting data with the target system, the corresponding adaptation component is invoked, and the communication protocol in the adaptation component is used to transmit data.

[0007] In one implementation of this application, the returned data is formatted and parsed to obtain parsed data; the returned result is extracted from the parsed data, specifically including: The returned data is converted into the system's preset data format to obtain the parsed data. Extract the specific data corresponding to the status code position from the parsed data; when it is a success code, extract the valid business data. When the error code is a failure code, an exception flow is triggered.

[0008] In one implementation of this application, the method further includes: Record complete request parameters, response results, call time, and call source during the API call process.

[0009] Secondly, this application provides a bank-medical interface adaptation system based on multi-protocol adaptation and intelligent verification, the system comprising: The configuration module is used to configure the corresponding communication protocol and the calling relationship between the communication protocol and the interface definition based on the interface definition of the target system. The transmission module is used to construct a standardized request body according to the interface definition; obtain the verification rules corresponding to the standardized request body; verify the field integrity and format requirements of the standardized request body through the verification rules; and transmit the standardized request body that meets the field integrity and format requirements to the target system corresponding to the interface call through the communication protocol when the interface call request is triggered. The extraction module is used to obtain the return data from the target system; to format and parse the return data to obtain the parsed data; and to extract the return results from the parsed data.

[0010] In one implementation of this application, the transmission module includes a construction unit. Used to construct the mapping relationship between the received data structure and the requested data structure based on the received data structure of the target system and the requested data structure of this system in the interface definition; Based on the mapping relationship, a standardized request body is constructed that can convert the request data structure into the receiving data structure.

[0011] In one implementation of this application, the configuration module includes an encapsulation unit. Used to encapsulate call relationships into adaptable components; When transmitting data with the target system, the corresponding adaptation component is invoked, and the communication protocol in the adaptation component is used to transmit data.

[0012] Thirdly, this application provides a bank-medical interface adaptation device based on multi-protocol adaptation and intelligent verification, the device comprising: processor; And a memory, on which executable code is stored, which, when executed, causes the processor to execute a multi-protocol adaptation and intelligent verification method for the medical-bank interface, as described above.

[0013] Fourthly, this application provides a non-volatile computer storage medium storing computer instructions, which, when executed, implement a bank-medical interface adaptation method based on multi-protocol adaptation and intelligent verification as described above.

[0014] As can be seen from the above technical solutions, this application has the following advantages: I. Reduce system integration complexity and maintenance costs: By unifying the configuration and management of communication protocols and interface definition call relationships, this technical solution transforms the traditional decentralized interface development model into a centralized protocol adaptation model, effectively solving the protocol differences between heterogeneous systems such as HIS, LIS, and PACS. The standardized request body construction process, combined with intelligent verification rules, can automatically identify data conversion requirements for protocols such as HTTP, WSDL / ASMX, and Socket, reducing manual coding workload. Furthermore, the dynamic configuration mechanism allows for adjustments to protocol mapping relationships when adding new systems, eliminating the need for redeveloping underlying communication logic, significantly shortening project cycles and reducing later maintenance costs.

[0015] II. Improve the reliability of data interaction and business continuity: Intelligent validation rules perform pre-validation of field integrity and format during the request construction phase, preventing call failures caused by missing or incorrect parameters from the outset. The mandatory constraints of the standardized request body ensure that all external systems receive data streams in a uniform format. Combined with a formatted parsing mechanism for returned data, it can automatically handle differences in structured data returned by databases such as SQL Server and Oracle. This end-to-end validation system not only reduces the error rate caused by manual intervention but also quickly locates the problem area when anomalies occur, ensuring the stable operation of core services such as registration, payment, and report retrieval. Attached Figure Description

[0016] To more clearly illustrate the technical solution of the present invention, the accompanying drawings used in the description will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a flowchart of a bank-medical interface adaptation method based on multi-protocol adaptation and intelligent verification provided in an embodiment of this application.

[0018] Figure 2 This is a schematic diagram of the internal structure of a bank-medical interface adaptation system based on multi-protocol adaptation and intelligent verification provided in an embodiment of this application.

[0019] Figure 3 This is a schematic diagram of the internal structure of a bank-medical interface adapter device based on multi-protocol adaptation and intelligent verification, provided in an embodiment of this application. Detailed Implementation

[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0021] Those skilled in the art should understand that the embodiments described below are merely preferred embodiments of this disclosure and do not imply that this disclosure can only be implemented through these preferred embodiments. These preferred embodiments are merely used to explain the technical principles of this disclosure and are not intended to limit the scope of protection of this disclosure. Based on the preferred embodiments provided by this disclosure, all other embodiments obtained by those skilled in the art without creative effort should still fall within the scope of protection of this disclosure.

[0022] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0023] The technical solutions proposed in the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0024] The embodiment provides a method for adapting the bank-medical interface based on multi-protocol adaptation and intelligent verification, such as... Figure 1 As shown in the embodiments of this application, the method mainly includes the following steps: Step 110: Based on the interface definition of the target system, configure the corresponding communication protocol and the calling relationship between the communication protocol and the interface definition.

[0025] In some embodiments, a standardized request body is constructed according to the interface definition, specifically including: Based on the target system's received data structure and the system's requested data structure in the interface definition, construct the mapping relationship between the received data structure and the requested data structure. Based on the mapping relationship, a standardized request body is constructed that can convert the request data structure into the receiving data structure.

[0026] After configuring the corresponding communication protocol and the calling relationship between the communication protocol and the interface definition, the method also includes: Encapsulate the call relationships into adaptive components; When transmitting data with the target system, the corresponding adaptation component is invoked, utilizing the communication protocol within that component for data transmission. (For example, for the Socket protocol, customized configurations such as custom data packet header length and timeout control are supported; for SQL / Oracle interfaces, database operation mechanisms such as connection pool management, parameter binding, and transaction control are supported. A callback mechanism enables asynchronous or synchronous interface calls, flexibly addressing different business scenario requirements.) It should be noted that this step can automatically identify the communication protocol used by the target system (such as HTTP, Socket, WSDL / ASMX, SQL, Oracle, etc.) based on the interface definition, and initiate a remote call through the protocol adaptation engine.

[0027] Based on the above description, this step achieves efficient and reliable communication between systems through a standardized interface adaptation mechanism. Its direct effects are: 1) Automatic protocol identification and adaptation capabilities based on interface definitions, compatible with multiple communication protocols such as HTTP, Socket, and databases, eliminating manual configuration errors; 2) Transparent conversion of heterogeneous system data formats through automatic construction of request data structure mapping relationships, reducing redundant development of data conversion code; 3) The encapsulated component call relationships have protocol customization capabilities (such as Socket packet length control and database connection pool management), allowing protocol parameter adjustments without modifying core business logic; 4) The built-in asynchronous callback mechanism of the adaptation component supports switching between synchronous / asynchronous call modes, meeting the needs of different scenarios such as real-time response and batch processing. Overall, it lowers the technical threshold for system integration and improves the efficiency and stability of interface development.

[0028] Step 120: Construct a standardized request body according to the interface definition; obtain the validation rules corresponding to the standardized request body, and validate the field integrity and format requirements of the standardized request body through the validation rules; when the interface call request is triggered, transmit the standardized request body that meets the field integrity and format requirements to the target system corresponding to the interface call through the communication protocol.

[0029] Based on the above description, this step significantly improves the accuracy and reliability of data transmission between systems through a standardized request body construction and verification mechanism. Its direct effects are reflected in: 1) Automatic verification rules based on interface definitions can detect the completeness of request body fields (e.g., missing required fields) and format compliance (e.g., data type, length constraints) in real time, avoiding invalid data transmission; 2) The pre-verification mechanism intercepts errors at the request initiation stage, reducing the invalid processing load on the target system and lowering the interface call failure rate due to data format errors; 3) The standardized request body and communication protocol work together to ensure that transmitted data strictly conforms to the requirements of the target system, while retaining the customization capabilities of the protocol layer (e.g., Socket timeout control, database transaction management); 4) Through the strong association between verification rules and interface definitions, rapid adaptation is achieved when business rules change without modifying the core communication logic. Overall, a closed-loop verification process from data construction to transmission is formed, improving the robustness of interface calls.

[0030] Step 130: Obtain the return data from the target system; format and parse the return data to obtain the parsed data; extract the return result from the parsed data.

[0031] In some embodiments, the returned data is formatted and parsed to obtain parsed data; the returned result is extracted from the parsed data, specifically including: The returned data is converted into the system's preset data format to obtain the parsed data. Extract the specific data corresponding to the status code position from the parsed data; when it is a success code, extract the valid business data. When the error code is a failure code, an exception flow is triggered.

[0032] Based on the above description, this step achieves reliable parsing and anomaly control for data interaction between systems through a standardized processing mechanism for returned data. Its direct effects are reflected in: 1) Automatic format conversion of returned data, uniformly converting heterogeneous data from the target system (such as XML, JSON, and binary streams) into the system's preset format, eliminating data compatibility issues; 2) Status code-driven result extraction logic, quickly identifying call results (success / failure) through predefined status code locations, isolating the extraction path of valid business data from the anomaly triggering process, preventing erroneous data from polluting business logic; 3) Anomaly processes triggered by failure codes can be associated with preset processing strategies (such as retry mechanisms and log alarms), enabling interface calls to have self-healing capabilities; 4) Decoupling the parsing process from the communication protocol, allowing for the addition of new data formats with only the expansion of conversion rules, without adjusting core communication components. Overall, a complete processing loop from data reception to result distribution is formed, improving the fault tolerance and maintainability of interface calls.

[0033] The method also includes: During the API call process, complete request parameters, response results, call time, and call source are recorded. (Supports various strategies such as storage by IP address and database writing, serving as the basis for subsequent auditing, monitoring, and operational analysis. Dynamically generated log information records detailed information during the API call process in real time, facilitating problem tracking and system maintenance.) As described above, this embodiment achieves unified management of multiple protocols through automatic protocol identification and component encapsulation mechanisms. Its direct value lies in: 1) eliminating version mismatch issues caused by manual protocol configuration, such as automatically identifying differences between HTTP / 2 and HTTP / 1.1 protocols; 2) automatically generating data mapping relationships reduces manual conversion code (based on actual project statistics); and 3) the protocol parameter isolation design of the adapting components eliminates the need to restart core services for operations such as setting Socket timeouts or adjusting database connection pools. In practical applications, this mechanism shortens the system integration cycle.

[0034] The dynamic validation mechanism during the construction phase provides dual protection: 1) invalid requests are blocked by field integrity checks; 2) format validation reduces the load on the target system's exception handling. Its technical advantages lie in the binding relationship between validation rules and interface definitions, enabling rapid adaptation to changes in business rules (such as upgrades to ID card number formats) without modifying communication code.

[0035] The standardized parsing of returned data establishes a complete fault-tolerance system: 1) The format conversion module supports automatic recognition of 12 common data types (including binary protocols such as protobuf in actual testing); 2) The status code-driven exception handling process reduces system failure recovery time. The audit log function provides complete call chain tracing and can process millions of log entries per day without affecting the performance of the main thread.

[0036] In addition, this application Figure 2 This application provides a bank-medical interface adaptation system based on multi-protocol adaptation and intelligent verification. For example... Figure 2 As shown in the embodiments of this application, the system mainly includes: Configuration module 210 is used to configure the corresponding communication protocol and the calling relationship between the communication protocol and the interface definition based on the interface definition of the target system.

[0037] Configuration module 210 includes a packaging unit. Used to encapsulate call relationships into adaptable components; When transmitting data with the target system, the corresponding adaptation component is invoked, and the communication protocol in the adaptation component is used to transmit data.

[0038] The transmission module 220 is used to construct a standardized request body according to the interface definition; obtain the verification rules corresponding to the standardized request body; verify the field integrity and format requirements of the standardized request body through the verification rules; and transmit the standardized request body that meets the field integrity and format requirements to the target system corresponding to the interface call through the communication protocol when the interface call request is triggered.

[0039] The transmission module 220 includes a construction unit. Used to construct the mapping relationship between the received data structure and the requested data structure based on the received data structure of the target system and the requested data structure of this system in the interface definition; Based on the mapping relationship, a standardized request body is constructed that can convert the request data structure into the receiving data structure.

[0040] The extraction module 230 is used to obtain the return data from the target system; to format and parse the return data to obtain the parsed data; and to extract the return results from the parsed data.

[0041] As described above, this embodiment achieves unified management of multiple protocols through automatic protocol identification and component encapsulation mechanisms. Its direct value lies in: 1) eliminating version mismatch issues caused by manual protocol configuration, such as automatically identifying differences between HTTP / 2 and HTTP / 1.1 protocols; 2) automatically generating data mapping relationships reduces manual conversion code (based on actual project statistics); and 3) the protocol parameter isolation design of the adapting components eliminates the need to restart core services for operations such as setting Socket timeouts or adjusting database connection pools. In practical applications, this mechanism shortens the system integration cycle.

[0042] The dynamic validation mechanism during the construction phase provides dual protection: 1) invalid requests are blocked by field integrity checks; 2) format validation reduces the load on the target system's exception handling. Its technical advantages lie in the binding relationship between validation rules and interface definitions, enabling rapid adaptation to changes in business rules (such as upgrades to ID card number formats) without modifying communication code.

[0043] The standardized parsing of returned data establishes a complete fault-tolerance system: 1) The format conversion module supports automatic recognition of 12 common data types (including binary protocols such as protobuf in actual testing); 2) The status code-driven exception handling process reduces system failure recovery time. The audit log function provides complete call chain tracing and can process millions of log entries per day without affecting the performance of the main thread.

[0044] The above are method embodiments of this application. Based on the same inventive concept, this application also provides a bank-medical interface adaptation device based on multi-protocol adaptation and intelligent verification. Figure 3 As shown, the device includes: a processor; and a memory storing executable code thereon, which, when executed, causes the processor to execute a bank-medical interface adaptation method based on multi-protocol adaptation and intelligent verification as described in the above embodiment.

[0045] Specifically, the server configures the corresponding communication protocol and the calling relationship between the communication protocol and the interface definition based on the interface definition of the target system; constructs a standardized request body according to the interface definition; obtains the validation rules corresponding to the standardized request body, and validates the field integrity and format requirements of the standardized request body through the validation rules; when an interface call request is triggered, it transmits the standardized request body that meets the field integrity and format requirements to the target system corresponding to the interface call through the communication protocol; obtains the return data from the target system; formats and parses the return data to obtain the parsed data; and extracts the return result from the parsed data.

[0046] In addition, this application embodiment also provides a non-volatile computer storage medium storing executable instructions, which, when executed, implement the above-described method for adapting the bank-medical interface based on multi-protocol adaptation and intelligent verification.

[0047] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for adapting bank-medical interfaces based on multi-protocol adaptation and intelligent verification, characterized in that, The method includes: Based on the interface definition of the target system, configure the corresponding communication protocol and the calling relationship between the communication protocol and the interface definition; Based on the interface definition, construct a standardized request body; obtain the corresponding validation rules for the standardized request body, and validate the field integrity and format requirements of the standardized request body through the validation rules; when an interface call request is triggered, transmit the standardized request body that meets the field integrity and format requirements to the target system corresponding to the interface call through the communication protocol; Obtain the return data from the target system; format and parse the return data to obtain the parsed data; extract the return result from the parsed data.

2. The method for adapting the bank-hospital interface based on multi-protocol adaptation and intelligent verification according to claim 1, characterized in that, Based on the interface definition, construct a standardized request body, which includes: Based on the target system's received data structure and the system's requested data structure in the interface definition, construct the mapping relationship between the received data structure and the requested data structure. Based on the mapping relationship, a standardized request body is constructed that can convert the request data structure into the receiving data structure.

3. The method for adapting bank-hospital interfaces based on multi-protocol adaptation and intelligent verification according to claim 1, characterized in that, After configuring the corresponding communication protocol and the calling relationship between the communication protocol and the interface definition, the method further includes: Encapsulate the call relationships into adaptive components; When transmitting data with the target system, the corresponding adaptation component is invoked, and the communication protocol in the adaptation component is used to transmit data.

4. The method for adapting bank-hospital interfaces based on multi-protocol adaptation and intelligent verification according to claim 1, characterized in that, The returned data is formatted and parsed to obtain the parsed data; Extract the returned results from the parsed data, specifically including: The returned data is converted into the system's preset data format to obtain the parsed data. Extract the specific data corresponding to the status code position from the parsed data; when it is a success code, extract the valid business data. When the error code is a failure code, an exception flow is triggered.

5. The method for adapting bank-hospital interfaces based on multi-protocol adaptation and intelligent verification according to claim 1, characterized in that, The method further includes: Record complete request parameters, response results, call time, and call source during the API call process.

6. A bank-medical interface adaptation system based on multi-protocol adaptation and intelligent verification, characterized in that, The system includes: The configuration module is used to configure the corresponding communication protocol and the calling relationship between the communication protocol and the interface definition based on the interface definition of the target system. The transmission module is used to construct a standardized request body according to the interface definition; obtain the verification rules corresponding to the standardized request body; verify the field integrity and format requirements of the standardized request body through the verification rules; and transmit the standardized request body that meets the field integrity and format requirements to the target system corresponding to the interface call through the communication protocol when the interface call request is triggered. The extraction module is used to obtain the return data from the target system; to format and parse the return data to obtain the parsed data; and to extract the return results from the parsed data.

7. The bank-hospital interface adaptation system based on multi-protocol adaptation and intelligent verification according to claim 6, characterized in that, The transmission module includes a construction unit. Used to construct the mapping relationship between the received data structure and the requested data structure based on the received data structure of the target system and the requested data structure of this system in the interface definition; Based on the mapping relationship, a standardized request body is constructed that can convert the request data structure into the receiving data structure.

8. The bank-hospital interface adaptation system based on multi-protocol adaptation and intelligent verification according to claim 6, characterized in that, The configuration module includes an encapsulation unit. Used to encapsulate call relationships into adaptable components; When transmitting data with the target system, the corresponding adaptation component is invoked, and the communication protocol in the adaptation component is used to transmit data.

9. A bank-medical interface adaptation device based on multi-protocol adaptation and intelligent verification, characterized in that, The device includes: processor; And a memory storing executable code, which, when executed, causes the processor to perform a method for adapting a bank-medical interface based on multi-protocol adaptation and intelligent verification as described in any one of claims 1-5.

10. A non-volatile computer storage medium, characterized in that, It stores computer instructions, which, when executed, implement a method for adapting a bank-medical interface based on multi-protocol adaptation and intelligent verification as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Implementation method for bank core system interface to support multiple access modes

    CN118101797A

  • Unified access management method and equipment for multi-platform Internet of Things equipment, and storage medium

    CN120201103A

Cited By

  • Connection dragging configuration information system and method based on medical system

    CN121300845A