TWI661433B - Electronic medical record system based on blockchain and method thereof - Google Patents

Electronic medical record system based on blockchain and method thereof Download PDF

Info

Publication number
TWI661433B
TWI661433B TW106102077A TW106102077A TWI661433B TW I661433 B TWI661433 B TW I661433B TW 106102077 A TW106102077 A TW 106102077A TW 106102077 A TW106102077 A TW 106102077A TW I661433 B TWI661433 B TW I661433B
Authority
TW
Taiwan
Prior art keywords
medical record
patient
blockchain
node
physician
Prior art date
Application number
TW106102077A
Other languages
Chinese (zh)
Other versions
TW201828242A (en
Inventor
林祐德
Original Assignee
現代財富控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 現代財富控股有限公司 filed Critical 現代財富控股有限公司
Priority to TW106102077A priority Critical patent/TWI661433B/en
Publication of TW201828242A publication Critical patent/TW201828242A/en
Application granted granted Critical
Publication of TWI661433B publication Critical patent/TWI661433B/en

Links

Landscapes

  • Medical Treatment And Welfare Office Work (AREA)

Abstract

一種基於區塊鏈的電子病歷系統及其方法,透過區塊鏈的智能合約實現電子病歷,使區塊鏈網路中的病患節點能夠從區塊鏈中讀取病歷資料,再將病歷資料傳送至區塊鏈網路中的醫師節點進行顯示,以便用於醫療診斷,接著在醫療後由醫師節點產生醫療紀錄,並且透過區塊鏈交易的方式,將醫療紀錄傳送至區塊鏈網路,以及接收區塊鏈交易後產生的醫療紀錄智能合約地址以傳送至病患節點提供確認醫療紀錄,當病患節點確認後,允許將醫療紀錄加入病歷資料,提高電子病歷的可用性之技術功效。An electronic medical record system based on a blockchain and a method thereof. An electronic medical record is realized through a smart contract of a blockchain, so that a patient node in the blockchain network can read the medical record data from the blockchain, and then the medical record data Send to the physician node in the blockchain network for display, for medical diagnosis, and then generate medical records by the physician node after medical treatment, and transmit the medical records to the blockchain network through blockchain transactions. The smart contract address generated after receiving the blockchain transaction is transmitted to the patient node to provide the confirmed medical record. When the patient node confirms, it is allowed to add the medical record to the medical record data, improving the technical efficacy of the availability of electronic medical records.

Description

基於區塊鏈的電子病歷系統及其方法Electronic medical record system and method based on block chain

本發明涉及一種電子病歷系統及其方法,特別是基於區塊鏈的電子病歷系統及其方法。The invention relates to an electronic medical record system and a method thereof, in particular to an electronic medical record system and a method based on a blockchain.

近年來,隨著病歷電子化的推廣與蓬勃發展,大部分的醫療院所皆已將其病歷電子化,然而,大都使用自訂格式對其病歷電子化,造成產生的電子病歷無法適用於不同的醫療院所。In recent years, with the popularization and vigorous development of electronic medical records, most medical institutions have electronicized their medical records. However, most of them use a custom format to electronicize their medical records. As a result, the generated electronic medical records cannot be applied to different medical records. Medical institutions.

有鑑於此,便有國際標準組織推行國際標準格式,另外,亦有政府單位推行國家定義的標準格式,避免不同醫療院所建立的電子病歷無法兼容的問題。不過,即使所有醫療院所皆使用標準格式,病患的電子病歷仍然分散在各家不同的醫療院所,舉例來說,病患前往皮膚科診所就診,將產生一份電子病歷在此皮膚科診所,當同一病患前往另一家醫院就診時,同樣會產生另一份電子病歷存放在醫院中。換句話說,病患求診時,醫生無法得到病患完整的歷史醫療紀錄,因而缺乏足夠的資訊做出最佳的診斷。另外,由於病患無法擁有自己本身的電子病歷,所以無法在居家住所自行使用需要電子病歷的智慧型醫療器材或其醫療輔助軟體,故具有電子病歷的可用性不佳的問題。In view of this, some international standards organizations have implemented international standard formats, and some government units have also implemented national standard standard formats to avoid the incompatibility of electronic medical records established by different medical institutions. However, even if all medical institutions use the standard format, the patient's electronic medical records are still scattered in different medical institutions. For example, if a patient visits a dermatology clinic, an electronic medical record will be generated in this dermatology department. Clinic, when the same patient goes to another hospital for treatment, another electronic medical record is also stored in the hospital. In other words, when a patient seeks a doctor, the doctor cannot obtain the patient's complete historical medical records, and therefore lacks sufficient information to make the best diagnosis. In addition, patients cannot have their own electronic medical records, so they cannot use smart medical devices or medical assistant software that require electronic medical records in their homes. Therefore, the availability of electronic medical records is poor.

綜上所述,可知先前技術中長期以來一直存在電子病歷的可用性不佳之問題,因此實有必要提出改進的技術手段,來解決此一問題。In summary, it can be seen that the availability of electronic medical records has been poor for a long time in the prior art, so it is necessary to propose improved technical means to solve this problem.

本發明揭露一種基於區塊鏈的電子病歷系統及其方法。The invention discloses an electronic medical record system and method based on the blockchain.

首先,本發明揭露一種基於區塊鏈的電子病歷系統,應用在組成區塊鏈網路的多個節點,每一節點皆具有區塊鏈且處理區塊鏈交易的能力,此系統包含:病患節點及醫師節點。其中,病患節點為節點其中之一,其包含:執行模組及確認模組。所述執行模組用以執行區塊鏈的病歷智能合約以根據儲存在病歷資料地址陣列中的病歷資料智能合約地址讀取相應的病歷資料,並且根據預設的病患私密金鑰解密所述病歷資料以進行傳送;所述確認模組用以接收醫療紀錄智能合約地址以確認醫療紀錄,並且在確認無誤後,透過區塊鏈交易將醫療紀錄智能合約地址儲存至病歷資料地址陣列,以作為所述病歷資料智能合約地址其中之一。First, the present invention discloses a blockchain-based electronic medical record system, which is applied to multiple nodes forming a blockchain network, and each node has a blockchain and the ability to process blockchain transactions. The system includes: Affected nodes and physician nodes. Among them, the patient node is one of the nodes, which includes: an execution module and a confirmation module. The execution module is configured to execute a blockchain medical record smart contract to read the corresponding medical record data according to the medical record data smart contract address stored in the medical record data address array, and to decrypt the patient's private key according to a preset patient private key. The medical record data is transmitted; the confirmation module is used to receive the medical record smart contract address to confirm the medical record, and after the confirmation is correct, the medical record smart contract address is stored in the medical record data address array through the blockchain transaction as One of the medical contract data smart contract addresses.

至於所述醫師節點同樣為節點其中之一,其包含:醫療模組、加密模組及交易模組。其中,醫療模組用以自病患節點接收解密的病歷資料以進行顯示,並且在醫療後生成醫療紀錄;加密模組用以根據預設的病患公開金鑰加密醫療紀錄以生成加密紀錄,並且根據預設的醫師憑證對加密紀錄進行簽章;交易模組用以將簽章後的加密紀錄以區塊鏈交易傳送至區塊鏈網路,以及接收區塊鏈網路完成區塊鏈交易後產生的醫療紀錄智能合約地址,並且將醫療紀錄智能合約地址傳送至病患節點。The doctor node is also one of the nodes, which includes: a medical module, an encryption module, and a transaction module. Among them, the medical module is used to receive the decrypted medical record data from the patient node for display and generate medical records after medical treatment; the encryption module is used to encrypt the medical records to generate encrypted records according to a preset patient public key, And the encrypted record is signed according to the preset doctor's certificate; the transaction module is used to transmit the signed encrypted record to the blockchain network as a blockchain transaction, and to receive the blockchain network to complete the blockchain The smart contract address of the medical record generated after the transaction is transmitted to the patient node.

另外,本發明揭露一種基於區塊鏈的電子病歷方法,應用在組成區塊鏈網路的多個節點,每一節點皆具有區塊鏈且處理區塊鏈交易的能力,其步驟包括:提供病患節點及醫師節點,所述病患節點及醫師節點分別為所述節點其中之一;病患節點執行區塊鏈的病歷智能合約以根據儲存在病歷資料地址陣列中的病歷資料智能合約地址讀取相應的病歷資料,並且根據預設的病患私密金鑰解密所述病歷資料以傳送至醫師節點;醫師節點自病患節點接收解密的病歷資料以進行顯示,並且在醫療後生成醫療紀錄;醫師節點根據預設的病患公開金鑰加密醫療紀錄以生成加密紀錄,並且根據預設的醫師憑證對加密紀錄進行簽章;醫師節點將簽章後的加密紀錄以區塊鏈交易傳送至區塊鏈網路,以及接收區塊鏈網路完成區塊鏈交易後產生的醫療紀錄智能合約地址,並且將醫療紀錄智能合約地址傳送至病患節點;病患節點接收醫療紀錄智能合約地址以確認醫療紀錄,並且在確認無誤後,透過區塊鏈交易將醫療紀錄智能合約地址儲存至病歷資料地址陣列,以作為所述病歷資料智能合約地址其中之一。In addition, the present invention discloses a blockchain-based electronic medical record method, which is applied to a plurality of nodes constituting a blockchain network, and each node has a blockchain and the ability to process blockchain transactions. The steps include: providing A patient node and a physician node, each of which is one of the nodes; the patient node executes a blockchain's medical record smart contract based on the medical record data smart contract address stored in the medical record data address array Read the corresponding medical record data, and decrypt the medical record data according to a preset patient private key for transmission to the physician node; the physician node receives the decrypted medical record data from the patient node for display, and generates a medical record after medical treatment ; The physician node encrypts the medical record according to a preset patient public key to generate an encrypted record, and signs the encrypted record according to a preset physician certificate; the physician node sends the signed encrypted record to the blockchain transaction to The blockchain network and the smart contract address of the medical records generated after the blockchain network completes the blockchain transaction, and The medical record smart contract address is transmitted to the patient node; the patient node receives the medical record smart contract address to confirm the medical record, and after confirmation is correct, the medical record smart contract address is stored in the medical record data address array through blockchain transactions, and As one of the smart contract addresses of the medical record data.

本發明所揭露之系統與方法如上,與先前技術的差異在於本發明是透過區塊鏈的智能合約實現電子病歷,使區塊鏈網路中的病患節點能夠從區塊鏈中讀取病歷資料,再將病歷資料傳送至區塊鏈網路中的醫師節點進行顯示,以便用於醫療診斷,接著在醫療後由醫師節點產生醫療紀錄,並且透過區塊鏈交易的方式,將醫療紀錄傳送至區塊鏈網路,以及接收區塊鏈交易後產生的醫療紀錄智能合約地址以傳送至病患節點提供確認醫療紀錄,當病患節點確認後,允許將醫療紀錄加入病歷資料。The system and method disclosed in the present invention are as above. The difference from the previous technology is that the present invention implements electronic medical records through the smart contract of the blockchain, so that patient nodes in the blockchain network can read the medical records from the blockchain. Data, and then send the medical record data to the physician nodes in the blockchain network for display, for medical diagnosis, and then generate medical records by the physician nodes after medical treatment, and transmit the medical records through blockchain transactions. To the blockchain network, and receive the smart contract address of the medical record generated after receiving the blockchain transaction to send to the patient node to provide confirmation of the medical record. When the patient node confirms, the medical record is allowed to be added to the medical record data.

透過上述的技術手段,本發明可以達成提高電子病歷的可用性之技術功效。Through the above technical means, the present invention can achieve the technical effect of improving the usability of the electronic medical record.

以下將配合圖式及實施例來詳細說明本發明之實施方式,藉此對本發明如何應用技術手段來解決技術問題並達成技術功效的實現過程能充分理解並據以實施。In the following, the embodiments of the present invention will be described in detail with reference to the drawings and examples, so as to fully understand and implement the implementation process of how the present invention applies technical means to solve technical problems and achieve technical effects.

在說明本發明所揭露之基於區塊鏈的電子病歷系統及其方法之前,先對本發明所應用的環境作說明,本發明是應用在組成區塊鏈網路的多個節點中,每一節點皆具有區塊鏈,並且用以處理區塊鏈交易(Blockchain Transactions),在實際實施上,這些節點皆為具有網路連線能力且透過點對點(Peer to Peer)方式連接的計算機裝置,例如:伺服器、電腦主機、筆記型電腦、平板電腦等等,用以執行電腦程式指令,如:區塊鏈程式「Ethereum」。特別要說明的是,本發明所述的病患節點及醫師節點分別為所述節點其中之一,其中,病患節點為病患所在位置的節點;醫師節點為醫師所在位置的節點。Before explaining the blockchain-based electronic medical record system and method disclosed by the present invention, the environment in which the present invention is applied will be described. The present invention is applied to a plurality of nodes constituting a blockchain network, and each node Both have a blockchain and are used to process blockchain transactions (Blockchain Transactions). In practice, these nodes are computer devices with network connection capabilities and connected through a peer-to-peer method, such as: Servers, computer hosts, notebook computers, tablets, etc., are used to execute computer program instructions, such as the blockchain program "Ethereum". In particular, the patient node and the physician node according to the present invention are one of the nodes, wherein the patient node is the node where the patient is located; the physician node is the node where the physician is located.

另外,本發明所述的病歷資料智能合約地址及醫療紀錄智能合約地址皆為智能合約在區塊鏈中的地址,兩者的差異在於,前者所對應的智能合約(即病歷智能合約)已成為病患的電子病歷中的一部分;後者所對應的智能合約則是需要病患確認後才會允許加入病患的電子病歷中。所述智能合約是指依據既定的條件及傳輸的資訊來驅動執行指令的電腦程式,在實際實施上,所述智能合約係透過程式語言,如:Solidity、Serpent、LLL、EtherScript、Sidechain等等來撰寫,其可包含各種不同的函式、參數狀態等等,以區塊鏈程式「Ethereum」為例,其智能合約是經編譯後得到二進位編碼及應用二進位介面(Application Binary Interface, ABI),以便將智能合約廣播至區塊鏈網路,等候礦工(Miner)將智能合約放上區塊鏈並得到相應的地址。之後,便可根據此地址執行相應的智能合約,藉由不同的指令來改變智能合約在區塊鏈上的狀態。In addition, the smart contract address and medical record smart contract address of the present invention are the addresses of the smart contract in the blockchain. The difference between the two is that the smart contract corresponding to the former (that is, the smart contract for medical records) has become Part of the patient's electronic medical record; the smart contract corresponding to the latter is required to be confirmed by the patient before being allowed to be added to the patient's electronic medical record. The smart contract refers to a computer program that executes instructions based on established conditions and transmitted information. In actual implementation, the smart contract is implemented through programming languages such as: Solidity, Serpent, LLL, EtherScript, Sidechain, etc. Written, it can contain a variety of different functions, parameter states, etc. Take the blockchain program "Ethereum" as an example. Its smart contract is compiled to obtain a binary code and an application binary interface (ABI). In order to broadcast the smart contract to the blockchain network, wait for the miner to put the smart contract on the blockchain and get the corresponding address. After that, the corresponding smart contract can be executed according to this address, and the state of the smart contract on the blockchain can be changed by different instructions.

以下配合圖式對本發明基於區塊鏈的電子病歷系統及其方法做進一步說明,請先參閱「第1圖」,「第1圖」為本發明基於區塊鏈的電子病歷系統之系統方塊圖,應用在組成區塊鏈網路10的多個節點100,每一節點100皆具有區塊鏈且處理區塊鏈交易的能力,此系統包含:病患節點110及醫師節點120。在所述病患節點110的部分,其包含:執行模組111及確認模組112。其中,執行模組111用以執行區塊鏈的病歷智能合約,以根據儲存在病歷資料地址陣列(Array)中的病歷資料智能合約地址(Address)讀取相應的病歷資料,並且根據預設的病患私密金鑰解密所述病歷資料以進行傳送。在實際實施上,病患節點110具有一組金鑰對(Key pair),即:病患公開金鑰及病患私密金鑰,並且把病患公開金鑰傳送至醫師節點120或直接發布在區塊鏈上,以供醫師節點120加密資料之用,確保加密後的資料僅能被具有病患私密金鑰的病患節點110解密。另外,在實際實施上,傳送的所述病歷資料還可透過病患私密金鑰進行簽章,以供醫師節點120確認接收到的病歷資料的確是由病患節點110所傳送。The following is a further description of the electronic medical record system based on the blockchain and the method thereof according to the drawings. Please refer to "Figure 1" first, and "Figure 1" is a block diagram of the electronic medical record system based on the blockchain of the present invention. It is applied to multiple nodes 100 that make up the blockchain network 10, and each node 100 has a blockchain and the ability to process blockchain transactions. This system includes: a patient node 110 and a physician node 120. The part of the patient node 110 includes an execution module 111 and a confirmation module 112. The execution module 111 is used to execute the smart contract of the medical records of the blockchain to read the corresponding medical record data according to the smart contract addresses stored in the medical record data address array (Array), and according to the preset The patient's private key decrypts the medical records for transmission. In actual implementation, the patient node 110 has a set of key pairs, that is, the patient's public key and the patient's private key, and the patient's public key is transmitted to the doctor's node 120 or directly posted on the physician node 120 On the blockchain, it is used for physician node 120 to encrypt data, ensuring that the encrypted data can only be decrypted by patient node 110 with patient private key. In addition, in actual implementation, the transmitted medical record data can also be signed by the patient's private key for the physician node 120 to confirm that the received medical record data is indeed transmitted by the patient node 110.

確認模組112用以接收來自醫師節點120的醫療紀錄智能合約地址以確認醫療紀錄,並且在病患確認無誤後,透過區塊鏈交易將醫療紀錄智能合約地址儲存至病歷資料地址陣列,以作為所述病歷資料智能合約地址其中之一。在實際實施上,倘若病患確認醫療紀錄有誤,可忽略接收到醫療紀錄智能合約地址。換句話說,不允許將此醫療紀錄對應的醫療紀錄智能合約地址儲存至病歷資料地址陣列中,如此一來,此醫療紀錄便不會成為電子病歷中的病歷資料,因為只有儲存在病歷資料地址陣列中的地址(即:病歷資料智能合約地址),其對應的資料才會成為電子病歷中的病歷資料。The confirmation module 112 is used to receive the medical record smart contract address from the physician node 120 to confirm the medical record, and after the patient is confirmed to be correct, the medical record smart contract address is stored in the medical record data address array through the blockchain transaction as the One of the medical contract data smart contract addresses. In practice, if the patient confirms that the medical record is wrong, the smart contract address received from the medical record can be ignored. In other words, it is not allowed to store the medical contract smart contract address corresponding to this medical record in the medical record data address array. In this way, this medical record will not become the medical record data in the electronic medical record, because it is only stored in the medical record data address. The address in the array (that is, the smart contract address of the medical record data), the corresponding data will become the medical record data in the electronic medical record.

在所述醫師節點120的部分,其包含:醫療模組121、加密模組122及交易模組123。其中,醫療模組121用以自病患節點110接收解密的病歷資料以進行顯示,並且在醫療後生成醫療紀錄。所述醫療紀錄可包含診療、處置或檢查後的紀錄。另外,前面提到,病患節點110傳送的病歷資料還可透過病患私密金鑰進行簽章,因此,醫師節點120可藉由病患公開金鑰進行解密,以確認接收到的病歷資料的確是由病患節點110所傳送。The part of the doctor node 120 includes a medical module 121, an encryption module 122, and a transaction module 123. The medical module 121 is configured to receive the decrypted medical record data from the patient node 110 for display, and generate a medical record after medical treatment. The medical records may include records after diagnosis, treatment or examination. In addition, as mentioned earlier, the medical record data transmitted by the patient node 110 can also be signed with the patient's private key, so the physician node 120 can decrypt it with the patient's public key to confirm that the received medical record data is indeed It is transmitted by the patient node 110.

加密模組122用以根據預設的病患公開金鑰加密醫療紀錄以生成加密紀錄,並且根據預設的醫師憑證對此加密紀錄進行簽章。在實際實施上,所述醫師憑證可由第三方公信憑證單位(例如:台灣網路認證中心)發行,並且提供公鑰查詢服務,所以病患節點110可以驗證簽章,以確保加密紀錄是由相應的醫師節點120所生成。換句話說,醫師憑證可包含醫師憑證私鑰及醫師憑證公鑰,醫師節點120根據醫師憑證私鑰進行簽章,並且提供醫師憑證公鑰給病患節點110,使病患節點110能夠根據醫師憑證公鑰來驗證簽章。在實際實施上,醫師憑證公鑰還可發布在區塊鏈上,提供病患節點110查詢。The encryption module 122 is configured to encrypt a medical record according to a preset patient public key to generate an encrypted record, and sign the encrypted record according to a preset physician certificate. In practice, the doctor's certificate can be issued by a third-party public credential certification unit (for example: Taiwan Internet Certification Center) and provides a public key query service, so the patient node 110 can verify the signature to ensure that the encrypted record is issued by the corresponding Generated by the physician node 120. In other words, the physician credential can include the physician credential private key and the physician credential public key. The physician node 120 signs the private credential based on the physician credential and provides the physician credential public key to the patient node 110, so that the patient node 110 can Certificate public key to verify signature. In actual implementation, the public key of the doctor's certificate can also be published on the blockchain to provide patient node 110 query.

交易模組123用以將簽章後的加密紀錄以區塊鏈交易傳送至區塊鏈網路10,以及接收區塊鏈網路10完成區塊鏈交易後產生的醫療紀錄智能合約地址,並且將醫療紀錄智能合約地址傳送至病患節點110。在實際實施上,加密紀錄以區塊鏈交易傳送至區塊鏈網路10會在區塊鏈上產生一個智能合約(即:醫療紀錄智能合約),並且獲得相應的醫療紀錄智能合約地址,當病患節點110將此醫療紀錄智能合約地址儲存至病歷資料地址陣列中時,代表接收醫療紀錄智能合約的內容成為病歷資料的一部分。此時,醫療紀錄智能合約地址就變成病歷資料智能合約地址。The transaction module 123 is used to transmit the encrypted record after signing to the blockchain network 10 as a blockchain transaction, and to receive the smart contract address of the medical record generated after the blockchain network 10 completes the blockchain transaction, and The medical record smart contract address is transmitted to the patient node 110. In actual implementation, the encrypted record is transmitted to the blockchain network as a blockchain transaction. 10 A smart contract (ie, a medical record smart contract) is generated on the blockchain, and the corresponding smart record smart contract address is obtained. When the patient node 110 stores the medical record smart contract address in the medical record data address array, the content of the receiving medical record smart contract becomes a part of the medical record data. At this time, the medical contract smart contract address becomes the medical record data smart contract address.

接著,請參閱「第2圖」,「第2圖」為本發明基於區塊鏈的電子病歷方法之方法流程圖,應用在組成區塊鏈網路10的多個節點100,每一節點100皆具有區塊鏈且處理區塊鏈交易的能力,其步驟包括:提供病患節點110及醫師節點120,所述病患節點110及醫師節點120分別為組成區塊鏈網路10的多個節點100其中之一(步驟210);病患節點110執行區塊鏈的病歷智能合約以根據儲存在病歷資料地址陣列中的病歷資料智能合約地址讀取相應的病歷資料,並且根據預設的病患私密金鑰解密所述病歷資料以傳送至醫師節點120(步驟220);醫師節點120自病患節點110接收解密的所述病歷資料以進行顯示,並且在醫療後生成醫療紀錄(步驟230);醫師節點120根據預設的病患公開金鑰加密醫療紀錄以生成加密紀錄,並且根據預設的醫師憑證對此加密紀錄進行簽章(步驟240);醫師節點120將簽章後的加密紀錄以區塊鏈交易傳送至區塊鏈網路,以及接收區塊鏈網路完成區塊鏈交易後產生的醫療紀錄智能合約地址,並且將醫療紀錄智能合約地址傳送至病患節點110(步驟250);病患節點110接收醫療紀錄智能合約地址以確認醫療紀錄,並且在確認無誤後,透過區塊鏈交易將醫療紀錄智能合約地址儲存至病歷資料地址陣列,以作為所述病歷資料智能合約地址其中之一(步驟260)。透過上述步驟,即可透過區塊鏈的智能合約實現電子病歷,使區塊鏈網路10中的病患節點110能夠從區塊鏈中讀取病歷資料,再將病歷資料傳送至區塊鏈網路10中的醫師節點120進行顯示,以便用於醫療診斷,接著在醫療後由醫師節點120產生醫療紀錄,並且透過區塊鏈交易的方式,將醫療紀錄傳送至區塊鏈網路10,以及接收區塊鏈交易後產生的醫療紀錄智能合約地址以傳送至病患節點110提供確認醫療紀錄,當病患節點110確認後,允許將醫療紀錄加入病歷資料。如此一來,可以使病患透過區塊鏈保有自己的電子病歷,並且藉由區塊鏈資料互連互通的特性,將電子病歷中的病歷資料應用在醫療器材或醫療輔助軟體。Next, please refer to "Figure 2". "Figure 2" is a flowchart of the method of electronic medical records based on the blockchain of the present invention, which is applied to multiple nodes 100, each node 100 constituting the blockchain network 10. Both have a blockchain and the ability to process blockchain transactions. The steps include: providing a patient node 110 and a physician node 120. The patient node 110 and the physician node 120 are a plurality of each of which constitutes the blockchain network 10. One of the nodes 100 (step 210); the patient node 110 executes the blockchain medical record smart contract to read the corresponding medical record data according to the medical record data smart contract address stored in the medical record data address array, and according to the preset disease The patient's private key decrypts the medical record data for transmission to the physician node 120 (step 220); the physician node 120 receives the decrypted medical record data from the patient node 110 for display, and generates a medical record after medical treatment (step 230) ; The physician node 120 encrypts the medical record according to a preset patient public key to generate an encrypted record, and signs the encrypted record according to a preset physician certificate (step 240); the physician Point 120 sends the signed encrypted record to the blockchain network as a blockchain transaction, and receives the medical record smart contract address generated by the blockchain network after completing the blockchain transaction, and sends the medical record smart contract address Send to the patient node 110 (step 250); the patient node 110 receives the medical record smart contract address to confirm the medical record, and after confirming that it is correct, stores the medical record smart contract address into the medical record data address array through blockchain transactions. As one of the smart contract addresses of the medical record data (step 260). Through the above steps, an electronic medical record can be realized through the smart contract of the blockchain, so that the patient node 110 in the blockchain network 10 can read the medical record data from the blockchain, and then transmit the medical record data to the blockchain. The physician node 120 in the network 10 displays it for medical diagnosis, and then the medical node 120 generates a medical record after medical treatment, and transmits the medical record to the blockchain network 10 through a blockchain transaction. And the smart contract address generated after receiving the blockchain transaction is transmitted to the patient node 110 to provide a confirmed medical record. When the patient node 110 confirms, the medical record is allowed to be added to the medical record data. In this way, patients can keep their own electronic medical records through the blockchain, and the medical record data in the electronic medical records can be applied to medical equipment or medical auxiliary software through the characteristics of blockchain data interconnection.

以下配合「第3圖」至「第5圖」以實施例的方式進行如下說明,請先參閱「第3圖」,「第3圖」為應用本發明於病患節點讀取病歷資料之示意圖。假設位於病患節點110的病患欲讀取區塊鏈的病歷資料,並且將讀取到的病歷資料傳送至醫師節點120,其可透過病患操作視窗300在病歷地址輸入框310中輸入病患自己本身所擁有的病歷智能合約在區塊鏈中的地址(即:病歷資料智能合約地址),例如:「0xcee285f6eb0a3cf918891117272a7bec686cf996」,以便在點選載入元件311後,藉由輸入的地址從區塊鏈中讀取病歷資料並顯示於病歷資料顯示區塊320中。在實際實施上,從區塊鏈中讀取到的病歷資料是經過病患公開金鑰加密的資料,因此,在顯示於病歷資料顯示區塊320之前,會先以與病患公開金鑰對應的病患私密金鑰進行解密,以便成功將解密後的病歷資料顯示於病歷資料顯示區塊320中。如此一來,即可確保其他人無法僅藉由病歷智能合約地址讀取病歷資料,還必須擁有相應的病患私密金鑰才能正確解密。The following description will be given in an embodiment in conjunction with "Figure 3" to "Figure 5". Please refer to "Figure 3" first. "Figure 3" is a schematic diagram of reading medical record data at a patient node using the present invention . Assume that the patient located at the patient node 110 wants to read the medical record data of the blockchain, and transmits the read medical record data to the physician node 120, which can enter the disease in the medical record address input box 310 through the patient operation window 300. Suffer from his own medical record smart contract address in the blockchain (ie, the medical record data smart contract address), for example: "0xcee285f6eb0a3cf918891117272a7bec686cf996", so that after clicking load component 311, the input address The medical record data is read in the chain and displayed in the medical record data display block 320. In actual implementation, the medical record data read from the blockchain is encrypted with the patient's public key. Therefore, before being displayed in the medical record data display block 320, it will correspond to the patient's public key first. The patient ’s private key is decrypted in order to successfully display the decrypted medical record data in the medical record data display block 320. In this way, you can ensure that other people cannot read the medical record data only by the smart record address of the medical record, and they must have the corresponding patient private key to decrypt it correctly.

接下來,倘若要將解密後的病歷資料傳送至醫師節點120。病患可以透過如「第3圖」所示意的醫師節點地址輸入框330輸入醫師節點120的統一資源標識符(Uniform Resource Identifier, URI),例如:「enode://82498ed4295f1ce8fd6273f18b201c68c7ae9a76b47d35a7d740d2264d78bd120052fda79ae03a35c17875a55c8e35395146c118fa90b5e25c7bf91d6a5980e4@192.168.1.1:30303」,並且以游標或觸控方式點選傳送元件331以進行傳送。其中,「82498ed4295f1ce8fd6273f18b201c68c7ae9a76b47d35a7d740d2264d78bd120052fda79ae03a35c17875a55c8e35395146c118fa90b5e25c7bf91d6a5980e4」為醫師節點120的公開金鑰、「192.168.1.1」為醫師節點120的網路位址,以及「30303」為通訊埠號。Next, if the decrypted medical record data is to be transmitted to the physician node 120. Patients can enter the Uniform Resource Identifier (URI) of the Physician Node 120 through the Physician Node Address Input Box 330 as shown in "Figure 3", for example: "enode: // 82498ed4295f1ce8fd6273f18b201c68c7ae9a76b47d35a7d980d2264d78bd120052fda79ae5c5e5c35e5c35e5c5e5c5c5e5c5e5c5c5e5c5c5c5c5c5c5c5c5c5c5c3c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c" ", And click the transmitting element 331 with a cursor or touch to transmit. Among them, "82498ed4295f1ce8fd6273f18b201c68c7ae9a76b47d35a7d740d2264d78bd120052fda79ae03a35c17875a55c8e35395146c118fa90b5e25c7bf91d6a5980e4" is the public key of the physician node 120, and "192.168.1.1" is the doctor ’s node 120, and "192.168.1.1"

如「第4圖」所示意,「第4圖」為應用本發明於醫師節點產生醫療紀錄之示意圖。前面提到,解密後的病歷資料會傳送至醫師節點120。在實際實施上,醫師節點120會將接收到的病歷資料顯示在醫師操作視窗400中的病歷資料顯示區塊410,位於醫師節點120的醫師可透過顯示的病歷資料做為醫療診斷的參考,並且在醫療後於醫療紀錄區塊420輸入相關紀錄(即:醫師因執行醫療業務所記載的文書紀錄)以生成醫療紀錄,倘若因誤繕而欲重新記錄,可點選編輯元件431以進行編輯。接著,在生成醫療紀錄後,可點選簽章元件432以便先根據預設的病患公開金鑰加密此醫療紀錄來生成加密紀錄,接著再將加密紀錄以預設的醫師憑證進行簽章,以供確認此加密紀錄是由此醫師節點120所生成。最後,便可點選傳送元件433將簽章後的加密紀錄以區塊鏈交易的方式傳送至區塊鏈網路10,由區塊鏈網路10進行區塊鏈交易處理,並且接收區塊鏈網路10完成區塊鏈交易後產生的醫療紀錄智能合約地址,以便將醫療紀錄智能合約地址傳送至病患節點110,提供病患確認相應的醫療紀錄。在實際實施上,當醫師節點120接收到醫療紀錄智能合約地址後,還可產生如「第4圖」所示意的顯示視窗450,用以顯示醫療紀錄智能合約地址,以便醫師能夠透過此醫療紀錄智能合約地址從區塊鏈查詢及確認其生成的醫療紀錄。As shown in "Figure 4", "Figure 4" is a schematic diagram of generating medical records at a physician node by applying the present invention. As mentioned earlier, the decrypted medical record data will be transmitted to the physician node 120. In actual implementation, the physician node 120 displays the received medical record data in the medical record display block 410 in the physician operation window 400. The physician located at the physician node 120 can use the displayed medical record data as a reference for medical diagnosis, and After the medical treatment, enter the relevant records in the medical record block 420 (that is, the physician records the records of documents performed by the medical service) to generate medical records. If you want to re-record due to mistaken mistakes, you can click the editing element 431 to edit. Then, after generating the medical record, click the signature element 432 to first encrypt the medical record according to a preset patient public key to generate an encrypted record, and then sign the encrypted record with a preset physician certificate. For confirmation that the encrypted record is generated by the physician node 120. Finally, you can click the transmission element 433 to send the signed encrypted record to the blockchain network 10 as a blockchain transaction. The blockchain network 10 will process the blockchain transaction and receive the block. The medical record smart contract address generated after the blockchain network 10 completes the blockchain transaction, in order to transmit the medical record smart contract address to the patient node 110, and provide the patient to confirm the corresponding medical record. In actual implementation, when the physician node 120 receives the medical record smart contract address, it can also generate a display window 450 as shown in "Figure 4", which is used to display the medical record smart contract address so that the physician can pass this medical record. The smart contract address queries and confirms the medical records it generates from the blockchain.

如「第5圖」所示意,「第5圖」為應用本發明於病患節點確認醫療紀錄之示意圖。以上例而言,病患節點110接收到醫師節點120傳送的醫療紀錄智能合約地址之後,可如「第5圖」所示意產生確認視窗500,用以顯示醫療紀錄智能合約地址510,以及在顯示區塊520中顯示此醫療紀錄智能合約地址510相應的醫療紀錄。假設病患確認醫療紀錄無誤,可點選確認元件531以透過區塊鏈交易將醫療紀錄智能合約地址510儲存在病歷智能合約的病歷資料地址陣列中,作為此陣列中所儲存的其中一個病歷資料智能合約地址。如此一來,往後在執行病歷智能合約時,從病歷資料地址陣列中即可讀取對應此醫療紀錄智能合約地址510的病歷資料。反之,倘若病患確認醫療紀錄有誤,可點選異議元件532以忽略此醫療紀錄智能合約地址510,如此一來,醫療紀錄智能合約地址510就不會被加入病歷資料地址陣列中,造成其對應的醫療紀錄無法寫入病患的電子病歷中,也就是說,醫療紀錄智能合約地址510對應的醫療紀錄在區塊鏈中,相當於是一份沒有人會去讀取的資料。As shown in "Figure 5", "Figure 5" is a schematic diagram of confirming a medical record at a patient node using the present invention. In the above example, after the patient node 110 receives the medical record smart contract address transmitted by the physician node 120, it can generate a confirmation window 500 as shown in "Figure 5", which is used to display the medical record smart contract address 510. The medical record corresponding to the medical record smart contract address 510 is displayed in block 520. Assuming that the patient confirms that the medical record is correct, click the confirmation component 531 to store the medical record smart contract address 510 in the medical record data address array of the medical record smart contract through the blockchain transaction as one of the medical record data stored in this array. Smart contract address. In this way, when the medical record smart contract is executed in the future, the medical record data corresponding to the medical record smart contract address 510 can be read from the medical record data address array. Conversely, if the patient confirms that the medical record is incorrect, he can click the dissent element 532 to ignore the medical record smart contract address 510. In this way, the medical record smart contract address 510 will not be added to the medical record data address array, causing it The corresponding medical record cannot be written into the patient's electronic medical record, that is, the medical record corresponding to the medical record smart contract address 510 is in the blockchain, which is equivalent to a piece of data that no one will read.

綜上所述,可知本發明與先前技術之間的差異在於透過區塊鏈的智能合約實現電子病歷,使區塊鏈網路中的病患節點能夠從區塊鏈中讀取病歷資料,再將病歷資料傳送至區塊鏈網路中的醫師節點進行顯示,以便用於醫療診斷,接著在醫療後由醫師節點產生醫療紀錄,並且透過區塊鏈交易的方式,將醫療紀錄傳送至區塊鏈網路,以及接收區塊鏈交易後產生的醫療紀錄智能合約地址以傳送至病患節點提供確認醫療紀錄,當病患節點確認後,允許將醫療紀錄加入病歷資料,藉由此一技術手段可以解決先前技術所存在的問題,進而達成提高電子病歷的可用性之技術功效。In summary, it can be seen that the difference between the present invention and the prior art lies in the realization of electronic medical records through the smart contracts of the blockchain, so that patient nodes in the blockchain network can read the medical record data from the blockchain, and then Send medical records to physician nodes in the blockchain network for display, for medical diagnosis, and then generate medical records from physician nodes after medical treatment, and transmit medical records to the block through blockchain transactions. Chain network, and the smart contract address of the medical record generated after receiving the blockchain transaction is transmitted to the patient node to provide the confirmed medical record. After the patient node confirms, the medical record is allowed to be added to the medical record data. It can solve the problems existing in the prior art, and then achieve the technical effect of improving the usability of electronic medical records.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明,任何熟習相像技藝者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之專利保護範圍須視本說明書所附之申請專利範圍所界定者為準。Although the present invention is disclosed in the foregoing embodiments as above, it is not intended to limit the present invention. Any person skilled in similar arts can make some modifications and retouches without departing from the spirit and scope of the present invention. The scope of patent protection shall be determined by the scope of the patent application attached to this specification.

10‧‧‧區塊鏈網路10‧‧‧ Blockchain Network

100‧‧‧節點100‧‧‧node

110‧‧‧病患節點110‧‧‧patient node

111‧‧‧執行模組111‧‧‧Execution Module

112‧‧‧確認模組112‧‧‧ Confirmation Module

120‧‧‧醫師節點120‧‧‧Physician Node

121‧‧‧醫療模組121‧‧‧Medical Module

122‧‧‧加密模組122‧‧‧Encryption Module

123‧‧‧交易模組123‧‧‧Transaction Module

300‧‧‧病患操作視窗300‧‧‧patient operation window

310‧‧‧病歷地址輸入框310‧‧‧ Medical Record Address Input Box

311‧‧‧載入元件311‧‧‧Loading components

320‧‧‧病歷資料顯示區塊320‧‧‧ medical record data display block

330‧‧‧醫師節點地址輸入框330‧‧‧Physician node address input box

331‧‧‧傳送元件331‧‧‧Transmission element

400‧‧‧醫師操作視窗400‧‧‧Physician operation window

410‧‧‧病歷資料顯示區塊410‧‧‧ medical record data display block

420‧‧‧醫療紀錄區塊420‧‧‧medical record block

431‧‧‧編輯元件431‧‧‧Editing element

432‧‧‧簽章元件432‧‧‧Signature components

433‧‧‧傳送元件433‧‧‧Transmission element

450‧‧‧顯示視窗450‧‧‧display window

500‧‧‧確認視窗500‧‧‧Confirmation window

510‧‧‧醫療紀錄智能合約地址510‧‧‧medical record smart contract address

520‧‧‧顯示區塊520‧‧‧Display block

531‧‧‧確認元件531‧‧‧Confirm component

532‧‧‧異議元件532‧‧‧Dissent element

步驟210‧‧‧提供一病患節點及一醫師節點,該病患節點及該醫師節點分別為組成一區塊鏈網路的多個節點其中之一Step 210‧‧‧ provides a patient node and a physician node, each of which is one of a plurality of nodes forming a blockchain network

步驟220‧‧‧該病患節點執行區塊鏈的一病歷智能合約以根據儲存在一病歷資料地址陣列中的至少一病歷資料智能合約地址讀取相應的至少一病歷資料,並且根據預設的一病患私密金鑰解密所述病歷資料以傳送至該醫師節點Step 220‧‧‧ The patient node executes a medical record smart contract of the blockchain to read corresponding at least one medical record data according to at least one medical record data smart contract address stored in an array of medical record data address, and according to a preset A patient's private key decrypts the medical record data for transmission to the physician node

步驟230‧‧‧該醫師節點自該病患節點接收解密的所述病歷資料以進行顯示,並且在醫療後生成一醫療紀錄Step 230‧‧‧ The physician node receives the decrypted medical record data from the patient node for display, and generates a medical record after medical treatment

步驟240‧‧‧該醫師節點根據預設的一病患公開金鑰加密該醫療紀錄以生成一加密紀錄,並且根據預設的一醫師憑證對該加密紀錄進行簽章Step 240‧‧‧ The physician node encrypts the medical record according to a preset patient public key to generate an encrypted record, and signs the encrypted record according to a preset physician certificate

步驟250‧‧‧該醫師節點將簽章後的該加密紀錄以區塊鏈交易傳送至該區塊鏈網路,以及接收該區塊鏈網路完成區塊鏈交易後產生的一醫療紀錄智能合約地址,並且將該醫療紀錄智能合約地址傳送至該病患節點Step 250‧‧‧ The physician node sends the encrypted record after signing to the blockchain network as a blockchain transaction, and receives a medical record intelligence generated after the blockchain network completes the blockchain transaction The contract address, and transmit the medical record smart contract address to the patient node

步驟260‧‧‧該病患節點接收該醫療紀錄智能合約地址以確認該醫療紀錄,並且在確認無誤後,透過區塊鏈交易將該醫療紀錄智能合約地址儲存至該病歷資料地址陣列,以作為所述病歷資料智能合約地址其中之一Step 260‧‧‧ The patient node receives the medical record smart contract address to confirm the medical record, and after confirmation is correct, the medical record smart contract address is stored in the medical record data address array through a blockchain transaction as One of the medical contract information smart contract addresses

第1圖為本發明基於區塊鏈的電子病歷系統之系統方塊圖。 第2圖為本發明基於區塊鏈的電子病歷方法之方法流程圖。 第3圖為應用本發明於病患節點讀取病歷資料之示意圖。 第4圖為應用本發明於醫師節點產生醫療紀錄之示意圖。 第5圖為應用本發明於病患節點確認醫療紀錄之示意圖。FIG. 1 is a system block diagram of the electronic medical record system based on the blockchain of the present invention. FIG. 2 is a method flowchart of the electronic medical record method based on the blockchain of the present invention. FIG. 3 is a schematic diagram of reading medical record data at a patient node by applying the present invention. FIG. 4 is a schematic diagram of generating medical records at a physician node by applying the present invention. FIG. 5 is a schematic diagram of confirming a medical record at a patient node using the present invention.

Claims (10)

一種基於區塊鏈的電子病歷系統,應用在組成一區塊鏈網路的多個節點,每一節點皆具有一區塊鏈且處理區塊鏈交易的能力,該系統包含: 一病患節點,該病患節點為所述節點其中之一,其包含: 一執行模組,用以執行該區塊鏈的一病歷智能合約以根據儲存在一病歷資料地址陣列中的至少一病歷資料智能合約地址讀取相應的至少一病歷資料,並且根據預設的一病患私密金鑰解密所述病歷資料以進行傳送;以及 一確認模組,用以接收一醫療紀錄智能合約地址以確認一醫療紀錄,並且在確認無誤後,透過區塊鏈交易將該醫療紀錄智能合約地址儲存至該病歷資料地址陣列,以作為所述病歷資料智能合約地址其中之一;以及 一醫師節點,該醫師節點為所述節點其中之一,其包含: 一醫療模組,用以自該病患節點接收解密的所述病歷資料以進行顯示,並且在醫療後生成該醫療紀錄; 一加密模組,用以根據預設的一病患公開金鑰加密該醫療紀錄以生成一加密紀錄,並且根據預設的一醫師憑證對該加密紀錄進行簽章;以及 一交易模組,用以將簽章後的該加密紀錄以區塊鏈交易傳送至該區塊鏈網路,以及接收該區塊鏈網路完成區塊鏈交易後產生的該醫療紀錄智能合約地址,並且將該醫療紀錄智能合約地址傳送至該病患節點。A blockchain-based electronic medical record system is applied to multiple nodes forming a blockchain network. Each node has a blockchain and the ability to process blockchain transactions. The system includes: a patient node The patient node is one of the nodes and includes: an execution module for executing a medical record smart contract of the blockchain to perform at least one medical record data smart contract stored in an array of medical record data addresses The address reads the corresponding at least one medical record data, and decrypts the medical record data for transmission according to a preset patient private key; and a confirmation module for receiving a medical record smart contract address to confirm a medical record And after confirming that there is no error, the medical record smart contract address is stored into the medical record data address array through a blockchain transaction as one of the medical record data smart contract addresses; and a physician node, the physician node is One of the nodes includes: a medical module for receiving the decrypted medical record data from the patient node for display, and Generating the medical record after medical treatment; an encryption module for encrypting the medical record according to a preset public key of a patient to generate an encrypted record, and signing the encrypted record according to a preset physician certificate ; And a transaction module for transmitting the encrypted record after signing to the blockchain network as a blockchain transaction, and receiving the medical record generated after the blockchain network completes the blockchain transaction The smart contract address is transmitted to the patient node. 根據申請專利範圍第1項之基於區塊鏈的電子病歷系統,其中該病患節點具有一組金鑰對,該組金鑰對包含該病患公開金鑰及該病患私密金鑰,並且預先將該病患公開金鑰傳送至該醫師節點。According to the blockchain-based electronic medical record system of the first patent application scope, the patient node has a set of key pairs, the set of key pairs containing the patient's public key and the patient's private key, and The patient public key is transmitted to the physician node in advance. 根據申請專利範圍第1項之基於區塊鏈的電子病歷系統,其中該執行模組在傳送所述病歷資料之前,根據該病患私密金鑰對所述病歷資料進行加密,用以完成對所述病歷資料的簽章。According to the blockchain-based electronic medical record system according to item 1 of the patent application scope, before the execution module transmits the medical record data, the medical record data is encrypted according to the patient's private key to complete The signature of the medical records. 根據申請專利範圍第1項之基於區塊鏈的電子病歷系統,其中該醫師憑證包含一醫師憑證私鑰及一醫師憑證公鑰,該加密模組根據該醫師憑證私鑰進行簽章,並且提供該醫師憑證公鑰,使該病患節點根據該醫師憑證公鑰驗證簽章。According to the blockchain-based electronic medical record system of the first patent application scope, wherein the physician certificate includes a physician certificate private key and a physician certificate public key, the encryption module is signed according to the physician certificate private key and provided The doctor certificate public key enables the patient node to verify the signature based on the doctor certificate public key. 根據申請專利範圍第1項之基於區塊鏈的電子病歷系統,其中該病患私密金鑰、該病患公開金鑰及該醫師憑證係為第三方公信憑證單位生成及核發,並且將該病患公開金鑰及該醫師憑證的一醫師憑證公鑰寫入該區塊鏈以供查詢。According to the blockchain-based electronic medical record system of the first patent application scope, the patient's private key, the patient's public key, and the physician's certificate are generated and issued by a third-party public credential unit, and the disease The patient's public key and a doctor's certificate public key of the doctor's certificate are written into the blockchain for query. 一種基於區塊鏈的電子病歷方法,應用在組成一區塊鏈網路的多個節點,每一節點皆具有一區塊鏈且處理區塊鏈交易的能力,其步驟包括: 提供一病患節點及一醫師節點,該病患節點及該醫師節點分別為所述節點其中之一; 該病患節點執行該區塊鏈的一病歷智能合約以根據儲存在一病歷資料地址陣列中的至少一病歷資料智能合約地址讀取相應的至少一病歷資料,並且根據預設的一病患私密金鑰解密所述病歷資料以傳送至該醫師節點; 該醫師節點自該病患節點接收解密的所述病歷資料以進行顯示,並且在醫療後生成一醫療紀錄; 該醫師節點根據預設的一病患公開金鑰加密該醫療紀錄以生成一加密紀錄,並且根據預設的一醫師憑證對該加密紀錄進行簽章; 該醫師節點將簽章後的該加密紀錄以區塊鏈交易傳送至該區塊鏈網路,以及接收該區塊鏈網路完成區塊鏈交易後產生的一醫療紀錄智能合約地址,並且將該醫療紀錄智能合約地址傳送至該病患節點;以及 該病患節點接收該醫療紀錄智能合約地址以確認該醫療紀錄,並且在確認無誤後,透過區塊鏈交易將該醫療紀錄智能合約地址儲存至該病歷資料地址陣列,以作為所述病歷資料智能合約地址其中之一。A blockchain-based electronic medical record method is applied to multiple nodes forming a blockchain network. Each node has a blockchain and the ability to process blockchain transactions. The steps include: providing a patient Node and a physician node, the patient node and the physician node being one of the nodes, respectively; the patient node executes a medical record smart contract of the blockchain to store at least one of a medical record data address array according to The medical record data smart contract address reads the corresponding at least one medical record data, and decrypts the medical record data according to a preset patient private key to transmit to the physician node; the physician node receives the decrypted said from the patient node The medical record data is displayed, and a medical record is generated after the medical treatment; the physician node encrypts the medical record according to a preset patient public key to generate an encrypted record, and the encrypted record according to a preset physician certificate Signing; the physician node sends the encrypted record after signing to the blockchain network as a blockchain transaction, and receives the blockchain network Into a medical record smart contract address generated after the blockchain transaction, and transmitting the medical record smart contract address to the patient node; and the patient node receives the medical record smart contract address to confirm the medical record, and After the confirmation is correct, the medical record smart contract address is stored in the medical record data address array through a blockchain transaction as one of the medical record data smart contract addresses. 根據申請專利範圍第6項之基於區塊鏈的電子病歷方法,其中該病患節點具有一組金鑰對,該組金鑰對包含該病患公開金鑰及該病患私密金鑰,並且預先將該病患公開金鑰傳送至該醫師節點。The blockchain-based electronic medical record method according to item 6 of the scope of patent application, wherein the patient node has a set of key pairs, the set of key pairs containing the patient's public key and the patient's private key, and The patient public key is transmitted to the physician node in advance. 根據申請專利範圍第6項之基於區塊鏈的電子病歷方法,其中該病患節點在傳送所述病歷資料之前,根據該病患私密金鑰對所述病歷資料進行加密,用以完成對所述病歷資料的簽章。According to the blockchain-based electronic medical record method according to item 6 of the patent application scope, before the patient node transmits the medical record information, the medical record information is encrypted according to the private key of the patient, so as to complete the The signature of the medical records. 根據申請專利範圍第6項之基於區塊鏈的電子病歷方法,其中該醫師憑證包含一醫師憑證私鑰及一醫師憑證公鑰,該醫師節點根據該醫師憑證私鑰進行簽章,並且提供該醫師憑證公鑰,使該病患節點根據該醫師憑證公鑰驗證簽章。According to the blockchain-based electronic medical record method according to item 6 of the scope of patent application, wherein the doctor certificate includes a doctor certificate private key and a doctor certificate public key, the doctor node signs and signs the doctor certificate private key and provides the The public key of the physician certificate enables the patient node to verify the signature based on the public key of the physician certificate. 根據申請專利範圍第6項之基於區塊鏈的電子病歷方法,其中該病患私密金鑰、該病患公開金鑰及該醫師憑證係為第三方公信憑證單位生成及核發,並且將該病患公開金鑰及該醫師憑證的一醫師憑證公鑰寫入該區塊鏈以供查詢。According to the blockchain-based electronic medical record method according to item 6 of the scope of patent application, wherein the patient's private key, the patient's public key, and the doctor's certificate are generated and issued by a third-party public credential unit, and the disease The patient's public key and a doctor's certificate public key of the doctor's certificate are written into the blockchain for query.
TW106102077A 2017-01-20 2017-01-20 Electronic medical record system based on blockchain and method thereof TWI661433B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106102077A TWI661433B (en) 2017-01-20 2017-01-20 Electronic medical record system based on blockchain and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106102077A TWI661433B (en) 2017-01-20 2017-01-20 Electronic medical record system based on blockchain and method thereof

Publications (2)

Publication Number Publication Date
TW201828242A TW201828242A (en) 2018-08-01
TWI661433B true TWI661433B (en) 2019-06-01

Family

ID=63960076

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106102077A TWI661433B (en) 2017-01-20 2017-01-20 Electronic medical record system based on blockchain and method thereof

Country Status (1)

Country Link
TW (1) TWI661433B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3605945A1 (en) * 2018-08-03 2020-02-05 Dovetail Digital Limited Method and system for exchanging data
US20200090795A1 (en) * 2018-09-14 2020-03-19 Htc Corporation Method and system for sharing privacy data based on smart contracts
CN109949882A (en) * 2018-11-15 2019-06-28 陕西医链区块链集团有限公司 Medical block chain data storage system
CN109545301A (en) * 2018-11-23 2019-03-29 浙江工商大学 Shared electronic health record method based on block chain Hyperledger Fabric
TWI700707B (en) * 2018-11-28 2020-08-01 臺北醫學大學 Method and system for retrieving electronic medical and health records by blockchain
AU2018348339A1 (en) * 2018-12-29 2020-07-16 Advanced New Technologies Co., Ltd. Visual blockchain browser
CN112786137A (en) * 2021-02-03 2021-05-11 北京好欣晴移动医疗科技有限公司 Psychiatric department electronic medical record system based on big data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201218010A (en) * 2010-10-20 2012-05-01 Wen-Qin Chen for ensuring integrity of electronic medical record content without tampering after completion
CN105812126A (en) * 2016-05-19 2016-07-27 齐鲁工业大学 Lightweight back-up and efficient restoration method of health block chain data encryption keys

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201218010A (en) * 2010-10-20 2012-05-01 Wen-Qin Chen for ensuring integrity of electronic medical record content without tampering after completion
CN105812126A (en) * 2016-05-19 2016-07-27 齐鲁工业大学 Lightweight back-up and efficient restoration method of health block chain data encryption keys

Also Published As

Publication number Publication date
TW201828242A (en) 2018-08-01

Similar Documents

Publication Publication Date Title
TWI661433B (en) Electronic medical record system based on blockchain and method thereof
US11144660B2 (en) Secure data sharing
CA3027741C (en) Blockchain systems and methods for user authentication
US20210287770A1 (en) Electronic patient credentials
CN107800682A (en) With data authentication and safe transmission of the Transport Layer Security between signature apparatus and main frame
EP3872670A1 (en) Method and apparatus for sharing data based on blockchain network, device, and medium
US9799029B2 (en) Securely receiving data input at a computing device without storing the data locally
WO2019241169A1 (en) System and method for facilitating payment requests within a health care network
JP7023294B2 (en) Creating a matching cohort and exchanging protected data using the blockchain
Lee et al. SEMRES-A triple security protected blockchain based medical record exchange structure
US20080028214A1 (en) Secure flash media for medical records
TWI663865B (en) Identity management system based on cross-chain and method thereof
EP3703306A1 (en) Data registration method, data decoding method, data structure, computer, and program
CN101571900A (en) Software copyright protection method, device and system
CN110600096A (en) Medical data management method and system and computer storage medium
KR20100074160A (en) System and method for verifying an electronic document
CN102238192A (en) Anonymous health care and record system
US20230379155A1 (en) Identity Information Processing Method, Device, and System
Sethia et al. Smart health record management with secure NFC-enabled mobile devices
JP7475494B2 (en) Method and apparatus for blockchain-based transaction tracking
CN110414253A (en) A kind of electronic health record management method, device, system and equipment based on block chain
US20240127942A1 (en) Systems and methods for sharing healthcare data with healthcare data processors
TWM569002U (en) Medical record sharing system
WO2022089518A1 (en) Address generation method, blockchain information processing method, and related device
JP6218225B2 (en) Data communication system, communication terminal device, and communication program