SlideShare une entreprise Scribd logo
1  sur  26
²
1
Medical Prescriptions
on a Public Blockchain
Kristof Verslype, Smals Research20 June 2017
Recap: Smart Contracts
2
Contract Auction{
function bid(){…}
function end(){…}
HighestBid: €
HighestBidder:
Beneficiary: Charlie
}
bid(...), 20€
end(...)
bid(...), 10€
20€
02010
Bob
Alice
Charlie
Alice
10€
Bob
bidEvent: 10€
bidEvent: 10€
bidEvent: 20€
bidEvent: 20€
Dave
Contract code execution distributed
Money can be temporarily blocked by contract
Function calls in transactions on blockchain
Processing Medical Prescriptions
3
Doctor Pharmacist
€ €
€
€
Mutuality
Patient
Tarification
office
Processing prescriptions s.t.
reimbursement possible
Real-time analysis RIZIV/INAMI
Traditional money transfer
Data flow
Physical delivery
Processing Medical Prescriptions
4
Doctor
€ €
€
€
Mutuality
Patient
Tarification
office
Complex information
flowsTraditional money transfer
Data flow
Physical delivery
Pharmacist
Processing Medical Prescriptions
5
Doctor Pharmacist
Mutuality
Patient
Tarification
office
All other communication with blockchain
Privacy & confidentiality enterprise data guaranteed
Traditional money transfer
Show on smartphone
Physical delivery
7a2
3b
3a
4
5 7b
8 9 10a
10b
issue() fill() confirm()insure() assign()
Contract function call
Event observation
Direct communication
Doctor Patient Pharmacist
Tar. officeMutuality
Prescription
Medicine
Valid from
Patient
Tarification office
Mutuality
Pharmacist
Doctor
Delivered
Id
Reduced fee?
Prescription
Medicine
Valid from
Patient
Tarification office
Mutuality
Pharmacist
Doctor
Delivered
Id
Reduced fee?
Prescription
Medicine
Valid from
Patient
Tarification office
Mutuality
Pharmacist
Doctor
Delivered
Id
Reduced fee?
6a
1 6b
function() Contract function
The Smart Contract
6
Privacy with permanent pseudonyms
7
Prescription 158
Valid from
Valid from
Patient
Tarification office
Mutuality
Pharmacist
Doctor
Reduced fee?
Delivered
Prescription 577
Medicine
Valid from
Patient
Tarification office
Mutuality
Pharmacist
Doctor
Reduced fee?
Delivered
Prescription 804
Medicine
Valid from
Patient
Tarification office
Mutuality
Pharmacist
Doctor
Reduced fee?
Delivered
Permanent pseudonyms offer insufficient protection of 1) citizen’s
privacy and 2) confidentiality of enterprise data
Id Id Id
8
One-Time Pseudonyms
Charlie
Bob
Alice
Blockchain network
Link
Link
Link
Link
8
Different Views
9
One-time patient pseudonyms on the blockchain
Rest of the world
Similar for doctors, pharmacists, mutualities and tarification offices
Link Attack 1
10
Doctor: 02/04/17, 21h30 (A)
Pharmacist: 28/04/17, 20h45 (B)
A B
Combining info real world & blockchain can leak sensitive data
Attacker knows patient identity & observes him/her physically
11
Doctor: 02/04/17, 21h30 (A)
Pharmacist: 28/04/17, 20h45 (B)
A B
Prescription
Medicine
Valid from
Patient
Tarification office
Mutuality
Pharmacist
Doctor
Delivered
Id
Reduced fee?
→ Encryption of sensitive data in
blockchain/smart contract
Difficult attack, but one success
enough to torpedo project
Link Attack 1
Combining info real world & blockchain can leak sensitive data
Attacker knows patient identity & observes him/her physically
Different Views
Prescription
Pantoprazol 20mg
True
…
Prescription
???
???
…
Rest of the world
My
Prescription
Pantoprazol 20mg
???
…
My
…
=> fine grained access control with encryption 12
Interface
13
Ontvang
Consumeer
Mijn voorschriften
Oproep functie in contract
Observatie event
14
Toon QR-code
aan Arts
Interface
Nieuwe code
Arts
Medicijn
Geldig vanaf [Optioneel]
Uitgeven Voorschrift
Scan patient QR-code
Geef voorschrift uit
Etanercept 1mg
Interface
15
Ontvang
Consumeer
Nieuw Voorschrift
Etanercept 1mg
Mijn voorschriften
Interface
16
Ontvang
Consumeer
Mijn voorschriften
17
Pantoprazol 20mg
Etanercept 1mg
Adalimumab 5mg
Adalimumab 5mg
Interface
Mijn voorschriften
18
Adalimumab 5mg
<< Front camera active >>
Toon QR-code
aan apotheker
Interface - Dispense
Apotheker
OK
19
Interface - Dispense
Apotheker
Adalimumab 5mg
Pantoprazol 20mg
Process
RefundDrug Processed
15,30€
9,13€
20
Pantoprazol 20mg
Etanercept 1mg
Adalimumab 5mg
Adalimumab 5mg
Interface - Dispense
Mijn voorschriften
The bigger picture
Een Blockchain Ecosysteem
21
Arts
Mutualiteit
Werkgever Hospitaal
Eén medische consultatie kan een hele set acties in gang zetten,
met blockchain als centrale as.
Voorschrift
Bewijs verstrekte hulp
Bewijs van arbeidsongeschiktheid
Doorverwijzing naar hospitaal
Rekening hospitaal voor mutualiteit
…
Storage for 1 Year (Estimates)
22
±270GB ±270GB
Mutuality
±270GB
Tar. office
Only RIZIV/INAMI, mutualities and tarification
offices need full copy of blockchain.
If prescriptions max. 1 year valid, blockchain can
be truncated s.t. old transactions are ‘forgotten’
Optimizations possible
Key Management
Good protection of keys required
Link
→
Link
→
Link
→
Link
→
Link
→
Link
→
LinkLink LinkLink
→Link
→
Link
→
Link
→
Link
Link
Link
Link
Link
Link
23
Prescription Blockchain Network
24
Full node
Frequent light node
Occasional light node
Block creation
By RIZIV/INAMI, mutualities, and/or tarification offices.
Ex. Signatures by 5 of 7 mutualities
Evaluation
25
Privacy & confidentiality
- Strong guarantees
- No central, all-knowing, all-mighty big brother
- RIZIV/INAMI analyses in real-time while respecting privacy
Communication
- No complex information flows
- All information everywhere (almost) in real-time
Challenges
- More complex key management
- Higher requirements for storage and communication
Higher availability
=> interesting blockchain case / experience
26
Smals www.smals.be
@Smals_ICT
www.smalsresearch.be
@SmalsResearch
Kristof Verslype
@KristofVerslype
02 787 53 76
kristof.verslype@smals.be
be.linkedin.com/in/verslype

Contenu connexe

Plus de Brussels Legal Hackers

Plus de Brussels Legal Hackers (14)

20190221 Data subject rights in practice
20190221 Data subject rights in practice20190221 Data subject rights in practice
20190221 Data subject rights in practice
 
20180619 Controller-to-Processor agreements
20180619 Controller-to-Processor agreements20180619 Controller-to-Processor agreements
20180619 Controller-to-Processor agreements
 
20180607 - Tech Summit presentation
20180607 - Tech Summit presentation20180607 - Tech Summit presentation
20180607 - Tech Summit presentation
 
20180317 CLBfest 2018 - Trase
20180317 CLBfest 2018 - Trase20180317 CLBfest 2018 - Trase
20180317 CLBfest 2018 - Trase
 
20171108 IAPP Congress - Privacy by Design presentation
20171108 IAPP Congress - Privacy by Design presentation20171108 IAPP Congress - Privacy by Design presentation
20171108 IAPP Congress - Privacy by Design presentation
 
20171106 - Privacy Design Lab - LINDDUN
20171106 - Privacy Design Lab - LINDDUN20171106 - Privacy Design Lab - LINDDUN
20171106 - Privacy Design Lab - LINDDUN
 
20170601 - Digital festival presentation
20170601 - Digital festival presentation20170601 - Digital festival presentation
20170601 - Digital festival presentation
 
20170801 GDPR Q&A intro
20170801 GDPR Q&A intro20170801 GDPR Q&A intro
20170801 GDPR Q&A intro
 
20170620 MEETUP intro to blockchain and smart contracts (2)
20170620 MEETUP intro to blockchain and smart contracts (2)20170620 MEETUP intro to blockchain and smart contracts (2)
20170620 MEETUP intro to blockchain and smart contracts (2)
 
20170620 MEETUP intro to blockchain and smart contracts (1)
20170620 MEETUP intro to blockchain and smart contracts (1)20170620 MEETUP intro to blockchain and smart contracts (1)
20170620 MEETUP intro to blockchain and smart contracts (1)
 
20170418 MEETUP on Creative Commons
20170418 MEETUP on Creative Commons20170418 MEETUP on Creative Commons
20170418 MEETUP on Creative Commons
 
20170122 MEETUP on autonomous vehicles
20170122 MEETUP on autonomous vehicles20170122 MEETUP on autonomous vehicles
20170122 MEETUP on autonomous vehicles
 
20170122 intro MEETUP on autonomous vehicles
20170122 intro MEETUP on autonomous vehicles20170122 intro MEETUP on autonomous vehicles
20170122 intro MEETUP on autonomous vehicles
 
20161127 KICK-OFF Legal Hacking Brussels
20161127 KICK-OFF Legal Hacking Brussels20161127 KICK-OFF Legal Hacking Brussels
20161127 KICK-OFF Legal Hacking Brussels
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Dernier (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

20170620 MEETUP smart contracts proof of concept for prescriptions

  • 1. ² 1 Medical Prescriptions on a Public Blockchain Kristof Verslype, Smals Research20 June 2017
  • 2. Recap: Smart Contracts 2 Contract Auction{ function bid(){…} function end(){…} HighestBid: € HighestBidder: Beneficiary: Charlie } bid(...), 20€ end(...) bid(...), 10€ 20€ 02010 Bob Alice Charlie Alice 10€ Bob bidEvent: 10€ bidEvent: 10€ bidEvent: 20€ bidEvent: 20€ Dave Contract code execution distributed Money can be temporarily blocked by contract Function calls in transactions on blockchain
  • 3. Processing Medical Prescriptions 3 Doctor Pharmacist € € € € Mutuality Patient Tarification office Processing prescriptions s.t. reimbursement possible Real-time analysis RIZIV/INAMI Traditional money transfer Data flow Physical delivery
  • 4. Processing Medical Prescriptions 4 Doctor € € € € Mutuality Patient Tarification office Complex information flowsTraditional money transfer Data flow Physical delivery Pharmacist
  • 5. Processing Medical Prescriptions 5 Doctor Pharmacist Mutuality Patient Tarification office All other communication with blockchain Privacy & confidentiality enterprise data guaranteed Traditional money transfer Show on smartphone Physical delivery
  • 6. 7a2 3b 3a 4 5 7b 8 9 10a 10b issue() fill() confirm()insure() assign() Contract function call Event observation Direct communication Doctor Patient Pharmacist Tar. officeMutuality Prescription Medicine Valid from Patient Tarification office Mutuality Pharmacist Doctor Delivered Id Reduced fee? Prescription Medicine Valid from Patient Tarification office Mutuality Pharmacist Doctor Delivered Id Reduced fee? Prescription Medicine Valid from Patient Tarification office Mutuality Pharmacist Doctor Delivered Id Reduced fee? 6a 1 6b function() Contract function The Smart Contract 6
  • 7. Privacy with permanent pseudonyms 7 Prescription 158 Valid from Valid from Patient Tarification office Mutuality Pharmacist Doctor Reduced fee? Delivered Prescription 577 Medicine Valid from Patient Tarification office Mutuality Pharmacist Doctor Reduced fee? Delivered Prescription 804 Medicine Valid from Patient Tarification office Mutuality Pharmacist Doctor Reduced fee? Delivered Permanent pseudonyms offer insufficient protection of 1) citizen’s privacy and 2) confidentiality of enterprise data Id Id Id
  • 9. Different Views 9 One-time patient pseudonyms on the blockchain Rest of the world Similar for doctors, pharmacists, mutualities and tarification offices
  • 10. Link Attack 1 10 Doctor: 02/04/17, 21h30 (A) Pharmacist: 28/04/17, 20h45 (B) A B Combining info real world & blockchain can leak sensitive data Attacker knows patient identity & observes him/her physically
  • 11. 11 Doctor: 02/04/17, 21h30 (A) Pharmacist: 28/04/17, 20h45 (B) A B Prescription Medicine Valid from Patient Tarification office Mutuality Pharmacist Doctor Delivered Id Reduced fee? → Encryption of sensitive data in blockchain/smart contract Difficult attack, but one success enough to torpedo project Link Attack 1 Combining info real world & blockchain can leak sensitive data Attacker knows patient identity & observes him/her physically
  • 12. Different Views Prescription Pantoprazol 20mg True … Prescription ??? ??? … Rest of the world My Prescription Pantoprazol 20mg ??? … My … => fine grained access control with encryption 12
  • 14. 14 Toon QR-code aan Arts Interface Nieuwe code Arts Medicijn Geldig vanaf [Optioneel] Uitgeven Voorschrift Scan patient QR-code Geef voorschrift uit Etanercept 1mg
  • 17. 17 Pantoprazol 20mg Etanercept 1mg Adalimumab 5mg Adalimumab 5mg Interface Mijn voorschriften
  • 18. 18 Adalimumab 5mg << Front camera active >> Toon QR-code aan apotheker Interface - Dispense Apotheker OK
  • 19. 19 Interface - Dispense Apotheker Adalimumab 5mg Pantoprazol 20mg Process RefundDrug Processed 15,30€ 9,13€
  • 20. 20 Pantoprazol 20mg Etanercept 1mg Adalimumab 5mg Adalimumab 5mg Interface - Dispense Mijn voorschriften
  • 21. The bigger picture Een Blockchain Ecosysteem 21 Arts Mutualiteit Werkgever Hospitaal Eén medische consultatie kan een hele set acties in gang zetten, met blockchain als centrale as. Voorschrift Bewijs verstrekte hulp Bewijs van arbeidsongeschiktheid Doorverwijzing naar hospitaal Rekening hospitaal voor mutualiteit …
  • 22. Storage for 1 Year (Estimates) 22 ±270GB ±270GB Mutuality ±270GB Tar. office Only RIZIV/INAMI, mutualities and tarification offices need full copy of blockchain. If prescriptions max. 1 year valid, blockchain can be truncated s.t. old transactions are ‘forgotten’ Optimizations possible
  • 23. Key Management Good protection of keys required Link → Link → Link → Link → Link → Link → LinkLink LinkLink →Link → Link → Link → Link Link Link Link Link Link 23
  • 24. Prescription Blockchain Network 24 Full node Frequent light node Occasional light node Block creation By RIZIV/INAMI, mutualities, and/or tarification offices. Ex. Signatures by 5 of 7 mutualities
  • 25. Evaluation 25 Privacy & confidentiality - Strong guarantees - No central, all-knowing, all-mighty big brother - RIZIV/INAMI analyses in real-time while respecting privacy Communication - No complex information flows - All information everywhere (almost) in real-time Challenges - More complex key management - Higher requirements for storage and communication Higher availability => interesting blockchain case / experience

Notes de l'éditeur

  1. “Dit Prescription is uitgegeven aan één van mijn leden en ik garandeer de terugbetaling. De pattient heeft al dan niet recht op verlaagd remgeld”
  2. Other protection mechanisms, but htis is the most interesting one
  3. Houdertje,
  4. Validity of Voorschrift and entitlement to reduced patient fee known after less than 15 seconds.
  5. Enz. Mutualiteit zou ook kunnen een bewijs van betaling op de blokchcain plaatsen Indienstnemen eerste werknemer: Het aangaan van een arbeidsovereenkomst en aanmaken van een arbeidsreglement; Het opstarten en bewaken van het registratieproces bij de RSZ; RSZ) als werkgever; Verrichten van DIMONA aangifte Een arbeidsongevallenverzekering afsluiten; Aansluiten bij een kinderbijslagfonds …
  6. Misschien is RIZIV niet meest aangewezen organisatie voor bijhouden publieke sleutels Doctoren Eventueel sturen insrueres en tarification offices de publieke sleutels door naar RIZIV -> riziv kan voor elk Prescription en elke consultatie identiteit betrokken partijen te weten komen en kan dus ook de nodige links leggen
  7. if frequent node is online can be kept by validating nodes.
  8. Ruwe vergelijking