Code Monkey home page Code Monkey logo

demergency_dotslash's Introduction

dEmergency:

Project by Team nonce_ence at DotSlash Hackathon at SVNIT.

A decentralized SOS triggering service for medical emergencies,which will ensure fair allocation of the nearest hospital having availability ,to the person in need , in minimum time with a transaparency through blockchain.


Idea Description:

The main idea of the project is to provide immediate treatment in case of Medical Emergency by allocating him a hospital which is nearest to him ,by checking avaialbility data stored on blockchain(Ethereum).

How will it's gonna work?

Our dEmergency system can be divided into following ends:-

User/Client End :

This consists a simple UI with a single button,which a person will press in the case of emergency. As soon as user clicks the button,his current location coordiantes will be taken and his name and contact details are taken ,and the nearest hospital which has availability will be alloted to him. This will trigger two events ,one will carry information if the alloted hospital to the user, and other will inform the hospital about the patient.

Admin End :

Admin End will consist of an admin who is the owner of the smart contract and has the authority to add good and licensed hospitals to the contract.
During imposition of the idea,the admin authority (like government) will try to impose the idea that each hospital will be represented by a ethereum address,and
During the process of adding a hospital , fields like the address(ethereum address) of the hospital ,its longitude,latitide,contact no and dynamic data like 1.Hospital Availability
2.Hospital Capacity
and many real world practical information will be taken and those data will be saved on the smart contract.

Backend or Ethereum End :

The contract end will contain structs of Patient and Hospital,and their different mappings to access them as per use.
Structure of Smart Contract:
Functions:

  • addHospital:This function can only be executed by admin.It is provided to register a Hospital by putting all necessary information related to the hospital on the blockchain
  • addPatient:This function can be used by a normal user in the case of emergency.This will take minimal input as arguements from the user like his name,type of emergency ,mobile number,and his location which will be automatically detected by the web-app



Dependencies and Tools:

Ethereum-Blockchain,Node JS,React JS,Metamask,Truffle Suite including express box,Ganache,Rinkeby Test-network,Python for implementation of Voronoi Algorithm to find the closest hospital nearby the user.

We have used a famous algorithm for finding the nearest hospital from the point of emergency. It's Voronoi Diagrams.

  • In mathematics, a Voronoi diagram is a partitioning of a plane into regions based on distance to points in a specific subset of the plane. That set of points (called seeds, sites, or generators) is specified beforehand, and for each seed there is a corresponding region consisting of all points closer to that seed than to any other. These regions are called Voronoi cells. The Voronoi diagram of a set of points is dual to its Delaunay triangulation.


Contribute

Want to contribute? Great! Just make an issue and we'll respond or better just make a PR

Contributors

Hackathon Performance

The project was able to make it to the top 5 of all projects that featured at the hackathon.

License

MIT

demergency_dotslash's People

Watchers

 avatar

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.