CN-121983210-A - Health data monitoring method, memory and health data monitoring system
Abstract
The application provides a health data monitoring method, a memory and a health data monitoring system, wherein the health data monitoring method comprises the steps of responding to a data changing operation signal, mapping an original health file and a current health file into a hash key value pair to detect difference information between the current health file and the original health file based on the hash key value pair, generating the difference hash value based on the hash key value pair and the difference information and uploading the difference hash value to a blockchain for storage, and monitoring the blockinformation of the health data in real time based on a blockchain browser. In addition, the application remarkably optimizes the time complexity of tracing the data version to the O (n) level, and greatly improves the version monitoring and tracing efficiency of mass health documents.
Inventors
- CHEN ZEHONG
- LI JUNJIE
- ZHANG ZHENGRUI
- LIU CHUNMEI
- LIU LI
- LUO YIYUAN
- WU YONGTAI
Assignees
- 惠州学院
Dates
- Publication Date
- 20260505
- Application Date
- 20260122
Claims (10)
- 1. The health data monitoring method is characterized by uploading health data to a blockchain in advance in the form of file hash values for storage, and comprises the following steps of: Mapping an original health file and a current health file into a hash key value pair in response to a data change operation signal so as to detect difference information between the current health file and the original health file based on the hash key value pair, wherein the hash key value pair at least comprises a line number hash value and a file hash value; generating a difference hash value based on the difference information by the hash key value pair and uploading the difference hash value to a block chain for storage; And monitoring the block information of the health data in real time based on the block chain browser.
- 2. The method of claim 1, wherein uploading the health data to the blockchain for storage in advance in the form of file hash values, comprises: Receiving the health data, and auditing the health data to store the health data into a local database when the auditing is passed; And calculating a file hash value of the health data, and uploading the file hash value to a block chain for storage.
- 3. The health data monitoring method as set forth in claim 1, wherein detecting difference information of the current health file and the original health file based on the hash key pair comprises: And carrying out merging and sorting operation on the hash key value pairs, and detecting the change content of the current health file line by line through linear scanning to serve as difference information.
- 4. The method for monitoring health data according to claim 3, further comprising, after detecting the obtained difference information: and generating a difference report based on the difference information and uploading the difference report to a blockchain for storage.
- 5. The health data monitoring method as in claim 1, further comprising, after generating the difference hash value: Correlating the difference hash value with a file hash value and a version hash value, and storing the correlation result into a local database; wherein the version hash value is calculated based on the current health file.
- 6. The method of health data monitoring as in claim 1, further comprising: and generating a health report based on the local database in response to the data request operation signal, wherein the health report at least comprises a file hash value and health data.
- 7. The method of health data monitoring as in claim 6, further comprising: And generating an audit log based on the data change operation signal or the data request operation signal and uploading the audit log to a blockchain for storage.
- 8. The method of health data monitoring as in claim 7, comprising, prior to uploading the target data to the blockchain: And carrying out digital signature on the target data so that when the block link receives the target data, carrying out signature integrity check on the target data, and storing the target data when the verification is passed, otherwise, executing error reporting and ending the current flow, wherein the target data comprises a file hash value, a difference report and/or an audit log.
- 9. A memory for storing a computer program or instructions, wherein the health data monitoring method of any of claims 1-8 is performed when the computer program or instructions are executed.
- 10. A health data monitoring system comprising a processor and a memory storing a computer program or instructions, wherein the processor is configured to execute the computer program or instructions to implement the health data monitoring method of any of claims 1-8.
Description
Health data monitoring method, memory and health data monitoring system Technical Field The present application relates to the field of health monitoring technologies, and in particular, to a health data monitoring method, a memory, and a health data monitoring system. Background The intelligent health service is characterized in that multi-dimensional data such as user health, behaviors and preferences are continuously collected, analyzed and applied to achieve individuation of the service, and meanwhile, the process achieves service accuracy and intellectualization, and meanwhile, security risks which are not existed before personal sensitive data are transmitted, stored and shared. The traditional centralized data management mode has the problems of data island, easy tampering, privacy disclosure, difficult supervision and tracing and the like, which not only restricts the data credible cooperation of cross-mechanism and cross-level, but also weakens the trust foundation of users on intelligent health services. Disclosure of Invention The application provides a health data monitoring method, a memory and a health data monitoring system for solving the technical problems. The health data monitoring method comprises the steps of mapping an original health file and a current health file into a hash key value pair in response to a data change operation signal so as to detect difference information of the current health file and the original health file based on the hash key value pair, wherein the hash key value pair at least comprises a line number hash value and a file hash value, generating a difference hash value based on the hash key value pair and the difference information, uploading the difference hash value to a blockchain for storage, and monitoring health data in real time based on a blockchain browser. In the technical scheme, by means of inherent decentralization, non-falsification and traceability characteristics of the blockchain, safe storage, trusted management, collaborative supervision and efficient tracing of health data are realized, trusted whole-flow management and control of the health data are supported, and in addition, the improved line number mapping progressive comparison algorithm provided by the application remarkably optimizes the time complexity of tracing the data version to the O (n) level, so that the version monitoring and tracing efficiency of massive health documents is greatly improved. Further, uploading the health data to the blockchain for storage in a file hash value mode in advance comprises the steps of receiving the health data, checking the health data to store the health data to a local database when the health data pass the checking, calculating the file hash value of the health data, and uploading the file hash value to the blockchain for storage. In the technical scheme, the original data corresponding to the hash value uploaded to the chain is ensured to be effective data subjected to quality control, and the data reliability of the whole system is improved from the source. Further, detecting the difference information of the current health file and the original health file based on the hash key value pair comprises the steps of carrying out merging and sorting operation on the hash key value pair, and detecting the change content of the current health file line by line through linear scanning to serve as the difference information. In the technical scheme, the time complexity of data version comparison is optimized to O (n), so that even a huge amount of health documents can be efficiently detected and traced, and the monitoring requirements of large data volume and high real-time requirements in intelligent health services are met. Further, after the difference information is obtained through detection, the method further comprises the steps of generating a difference report based on the difference information and uploading the difference report to a block chain for storage. In the technical scheme, visual and structured change description is provided for the user, and the technical evidence is converted into readable supervision information, so that the technical evidence is convenient to understand and take action. Further, after the difference hash value is generated, the method further comprises the steps of associating the difference hash value with a file hash value and a version hash value, and storing an association result to a local database, wherein the version hash value is obtained based on the current health file calculation. In the technical scheme, a complete version management index capable of being queried rapidly is established in the local database, the non-tamper-proof property of the block chain is combined with the efficient query capability of the local database, and the practicability and the response speed of the whole system are improved. Further, the method further comprises the step of responding to the data request operation