Git Product home page Git Product logo

healthdapp's People

Stargazers

 avatar

Watchers

 avatar

Forkers

gelijie

healthdapp's Issues

Prescription as a contract

Each prescription should be deployed as a contract by the practitioner.
It should contain:

  • patient ID
  • practitioner ID
  • timestamp or date of issuance
  • a boolean to indicate whether the prescription has been consumed by the pharmacist
  • once consumed it should prevent access
  • date of consumption
  • text that is the actual prescription (check IPFS or Swam for file storage)

There are two ways to write that contract :

  • right it as a contract that has the prescription hardcoded and deploy it
  • right it without prescription, implement a function to write it the prescription, deploy it and call the write prescription (that might be more gas-expensive)

About confidentiality:
A prescription might be a confidential document. If this the case then the prescription must be delivered to the contract encrypted. Patient or doctor to own the private key to decrypt it.

auto write and deploy a contract

  • A contract base definition
  • A text string which is the actual prescription
  • Write the contract as a .sol file but in object
  • Compile with solc
  • Deploy to chain

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.