Sunday, September 11, 2016

Coding a healthcare application for Blockchain

I usually have to dive right in if I'm going to understand something.  So I found some sample code via IBM BlueMix to read through.

Here is the first application I will try to create:

1.) Identify a patient using a cryptographic entity identifier.  Imagine that I have an application on my phone. I used it to connect to the Blockchain Healthcare Network (BHN).  The first time I did this, it issued me my cryptographic identifier that I stored on an application on my phone.  We won't bother talking about how this is kept secure. That's for a later discussion.

2.) In the case of this example, the identifier I discussed above will simply be a hard-coded key that is provided by BlueMix.

3.) I pretend I am a healthcare primary care provider that has co-identified me when I came to the practice (e.g., I log into my phone, open my BHN key application, and show them my QR code and they scan it in.)

4.) They prescribe/order me to take 1 Ibuprofen

5.) I leave and the practice submits this new medical information to the BHN

And, it's a transaction for the ledger.

So, here are the steps I believe will happen:

1.) Practice entity identifier is submitted to the blockchain.
2.) My patient entity identifier is submitted to the blockchain
3.) The transaction is this:

  • Credit Patient's ledger with an Active Medication called Ibuprofen, quantity 1
  • Debit Provider's ledger which indicates the practice has issued the unfilled prescription
  • Verify the transaction is legitimate (not sure how this part works but it uses hundreds of "volunteer" computers around the world who get a micro-fee for providing their infrastructure)
  • Close the transaction for these entities


Simple, right?

No comments:

Post a Comment