A hospitalized patient management system, method and device based on blockchain

Through the decentralized management system and smart contract technology based on the blockchain, the problems of information islands, data security and management efficiency in the traditional inpatient management system are solved, and the safety, efficient sharing and transparent management of patient information are realized, improving improve the quality and efficiency of medical services.

CN118380125BActive Publication Date: 2024-09-10NORTH CHINA DIGITAL HEALTH TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410823219.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-10
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

The traditional inpatient management system has problems such as information islands, insufficient data security, poor non-tamperability, and low management efficiency, which affects the continuity and accuracy of medical services and increases the workload of medical staff.

Method used

Adopting a decentralized storage and management system based on blockchain, it achieves data security, non-tamperability and efficient sharing through smart contracts, provides interactive interfaces and data verification modules, and uses distributed ledger technology and encryption features to ensure data security. and transparency.

Benefits of technology

It achieves safe, accurate and efficient sharing of patient information, improves the management efficiency and quality of medical services, reduces management risks, ensures the authenticity and integrity of data, and reduces manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118380125B
    Figure CN118380125B
Patent Text Reader

Abstract

The present invention proposes a blockchain-based inpatient management system, method and device, which belongs to the field of medical information technology. The system includes: a user layer, which is used to provide an interactive interface, verify and identify the doctor, nurse, patient and administrator accounts, issue operation permissions, and obtain the inpatient data information and operation requests entered by each account; an application layer, which is used to analyze and process the inpatient data information and operation requests, call the corresponding smart contract according to the operation request, and interact with the blockchain layer; a contract layer, which is used to compile and store multiple smart contracts according to business needs, and is used for the storage, query, modification, cost calculation and transfer approval of inpatient data information; a blockchain layer, which is used for centralized storage and transmission of inpatient data information and smart contract generated data based on blockchain technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of medical information technology, and more specifically to a blockchain-based inpatient management system, method and device. Background Art

[0002] With the rapid development of medical technology, the demand for inpatient management in modern hospitals is also increasing. However, traditional inpatient management systems are mostly based on centralized architectures, which have gradually exposed many problems.

[0003] First, the phenomenon of information islands is becoming increasingly serious. Due to the lack of efficient data sharing mechanisms between different medical information systems, patients' medical information often has gaps in the circulation process, which not only affects the continuity of medical services, but also may pose a potential threat to patients' health.

[0004] Secondly, data security and privacy protection issues cannot be ignored. Patients' medical information contains a large amount of sensitive data. Once the system security is insufficient, it is extremely vulnerable to external attacks, resulting in data leakage. This not only damages the privacy rights of patients, but may also lead to a series of legal disputes.

[0005] Furthermore, the immutability of data has also become an urgent problem to be solved. In traditional centralized databases, once medical records are tampered with or mishandled, it is difficult to trace the original data, which greatly affects the accuracy and reliability of medical data.

[0006] Finally, low management efficiency and automation are also major drawbacks of the current system. The existing hospitalization management process relies heavily on manual operations, which are not only error-prone but also inefficient. At the same time, the system's processing capacity is insufficient for complex processes such as cross-department referrals, which increases the workload of medical staff. Summary of the invention

[0007] In view of the above problems, the purpose of the present invention is to provide a blockchain-based inpatient management system, method and device, which realizes the decentralized storage and management of inpatient data through blockchain technology, ensures the security and non-tamperability of the data, and improves data sharing and access efficiency, thereby realizing a safer, more efficient and transparent medical service management system.

[0008] To achieve the above-mentioned purpose, the present invention is implemented through the following technical solutions: a blockchain-based inpatient management system, comprising: a user layer, an application layer, a contract layer and a blockchain layer;

[0009] The user layer is used to provide an interactive interface, verify and identify the doctor, nurse, patient and administrator accounts, issue operation permissions, and obtain the inpatient data information and operation requests entered by each account;

[0010] The application layer is used to analyze and process inpatient data information and operation requests, call the corresponding smart contracts according to the operation requests, and interact with the blockchain layer;

[0011] The contract layer is used to compile and store multiple smart contracts according to business needs, which are used for the storage, query, and modification of inpatient data information, as well as fee calculation operations and department transfer approval operations;

[0012] The blockchain layer is used for centralized storage and transmission of inpatient data information and smart contract-generated data based on blockchain technology.

[0013] Furthermore, the inpatient data information includes basic patient information, condition information, diagnosis result information and doctor's advice information; the operation request includes admission request, billing request, discharge settlement request and transfer request.

[0014] Furthermore, the application layer includes:

[0015] The data verification module is used to obtain inpatient data information, conduct preliminary verification of the information, and generate verification results;

[0016] The data chain module is used to package the verified inpatient data information into blocks using distributed ledger technology, and submit the blocks to the blockchain layer for consensus and storage by calling smart contracts.

[0017] Furthermore, the smart contract includes:

[0018] The bed allocation smart contract includes the real-time status and allocation rules of hospital beds, which is used to automatically allocate beds to patients based on the current bed resources of the hospital and record the allocation results;

[0019] Medical order management smart contract, including templates and execution conditions for medical order data, used to record medical order information and trigger fee calculation contracts;

[0020] Fee calculation smart contract, used to calculate the fees that patients should pay based on medical service items and pricing strategies;

[0021] The department transfer approval smart contract is used to automatically approve department transfers and issue department transfer notifications based on the preset approval process.

[0022] Correspondingly, the present invention also discloses a method for managing inpatients based on blockchain, comprising:

[0023] Read account information, verify and identify the account type, and issue corresponding operation permissions;

[0024] Obtain inpatient data information, conduct preliminary verification of the information, and generate verification results;

[0025] Distributed ledger technology is used to package the verified inpatient data information into blocks, and the blocks are submitted to the blockchain layer for consensus and storage by calling smart contracts;

[0026] The corresponding smart contract is called according to the operation request to perform the storage, query, and modification of inpatient data information, as well as cost calculation operations and transfer approval operations.

[0027] Further, the reading of account information, determining the account type by verifying and identifying the account information, and issuing corresponding operation permissions, includes:

[0028] Get the username and password, and retrieve the matching username and password from the database; if the retrieval is successful, the verification is successful;

[0029] In the database, identify the user type field corresponding to the user name; user types include doctor, nurse, patient and administrator;

[0030] Create a session based on the user type and store the user's ID, account type, and permission information in the session.

[0031] Furthermore, the acquisition of inpatient data information, and preliminary verification of the information to generate verification results include:

[0032] Obtain basic patient information, condition information, and diagnosis result information from documents recording inpatient data information through OCR technology;

[0033] The patient's basic information, medical condition information, and diagnosis result information are checked for data format and integrity, and compared with existing corresponding records.

[0034] Furthermore, the distributed ledger technology is used to package the verified inpatient data information into blocks, and the blocks are submitted to the blockchain layer for consensus and storage by calling smart contracts, including:

[0035] The verified inpatient data information, the corresponding timestamp and the hash value of the previous block are packaged into a block;

[0036] By triggering the smart contract, the transaction is broadcast on the blockchain network so that the blockchain network nodes can verify and add blocks by running the consensus algorithm.

[0037] Furthermore, the corresponding smart contract is called according to the operation request to perform the storage, query, modification, cost calculation and department transfer approval of inpatient data information, including:

[0038] When the operation request is an admission request, a patient account is created and a unique blockchain ID is assigned to the patient account for subsequent identity authentication and data query;

[0039] When the operation request is a bed allocation request, the bed allocation smart contract is called to automatically allocate a bed to the patient account based on the current bed resources of the hospital, and the allocation result is recorded;

[0040] When the operation request is a medical order management request, the medical order management smart contract is called to record the medical order information and trigger the fee calculation contract;

[0041] When the operation request is a fee calculation request, the fee calculation smart contract is called to calculate the fees that the patient should pay based on the medical service items and pricing strategy;

[0042] When the operation request is a department transfer approval request, the department transfer approval smart contract is called to automatically approve the department transfer and issue the department transfer notification according to the preset approval process.

[0043] Accordingly, the present invention discloses a hospitalized patient management device based on blockchain, comprising:

[0044] A storage device for storing a blockchain-based inpatient management program;

[0045] A processor, configured to implement the steps of the blockchain-based inpatient management method as described in any one of the above when executing the blockchain-based inpatient management program.

[0046] Compared with the prior art, the present invention has the following beneficial effects:

[0047] 1. The present invention builds a blockchain-based system to ensure that patient information can be safely and accurately shared and transmitted between different nodes (such as different hospitals and departments).

[0048] 2. The present invention utilizes the encryption characteristics and decentralized storage mechanism of blockchain technology to strengthen the protection of sensitive medical data and prevent unauthorized access and tampering.

[0049] 3. The present invention applies the tamper-proof nature of blockchain to ensure the authenticity and integrity of medical records, while providing a complete historical record of data changes to facilitate supervision and auditing.

[0050] 4. The present invention uses smart contract technology to automatically execute business processes such as inbound and outbound transfers, reduce manual intervention, and improve management efficiency and accuracy. The present invention uses transparent and shared medical information to promote the rational allocation of medical resources and improve the efficiency and quality of overall medical services.

[0051] 5. The present invention improves the transparency and traceability of medical supplies management and reduces management risks. With the help of blockchain technology, the security and immutability of material data are ensured. Through smart contracts, automated management is achieved to improve management efficiency. The present invention supports concurrent access and operation by multiple users to meet the needs of large medical institutions.

[0052] It can be seen that compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0054] Figure 1 It is a system structure diagram of a specific implementation mode of the present invention.

[0055] Figure 2 It is a method flow chart of a specific implementation mode of the present invention.

[0056] In the figure, 1. User layer; 2. Application layer; 3. Contract layer; 4. Blockchain layer; 21. Data verification module; 22. Data on-chain module. DETAILED DESCRIPTION

[0057] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0058] See also Figure 1 As shown, this embodiment provides an inpatient management system based on blockchain, including: user layer 1, application layer 2, contract layer 3 and blockchain layer 4.

[0059] User layer 1 is used to provide an interactive interface, verify and identify the doctor, nurse, patient and administrator accounts, issue operation permissions, and obtain inpatient data information and operation requests entered by each account.

[0060] Among them, the inpatient data information includes the patient's basic information, condition information, diagnosis result information and medical advice information; the operation requests include admission requests, billing requests, discharge settlement requests and transfer requests.

[0061] User layer 1 provides users with an intuitive and easy-to-use interface, supporting login and operation of different roles such as doctors, nurses, patients and administrators.

[0062] Application layer 2 is used to analyze and process inpatient data information and operation requests, call the corresponding smart contracts according to the operation requests, and interact with the blockchain layer.

[0063] In a specific implementation, the application layer 2 includes: a data verification module 21 and a data uplink module 22 .

[0064] The data verification module 21 is used to obtain inpatient data information, conduct preliminary verification of the information, and generate verification results. Specifically, when collecting data such as basic patient information, condition, and diagnosis results, the system uses technical means including electronic form input, OCR technology to extract information from documents, and integration with existing medical information systems to automatically import data. Preliminary verification involves data format checking, integrity verification, and comparison with existing records to ensure that the entered information is accurate.

[0065] The data chain module 22 is used to package the verified inpatient data information into blocks using distributed ledger technology, and submit the blocks to the blockchain layer for consensus and storage by calling smart contracts. Among them, the data chain adopts distributed ledger technology (DLT) to divide the data into multiple blocks, each block contains records, and after these records are encrypted and timestamped, they are agreed upon among the nodes in the network through a consensus algorithm and added to the blockchain.

[0066] Contract layer 3 is used to compile and store multiple smart contracts according to business needs, which are used for the storage, query, and modification of inpatient data information, as well as fee calculation operations and department transfer approval operations.

[0067] The development of smart contracts requires writing codes according to business needs and deploying them on the blockchain platform. The smart contracts stored in contract layer 3 include:

[0068] The bed allocation smart contract includes the real-time status and allocation rules of hospital beds. It is used to automatically allocate beds to patients based on the hospital’s current bed resources and record the allocation results.

[0069] The medical order management smart contract includes the template and execution conditions of medical order data. When receiving the medical order information issued by the doctor, it records the medical order information, execution time and other information, and triggers the fee calculation contract.

[0070] The fee calculation smart contract is used to calculate the fees that patients should pay based on medical service items and pricing strategies. Specifically, based on the content of the doctor's order, drug prices and other information, the smart contract automatically calculates the fees that patients should pay and records the fee details.

[0071] The department transfer approval smart contract includes the approval process and notification mechanism. After the doctor submits the department transfer application, the department transfer approval smart contract automatically approves the department transfer and issues the department transfer notification according to the preset approval process.

[0072] Blockchain layer 4 is used for centralized storage and transmission of inpatient data information and smart contract generated data based on blockchain technology. The stability and scalability of the blockchain network provide a strong guarantee for the long-term development of the system.

[0073] In addition, it should be noted that this system also supports dynamic addition and deletion of smart contracts to adapt to the changing needs of different hospitals and departments. Specifically, it uses an extensible and modular blockchain platform to allow developers to deploy new smart contracts or update existing contracts at runtime (for example, using WeBank's open source blockchain platform webase) to write and deploy smart contracts, and control the life cycle of the contract through the management function of the blockchain platform, so that hospitals and departments can flexibly update system functions according to their own changing needs.

[0074] Based on the above inpatient management system, see Figure 2 As shown, the present invention also discloses a method for managing inpatients based on blockchain, comprising the following steps:

[0075] S1: Read account information, verify and identify the account type, and issue corresponding operation permissions.

[0076] In a specific implementation, the user name and password are first obtained, and the matching user name and password are retrieved from the database; if the retrieval is successful, the verification is successful. Then, in the database, the user type field corresponding to the user name is identified; the user types include doctor, nurse, patient and administrator. Finally, a session is created according to the user type, and the user ID, account type and permission information are stored in the session.

[0077] S2: Obtain inpatient data information, conduct preliminary verification of the information, and generate verification results.

[0078] In a specific implementation method, first, the patient's basic information, condition information, and diagnosis result information are obtained from the document recording the inpatient data information through OCR technology; then the patient's basic information, condition information, and diagnosis result information are checked for data format and integrity, and compared with the existing corresponding records to ensure that the entered information is accurate.

[0079] S3: Distributed ledger technology is used to package the verified inpatient data information into blocks, and the blocks are submitted to the blockchain layer for consensus and storage by calling smart contracts.

[0080] In a specific implementation, the verified inpatient data information, the corresponding timestamp, and the hash value of the previous block are packaged into a block. The contents packaged into the block include transaction data (patient admission information), timestamp, hash value of the previous block, etc. This process includes encoding the data into a specific format, calculating the hash value of the data, and assembling this information into a data block that meets the protocol requirements of the blockchain network and can be accepted by nodes in the network.

[0081] Then, by triggering the smart contract, the transaction is broadcast on the blockchain network so that the blockchain network nodes can verify and add blocks by running the consensus algorithm. Since the logic of data on-chain is defined in the smart contract, including the process of verifying the validity of the transaction and triggering the creation of blocks. Once the smart contract is triggered, it broadcasts the transaction on the network, and each node verifies and agrees to add new blocks by running the consensus algorithm, ensuring that the data stored on the blockchain is tamper-proof and consistent.

[0082] In addition, when there is sensitive data in the stored data, an asymmetric encryption algorithm (such as RSA, etc.) is used to encrypt the sensitive data for storage and transmission.

[0083] S4: Call the corresponding smart contract according to the operation request to perform the storage, query, and modification of inpatient data information, as well as cost calculation operations and transfer approval operations.

[0084] It should be noted that the content of smart contracts includes the rules and logic of data storage, query, and modification, as well as business logic (such as bed allocation, medical order management, fee calculation, and department transfer approval). The formulation of smart contracts requires writing codes according to business needs and deploying them on the blockchain platform.

[0085] In a specific implementation, the following centralized operations are performed according to different operation requests:

[0086] 1. When the operation request is an admission request, a patient account is created and a unique blockchain ID is assigned to the patient account for subsequent identity authentication and data query. The blockchain ID is generated based on the patient's primary index ID and is used to identify a unique patient.

[0087] 2. When the operation request is a bed allocation request, the bed allocation smart contract is called to automatically allocate a bed to the patient account based on the hospital’s current bed resources and record the allocation result.

[0088] 3. When the operation request is a medical order management request, the medical order management smart contract is called to record the medical order information and trigger the fee calculation contract.

[0089] 4. When the operation request is a fee calculation request, the fee calculation smart contract is called to calculate the fees that the patient should pay based on the medical service items and pricing strategies.

[0090] 5. When the operation request is a department transfer approval request, the department transfer approval smart contract is called to automatically approve the department transfer and issue a department transfer notification according to the preset approval process.

[0091] In addition, when the operation request is a data query and sharing request, data query can be performed according to various conditions such as name, ID, time, etc., so that users can quickly locate the required information. Although different user types have different data query permissions, they can all be implemented through smart contracts. Specifically, smart contracts can be used to implement the logic of the query interface. When a user initiates a query request, the smart contract will automatically perform the search operation according to the conditions of the request and return the query results. Data sharing can be achieved through distributed ledger technology. Since the system is based on blockchain, it can use the distributed ledger characteristics of blockchain to achieve data sharing. Each node maintains a complete copy of the data, so the consistency of the data can be ensured through a consensus mechanism, and data sharing and collaboration across hospitals and departments can be allowed.

[0092] Based on the above data query and sharing functions, patients can also view their medical records, expense details, etc. through the system to improve transparency and satisfaction. Specifically, the functions of patients viewing their medical records, expense details, etc. are realized through the user interface, which interacts with the backend blockchain database. After the patient logs in to the system through identity authentication, the system retrieves relevant data from the blockchain based on the patient's unique identifier and presents it to the user in a readable format.

[0093] It can be seen that the present invention discloses a method for managing inpatients based on blockchain, which realizes the decentralized storage and management of inpatient data through blockchain technology, ensures the security and non-tamperability of the data, and improves data sharing and access efficiency, thereby realizing a safer, more efficient and transparent medical service management system.

[0094] The present invention also discloses a blockchain-based inpatient management device, comprising a processor and a memory; wherein, when the processor executes the blockchain-based inpatient management program stored in the memory, the steps of the blockchain-based inpatient management method as described in any one of the above items are implemented.

[0095] Furthermore, the inpatient management device based on blockchain in this embodiment may also include:

[0096] The input interface is used to obtain the blockchain-based inpatient management program imported from the outside, and save the obtained blockchain-based inpatient management program to the memory, and can also be used to obtain various instructions and parameters transmitted by external terminal devices, and transmit them to the processor, so that the processor can use the above various instructions and parameters to carry out corresponding processing. In this embodiment, the input interface can specifically include but is not limited to a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, etc.

[0097] The output interface is used to output various data generated by the processor to the terminal device connected thereto, so that other terminal devices connected to the output interface can obtain various data generated by the processor. In this embodiment, the output interface may specifically include but is not limited to a USB interface, a serial interface, etc.

[0098] The communication unit is used to establish a remote communication connection between the inpatient management device based on blockchain and the external server, so that the inpatient management device based on blockchain can mount the image file to the external server. In this embodiment, the communication unit may specifically include but is not limited to a remote communication unit based on wireless communication technology or wired communication technology.

[0099] The keyboard is used to obtain various parameter data or instructions input by the user by tapping the keycaps in real time.

[0100] A display for real-time display of relevant information running the blockchain-based inpatient management process.

[0101] The mouse can be used to assist users in inputting data and simplify user operations.

[0102] In summary, the present invention improves the transparency and traceability of medical supplies management and reduces management risks; with the help of blockchain technology, the security and non-tamperability of material data are ensured; and automated management is achieved through smart contracts, thereby improving management efficiency.

[0103] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the method disclosed in the embodiment, since it corresponds to the system disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0104] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0105] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.

[0106] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0107] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0108] The above is a detailed introduction to the blockchain-based inpatient management system, method and device provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A blockchain-based inpatient management system, characterized in that: include: User layer, application layer, contract layer and blockchain layer; The user layer is used to provide an interactive interface, verify and identify the doctor, nurse, patient and administrator accounts, issue operation permissions, and obtain the inpatient data information and operation requests entered by each account; The application layer is used to analyze and process inpatient data information and operation requests, call the corresponding smart contracts according to the operation requests, and interact with the blockchain layer; The contract layer is used to compile and store multiple smart contracts according to business needs, which are used for the storage, query, and modification of inpatient data information, as well as fee calculation operations and department transfer approval operations; The blockchain layer is used for centralized storage and transmission of inpatient data information and smart contract-generated data based on blockchain technology; The application layer includes: The data verification module is used to obtain inpatient data information, conduct preliminary verification of the information, and generate verification results; The data chain module is used to package the verified inpatient data information into blocks using distributed ledger technology, and submit the blocks to the blockchain layer for consensus and storage by calling smart contracts; The smart contract includes: The bed allocation smart contract includes the real-time status and allocation rules of hospital beds, which is used to automatically allocate beds to patients based on the current bed resources of the hospital and record the allocation results; Medical order management smart contract, including templates and execution conditions for medical order data, used to record medical order information and trigger fee calculation contracts; Fee calculation smart contract, used to calculate the fees that patients should pay based on medical service items and pricing strategies; The department transfer approval smart contract is used to automatically approve department transfers and issue department transfer notifications based on the preset approval process.

2. The blockchain-based inpatient management system according to claim 1 is characterized in that: The inpatient data information includes basic patient information, condition information, diagnosis result information and doctor's advice information; the operation request includes admission request, billing request, discharge settlement request and transfer request.

3. A method for managing inpatients based on blockchain, characterized in that: The method adopts the blockchain-based inpatient management system described in any one of claims 1-2; The method comprises: Read account information, verify and identify the account type, and issue corresponding operation permissions; Obtain inpatient data information, conduct preliminary verification of the information, and generate verification results; Distributed ledger technology is used to package the verified inpatient data information into blocks, and the blocks are submitted to the blockchain layer for consensus and storage by calling smart contracts; The corresponding smart contract is called according to the operation request to perform the storage, query, and modification of inpatient data information, as well as cost calculation operations and transfer approval operations.

4. The method for managing inpatients based on blockchain according to claim 3, characterized in that: The reading of account information, determining the account type by verifying and identifying the account information, and issuing corresponding operation permissions, includes: Get the username and password, and retrieve the matching username and password from the database; if the retrieval is successful, the verification is successful; In the database, identify the user type field corresponding to the user name; user types include doctor, nurse, patient and administrator; Create a session based on the user type and store the user's ID, account type, and permission information in the session.

5. The method for managing inpatients based on blockchain according to claim 4 is characterized in that: The step of obtaining inpatient data information, performing preliminary verification of the information, and generating verification results includes: Obtain basic patient information, condition information, and diagnosis result information from documents recording inpatient data information through OCR technology; The patient's basic information, medical condition information, and diagnosis result information are checked for data format and integrity, and compared with existing corresponding records.

6. The method for managing inpatients based on blockchain according to claim 5, characterized in that: The distributed ledger technology is used to package the verified inpatient data information into blocks, and the blocks are submitted to the blockchain layer for consensus and storage by calling smart contracts, including: The verified inpatient data information, the corresponding timestamp and the hash value of the previous block are packaged into a block; By triggering the smart contract, the transaction is broadcast on the blockchain network so that the blockchain network nodes can verify and add blocks by running the consensus algorithm.

7. The method for managing inpatients based on blockchain according to claim 6, characterized in that: The corresponding smart contract is called according to the operation request to perform the storage, query, modification, fee calculation and department transfer approval of inpatient data information, including: When the operation request is an admission request, a patient account is created and a unique blockchain ID is assigned to the patient account for subsequent identity authentication and data query; When the operation request is a bed allocation request, the bed allocation smart contract is called to automatically allocate a bed to the patient account based on the current bed resources of the hospital, and the allocation result is recorded; When the operation request is a medical order management request, the medical order management smart contract is called to record the medical order information and trigger the fee calculation contract; When the operation request is a fee calculation request, the fee calculation smart contract is called to calculate the fees that the patient should pay based on the medical service items and pricing strategy; When the operation request is a department transfer approval request, the department transfer approval smart contract is called to automatically approve the department transfer and issue the department transfer notification according to the preset approval process.

8. A blockchain-based inpatient management device, characterized in that: include: A storage device for storing a blockchain-based inpatient management program; A processor, configured to implement the steps of the blockchain-based inpatient management method as described in any one of claims 3 to 7 when executing the blockchain-based inpatient management program.