General interactive service system based on hospital big data
By adopting a universal interactive service system of microservice architecture and neural network model in the hospital big data platform, the problems of complexity and low performance of the existing service bus system are solved, and efficient and safe data processing and response are achieved.
Patent Information
- Application Number
- CN202410783580.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The service bus system of the existing hospital big data platform is complex, easy to become a single point of failure, low in performance, and high in cost, resulting in insufficient data processing efficiency and security, especially in the medical environment, which is difficult to meet the demand for rapid response.
Design a general interactive service system based on microservice architecture, including interface module, verification module, calling module, log module and scheduled task module. It improves the flexibility and security of data processing through database matching technology and neural network model, and realizes data processing. Efficient exchange and persistence.
It improves the flexibility and efficiency of data processing, reduces system integration errors and delays, enhances security and data access control, optimizes system response time and data processing efficiency, and supports rapid recovery and compliance audits.
Smart Images

Figure CN118689671A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of big data processing, and in particular to a general interactive service system based on hospital big data. Background Art
[0002] In the existing technology, hospital big data platforms often rely on service bus software to manage and exchange data. These service bus frameworks act as intermediaries between various systems, processing data flows from different hardware and software sources. However, despite their central role in data integration, existing service bus systems often face several major technical challenges. First, these systems are highly complex in implementation and maintenance, often requiring a lot of custom coding and configuration. In addition, due to its reliance on a centralized architecture, the service bus may become a source of single point failure, and any failure may affect the stability of the entire system. In addition, the middle layer of the service bus may introduce additional delays, reduce overall system performance, and the integration of such a structure is usually costly and requires a lot of resource investment.
[0003] These limitations have led to increasingly prominent problems in the performance, implementation difficulty and cost of hospital big data platforms. Specifically, the limitations of the service bus not only increase the operation and maintenance costs of the system, but also limit the speed and efficiency of data processing, which is particularly disadvantageous in a medical environment where there is an urgent need to optimize medical services and improve response speed.
[0004] Therefore, it is necessary to develop a new general interactive service system based on hospital big data. Summary of the invention
[0005] The present application provides a general interactive service system based on hospital big data to improve the flexibility and efficiency of hospital data processing.
[0006] The present application provides a general interactive service system based on hospital big data, including a general interactive service main program and a platform configuration management program; the general interactive service main program is used to integrate the configuration, request processing and log recording of the hospital service bus; the general interactive service main program includes: An interface module is used to process interface data of standard interfaces and non-standard interfaces from external systems and send the processed interface data to the verification module; The verification module is used to receive the processed interface data from the interface module; use database matching technology to verify whether the caller has data access rights to the processed interface data; and transmit the successfully verified data to the calling module; The calling module is used to generate request parameters for the third-party system based on the successfully verified data transmitted by the verification module; call the third-party system interface according to the generated request parameters; receive and process the response data returned by the third-party system interface; send the processing results of the response data to the log module for recording and analysis; send the processing results of the response data to the scheduled task module for asynchronous task processing and data persistence; A log module, used to receive the processing result of the response data from the calling module; based on the processing result of the received response data, record the call log of each interface call; the call log includes the generated request parameters and the response data of the third-party system; The timing task module is used to receive the processing results of the response data from the calling module; according to the processing results of the received response data, it processes the data backup tasks and long-term data storage tasks to optimize the system response time and improve the data processing efficiency; The platform configuration management program is connected to the general interactive service main program and is used to provide a user interface; the user interface allows the user to set interface parameters including data format, transmission protocol and security configuration for standard interfaces and non-standard interfaces; allows the user to define and modify the security policy and access permission rules used by the verification module; and allows the user to set the log module; Among them, the interface module, verification module, calling module, log module and scheduled task module exchange data through the hospital service bus implemented by the microservice architecture.
[0007] Furthermore, the interface module includes an adapter, which is used to dynamically identify and convert data formats of standard interfaces and non-standard interfaces from external systems.
[0008] Furthermore, the verification module includes a security token unit, which is used to verify the identity and access level of the caller before processing the interface data.
[0009] Furthermore, the calling module generates a request parameter for a third-party system using a trained request parameter generation neural network model; wherein the request parameter generation neural network model includes a feature extraction module, a data fusion module and an output generation module; The feature extraction module is used to receive the patient's historical medical record data, laboratory data, basic information data and medical image data; use a recurrent neural network structure to process the patient's historical medical record data to obtain a time-dependent feature vector; use a multi-layer perceptron to process the patient's laboratory data to obtain a physiological feature vector including key biomarkers and health indicators; use a fully connected layer to process the patient's basic information data to obtain a basic information feature vector; use a convolutional neural network to process the patient's medical image data to obtain a lesion feature vector; The data fusion module is used to receive the time-dependent feature vector, the physiological feature vector, the basic information feature vector and the lesion feature vector, and use a multi-layer perceptron including an attention mechanism to perform fusion processing on the received feature vectors to obtain a comprehensive feature representation; The output generation module is used to receive the comprehensive features provided by the data fusion module, process the received data representation using a generation network, and generate request parameters for the third-party system.
[0010] Furthermore, the data fusion module includes a multi-layer perceptron, an attention mechanism layer and an output generation layer; the multi-layer perceptron is used to receive the time-dependent feature vector, the physiological feature vector, the basic information feature vector and the lesion feature vector, and use multiple fully connected layers to process the received feature vector to obtain a preliminary comprehensive feature representation; the attention mechanism layer is used to receive and process the preliminary comprehensive feature representation to obtain a weighted feature vector; the output generation layer is used to receive the weighted feature vector, and use the fully connected layer to process the received weighted feature vector to obtain a comprehensive feature representation.
[0011] Furthermore, the generation network in the output generation module includes a conditional layer and an output layer; the conditional layer is used to receive the comprehensive feature representation provided by the data fusion module; the received comprehensive feature representation is processed using a conditional generation neural network to obtain a comprehensive health feature condition; the output layer is used to receive the comprehensive health feature condition provided by the conditional layer, and use a fully connected network and a nonlinear activation function to process the received comprehensive health feature condition to generate request parameters for a third-party system.
[0012] Furthermore, the calling module includes an error handling submodule, and the error handling submodule is used to handle errors or abnormal responses returned by the third-party system interface.
[0013] Furthermore, the log module includes a data encryption function for protecting log data during storage and transmission.
[0014] Furthermore, the platform configuration management program includes a real-time monitoring interface for displaying the status and performance indicators of all current interfaces.
[0015] Furthermore, the platform configuration management program includes a user authority management subsystem for allocating and managing different users' access and modification authority to interface parameters.
[0016] This application has the following beneficial technical effects: (1) The hospital service bus implemented through the microservice architecture enables the various components of the system (interface module, verification module, call module, log module and scheduled task module) to exchange data efficiently. This architecture not only improves the flexibility of data processing, but also reduces errors and delays caused by system integration.
[0017] (2) The verification module uses database matching technology to ensure that only authorized users can access sensitive data, increasing the security of the system. This permission management mechanism prevents unauthorized data access and protects patient data from being leaked.
[0018] (3) The calling module generates request parameters for the third-party system based on the successfully verified data received from the verification module. This not only ensures the accuracy of external data requests, but also improves the response speed and efficiency of the entire system by effectively managing these requests.
[0019] (4) The design of the log module can record the details of each interface call, including request parameters and response data of the third-party system. This not only helps with system monitoring and problem diagnosis, but also supports compliance audits and operational transparency.
[0020] (5) The scheduled task module automatically handles data backup and long-term storage tasks, thereby optimizing the system's response time and improving data processing efficiency. This ensures the persistence and integrity of the data, especially for rapid recovery in the event of system failure or data corruption.
[0021] (6) The user interface provided by the platform configuration manager enables system administrators to easily configure interface parameters, permission settings, and logging options. This high degree of configurability enables the system to adapt to changing technical requirements and compliance standards while simplifying system management. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a schematic diagram of a general interactive service system based on hospital big data provided in the first embodiment of the present application. DETAILED DESCRIPTION
[0023] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0024] The first embodiment of the present application provides a general interactive service system based on hospital big data. Figure 1 , which is a schematic diagram of the first embodiment of the present application. Figure 1 The first embodiment of the present application provides a general interactive service system based on hospital big data for detailed description.
[0025] In order to facilitate quick understanding of the technical solution provided by this embodiment, a specific example is provided below.
[0026] In a large hospital, doctors need to quickly obtain a patient's medical history to make treatment decisions. In this scenario, the universal interactive service system provided by this embodiment plays a key role in ensuring that data is exchanged and processed in a timely and secure manner.
[0027] The scenario begins: A doctor is treating an emergency patient and needs to quickly access the patient's past medical records and recent lab test results. The doctor sends a data request through the hospital's electronic health record system (EHR).
[0028] Processing of data requests: 1. Function of interface module 101-1: The doctor's request is first transmitted through the interface module 101-1, which is responsible for processing the data request sent from the EHR system (as an external system).
[0029] The requested data is sent through a standardized medical data interface (such as HL7), and the interface module performs preliminary formatting and cleaning of the data to ensure that it meets the requirements of internal processing.
[0030] 2. Function of verification module 101-2: The cleaned data is then sent to the verification module 101-2. Here, the system checks whether the doctor making the request has the authority to access the patient's medical records through database matching technology.
[0031] Once the doctor's access rights are confirmed, the data is marked as successfully verified and is ready to be transmitted to the calling module 101-3.
[0032] 3. Operation of calling module 101-3: The calling module 101 - 3 receives data from the verification module and generates request parameters based on the data for querying a third-party system, such as a laboratory information system (LIS).
[0033] The generated request parameters ensure that the API interface can be called with the exact data required, requesting medical records and relevant laboratory results.
[0034] 4. Receipt and further processing of data: Once the third-party system processes the request and returns a response, the calling module 101 - 3 will receive the response data and perform necessary post-processing, such as format conversion and data integration, so that the data can be directly used by the medical team.
[0035] 5. Recording activities of log module 101-4: At the same time, all request and response data are received and recorded by the log module 101-4, including the doctor's request details, received medical records and laboratory result data.
[0036] These logs provide hospitals with important insights into data access and system performance, and are also a critical part of compliance and auditing.
[0037] 6. The background function of the scheduled task module 101-5: In addition, the processing result of the response data is also sent to the scheduled task module 101-5, which is responsible for arranging the backup and long-term storage of the data to ensure data security and long-term accessibility.
[0038] 7. Management interface of platform configuration management program 102: While all these activities are taking place, the system administrator may need to adjust the system or update the security policy through the platform configuration management program 102.
[0039] Administrators can use this interface to update access permission rules or adjust data processing and logging configurations to adapt to new compliance requirements or optimize system performance.
[0040] End of scenario: Finally, the doctor quickly obtains the complete medical records and laboratory test results he needs in the electronic health record system, enabling him to provide timely and accurate medical decisions for his patients.
[0041] Through this detailed example, we can see how the general interactive service system can provide critical data exchange and processing support in an actual hospital environment, ensuring the efficiency of medical services and the security of data.
[0042] The general interactive service system based on hospital big data includes a general interactive service main program 101 and a platform configuration management program 102 .
[0043] The general interactive service main program 101 is used to integrate the configuration, request processing and log recording of the hospital service bus; Service bus is a software architecture pattern used to mediate messaging and integration between applications. In a hospital environment, service bus allows different medical systems (such as electronic health record systems, laboratory information systems, medical device management software, etc.) to exchange data through a unified communication channel. This architecture pattern helps decouple system components, allowing each system to operate independently of other systems while providing the necessary data interaction capabilities.
[0044] The configuration of the service bus involves setting communication protocols, data formats, security rules, message queue management, etc. In the hospital big data platform, the configuration of the service bus ensures the safe and efficient transmission of data between different medical systems. Configuration parameters may include but are not limited to: Authentication and authorization mechanisms ensure that only authorized users and systems can access and send data.
[0045] Message routing rules that specify how data should flow from a source system to a target system.
[0046] Error handling strategy, which defines what to do when data transmission fails.
[0047] Request processing is one of the core activities on the service bus, which involves receiving, parsing, and forwarding requests from various systems. In a hospital environment, this may include patient data queries, updating medical records, requesting medical images, etc. Each request must go through the standard processing flow of the service bus, which usually includes: Parse request: Convert the received data (which may be in HL7, FHIR, etc.) into a format that can be processed internally.
[0048] Execute business logic: perform corresponding operations according to the type of request, such as data query, data update, etc.
[0049] Data conversion and response: Convert the processing results into an appropriate format and return them to the requester.
[0050] Logging is a key component of hospital data processing systems, used to record all data interaction activities through the service bus. Log content usually includes: Request details: including request time, source and target system information, request type, etc.
[0051] Response details: including response time, processing result (success or failure), returned data, etc.
[0052] Exception and error information: Any errors or exceptions that occur during request processing, and the response measures taken.
[0053] The general interactive service main program 101 plays a coordination and management role in this architecture. It integrates all aspects of service bus configuration, request processing and logging. Through this program, the hospital can centrally manage all configurations of the service bus to ensure the consistency and security of data exchange. The program also handles all requests from various connected systems to ensure that data is processed according to the predetermined business logic and responded to in a timely manner. At the same time, it records detailed logs of all interactions, providing important information for system monitoring, problem diagnosis and security auditing.
[0054] The general interactive service main program 101 is an indispensable core component in the hospital big data processing system. It ensures the overall performance of the hospital information system and the security of data by efficiently managing the configuration, request processing and log recording of the service bus.
[0055] The general interactive service main program 101 includes: The interface module 101 - 1 is used to process interface data of standard interfaces and non-standard interfaces from external systems, and send the processed interface data to the verification module.
[0056] The interface module 101-1 plays a crucial role in this embodiment. As a part of the general interactive service main program 101, the module is mainly responsible for processing data from the external system and ensuring that the data is safely and effectively transmitted to the next stage processing unit in the system. Specifically, the task of the interface module is to process the interface data sent by the external system through the standard interface and the non-standard interface.
[0057] In this architecture, the interface module 101-1 exists in the form of microservices, and communicates with other modules (such as the verification module 101-2, the call module 101-3, etc.) through a hospital service bus implemented by a microservice architecture. This design allows modules to exchange data efficiently while maintaining independence from each other and focusing on their respective functions, improving the flexibility and maintainability of the entire system. The service bus serves as a medium for data transmission, ensuring the consistency and security of the data flow, and supporting the compatibility of various data formats and communication protocols.
[0058] The so-called "standard interface" data usually refers to data that follows specific industry standards (such as HL7, DICOM and other data exchange standards widely used in the medical field). These standards define the data format, structure and communication protocol, so that data from different systems can be widely understood and accepted. In contrast, the data of "non-standard interface" may come from a specific supplier or customized system. The format and protocol of this data may not follow the generally recognized industry standards, so the interface module needs to perform specific adaptation or conversion before processing.
[0059] L7 (Health Level 7) is an international organization that provides standards and specifications for data exchange between different systems in the medical environment. The HL7 standard focuses on the exchange, integration, sharing and retrieval of medical information to support clinical and administrative data processing needs in all medical and related health service fields. The HL7 standard is widely used in hospital information systems (HIS), electronic medical records (EMR) and other systems to achieve standardized exchange and processing of medical data.
[0060] DICOM (Digital Imaging and Communications in Medicine) is a standard specifically for medical images and related information. It is widely used between medical imaging equipment (such as X-ray, CT, MRI, etc.) and related systems to store, transmit, retrieve and display medical image information. The DICOM standard plays a core role in departments such as radiology and imaging, allowing medical image data to be exchanged and used between different medical institutions and systems.
[0061] In the interface module 101-1, the raw data from the external system undergoes preliminary processing, including steps such as data verification, format conversion, and necessary security checks. The processed data is data that is ready for further use by the system. These data are not only standardized in format, but also comply with the security and operation specifications within the system. These processed data are then sent to the verification module 101-2 to further verify the access rights of the data to ensure that only authorized requests can access or operate the data.
[0062] In short, the interface module 101-1, as the front line of data reception and preprocessing, ensures that all data received from external systems are properly processed and forwarded, laying the foundation for efficient operation within the system. Through the service bus under the microservice architecture, the interface module can effectively interact with other system modules and support the data interaction framework of the entire hospital big data processing system.
[0063] Furthermore, the interface module includes an adapter, which is used to dynamically identify and convert data formats of standard interfaces and non-standard interfaces from external systems.
[0064] In the general interactive service system, the interface module plays a vital role. Its design is to ensure that the system can effectively communicate with a variety of external systems. To achieve this, the interface module includes a specific component - the adapter. The main function of the adapter is to dynamically identify and convert data from different external systems, whether these data come from standard interfaces or non-standard interfaces.
[0065] Specifically, the adapter first analyzes the received data to determine the type of interface from which it comes. This process involves detecting the data format, protocol, and possible encoding standards to determine whether it comes from a standard interface or a non-standard interface. Standard interfaces usually follow industry standards, such as HL7 or DICOM in the medical field, which have clear data structures and communication protocols. Non-standard interfaces may be unique implementations of specific vendors or legacy systems, and the data formats and protocols of these interfaces may not conform to common standards.
[0066] Once the adapter identifies the type of data, its next task is to perform the necessary conversion operations so that the data can be correctly understood and processed by the general interactive service system. The conversion process includes the conversion of data formats, such as converting XML format to JSON format, or converting customized data structures to a general format that the system can handle. In addition, the adapter is also responsible for adjusting the encoding method of the data to ensure the consistency and integrity of the data during transmission and processing within the system.
[0067] The implementation of adapters usually relies on design patterns in software programming, such as the adapter pattern, which allows objects to interact between incompatible interfaces. In actual operation, the adapter may include a series of conversion rules and mapping logic, which can be set and modified through configuration files or programming interfaces to adapt to the ever-changing external system interfaces.
[0068] The general interactive service main program 101 also includes a verification module 101-2, which is used to receive processed interface data from the interface module 101-1; use database matching technology to verify whether the caller has data access rights to the processed interface data; and transmit the verified data to the calling module.
[0069] The verification module 101 - 2 is the core part of the general interactive service main program 101 , and is mainly responsible for ensuring that all data received through the interface module 101 - 1 undergoes strict authority verification before further processing.
[0070] When the interface module 101-1 receives data from the external system, these data usually cover various types of medical information collected from standard and non-standard interfaces. Before being sent to the verification module, these data have been initially formatted and possibly cleaned. At this time, the task of the verification module 101-2 is to use database matching technology to verify whether the caller who sent the request has sufficient permissions to access the data. This process is not only related to data security, but also ensures that the data processing of the entire system complies with the compliance and policy requirements of the hospital.
[0071] Specifically for database matching technology, the verification module 101-2 has a complex set of rules and permission management systems. This system can perform detailed permission checks on each data request received, including but not limited to user identity authentication, role permission verification, and access level confirmation. For example, a request may need to match a specific user ID and password, and verify whether the user has the permission to access specific medical record data.
[0072] The verification module integrates a highly complex and sophisticated database matching technology, which implements a comprehensive set of rules and permission management systems. The design and functionality of this system ensures that every data request is carefully checked for permissions, so that the data processing process meets high security and compliance standards.
[0073] The system is based on a centralized permission database, which stores all user identity information, role attributes and their corresponding access rights. This database is designed to be highly secure and can be updated and queried in real time to ensure the accuracy and timeliness of all information.
[0074] When the interface module 101-1 transmits data to the verification module 101-2, the first thing to do is to verify the user's identity. This process usually involves matching the ID and password provided by the user. The system uses encryption technology to ensure the secure transmission and storage of this sensitive information. Once the identity is verified, the system will then check the user's role and corresponding permission settings.
[0075] Role permission verification is a core function that involves analyzing the user's role definition and the scope of the role's permissions. The system has multiple levels of permission management, allowing different levels of users to access different levels of data. For example, a doctor may be able to access all of his or her patients' medical records, while a front desk receptionist may only be able to access basic patient information.
[0076] Access level confirmation is the final step in the verification process, where the system determines whether the user has permission to access the specific data requested based on their role and permission settings. For example, a request may come from a doctor who needs access to specific medical record data. The system will verify whether the doctor has permission to access the medical record, which may include additional confirmation of the sensitivity of the medical record data.
[0077] In order to achieve the above functions, it is necessary to configure and maintain the permission database to ensure that the data in it is accurate and can reflect the latest permission changes. In addition, appropriate security measures should be implemented, including but not limited to data encryption, secure user authentication mechanisms and regular security audits. Technical personnel also need to ensure that the system's database matching logic can accurately interpret and execute the defined security policies and access control rules.
[0078] Through these implementation steps, the verification module 101-2 can efficiently and securely process each data request, ensuring that only authorized users can access the data they are allowed to, thereby playing a key role in maintaining hospital data security and user privacy.
[0079] The verification module 101-2 communicates with other modules (such as the interface module 101-1, the calling module 101-3, etc.) through the hospital service bus implemented based on the microservice architecture. This architecture allows each independent service module to work together efficiently in a distributed environment while maintaining their respective functional independence. The service bus not only provides an efficient data transmission channel, but also supports flexible service expansion and maintenance. Each module can be optimized or upgraded without affecting other parts.
[0080] Once the verification module 101-2 confirms that the caller has the appropriate access rights, the processed interface data is considered to be successfully verified. The data is now ready to be sent to the calling module 101-3 to generate request parameters for the third-party system. At this stage, the data has been converted from the original interface data to a format and structure that can be further processed by business logic, ensuring the legitimacy and security of the data and providing a solid foundation for subsequent operations.
[0081] Furthermore, the verification module includes a security token unit, which is used to verify the identity and access level of the caller before processing the interface data.
[0082] In the general interactive service system, the authentication module is a key component to ensure data security and access control. In particular, this module includes a dedicated security token unit, whose main responsibility is to verify the caller's identity and its access rights to the data before processing any interface data.
[0083] The security token unit begins its work by receiving a security token provided by the caller, which is usually sent by the caller when requesting data. These tokens may be pre-defined keys, dynamically generated one-time passwords, or other forms of authentication identification, and their purpose is to prove the identity of the caller and confirm their access rights.
[0084] Once the security token is received, the security token unit begins a series of verification processes. First, it checks the validity of the token, which includes verifying that the token has not expired, is within the validity period of the system, and matches the user or system making the request. This process may involve interaction with a central authentication service that is responsible for maintaining and verifying the status of all active tokens.
[0085] Next, the security token unit evaluates the permission information contained in the token to determine whether the caller has permission to access the requested data. This usually requires comparing the permission data in the token to the requested resource or data to see if there is a sufficient level of access. For example, some tokens may limit access to specific types of medical records or only allow read operations without allowing modification.
[0086] If the security token verification fails, such as an invalid token or insufficient access level, the security token unit will block the access request and may log a security event, notifying the system administrator for further review. If the verification is successful, the verification module will allow data processing to continue, and the data can be appropriately processed or passed to the next module in the system.
[0087] In summary, the verification module 101-2 is not only the gatekeeper of data security, but also the key node to ensure the smooth transfer of data to the subsequent processing modules. Its design and implementation ensure the efficiency, security and reliability of the hospital big data processing system when processing sensitive medical data.
[0088] The calling module 101-3 is used to generate request parameters for the third-party system based on the successfully verified data transmitted by the verification module 101-2; call the third-party system interface according to the generated request parameters; receive and process the response data returned by the third-party system interface; send the processing result of the response data to the log module 101-4 for recording and analysis; send the processing result of the response data to the scheduled task module 101-5 for asynchronous task processing and data persistence; The calling module 101-3 plays a core role in the general interactive service system provided in this embodiment, and is mainly responsible for converting the data received from the verification module 101-2 into actual operations, and then effectively communicating with the third-party system. This process covers the entire process from generating request parameters to processing the response of the third-party system, ensuring real-time processing and integration of data.
[0089] The calling module 101-3 first generates request parameters based on the successfully verified data received from the verification module 101-2. These parameters are customized based on the interface requirements of the third-party system, including but not limited to the necessary information for API calls such as user authentication information, operation instructions and other necessary data fields. This step is critical because the correct parameters are the basis for ensuring that the third-party system can understand and correctly respond to the request.
[0090] Once the request parameters are ready, the calling module 101-3 uses these parameters to initiate a call to the third-party system through the hospital service bus implemented by the microservice architecture. This may involve data query, data update or other types of data operation requests, depending on the hospital's operational needs and the services provided by the third-party system.
[0091] The calling module 101-3 not only sends the request, but is also responsible for receiving the response returned by the third-party system. These response data are then processed for further use or storage. The processing includes data parsing, formatting and error checking to ensure that the information received from the third-party system is accurate and meets the requirements of the internal system.
[0092] The processed response data is then sent to the log module 101-4. Here, every interface call and response will be recorded in detail, including the details of the request and the response data of the third-party system. These logs are crucial for system monitoring, fault diagnosis and performance evaluation. They help system administrators track data flow, evaluate system efficiency, and make adjustments when necessary.
[0093] In addition to logging, the processing results of the response data will also be sent to the scheduled task module 101-5 for asynchronous processing and data persistence. The operations involved here may include data backup, long-term storage tasks, and other tasks that require delayed processing. This module ensures the security and long-term availability of data, while also optimizing the response time of the system and improving the efficiency of data processing.
[0094] The entire call module is operated under a microservice architecture framework, and closely cooperates with other modules such as the interface module 101-1 and the verification module 101-2 through the hospital service bus. This design provides a high degree of modularity and scalability. Each module can run independently without affecting the stability of the overall system, while ensuring efficient and secure data transmission between modules.
[0095] Furthermore, the calling module includes an error handling submodule, and the error handling submodule is used to handle errors or abnormal responses returned by the third-party system interface.
[0096] In order to ensure the robustness and reliability of the system, a special error handling submodule is integrated into the calling module. This submodule is responsible for monitoring and handling various errors or abnormal responses that may occur during the interaction with the third-party system interface.
[0097] The main function of the error handling submodule is to ensure that when the third-party system returns an error or abnormal response, the system can react appropriately to avoid causing wider system failures or data inconsistencies. These errors may include network timeouts, data format errors, access denied, or other abnormal situations triggered by the third-party system.
[0098] The workflow is as follows: First, when the calling module sends a request to the third-party system, the error handling submodule monitors the returned response. If the response is normal, the data will be processed normally and passed to other parts of the system; if the response contains an error code or exception information, the error handling submodule will intervene.
[0099] Once an error or exception is detected, the error handling submodule first tries to classify the error type, which may include parsing the error message, identifying the error code, and referring to the predefined error handling strategy. Depending on the nature and severity of the error, the submodule may take different countermeasures, such as: 1. Retry logic: For temporary errors, such as network delays or service unavailability, the error handling submodule may implement a retry mechanism. This usually involves waiting for a short fixed time interval before resending the request.
[0100] 2. Error logging: All errors and exceptions will be recorded in detail, including the time when the error occurred, the error type, related data and possible impact. This information is valuable to system administrators because it helps diagnose problems, optimize system performance and perform future system maintenance.
[0101] 3. Error notification: For some critical errors, the error handling submodule will send notifications to the system administrator or other relevant personnel so that measures can be taken to solve the problem as soon as possible.
[0102] 4. Data rollback and exception handling: For errors that may affect data integrity, such as database operation failure, the error handling submodule will perform data rollback operations to ensure the consistency of the system state and the accuracy of the data.
[0103] 5. User feedback: If the error directly affects the end user's operation, the system will provide appropriate error information and subsequent operation suggestions through the user interface.
[0104] The log module 101-4 is used to receive the processing result of the response data from the calling module 101-3; based on the processing result of the received response data, record the call log of each interface call; the call log includes the generated request parameters and the response data of the third-party system.
[0105] The log module 101-4 plays a vital role in the general interactive service system provided in this embodiment. It is responsible for recording and analyzing all data interaction activities conducted through the system. This includes recording in detail the processing results of each response data received from the calling module 101-3, as well as the relevant request parameters and the response data returned by the third-party system. The design and function of the log module are intended to provide a comprehensive audit trail, support system monitoring and data security analysis, and provide key information for troubleshooting and system optimization.
[0106] In medical data processing systems, accurate logging is crucial, not only for regulatory compliance, but also for the security and privacy of patient data. The data received by the log module 101-4 mainly includes the request parameters generated by the call module 101-3 and the response of the third-party system. The log record of each interface call details the content of the request, the result of the response, the processing time, and any possible exceptions or error information.
[0107] The log content includes the following: 1. Request parameters: These are the specific parameters used when making a request to a third-party system, such as patient ID, type of data requested, etc. Recording these parameters is critical to understanding the nature and purpose of the request.
[0108] 2. Response data: includes all data and status information returned by the third-party system, which reflects whether the request is successfully processed and the specific content of the processing result.
[0109] 3. Timestamp: Each record includes an accurate timestamp, which is essential for tracking the sequence of events and response time.
[0110] 4. Processing result: It records in detail the final result of the request processing, including the success or failure status and the error code or related instructions in case of failure.
[0111] The log module 101-4 is connected to other modules (such as the call module 101-3, the interface module 101-1, etc.) through the hospital service bus implemented by the microservice architecture. This architecture supports efficient data exchange and independent operation between modules, ensuring the scalability and flexibility of the system. In this setting, the log module not only serves as a receiver of data, but also as part of the analysis and reporting mechanism. It can operate independently of the main data flow, so as not to affect the overall performance of the system.
[0112] To ensure the effective implementation of the log module 101-4, technicians need to configure appropriate storage solutions to manage large amounts of log data and implement efficient indexing and query mechanisms to support fast data retrieval. In addition, advanced data protection measures such as encryption and access control must be implemented to ensure the security of log data.
[0113] Through this detailed and comprehensive logging strategy, the General Interaction Service System is able to provide the necessary data transparency and traceability, while supporting continuous monitoring and improvement of system performance and security. This not only helps to improve the reliability of system operation, but also ensures that medical data processing complies with all relevant regulations and standards.
[0114] Furthermore, the log module includes a data encryption function for protecting log data during storage and transmission.
[0115] In a general interactive service system, the log module plays a vital role, not only recording system operations and interactive events, but also ensuring that this data is properly protected during storage and transmission. To achieve this, the log module is designed with data encryption, which is essential to maintaining the confidentiality and integrity of data, especially in environments involving patient information and medical data.
[0116] The data encryption function of the log module mainly includes the following key aspects: 1. Selection and implementation of encryption algorithms: The log module uses strong encryption algorithms such as AES (Advanced Encryption Standard) or RSA to encrypt recorded log data. These algorithms have been widely recognized and applied to protect sensitive information from unauthorized access.
[0117] 2. Management of encryption keys: To ensure the effectiveness of encryption, key management is critical. The system needs to securely generate, store, distribute, and regularly replace keys. Key management also includes ensuring the secure destruction of old keys to prevent them from being misused.
[0118] 3. The process of encrypting log data: When the system generates log data, the data will be encrypted immediately before being stored in the log database or file system. This ensures that the data is immediately encrypted once it leaves the source of generation, greatly reducing the risk of data being stolen or tampered with during transmission.
[0119] 4. Access control for encrypted data: In addition to encryption itself, the logging module also implements access control measures to ensure that only authorized users can access encrypted log data. Access control is usually combined with user authentication and authorization mechanisms, such as role-based access control (RBAC) policies.
[0120] 5. Audit and monitoring of encrypted data: The system will regularly check and audit the implementation of encryption and access controls to ensure that these measures continue to meet the predetermined security standards and compliance requirements.
[0121] The log module can not only record the system operations and abnormal events in detail, but also ensure the security and privacy of these sensitive data throughout the entire life cycle, from generation, storage to transmission.
[0122] The scheduled task module 101-5 is used to receive the processing results of the response data from the calling module 101-3; according to the processing results of the received response data, it processes the data backup tasks and long-term data storage tasks to optimize the system response time and improve the data processing efficiency.
[0123] In the general interactive service system provided in this embodiment, the timing task module 101-5 plays a vital role and is specifically responsible for processing the response data from the calling module 101-3. This module not only processes these data, but is also responsible for performing data backup tasks and long-term data storage tasks, aiming to optimize the response time of the system and improve the overall data processing efficiency. The realization of these functions is very critical to ensuring the integrity, reliability and immediate availability of hospital data.
[0124] The timing task module 101-5 first receives the response data processed and returned by the calling module 101-3. These data usually include the patient's medical information, processing results and other related medical service data. Once these data are received, the module will classify and process them according to preset logic and rules.
[0125] A key link is data backup, which is to prevent data loss or data unavailability caused by system failure. The scheduled task module will automatically perform data backup operations according to the set schedule and copy key data to a safe storage location. This not only ensures the security of data, but also allows data to be quickly restored when needed.
[0126] In addition to backup, long-term data storage is also a major function of this module. As the amount of data continues to increase, it becomes particularly important to effectively manage historical data. Long-term storage tasks involve migrating data that is not frequently accessed but needs to be retained to more economical storage solutions, such as low-cost cloud storage services or dedicated long-term archiving systems. This not only helps optimize storage costs, but also ensures that data is retained and protected in accordance with compliance requirements.
[0127] Under the microservice architecture, the scheduled task module 101-5 is closely connected with other modules such as the interface module 101-1, the verification module 101-2 and the call module 101-3 through the hospital service bus. This architecture supports efficient communication between modules and ensures that data can be transmitted quickly and securely between modules. The application of the service bus not only improves the flexibility of data processing, but also simplifies the expansion and maintenance of the system.
[0128] In order to implement the scheduled task module 101-5, the technician needs to set up appropriate data processing rules and backup strategies. This includes determining the frequency of data backup, selecting appropriate backup media, configuring the location of data storage, and ensuring the security and efficiency of data migration. At the same time, triggers need to be configured in the system to automatically start backup and storage tasks based on data processing results.
[0129] In this way, the scheduled task module 101-5 not only improves the response speed and efficiency of the hospital's big data processing system, but also enhances the security and reliability of data management. This enables the system to efficiently process large amounts of medical data while ensuring the persistence and accessibility of the data, supporting the key needs of hospital operations.
[0130] The interface module, verification module, calling module, log module and scheduled task module exchange data through a hospital service bus implemented by a microservice architecture.
[0131] The purpose of implementing a hospital service bus using a microservices architecture is to ensure that data exchange between different modules in the system is both efficient and reliable. The microservices architecture is achieved by splitting large applications into independent, loosely coupled services, each of which is responsible for performing well-defined tasks and has an independent database, thereby achieving service autonomy. This design makes the system easier to scale and maintain, and enables better resource management. The following are the implementation steps to achieve this architecture: First, the system is split into multiple microservices, each corresponding to a module in the system. For example, the interface module, verification module, call module, log module, and scheduled task module are each implemented as a separate service. Each microservice contains all the components required to perform its functions, such as database, backend logic, API interface, etc.
[0132] Each microservice communicates with other services through well-defined APIs. These APIs define various operations, such as data request, sending response, and error handling. Using RESTful API is a common choice because it supports cross-platform communication and can use standard HTTP / HTTPS protocols.
[0133] In a microservices architecture, services need to know how to find each other. This is usually achieved through a service registry, where each service registers its location (i.e., API URL) with the registry when it starts and sends heartbeats periodically to prove that it is still running. Other services can query the registry to find the location of the services they need to communicate with.
[0134] Once the services know each other's location, they can call each other's APIs over the network to exchange data. Data is transmitted between services in JSON or XML formats, which are easy to process across languages and are readable. To ensure secure data transmission, HTTPS is usually used to encrypt the data.
[0135] Microservice architectures need to consider situations where the network or service may fail. Methods for implementing fault tolerance include setting strategies such as timeouts, retry mechanisms, circuit breakers, and eventual consistency. For example, if a service call fails, the system can automatically retry or switch to an alternative service.
[0136] Monitoring is an important part of a microservices architecture. Each service can generate logs and send metrics to a central monitoring system to track their health and performance. This information is critical for debugging problems, optimizing performance, and preventing failures.
[0137] Due to the independence of microservices, they can be developed and deployed separately, which greatly speeds up the development cycle. Through automated continuous integration (CI) and continuous deployment (CD) pipelines, it can be ensured that new code changes are automatically deployed to the production environment after automatic testing, reducing the need for manual intervention.
[0138] Through the implementation steps, the hospital's general interactive service system can take advantage of all the advantages of the microservice architecture to achieve efficient, flexible and scalable medical data processing. This not only improves the performance of the system, but also increases the maintainability of the system through modularization and decoupling.
[0139] The platform configuration management program 102 is connected to the general interactive service main program 101 and is used to provide a user interface; the user interface allows the user to set interface parameters including data format, transmission protocol and security configuration for standard interfaces and non-standard interfaces; allows the user to define and modify the security policies and access permission rules used by the verification module 101-2; and allows the user to set the log module 101-4.
[0140] The platform configuration management program 102 is a key component of the general interactive service main program 101, and provides a user-friendly interface that allows users to deeply configure and manage various system parameters. This interface is designed to simplify the complex configuration process, allowing users to directly influence and control the operation mode of the system, including but not limited to the format of the data interface, communication protocol, security settings, and the management of system logs and security policies.
[0141] Through the platform configuration manager 102, users can configure the interface module 101-1 in detail, including defining the data format and transmission protocol for standard interfaces and non-standard interfaces received from external systems. This function is crucial because it ensures compatibility between different systems and smooth data exchange. Users can set how to handle various data types and how to securely receive and send data through these interfaces as needed.
[0142] In addition, the platform configuration manager 102 also allows the user to define and modify the security policies and access rights rules of the verification module 101-2. This means that the user can set which users or systems have access to specific data and under what conditions they can access the data. This includes setting the necessary identity authentication measures, permission levels and other relevant security parameters to ensure that data can only be accessed by authorized persons.
[0143] The user can also configure the log module 101-4 through this interface, including the level of detail of log records, the location where logs are saved, and the duration of saving. Through these settings, the system administrator can optimize log management, improve the monitoring and auditing capabilities of the system, and ensure rapid response when security incidents occur.
[0144] The configuration management interface not only improves the flexibility and availability of the system, but also strengthens the security of the system, allowing administrators to update the system configuration according to current security requirements and policies without directly modifying the underlying code or performing complex manual configuration. This approach greatly simplifies system management, reduces the risk of misconfiguration, and improves operational efficiency.
[0145] In summary, the platform configuration manager 102 provides a comprehensive user interface that enables managers to directly and efficiently control and adjust key functions and security settings in the hospital big data system, thereby making the entire system more in line with the hospital's operational needs and security standards.
[0146] Furthermore, the platform configuration management program includes a real-time monitoring interface for displaying the status and performance indicators of all current interfaces.
[0147] In the general interactive service system, the platform configuration manager is a key component, which not only allows users to configure and manage system settings, but also provides a real-time monitoring interface. This real-time monitoring interface is a window for system administrators and operation and maintenance teams to gain insight into the system's operating status. Through it, users can view the status and performance indicators of each interface in real time, thereby effectively monitoring the health of the entire hospital big data system.
[0148] The design and functionality of the real-time monitoring interface include the following key aspects: 1. Interface layout and design: The real-time monitoring interface has an intuitive and easy-to-operate user interface design and supports multiple display modes (such as lists, charts, etc.). It provides users with a clear view of the current status of each interface in the system, such as online, offline or error status.
[0149] 2. Display of performance indicators: The performance indicators displayed in the interface include but are not limited to response time, data throughput, error rate, etc. These indicators are displayed in the form of real-time charts, allowing users to track the performance of the interface within a specific time and identify possible performance bottlenecks or anomalies.
[0150] 3. Data update and refresh: The monitoring interface can be updated in real time to reflect the latest status and performance data of the interface. This feature is achieved by regularly pushing the latest data to the front end through the back-end system, ensuring that the information viewed by users is always the latest.
[0151] 4. Interactive functions: Users can perform some interactive operations through the monitoring interface, such as manually refreshing data, adjusting displayed performance indicators, or conducting in-depth analysis of specific interfaces. The interface may also provide quick access tools, such as search bars, filters, or sorting options to help users quickly find the information they need.
[0152] 5. Alarms and notifications: When an abnormal interface status is detected or a performance indicator exceeds a preset threshold, the monitoring interface can trigger an alarm and notify the user. This mechanism usually includes email, SMS or in-system notifications to help respond to possible system problems in a timely manner.
[0153] 6. Security measures: Considering that the displayed data may include sensitive information, the monitoring interface takes necessary security measures, such as access control and data encryption, to ensure that only authorized users can access the monitoring information.
[0154] Furthermore, the platform configuration management program includes a user authority management subsystem for allocating and managing different users' access and modification authority to interface parameters.
[0155] In the general interactive service system, the platform configuration manager is a key component, which includes a user rights management subsystem, which is responsible for maintaining the user rights hierarchy within the system and ensuring that users at all levels can access and modify interface parameters as needed. This function is essential to maintaining the security and effective operation of the system, ensuring that only authorized users can perform sensitive operations, such as modifying configurations or accessing specific data.
[0156] The core functions and implementation steps of the user rights management subsystem: 1. User role definition: The system first defines a set of user roles, each with different permission levels. These roles may include administrators, operators, analysts, etc. Each role is associated with a specific permission set, which defines the interface parameters and system functions that users of the role can access and operate.
[0157] 2. Permission Assignment: The permission management subsystem allows system administrators to assign one or more roles to each user. Based on the assigned role, the user's access rights are configured accordingly. For example, an administrator may have access to all parts and functions of the system, while an analyst may only have access to data viewing and report generation tools.
[0158] 3. Permission verification: When a user attempts to access a specific part of the system or perform an operation, the permission management subsystem checks the user's permissions to determine whether they have the right to perform the operation. This step involves checking the user's active role and the permissions that role has to ensure that only users with the appropriate permissions can perform sensitive operations.
[0159] 4. Permission modification and update: System administrators can add, modify or delete roles and permissions at any time through the permission management subsystem. This includes adjusting the scope of permissions of existing roles or assigning new roles to specific users. This feature is essential for adapting to organizational changes and new security policies.
[0160] 5. Access logs and audits: To increase the security and transparency of the system, the permission management subsystem also records the access and operation history of all users. These log files are very useful for post-audits and security checks, helping to identify unauthorized access attempts or improper data operations.
[0161] 6. Interface and Operation: The permission management subsystem provides a user-friendly interface that allows administrators to easily manage user accounts and permissions. The interface provides intuitive tools and options such as user lists, role and permission editors, and access log viewers.
[0162] Furthermore, the calling module uses a trained request parameter generation neural network model to generate request parameters for a third-party system; wherein the request parameter generation neural network model includes a feature extraction module, a data fusion module and an output generation module.
[0163] The feature extraction module is used to receive the patient's historical medical record data, laboratory data, basic information data and medical image data; use a recurrent neural network structure to process the patient's historical medical record data to obtain a time-dependent feature vector; use a multi-layer fully connected network to process the patient's laboratory data to obtain a physiological feature vector including key biomarkers and health indicators; use a fully connected layer to process the patient's basic information data to obtain a basic information feature vector; use a convolutional neural network to process the patient's medical image data to obtain a lesion feature vector; The data fusion module is used to receive the time-dependent feature vector, the physiological feature vector, the basic information feature vector and the lesion feature vector, and use a multi-layer perceptron including an attention mechanism to perform fusion processing on the received feature vectors to obtain a comprehensive feature representation; The output generation module is used to receive the comprehensive features provided by the data fusion module, process the received data representation using a generation network, and generate request parameters for the third-party system.
[0164] In the medical information system, historical medical records, laboratory data, basic personal information and medical imaging data are four key types of medical data, which provide comprehensive information for the diagnosis and treatment of patients. These data can be the successfully verified data transmitted by the verification module. The following details the meaning of these data types and their role in the medical system: Medical history records include all of a patient's past health records, typically covering: Past medical history: includes past diagnoses, treatments, surgical history, and treatment outcomes.
[0165] Symptom development: the patient's previous symptoms and their changes.
[0166] Medication records: medications used by the patient in the past, as well as their dosage and frequency.
[0167] Allergy information: Includes allergic reactions to medications, foods, or other substances.
[0168] Family medical history: Record any genetic diseases or other related health problems that run in your family.
[0169] This data is critical for doctors to understand a patient's overall health and develop personalized treatment plans.
[0170] Laboratory data are obtained through clinical laboratory testing and include but are not limited to: Blood test results: such as blood routine, blood sugar, blood lipids, etc.
[0171] Results of analyses of urine and other body fluids.
[0172] Tissue biopsy results.
[0173] Biochemical indicators: such as liver function, kidney function, etc.
[0174] Laboratory data provide doctors with objective indicators of the patient's current health status and are an important basis for diagnosing and monitoring disease progression.
[0175] Basic personal information mainly includes but is not limited to: Age: Patients of different ages may have different susceptibility to disease and responses to medications.
[0176] Gender: Certain diseases have different incidence rates between the sexes.
[0177] Weight and height: This information is especially important for calculating medication dosages.
[0178] Lifestyle habits: such as smoking, drinking, and other lifestyle habits that may affect health.
[0179] This information has basic reference value for assessing disease risk and selecting treatment options.
[0180] Medical imaging data is obtained through various imaging examinations, including: X-rays: used to detect broken bones, lung disease, etc.
[0181] CT scan: Provides detailed cross-sectional images of a part of the body.
[0182] MRI scan: Uses a strong magnetic field and radio waves to obtain detailed images of body structures, especially soft tissue.
[0183] Ultrasound examination: used to observe the structure and function of organs in the body, often used in pregnancy testing and diagnosis of heart disease.
[0184] Medical imaging data provides intuitive visual evidence for the diagnosis of diseases, helping doctors make accurate judgments on the location, size, and nature of lesions.
[0185] In summary, these data types together constitute the patient's comprehensive medical records, provide all-round support for medical decision-making, and ensure the scientific and personalized treatment plan. In the medical information system, the efficient processing and analysis of these data is of great significance to improving the quality of medical services.
[0186] In the general interactive service system provided in this embodiment, the calling module adopts a request parameter generation neural network model, which is designed to generate accurate request parameters for the third-party system. This neural network model consists of three main functional modules: feature extraction module, data fusion module and output generation module. Each module has its specific function and processing method, ensuring the effectiveness and accuracy of the entire processing flow from input to output.
[0187] The feature extraction module is responsible for collecting and initially processing patient data. It receives multiple types of patient data, including historical medical records, laboratory data, basic personal information, and medical imaging data. For these different types of data, the module uses a neural network structure that is suitable for their respective characteristics: The historical medical record data is processed by a recurrent neural network (RNN), which is specially designed to process sequence data and can effectively capture patterns and trends in time series, thereby generating time-dependent feature vectors that reflect the development of the disease.
[0188] Laboratory data are processed by a multi-layer perceptron (MLP), which is suitable for extracting key biomarkers and health indicators from static, structured data to form physiological feature vectors.
[0189] The patient’s basic information such as age, gender, and weight is processed through a simple fully connected layer, which helps transform these basic data into useful basic information feature vectors.
[0190] For medical imaging data, convolutional neural network (CNN) is used because CNN is particularly good at processing image data and can identify important information such as lesion characteristics in images.
[0191] Provided below is the reference implementation code of the feature extraction module. This code snippet summarizes the structure and basic logic of the neural network model for processing different types of medical data.
[0192] # Import necessary neural network libraries and functions import tensorflow as tf from tensorflow.keras.models import Model from tensorflow.keras.layers import Input, LSTM, Dense, Flatten,Conv2D, MaxPooling2D # Define the class of the feature extraction module class FeatureExtractionModule: def __init__(self): # Initialize each subnetwork self.rnn_model = self.create_rnn_model() self.mlp_model = self.create_mlp_model() self.fc_model = self.create_fc_model() self.cnn_model = self.create_cnn_model() def create_rnn_model(self): # Create an RNN model for processing historical medical records inputs = Input(shape=(None, features_size)) # features_sizedepends on data specifics x = LSTM(units=128, return_sequences=False)(inputs) output = Dense(units=feature_vector_size, activation='relu')(x) return Model(inputs=inputs, outputs=output) def create_mlp_model(self): # Create an MLP model for processing laboratory data inputs = Input(shape=(lab_data_size,)) # lab_data_sizedepends on the specific number of lab features x = Dense(units=256, activation='relu')(inputs) x = Dense(units=128, activation='relu')(x) output = Dense(units=feature_vector_size, activation='relu')(x) return Model(inputs=inputs, outputs=output) def create_fc_model(self): # Create a fully connected model for processing basic personal information inputs = Input(shape=(basic_info_size,)) # basic_info_sizedepends on the number of basic info features output = Dense(units=feature_vector_size, activation='relu')(inputs) return Model(inputs=inputs, outputs=output) def create_cnn_model(self): # Create a CNN model for processing medical images inputs = Input(shape=(image_height, image_width, channels)) #Image dimensions and channels x = Conv2D(filters=32, kernel_size=(3, 3), activation='relu')(inputs) x = MaxPooling2D(pool_size=(2, 2))(x) x = Flatten()(x) output = Dense(units=feature_vector_size, activation='relu')(x) return Model(inputs=inputs, outputs=output) def extract_features(self, medical_history, lab_data, basic_info,medical_images): # Use the corresponding model to extract features history_features = self.rnn_model.predict(medical_history) lab_features = self.mlp_model.predict(lab_data) basic_info_features = self.fc_model.predict(basic_info) image_features = self.cnn_model.predict(medical_images) This code provides a framework that shows how to build and use different neural network architectures to process and extract key features from medical data.
[0193] The function of the data fusion module is to integrate the various feature vectors output by the feature extraction module into a single, comprehensive feature representation. This module uses a multi-layer perceptron (MLP) with an attention mechanism. Through the attention mechanism, the module can identify and emphasize the features that contribute most to the final prediction, ensuring that the importance of information is reasonably distributed during the fusion process.
[0194] Furthermore, the data fusion module includes a multi-layer perceptron, an attention mechanism layer and an output generation layer; the multi-layer perceptron is used to receive the time-dependent feature vector, the physiological feature vector, the basic information feature vector and the lesion feature vector, and use multiple fully connected layers to process the received feature vector to obtain a preliminary comprehensive feature representation; the attention mechanism layer is used to receive and process the preliminary comprehensive feature representation to obtain a weighted feature vector; the output generation layer is used to receive the weighted feature vector, and use the fully connected layer to process the received weighted feature vector to obtain a comprehensive feature representation.
[0195] In the general interactive service system provided in this embodiment, the data fusion module plays a vital role. It is responsible for integrating and optimizing the patient data features from different sources to generate the final request parameters. The module consists of three parts: a multi-layer perceptron, an attention mechanism layer, and an output generation layer. Each part has specific functions and processing flows to ensure the accuracy and effectiveness from raw data to final output.
[0196] The multi-layer perceptron part is the first stage of the data fusion module. In this stage, the module receives four different types of feature vectors from the feature extraction module: time-dependent feature vectors, physiological feature vectors, basic information feature vectors, and lesion feature vectors. These feature vectors represent the patient's historical medical records, laboratory test results, basic demographic information, and medical imaging analysis results.
[0197] After receiving these feature vectors, the multi-layer perceptron processes them through multiple fully connected layers. The fully connected layer acts as an information integrator in the neural network, and can fuse various input features through weight and bias adjustment to form a preliminary comprehensive feature representation. This preliminary comprehensive feature representation captures the key information from different data sources and provides a basis for the next step of attention mechanism processing.
[0198] The attention mechanism layer is the second stage of the data fusion module, which receives the preliminary comprehensive feature representation output from the multi-layer perceptron. In this layer, the system evaluates and adjusts the weight of each feature in the final output through a specially designed attention network. The core idea of the attention mechanism is to dynamically weight the features to highlight those that are more important for the prediction task.
[0199] Through the training process, the attention mechanism layer learns how to adjust its weight based on the contribution of the feature. This not only improves the flexibility of feature fusion, but also enhances the adaptability and interpretability of the model to complex data relationships. The feature vector after weight adjustment is more refined, reflecting the actual influence of each feature on the judgment of the patient's condition.
[0200] Finally, the output generation layer receives the weighted feature vectors from the attention mechanism layer and processes them through further fully connected layers to generate a final comprehensive feature representation. This comprehensive feature representation is an in-depth analysis of the patient's comprehensive medical background and is used to generate precise request parameters suitable for interfacing with third-party medical systems.
[0201] The design of the output generation layer ensures that the final feature representation is highly optimized and personalized, so that the generated request parameters can accurately match the needs of the third-party system, thereby improving the efficiency and effectiveness of medical services.
[0202] The entire data fusion module ensures smooth conversion from multi-source medical data to personalized request parameters through these three carefully designed hierarchical structures, supporting data processing requirements in complex medical decision-making processes.
[0203] The following is the reference implementation code of the data fusion module. This code uses the TensorFlow framework to show how to process and fuse feature vectors from different data sources through a multi-layer perceptron (MLP), an attention mechanism layer, and an output generation layer to generate a comprehensive feature representation.
[0204] import tensorflow as tf from tensorflow.keras.layers import Input, Dense, Concatenate, Layer from tensorflow.keras.models import Model class AttentionLayer(Layer): def __init__(self, kwargs): super(AttentionLayer, self).__init__( kwargs def build(self, input_shape): # Weights and biases in the attention layer self.W = self.add_weight(name="att_weight", shape=(input_shape[-1], 1), initializer="random_normal") self.b = self.add_weight(name="att_bias", shape=(input_shape[1],), initializer="zeros") super(AttentionLayer, self).build(input_shape) def call(self, inputs): # Attention mechanism for weighting input features e = tf.nn.relu(tf.tensordot(inputs, self.W, axes=1) + self.b) alpha = tf.nn.softmax(e, axis=1) context = inputs alpha return tf.reduce_sum(context, axis=1) def create_data_fusion_module(): # Input layer, receiving different types of feature vectors from the feature extraction module input_time_series = Input(shape=(feature_size,), name="time_series_input") input_biomarkers = Input(shape=(feature_size,), name="biomarkers_input") input_basic_info = Input(shape=(feature_size,), name="basic_info_input") input_medical_images = Input(shape=(feature_size,), name="medical_images_input") # Connect all feature inputs concatenated_features = Concatenate()([input_time_series, input_biomarkers, input_basic_info, input_medical_images]) # Multi-layer perceptron (MLP) is used to initially integrate features x = Dense(128, activation='relu')(concatenated_features) x = Dense(64, activation='relu')(x) # Attention mechanism layer, dynamically adjust feature weights attention_output = AttentionLayer()(x) # Output generation layer, further process features to generate the final comprehensive feature representation final_output = Dense(32, activation='relu')(attention_output) model_output = Dense(output_feature_size, activation='sigmoid',name="final_output")(final_output) # Build and compile the model model = Model(inputs=[input_time_series, input_biomarkers, input_basic_info, input_medical_images], outputs=model_output) model.compile(optimizer='adam', loss='mse') # Use mean squared error loss and Adam optimizer return model # Instantiate and use the model data_fusion_model = create_data_fusion_module() # Print model structure overview print(data_fusion_model.summary()) In the code, the `AttentionLayer` class implements a custom attention layer to dynamically adjust the weight of each feature in the model according to its importance. The `create_data_fusion_module` function builds the entire data fusion model, which first processes various types of input features through a multi-layer perceptron, then weights these features through an attention mechanism layer, and finally generates a comprehensive feature representation for medical requests through an output generation layer.
[0205] Finally, the output generation module receives the output of the data fusion module, i.e., the comprehensive feature representation, and passes it through a generation network for final processing. This generation network is responsible for converting the comprehensive data features into specific request parameters, which will be directly used for interaction with third-party systems, such as specifying API endpoints, query fields, and expected data formats.
[0206] Furthermore, the generation network in the output generation module includes a conditional layer and an output layer; the conditional layer is used to receive the comprehensive feature representation provided by the data fusion module; the received comprehensive feature representation is processed using a conditional generation neural network to obtain a comprehensive health feature condition; the output layer is used to receive the comprehensive health feature condition provided by the conditional layer, and use a fully connected network and a nonlinear activation function to process the received comprehensive health feature condition to generate request parameters for a third-party system.
[0207] In the general interactive service system, the output generation module is the key part for finally generating the request parameters for the third-party medical system. This module adopts a generation network, including a conditional layer and an output layer, to ensure that the most suitable medical request parameters are formulated according to the comprehensive health characteristics of the patient.
[0208] The main function of the conditional layer is to receive the comprehensive feature representations from the data fusion module. These feature representations are a comprehensive reflection of the patient's health status, covering all kinds of information from basic physiological data to complex medical imaging data. In the conditional layer, conditional generative neural networks (CGANs) are used to process these features. The application of CGAN here is to generate a conditional health feature state based on the comprehensive health features, which can reflect the patient's specific needs and possible medical priorities.
[0209] Subsequently, this processed comprehensive health feature condition is passed to the output layer. The function of the output layer is to further process these conditions through a series of fully connected network layers and non-linear activation functions (such as ReLU or LeakyReLU). This processing step not only increases the network's ability to handle non-linear relationships, but also ensures the accuracy and applicability of the output. Non-linear activation functions play a key role here, allowing the model to learn and represent very complex function mapping relationships, which cannot be achieved by directly processing linear relationships.
[0210] Finally, the output layer generates customized request parameters for third-party systems. These parameters may include, but are not limited to, the selection of API endpoints, the data fields to be queried, and the expected data return format. Through such a processing flow, it is ensured that the generated request parameters can accurately match the requirements of the third-party system, thereby improving the efficiency and accuracy of data exchange in actual applications.
[0211] The design and implementation of the entire output generation module takes into account every detail from receiving input to generating output, ensuring that the generated request parameters are not only scientific and accurate, but also highly personalized and adaptable. In this way, the universal interactive service system can provide efficient and accurate data interaction support for medical institutions, greatly improving the quality and response speed of medical services.
[0212] The following is the reference implementation code of the output generation module, which includes how to receive the comprehensive feature representation from the data fusion module and generate request parameters for the third-party system through the conditional generative neural network and the fully connected layer.
[0213] import tensorflow as tf from tensorflow.keras.layers import Dense, Input, Activation from tensorflow.keras.models import Model def create_output_generation_module(): # The comprehensive feature representation output by the data fusion module is used as input input_feature = Input(shape=(integrated_feature_size,), name="integrated_feature_input") # Conditional layer: Use conditional generative neural network to process comprehensive feature representation # The conditional layer can further process features to prepare for generating request parameters condition_layer = Dense(128, name="condition_layer")(input_feature) condition_layer = Activation('relu', name="condition_activation")(condition_layer) # Output layer: Use a fully connected network and a nonlinear activation function to process the output of the conditional layer # This layer is responsible for generating the final request parameters, such as API endpoints, query fields, etc. output_layer = Dense(64, name="output_layer")(condition_layer) output_layer = Activation('relu', name="output_activation")(output_layer) # Assume that the parameters to be generated include API endpoints and query fields api_endpoint = Dense(10, activation='softmax', name="api_endpoint")(output_layer) query_fields = Dense(20, activation='softmax', name="query_fields")(output_layer) # Build the model model = Model(inputs=input_feature, outputs=[api_endpoint, query_fields]) model.compile(optimizer='adam', loss='categorical_crossentropy',metrics=['accuracy']) return model # Instantiate the output generation module output_generation_model = create_output_generation_module() # Print model structure print(output_generation_model.summary()) # Assume that api_endpoint outputs the index of the API endpoint, and query_fields outputs the index of the data field to be queried # These outputs can be used directly to construct requests to third-party systems In this code, we first define the input layer that receives the output of the data fusion module. Then, the conditional layer processes these inputs using a fully connected layer and a ReLU activation function to generate a conditional health feature state. Then, the output layer further processes this state, also using a fully connected layer and a ReLU activation function, and finally generates two types of outputs: API endpoints and query fields.
[0214] In a medical data interaction system, the generated request parameters usually include but are not limited to API endpoints and query fields. The following are several detailed examples of how these request parameters are constructed and applied to actual medical data interaction scenarios: Example 1: Basic health query for patients API endpoint: ` / api / patient_basic_health` Query fields: `['patient_id', 'blood_pressure', 'heart_rate']` The generation of this request parameter may be based on the patient's basic health characteristics. The system may recognize that requests for this type of information are usually focused on blood pressure and heart rate, so the corresponding API endpoint and query fields are selected to quickly retrieve these commonly monitored indicators.
[0215] Example 2: Advanced diagnostic data request API endpoint: ` / api / advanced_diagnostic_data` Query fields: `['patient_id', 'MRI', 'CT_scan']` In scenarios where complex diagnostic data is needed, such as neurological disease or cancer diagnosis, the generated request parameters select the API endpoints for obtaining MRI and CT scan results. In this way, the system can adjust the request based on the comprehensive feature representation provided, ensuring that medical professionals can obtain critical imaging diagnostic data.
[0216] Example 3: Personalized drug treatment plan API endpoint: ` / api / prescription_details` Query fields: `['patient_id', 'current_medications', 'allergies', 'genetic_markers']` When processing personalized medication regimens, the request parameter generation mechanism considers information such as the patient's current medications, allergy history, and genetic markers. The selection of these fields helps ensure that the healthcare system can provide the safest and most effective medication recommendations.
[0217] Example 4: Long-term health management API endpoint: ` / api / long_term_health_management` Query fields: `['patient_id', 'treatment_history', 'dietary_preferences','exercise_routine']` For long-term health management, the generated request parameters may need to cover information such as treatment history, dietary preferences, and exercise habits, which helps build a comprehensive health management plan.
[0218] These examples show how to generate specific request parameters based on different medical needs and the patient's health status. The generated parameters accurately correspond to the needs of various medical scenarios, and the accuracy and efficiency of data interaction are ensured through precise API endpoints and meticulous query field settings. This personalized and precise request generation mechanism greatly improves the response speed and quality of medical services.
[0219] This design enables the output layer to not only process complex data relationships, but also generate precise request parameters, which is suitable for actual medical data interaction scenarios. The implementation of this model ensures a high degree of personalization and adaptability, so that the general interactive service system can effectively meet the needs of different medical scenarios.
[0220] The entire neural network model is designed to provide a continuous processing flow from data input to request parameter output, and each step is carefully designed to ensure that every aspect of the data is fully utilized and reflected in the final request parameters. This not only improves the efficiency and accuracy of data processing, but also ensures that the generated request parameters can accurately match the needs of the third-party system, thereby improving the performance and response speed of the entire medical service system.
[0221] Training the neural network model for request parameter generation is a precise and systematic process involving a series of detailed steps from data collection to model deployment. This process ensures that the model can effectively learn and adapt to the complexity of medical data to generate accurate request parameters. The following are the specific steps for model training: Step 1: Data collection and preprocessing First, the system must collect a variety of medical data including patients' historical medical records, laboratory results, basic personal information, and medical images. These data go through preprocessing steps such as cleaning, denoising, and normalization to ensure data quality and consistency, laying a solid foundation for subsequent model training.
[0222] Step 2: Model training Feature extraction training: In this phase, the system processes different types of input data using neural network structures suitable for each type of data (such as recurrent neural networks, multi-layer perceptrons, fully connected layers, and convolutional neural networks) to extract key health and physiological features.
[0223] Data fusion module training: Then, a multi-layer perceptron with an attention mechanism is used to synthesize and optimize the extracted feature vectors, focusing on key features to improve the prediction accuracy and relevance of the model.
[0224] Output generation module training: Use the conditional generation network to process the fused features and generate refined request parameters. In this stage, the network structure of the conditional layer and the output layer is optimized to ensure that the request parameters generated in the end can accurately meet the needs of the third-party system.
[0225] Step 3: Model evaluation and testing After the model training is completed, a series of rigorous testing and evaluation procedures, including cross-validation and performance evaluation (such as accuracy, generation speed, etc.), are used to verify the effectiveness and reliability of the model to ensure that its performance in actual medical data interaction meets the expected standards.
[0226] Step 4: Model deployment and implementation The fully tested and verified model is then deployed to the medical service system to start processing medical data in real time, and to conduct effective data interaction with third-party medical systems based on the request parameters generated by the model, thereby optimizing the allocation and utilization of medical resources.
[0227] Step 5: Continuous monitoring and iterative updates After the model is deployed, the system will continuously monitor the model's operating performance and actual results, regularly collect new data, and iterate and optimize the model based on this data to ensure that the model can adapt to the ever-changing needs and challenges in the medical field and continue to provide accurate and effective data services.
[0228] Through such a detailed training and deployment process, the general interactive service system can ensure that it provides data support to medical institutions efficiently and accurately, greatly improving the quality and response speed of medical services.
[0229] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
Claims
1. A general interactive service system based on hospital big data, characterized in that: Includes the general interactive service main program and platform configuration management program; The general interactive service main program is used to integrate the configuration, request processing and logging of the hospital service bus; The general interactive service main program includes: An interface module is used to process interface data of standard interfaces and non-standard interfaces from external systems and send the processed interface data to the verification module; The verification module is used to receive the processed interface data from the interface module; use database matching technology to verify whether the caller has data access rights to the processed interface data; and transmit the successfully verified data to the calling module; The calling module is used to generate request parameters for the third-party system based on the successfully verified data transmitted by the verification module; call the third-party system interface according to the generated request parameters; receive and process the response data returned by the third-party system interface; send the processing results of the response data to the log module for recording and analysis; send the processing results of the response data to the scheduled task module for asynchronous task processing and data persistence; A log module, used to receive the processing result of the response data from the calling module; based on the processing result of the received response data, record the call log of each interface call; the call log includes the generated request parameters and the response data of the third-party system; The timing task module is used to receive the processing results of the response data from the calling module; according to the processing results of the received response data, it processes the data backup tasks and long-term data storage tasks to optimize the system response time and improve the data processing efficiency; The platform configuration management program is connected to the general interactive service main program and is used to provide a user interface; the user interface allows the user to set interface parameters including data format, transmission protocol and security configuration for standard interfaces and non-standard interfaces; allows the user to define and modify the security policy and access permission rules used by the verification module; and allows the user to set the log module; Among them, the interface module, verification module, calling module, log module and scheduled task module exchange data through the hospital service bus implemented by the microservice architecture.
2. The universal interactive service system according to claim 1, characterized in that: The interface module includes an adapter, which is used to dynamically identify and convert data formats from standard interfaces and non-standard interfaces of external systems.
3. The universal interactive service system according to claim 1, characterized in that: The verification module includes a security token unit, which is used to verify the identity and access level of the caller before processing the interface data.
4. The universal interactive service system according to claim 1, characterized in that: The calling module generates a neural network model using a trained request parameter to generate a request parameter for a third-party system; wherein the request parameter generating neural network model includes a feature extraction module, a data fusion module and an output generation module; The feature extraction module is used to receive the patient's historical medical record data, laboratory data, basic information data and medical image data; use a recurrent neural network structure to process the patient's historical medical record data to obtain a time-dependent feature vector; use a multi-layer perceptron to process the patient's laboratory data to obtain a physiological feature vector including key biomarkers and health indicators; use a fully connected layer to process the patient's basic information data to obtain a basic information feature vector; use a convolutional neural network to process the patient's medical image data to obtain a lesion feature vector; The data fusion module is used to receive the time-dependent feature vector, the physiological feature vector, the basic information feature vector and the lesion feature vector, and use a multi-layer perceptron including an attention mechanism to perform fusion processing on the received feature vectors to obtain a comprehensive feature representation; The output generation module is used to receive the comprehensive features provided by the data fusion module, process the received data representation using a generation network, and generate request parameters for the third-party system.
5. The universal interactive service system according to claim 4, characterized in that: The data fusion module includes a multi-layer perceptron, an attention mechanism layer and an output generation layer; the multi-layer perceptron is used to receive the time-dependent feature vector, the physiological feature vector, the basic information feature vector and the lesion feature vector, and uses multiple fully connected layers to process the received feature vectors to obtain a preliminary comprehensive feature representation; the attention mechanism layer is used to receive and process the preliminary comprehensive feature representation to obtain a weighted feature vector; the output generation layer is used to receive the weighted feature vector, and uses a fully connected layer to process the received weighted feature vector to obtain a comprehensive feature representation.
6. The universal interactive service system according to claim 4, characterized in that: The generation network in the output generation module includes a conditional layer and an output layer; the conditional layer is used to receive the comprehensive feature representation provided by the data fusion module; the received comprehensive feature representation is processed using a conditional generation neural network to obtain a comprehensive health feature condition; The output layer is used to receive the comprehensive health characteristic conditions provided by the condition layer, process the received comprehensive health characteristic conditions using a fully connected network and a nonlinear activation function, and generate request parameters for the third-party system.
7. The universal interactive service system according to claim 1, characterized in that: The calling module includes an error handling submodule, and the error handling submodule is used to handle errors or abnormal responses returned by the third-party system interface.
8. The universal interactive service system according to claim 1, characterized in that: The log module includes a data encryption function for protecting log data during storage and transmission.
9. The universal interactive service system according to claim 1, characterized in that: The platform configuration management program includes a real-time monitoring interface for displaying the status and performance indicators of all current interfaces.
10. The universal interactive service system according to claim 1, characterized in that: The platform configuration management program includes a user authority management subsystem for allocating and managing different users' access and modification authority to interface parameters.
Citation Information
Patent Citations
Distributed intelligent diagnosis method, device and equipment for head and neck tumors and storage medium
CN115831350A
Method and system for detecting clinical tissue pathological section quality
CN116486215A
Micro-service system based on hospital big data
CN116991929A
Medical image report generation method based on double-branch feature fusion
CN117198497A
Medical software application and medical communication services software application
US20130110547A1
Cited By
Data processing method and device, electronic equipment and storage medium
CN119248288A
Financial service platform and method supporting dynamic product access and data backflow
CN119676264A
Intelligent interaction method and system for improving hospital patient service and information collaboration
CN121641494A
