我正在做一个电子病历Hyperledger结构网络。 假设我的网络有两家医院,这些医院需要彼此共享患者信息等信息并登记在分类账上。 我创建了三个频道channel1,其中医院1和频道2具有医院2的对等方和具有两个组织的对等方的另一个频道。 因此,诸如员工细节等信息不会被另一个组织同行节省。 我的设置是否正确或需要进行更改? 以及如何将患者记录分享到医院2。
I am doing an electronic health record Hyperledger fabric network. Suppose my network has two hospitals and these hospitals need to share information like patient info etc with each other and register on the ledger. I have created three channel channel1 having peers of hospital1 and channel2 having peers of hospital2 and another channel that having peers of both organization. So that information like employees details etc won't be save on another organisations peers. Is my setup correct or do I need to make changes? and how can I share patient records to hospital2.
最满意答案
在技术方面,你是对的。 只有第3频道才会提供共同的“数据共享”。 在体系结构方面,通道1和通道2的目的是什么? 数据将仅由1个组织(1家医院)编写和阅读。 所以一个更“古典”的数据库可以完成这项工作。
如果您想在两家医院之间共享患者数据,则需要在3频道的所有对等方上安装链代码,然后对其进行实例化。 在这个chaincode中,你应该有一个invoke函数,它将新的患者键/值放入分类账中。
Under the technical aspect, you are right. Only the channel 3 will provide a common "data sharing". Under the architecture aspect, what would be the purpose of the channels 1 and 2? The data will be written and read by only 1 organisation (1 hospital). So a more "classical" database would do the job.
If you want to share patient data between both hospitals, you will need to install a chaincode on all the peers of channel 3, then instantiate it. In this chaincode, you should have an invoke function, which put new patient key/value in the ledger.
更多推荐
发布评论