Data acquisition system of medicine quality detection instrument
Through the drug quality testing instrument data collection system, the combination of the instrument interface module and the central data processing platform solves the problems of different brands and model instruments data formats and transmission protocols. And processing efficiency and accuracy.
Patent Information
- Application Number
- CN202411495147.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2025-01-24
AI Technical Summary
The data collection and processing of drug quality detection instruments have problems with inconsistent data formats and transmission protocols of different brands and models, which leads to difficulties in unified management and analysis of data. Due to inadequate interfaces, data cannot be uploaded in real time and accurately, affecting the data. Timeliness and accuracy of processing.
Provide a drug quality detection instrument data collection system, including the instrument interface module and the central data processing platform. The instrument interface module preliminary processing and format conversion of the received data is transmitted to the central data processing platform. The central data processing platform receives data in real time, analyzes, organizes and verified data to ensure the accuracy and reliability of the data.
Through automated data collection and processing, artificial intervention has been reduced, the efficiency and accuracy of data collection are improved, real -time monitoring and early warning of the quality of drugs is realized, and labor costs and management costs are reduced.
Smart Images

Figure CN119357127A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of tablet quality detection, and in particular to a drug quality detection instrument data acquisition system. Background Art
[0002] In the field of drug production and quality control, the use of drug quality testing instruments is crucial. These instruments can accurately measure and analyze various key parameters of drugs, thereby ensuring that the quality of drugs meets relevant standards and regulations. The traditional data collection method commonly used for drug quality testing is manual data entry, which is slow, especially when faced with large amounts of data. Due to the limited attention of people, errors are easy to occur during the long data entry process, and errors or missing data may occur. If the data entry process is interrupted or unexpected situations occur (such as computer crashes, file loss, etc.), some data may be lost.
[0003] However, there are many challenges in the data collection and processing of automatic drug quality testing instruments. On the one hand, drug quality testing instruments of different brands and models often use different data formats and transmission protocols, which makes unified data management and analysis extremely difficult. On the other hand, due to the incompatibility of interfaces, many instruments cannot upload data in real time and accurately, thus affecting the timeliness and accuracy of data processing. Summary of the invention
[0004] Aiming at the problem that drug quality testing instruments of different brands and models use different data formats and transmission protocols in data collection and processing, resulting in difficulties in unified management and analysis of data, as well as incompatibility of interfaces in instrument data transmission, the present invention provides a drug quality testing instrument data collection system.
[0005] The technical solution of the present invention provides a drug quality testing instrument data acquisition system, including an instrument interface module and a central data processing platform, wherein the drug quality testing instrument is connected to the central data processing platform via the instrument interface module or directly; After the instrument interface module performs preliminary processing and format conversion on the data sent by the drug quality testing instrument, it triggers information transmission and transmits the data to the central data processing platform; The central data processing platform receives data from drug quality testing instruments or instrument interface modules in real time, parses the received data according to the data transmission protocol, extracts key information of the data, organizes the parsed data according to a predetermined data structure, verifies the organized data and outputs the verification results; the key information includes the identification of the testing instrument, the test items, the data value, and the timestamp.
[0006] Through the preliminary processing and format conversion of the instrument interface module, the processing burden of the central data processing platform is reduced and the overall efficiency of data acquisition is improved. The data format conversion function of the instrument interface module ensures that drug quality testing instruments of different brands and models can provide data in a unified format to the central data processing platform, enhancing the compatibility and scalability of the system. The central data processing platform parses, organizes and verifies the received data to ensure the accuracy and reliability of the data, providing strong support for subsequent data analysis and decision-making. The system can receive and process data from drug quality testing instruments in real time, realize real-time monitoring and early warning of drug quality, and help to timely discover and deal with quality problems. By automating the collection, processing and verification of data, the need for manual intervention is reduced, labor costs are reduced, and work efficiency is improved.
[0007] As a preferred embodiment of the technical solution of the present invention, the instrument is registered and configured in the central data processing platform system according to the type and parameters of the detection instrument; the type and parameters of the detection instrument include the name, model, serial number, detection items, and working parameters of the instrument; after the configuration is completed, the instrument interface module communicates with the detection instrument; The instrument interface module receives data from the detection instrument in real time; performs preliminary processing on the received data, and performs unit conversion or scale conversion on the data as needed, and converts the data after preliminary processing into a format that meets the system transmission requirements; and transmits the format-converted data to the central data processing platform through the set communication protocol.
[0008] The registration and configuration of instruments through the central data processing platform system realizes the centralized management and rapid configuration of the detection instruments, reduces the management cost and improves the management efficiency. The instrument interface module can identify and connect to detection instruments of different brands and models, realizes the unified reception and processing of data, and enhances the compatibility and scalability of the system. By performing preliminary processing and unit conversion / scale transformation on the received data, the instrument interface module ensures the accuracy and consistency of the data, and provides a reliable basis for subsequent data analysis and decision-making. The instrument interface module can receive and process the data of the detection instrument in real time, and transmit the data to the central data processing platform in time, realizing the real-time and high efficiency of the data. By setting the communication protocol and data format conversion, the instrument interface module ensures the security and reliability of data transmission, and reduces the risk and error rate in the data transmission process.
[0009] As a preferred embodiment of the technical solution of the present invention, the central data processing platform is integrated with a protocol formulation module for defining the data transmission protocol, including the frame structure of the data, the encapsulation and decapsulation method of the data packet, the data verification and error correction mechanism; and specifies the timing and frequency of data transmission.
[0010] As a preferred embodiment of the technical solution of the present invention, the central data processing platform receives data from the detection instrument or the instrument interface module in real time through the data transmission line and stores the received data in a temporary buffer; reads the data from the temporary buffer, and parses it according to the data transmission protocol to extract key information of the data.
[0011] By defining a clear data transmission protocol, including the frame structure of the data, encapsulation and decapsulation methods, verification and error correction mechanisms, etc., the accuracy and reliability of data transmission are ensured. This reduces the error rate and loss rate during data transmission and improves the integrity and availability of data. The use of a temporary buffer enables data to be stored continuously during the reception process, avoiding data loss and repeated processing. At the same time, parsing and extracting data according to the data transmission protocol can efficiently extract key information from the data, providing convenience for subsequent data processing and analysis. The protocol formulation module allows the data transmission protocol to be flexibly defined according to business needs and technical specifications, which enables the system to adapt to different brands and models of testing instruments and enhances the scalability and flexibility of the system. The central data processing platform can receive and process data from the testing instrument or instrument interface module in real time, ensuring the real-time and high efficiency of the data. This helps to detect and deal with quality problems in a timely manner and improves the efficiency and accuracy of drug quality testing.
[0012] As a preferred embodiment of the technical solution of the present invention, the central data processing platform is integrated with a data verification module, which is used to check whether the logical relationship between the data is reasonable based on the logical constraints of the parameters. If a contradiction or unreasonable relationship is found between the data, it is marked as logical inconsistency; the data value is checked according to the pre-set numerical range of each detection item. If the data value exceeds the allowable range, it is determined to be a numerical anomaly and marked as a numerical anomaly.
[0013] The data verification module is also used to obtain the performance parameters of the detection instrument, compare the actually collected data with the preset parameter range of the performance parameters, and if the data exceeds the error range allowed by the instrument performance, mark the response data as an instrument performance abnormality; it is also used to check whether the timestamp of the data is normal; if it is found that the timestamp jumps, repeats, or the difference with the system time is greater than the set threshold, the corresponding data will be marked as a timestamp abnormality.
[0014] Through multiple checks of logical consistency, numerical range, instrument performance and timestamp, anomalies and errors in the data can be fully discovered, thereby improving the accuracy and reliability of the data. The data verification module can automatically check the data, reduce the error rate and omission rate of manual inspection, and ensure the accuracy and consistency of data processing. By checking the performance parameters of the instrument, abnormal instrument performance can be discovered in time, data errors caused by instrument failure can be avoided, and the stability and reliability of the system can be enhanced. Timestamp verification ensures the timeliness of the data, avoids data confusion or delays caused by timestamp errors, and helps relevant personnel to obtain and process data in a timely manner.
[0015] As a preferred embodiment of the technical solution of the present invention, the central data processing platform is integrated with an error handling module, which is used to classify errors according to their types when errors are found during data verification, generate a unique error identifier for each error, and record the error information in detail in the error log; send notifications and alarm information to relevant personnel according to the preset notification strategy and clearly indicate the nature and severity of the error in the alarm information; Among them, the types of errors include logical inconsistency, numerical anomalies, instrument performance anomalies, and timestamp anomalies; the error information includes the time when the error occurred, the identification of the detection instrument, the detection item, the error type, and the original data value.
[0016] There are multiple data correction algorithms preset in the error handling module. Different data correction algorithms are associated with corresponding error types. When a data error is found, the corresponding data correction algorithm is called according to the error type to correct the data. If the data error cannot be corrected automatically, the data will be marked as invalid data and a prompt message will be output; after the data is corrected or restored, the data verification module is triggered to re-verify the processed results.
[0017] The data verification and error handling modules can detect and correct errors in the data in a timely manner, thereby improving the accuracy and reliability of the data. The error handling module can classify and handle errors according to different error types and generate unique error identifiers, which helps relevant personnel quickly locate and solve problems, reducing the impact of errors on data analysis and decision-making. The preset data correction algorithm can automatically try to correct data errors, reducing the need for manual intervention and enhancing the automation and robustness of the system. Through the step of re-verifying the data, it is ensured that the corrected data still meets the logical constraints and numerical range requirements, maintaining the integrity and consistency of the data.
[0018] As a preferred embodiment of the technical solution of the present invention, the central data processing platform is integrated with an electronic signature management module; The central data processing platform receives the user's registration information and reviews it. After the review is passed, the user's role and authority are determined, and a digital certificate is issued to the user. When the user performs data operations on the central data processing platform, the platform system calls the electronic signature management module to use the user's private key to encrypt the data, obtain an electronic signature, and save or transmit the electronic signature together with the data. The user includes data reviewers and operators of the central data processing platform. When the electronic signature of data needs to be verified, the system calls the electronic signature management module to use the public key corresponding to the digital certificate to decrypt the electronic signature. If the decrypted data is consistent with the original data, the verification passes; if the decrypted data is inconsistent with the original data, the verification fails.
[0019] Through the electronic signature management module, the platform system can encrypt the user's data operations, generate electronic signatures, ensure the integrity and non-tamperability of the data, and thus improve the security of the data. The issuance and use of digital certificates effectively verify and protect the user's identity information, preventing intrusion and malicious operations by illegal users. As a legally recognized electronic authentication method, electronic signatures can enhance the credibility and authority of the central data processing platform, making data operations on the platform more standardized and legal. Different operating permissions are assigned according to the user's role and authority, which can ensure that users can only perform data operations within the scope of their responsibilities, avoiding the risk of abuse of authority and misoperation. The use of electronic signatures and digital certificates enables the data operation process to be effectively recorded and traced, facilitating subsequent data audits and troubleshooting.
[0020] As a preferred embodiment of the technical solution of the present invention, a time synchronization client is configured on the central data processing server and each drug quality detection instrument, and the client communicates and synchronizes with a selected time source; the client periodically requests time information from the time source, and adjusts the local corresponding central data processing server and drug quality detection instrument time according to the feedback from the time source, and the time source includes a network time protocol server or a global positioning system time signal.
[0021] By regularly synchronizing with the time source, the time of the central data processing server and the drug quality testing instrument can be ensured to be accurate, avoiding data inconsistencies or errors caused by time deviations. Time synchronization is an important basis for ensuring data integrity and traceability. Accurate timestamps can ensure the authenticity and reliability of data, facilitating subsequent data analysis and troubleshooting. Time synchronization can reduce system conflicts and errors caused by time inconsistencies and improve system stability and performance. At the same time, accurate timestamps help optimize the efficiency of data processing and transmission. In areas such as drug quality testing, accurate timestamps are an important basis for data audits and compliance checks. Time synchronization can ensure the integrity and authenticity of data and meet the requirements of relevant laws and regulations. Accurate time synchronization can enhance the credibility and authority of the system, making data operations in the system more standardized and legal, and enhancing users' trust in the system.
[0022] It can be seen from the above technical solutions that the present invention has the following advantages: through the instrument interface module, the system can receive data from different brands and models of drug quality testing instruments in real time without manual intervention, which greatly improves the efficiency of data collection.
[0023] The instrument interface module performs preliminary processing and format conversion on the received data, so that the data generated by different instruments can be unified into a format that meets the system transmission requirements, thereby facilitating the subsequent processing and analysis of the data. The central data processing platform can receive and parse data from the instrument interface module or directly from the instrument in real time, extract key information, and organize it according to the predetermined data structure. This not only improves the accuracy of data processing, but also makes the data easier to manage and analyze. The system allows the registration and configuration of instruments according to the type and parameters of the detection instrument, thereby achieving flexible support for different instruments. This function enables the system to adapt to the needs of different drug quality detection instruments and improves the versatility and scalability of the system. The central data processing platform verifies the organized data and outputs the verification results, which helps to promptly discover and handle errors or anomalies in the data and ensure the accuracy and reliability of the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0025] Figure 1 is a schematic block diagram of a system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] like Figure 1 As shown, an embodiment of the present invention provides a drug quality detection instrument data acquisition system, including an instrument interface module and a central data processing platform, and the drug quality detection instrument is connected to the central data processing platform through the instrument interface module or directly; After the instrument interface module performs preliminary processing and format conversion on the data sent by the drug quality testing instrument, it triggers information transmission and transmits the data to the central data processing platform; The central data processing platform receives data from drug quality testing instruments or instrument interface modules in real time, parses the received data according to the data transmission protocol, extracts key information of the data, organizes the parsed data according to a predetermined data structure, verifies the organized data and outputs the verification results; the key information includes the identification of the testing instrument, the test items, the data value, and the timestamp.
[0028] The drug quality testing instrument starts testing and generates raw data; the instrument interface module receives the raw data from the drug quality testing instrument. The instrument interface module performs preliminary processing on the received raw data, including removing invalid data, data smoothing, noise filtering, etc. According to the system requirements, the instrument interface module performs format conversion on the data after preliminary processing to ensure that the data format meets the acceptance standards of the central data processing platform. The instrument interface module triggers the information transmission mechanism and transmits the format-converted data to the central data processing platform. If the drug quality testing instrument is directly connected, the data is directly transmitted to the central data processing platform, skipping the preliminary processing and format conversion steps of the instrument interface module. The central data processing platform receives data from the instrument interface module or directly from the drug quality testing instrument in real time. According to the data transmission protocol, the central data processing platform parses the received data and extracts key information, such as the identification of the testing instrument, the test items, the data value, the timestamp, etc. The central data processing platform organizes the parsed data according to the predetermined data structure to ensure the logic and consistency of the data. The organized data is verified, including data integrity verification, data range verification, etc., to ensure the accuracy and reliability of the data. Output the verification results, and perform error processing or mark the data that fails the verification as abnormal data.
[0029] In some embodiments, the instrument is registered and configured in the central data processing platform system according to the type and parameters of the detection instrument; the type and parameters of the detection instrument include the name, model, serial number, detection items, and working parameters of the instrument; after the configuration is completed, the instrument interface module communicates with the detection instrument; The instrument interface module receives data from the detection instrument in real time; performs preliminary processing on the received data, and performs unit conversion or scale conversion on the data as needed, and converts the data after preliminary processing into a format that meets the system transmission requirements; and transmits the format-converted data to the central data processing platform through the set communication protocol.
[0030] In the central data processing platform system, the administrator registers the instrument according to the type and parameters of the testing instrument. This includes entering key information such as the instrument name, model, serial number, test items, and working parameters. The system verifies whether the input instrument information is complete and correct, ensuring that each instrument has a unique identification and accurate configuration information. After the configuration is completed, the system stores the relevant information of the instrument in the database for subsequent data processing and management. The instrument interface module identifies and connects to the corresponding testing instrument based on the registered and configured information. After establishing the communication connection, the instrument interface module performs a handshake protocol with the testing instrument to ensure that both parties can communicate normally. According to the communication protocol and data format of the testing instrument, the instrument interface module sets the corresponding receiving and sending parameters. The instrument interface module monitors the data output of the testing instrument in real time to ensure that the data can be received as soon as possible. The received data is preliminarily processed, including data integrity check, outlier removal, etc. According to the needs of the test project, the instrument interface module performs unit conversion or scale conversion on the data to ensure data consistency and comparability. The instrument interface module converts the preliminarily processed data into a format that meets the system transmission requirements. This may include adjustment of the data structure, conversion of data types, etc. According to the set communication protocol, the instrument interface module packages the data and sends it to the central data processing platform. The central data processing platform receives and parses the data packets to verify the integrity and accuracy of the data.
[0031] In some embodiments, the central data processing platform is integrated with a protocol formulation module for defining the data transmission protocol, including the frame structure of the data, the encapsulation and decapsulation method of the data packet, the data verification and error correction mechanism; and specifies the timing and frequency of data transmission.
[0032] The central data processing platform receives data from the detection instrument or the instrument interface module in real time through the data transmission line and stores the received data in a temporary buffer; reads the data from the temporary buffer, and parses it according to the data transmission protocol to extract key information of the data.
[0033] In the central data processing platform, the protocol formulation module defines the data transmission protocol based on business requirements and technical specifications. This includes determining the data frame structure, the encapsulation and decapsulation methods of data packets, the data verification and error correction mechanism, and specifying the timing and frequency of data transmission.
[0034] Configure the defined data transmission protocol to the central data processing platform and the instrument interface module to ensure that both parties can communicate according to the protocol. The specific configuration process includes: In the software system of the central data processing platform, find the configuration module or setting area for the data transmission protocol. Import or load the defined data transmission protocol file (which may be XML, JSON or other formats) into the module. According to the specific content of the protocol, set the relevant parameters, such as frame structure, data packet format, verification method, error correction mechanism, etc. Make sure that these parameters match the configuration of the instrument interface module to ensure that both parties can correctly understand and process the data. Configure the data receiving interface of the central data processing platform to ensure that it can receive data from the instrument interface module as required by the protocol. Set parameters such as the buffer size and timeout period for data reception to ensure the integrity and real-time nature of the data. After the configuration is completed, perform a communication test to ensure that the central data processing platform can correctly receive and parse the data from the instrument interface module. Check the integrity, accuracy and real-time nature of the data, as well as whether there are any communication errors or data loss.
[0035] Import or load the same data transmission protocol file as that of the central data processing platform into the configuration area of the instrument interface module. According to the specific content of the protocol, set the relevant parameters of the instrument interface module, such as the frame structure, data packet format, and verification method of the sent data. Make sure that these parameters match the configuration of the central data processing platform to ensure that both parties can communicate correctly. Configure the communication interface of the instrument interface module, such as the serial port, network port, etc., to ensure that it can transmit data to the central data processing platform as required by the protocol. Set the baud rate, data bit, stop bit and other parameters of the communication interface to ensure the correct transmission of data. After the configuration is completed, perform a data transmission test to ensure that the instrument interface module can correctly send data to the central data processing platform as required by the protocol.
[0036] During the configuration process, it is important to ensure that the data transmission protocols used by the central data processing platform and the instrument interface module are completely consistent, including frame structure, data packet format, verification method, etc. During the configuration process, pay attention to check whether the relevant parameters of both parties match to ensure smooth communication. After the configuration is completed, be sure to perform communication tests and data transmission tests to ensure the correctness and reliability of the system.
[0037] The central data processing platform receives data from the detection instrument or instrument interface module in real time through the data transmission line. The received data is stored in a temporary buffer to wait for subsequent parsing and processing. The design of the temporary buffer ensures the continuity and integrity of the data during the receiving process. The central data processing platform reads the data from the temporary buffer and parses it according to the data transmission protocol. During the parsing process, the system identifies the start and end positions of the data packet according to the frame structure, and extracts the content of the data packet according to the encapsulation and decapsulation methods. The data packet is verified to check the integrity and accuracy of the data. If there is an error in the data, the system will try to repair it using an error correction mechanism or mark it as erroneous data. After the data verification is passed, the system extracts key information of the data, such as the identification of the detection instrument, the detection item, the data value, the timestamp, etc., to provide a basis for subsequent data processing and analysis.
[0038] In some embodiments, the central data processing platform is integrated with a data verification module for checking whether the logical relationship between the data is reasonable based on the logical constraints of the parameters. If a contradiction or unreasonable relationship is found between the data, it is marked as a logical inconsistency; the data value is checked according to the pre-set numerical range of each detection item. If the data value exceeds the allowable range, it is determined to be a numerical anomaly and marked as a numerical anomaly.
[0039] The data verification module is also used to obtain the performance parameters of the detection instrument, compare the actually collected data with the preset parameter range of the performance parameters, and if the data exceeds the error range allowed by the instrument performance, mark the response data as an instrument performance abnormality; it is also used to check whether the timestamp of the data is normal; if it is found that the timestamp jumps, repeats, or the difference with the system time is greater than the set threshold, the corresponding data will be marked as a timestamp abnormality.
[0040] The data verification module reads the preprocessed data and checks whether the logical relationship between the data is reasonable according to the predefined logical constraint rules (such as the dependency relationship and mutual exclusion relationship between parameters). If it is found that there is a contradiction or unreasonable relationship between the data, such as the values of two mutually dependent parameters are inconsistent, or the mutually exclusive parameters are set to valid values at the same time, the data will be marked as logically inconsistent.
[0041] The data verification module checks the data values according to the preset value range of each test item (such as minimum value, maximum value, allowed range of variation, etc.). If the data values are found to be beyond the allowed range, the data are marked as abnormal values.
[0042] The data verification module obtains the performance parameters of the detection instrument, which usually include information such as the accuracy, stability, and repeatability of the instrument. The actual collected data is compared with the preset parameter range of the performance parameters to evaluate whether the data error is within the range allowed by the instrument performance. If the data is found to exceed the error range allowed by the instrument performance, the data will be marked as abnormal instrument performance.
[0043] The data verification module checks the timestamp information of the data, including the continuity, uniqueness and synchronization of the timestamp with the system time. If the timestamp is found to be jumping (i.e., the timestamp is not continuous), repeated, or the difference with the system time is greater than the set threshold (such as more than a certain number of minutes or hours), the data will be marked as timestamp anomaly.
[0044] The data verification module outputs data with logical inconsistency, numerical anomalies, instrument performance anomalies, and timestamp anomalies and related information to the report or log of the central data processing platform. The alarm mechanism is triggered to send alarm information to relevant personnel through email, SMS, system notification or real-time pop-up window, reminding them to pay attention to and deal with these abnormal data.
[0045] In some embodiments, the central data processing platform is integrated with an error handling module, which is used to classify errors according to their types when errors are found during the data verification process, generate a unique error identifier for each error, and record the error information in detail in the error log; send notifications and alarm information to relevant personnel according to a preset notification strategy and clearly indicate the nature and severity of the error in the alarm information; Among them, the types of errors include logical inconsistency, numerical anomalies, instrument performance anomalies, and timestamp anomalies; the error information includes the time when the error occurred, the identification of the detection instrument, the detection item, the error type, and the original data value.
[0046] There are multiple data correction algorithms preset in the error handling module. Different data correction algorithms are associated with corresponding error types. When a data error is found, the corresponding data correction algorithm is called according to the error type to correct the data. If the data error cannot be corrected automatically, the data will be marked as invalid data and a prompt message will be output; after the data is corrected or restored, the data verification module is triggered to re-verify the processed results.
[0047] The data verification module of the central data processing platform verifies the data for logical consistency, value range, instrument performance, and timestamp. When a data error is found, the data verification module passes the error information to the error handling module. The error handling module receives the error information from the data verification module and classifies it according to the type of error (logical inconsistency, numerical anomaly, instrument performance anomaly, timestamp anomaly). A unique error identifier is generated for each error, which is used to uniquely identify the error in the error log.
[0048] The error handling module records the error information in detail in the error log, including the time when the error occurred, the identification of the detection instrument, the detection item, the error type, the original data value, etc. According to the preset notification strategy, the error handling module sends notifications and alarm information to relevant personnel, and clearly indicates the nature and severity of the error in the alarm information. The error handling module calls the corresponding data correction algorithm according to the error type. Try to use the data correction algorithm to correct the data. If the data error can be corrected automatically, update the data and continue processing. If the data error cannot be corrected automatically, mark the data as invalid data and output a prompt message.
[0049] After the data is corrected or restored, the data verification module is triggered to re-verify the processed results. Ensure that the corrected data meets the logical constraints and value range requirements, and that the instrument performance and timestamp are normal. If the data is marked as invalid data, further manual intervention or re-collection of data may be required.
[0050] In some embodiments, the central data processing platform is integrated with an electronic signature management module; The central data processing platform receives the user's registration information and reviews it. After the review is passed, the user's role and authority are determined, and a digital certificate is issued to the user. When the user performs data operations on the central data processing platform, the platform system calls the electronic signature management module to use the user's private key to encrypt the data, obtain an electronic signature, and save or transmit the electronic signature together with the data. The user includes data reviewers and operators of the central data processing platform. When the electronic signature of data needs to be verified, the system calls the electronic signature management module to use the public key corresponding to the digital certificate to decrypt the electronic signature. If the decrypted data is consistent with the original data, the verification passes; if the decrypted data is inconsistent with the original data, the verification fails.
[0051] The user submits registration information to the central data processing platform, including personal identity information, contact information, etc. The platform system reviews the registration information submitted by the user to confirm the authenticity and completeness of the information. After the review is passed, the platform system determines the role and authority of the user based on the user's identity and responsibilities. The user is issued a digital certificate, which contains the user's identity information, public key, private key, validity period, etc., and is stored in the platform's certificate library.
[0052] When a user performs data operations on the central data processing platform (such as data entry, modification, deletion, etc.), the platform system first verifies the user's identity and authority. After the verification is passed, the platform system calls the electronic signature management module, uses the user's private key to encrypt the data being operated, and generates an electronic signature. The generated electronic signature is saved or transmitted together with the data to ensure the integrity and immutability of the data. When it is necessary to verify the electronic signature of the data, the system first obtains the data and electronic signature to be verified. The system calls the electronic signature management module and uses the public key corresponding to the digital certificate to decrypt the electronic signature. The decrypted data is compared with the original data. If the two are consistent, the verification is passed, indicating that the data has not been tampered with during transmission or storage; if the two are inconsistent, the verification fails, indicating that the data may have been tampered with or there are other problems.
[0053] In some embodiments, a time synchronization client is configured on the central data processing server and each drug quality testing instrument, and the client communicates and synchronizes with a selected time source; the client periodically requests time information from the time source, and adjusts the local corresponding central data processing server and drug quality testing instrument time according to feedback from the time source, and the time source includes a network time protocol server or a global positioning system time signal.
[0054] Install the time synchronization client software on the central data processing server and each drug quality testing instrument. Configure the time synchronization client and specify the selected time source, such as a Network Time Protocol (NTP) server or a Global Positioning System (GPS) time signal. Set the request interval of the time synchronization client, that is, the frequency at which the client periodically requests time information from the time source.
[0055] The time synchronization client sends time requests to the specified time source regularly according to the set request interval. After receiving the time request, the time source sends the current accurate time information to the time synchronization client. The time synchronization client receives the time information sent by the time source.
[0056] The time synchronization client compares the received time information with the local time and calculates the time deviation. Based on the calculated time deviation, the time synchronization client adjusts the local time so that the time of the central data processing server and the drug quality testing instrument are synchronized with the time source. The timestamp and results of the time synchronization operation are recorded for subsequent auditing and tracking.
[0057] Here, the time synchronization client monitors the status and results of the time synchronization operation. If the time synchronization operation fails or the time deviation exceeds the set threshold, the time synchronization client triggers the alarm mechanism to notify the system administrator or relevant technical personnel to handle it.
[0058] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention.
Claims
1. A drug quality testing instrument data acquisition system, characterized in that: It includes an instrument interface module and a central data processing platform, and the drug quality testing instrument is connected to the central data processing platform through the instrument interface module or directly; After the instrument interface module performs preliminary processing and format conversion on the data sent by the drug quality testing instrument, it triggers information transmission and transmits the data to the central data processing platform; The central data processing platform receives data from drug quality testing instruments or instrument interface modules in real time, parses the received data according to the data transmission protocol, extracts key information from the data, organizes the parsed data according to a predetermined data structure, verifies the organized data and outputs the verification results; The key information includes the identification of the detection instrument, the detection item, the data value, and the timestamp.
2. The drug quality testing instrument data acquisition system according to claim 1, characterized in that: According to the type and parameters of the testing instrument, the instrument is registered and configured in the central data processing platform system; the type and parameters of the testing instrument include the name, model, serial number, test items, and working parameters of the instrument; after the configuration is completed, the instrument interface module communicates with the testing instrument; The instrument interface module receives data from the detection instrument in real time; performs preliminary processing on the received data, and performs unit conversion or scale conversion on the data as needed, and converts the data after preliminary processing into a format that meets the system transmission requirements; and transmits the format-converted data to the central data processing platform through the set communication protocol.
3. The drug quality testing instrument data acquisition system according to claim 2, characterized in that: The central data processing platform is integrated with a protocol formulation module to define the data transmission protocol, including the data frame structure, data packet encapsulation and decapsulation methods, data verification and error correction mechanism; and specifies the timing and frequency of data transmission.
4. The drug quality testing instrument data acquisition system according to claim 3, characterized in that: The central data processing platform receives data from the detection instrument or the instrument interface module in real time through the data transmission line and stores the received data in a temporary buffer; reads the data from the temporary buffer, and parses it according to the data transmission protocol to extract key information of the data.
5. The drug quality testing instrument data acquisition system according to claim 4, characterized in that: The central data processing platform is integrated with a data verification module, which is used to check whether the logical relationship between data is reasonable based on the logical constraints of parameters. If any contradiction or unreasonable relationship is found between the data, it will be marked as logical inconsistency; the data value is checked according to the pre-set numerical range of each test item. If the data value exceeds the allowable range, it is determined to be a numerical anomaly and marked as a numerical anomaly.
6. The drug quality testing instrument data acquisition system according to claim 5, characterized in that: The data verification module is also used to obtain the performance parameters of the detection instrument, compare the actually collected data with the preset parameter range of the performance parameters, and if the data exceeds the error range allowed by the instrument performance, mark the response data as abnormal instrument performance; It is also used to check whether the timestamp of the data is normal; If the timestamp is found to jump, repeat, or the difference with the system time is greater than the set threshold, the corresponding data will be marked as a timestamp anomaly.
7. The drug quality testing instrument data acquisition system according to claim 6, characterized in that: The central data processing platform is integrated with an error handling module, which is used to classify errors according to their types when they are found during data verification, generate a unique error identifier for each error, and record the error information in detail in the error log; Send notifications and alarm messages to relevant personnel according to the preset notification strategy and clearly indicate the nature and severity of the error in the alarm message; Among them, the types of errors include logical inconsistency, numerical anomalies, instrument performance anomalies, and timestamp anomalies; The error information includes the time when the error occurred, the identification of the testing instrument, the testing item, the error type, and the original data value.
8. The drug quality testing instrument data acquisition system according to claim 7, characterized in that: There are multiple data correction algorithms preset in the error handling module. Different data correction algorithms are associated with corresponding error types. When a data error is found, the corresponding data correction algorithm is called according to the error type to correct the data. If the data error cannot be corrected automatically, the data will be marked as invalid data and a prompt message will be output; after the data is corrected or restored, the data verification module is triggered to re-verify the processed results.
9. The drug quality testing instrument data acquisition system according to claim 8, characterized in that: The central data processing platform is integrated with an electronic signature management module; The central data processing platform receives the user's registration information and reviews it. After the review is passed, the user's role and permissions are determined, and a digital certificate is issued to the user; When a user performs data operations on the central data processing platform, the platform system calls the electronic signature management module to encrypt the data using the user's private key to obtain an electronic signature, and saves or transmits the electronic signature together with the data; the user includes data reviewers and operators of the central data processing platform; When the electronic signature of data needs to be verified, the system calls the electronic signature management module to use the public key corresponding to the digital certificate to decrypt the electronic signature. If the decrypted data is consistent with the original data, the verification passes; if the decrypted data is inconsistent with the original data, the verification fails.
10. The drug quality testing instrument data acquisition system according to claim 9, characterized in that: A time synchronization client is configured on the central data processing server and each drug quality detection instrument, and the client communicates and synchronizes with the selected time source; the client periodically requests time information from the time source, and adjusts the local corresponding central data processing server and drug quality detection instrument time according to the feedback from the time source, and the time source includes a network time protocol server or a global positioning system time signal.