erkovacs / erko-eth-project

MSc. Thesis project - dApp for performing Double Blind Clinical Studies
0 stars 0 forks source link

MSc. Thesis project - dApp for performing Double Blind Clinical Studies

Intro

This app aims to facilitate ad-hoc, decentralised, fully-voluntary participation to clinical studies. Such studies are usually performed so that the efficacy of a new treatment can be assessed, however this same basic experiment design could in practice be used to check the efficacy of any newly-introduced behaviour, including the takeup of a new hobby or other change in environment or behaviour.

The idea is to setup a decentralised double-blind experiment where neither the party setting it up (the Monitor) nor the subjects are aware whether they belong to the Control group (which receives the same treatment they got before or a placebo treatment, where applicable) or the Treatment group (which receives the legitimate new treatment being trialed).

Because we store a record of every action on the blockchain, we can trust that all involved are honest as they will commit their reports to the public ledger. There is no way to determine the identity of any participant, be it Patient or Monitor, strictly from the data or any other on-chain information.

At the end of the study, all active participants receive a monetary reward in Ether from the "pot" initially set up by the Monitor and fed over the course of the study. Ideally the pot reward should be sufficient to offset any personal expense incurred via self-reporting (as any such interaction with the smart contract has a small associated fee).

Setup

Prerequisites

Clone the repository

Install dependecies

Setup dev environment

Usage

After accessing the application and connecting MetaMask, the patient is prompted to enrol. They must provide a series of basic biological parameters but are not otherwise identifiable by the data they give out. An informed consent form is also filled in and submitted at the same time.

image

The patient’s parameters are displayed in the Profile tab.

image

Afterwards, the patient can launch an order for a Treatment Kit. They must provide an address for the delivery of the Treatment Kit which will be relayed to the third-party providing the Treatment Kits, but cannot be linked to the patient as the third party will only receive the Mapping ID, which is insufficient information to identify the patient with the address.

image

Orders are displayed under the “My Orders” tab. When the order is in status “confirmed” in the third-party’s system, the patient can report the administration of the Treatment Kit.

image

Submitting the report will create a Treatment Administration Report containing the Treatment Kit ID, the dosage, and a timestamp (independent from the block timestamp).

image

A different kind of report is the Status Report. It includes more general information on the patient, including basic biological parameters, general well-being and a short, written report.

image

At the conclusion of the study, the patient can claim their reward in MED Token:

image

The owner of the contract has administrative access to the application and cannot be a participant himself, at least not with the same account. They can view a dashboard containing general data about the status of the study, and can activate/deactivate it, as well as take the emergency measures of stopping for safety/stopping for efficiency.

image

They can also retrieve data after deactivating the study:

image