Skip to content

Self-declaration proposition to track positive asymptomatic citizens and verify their location based on the declared path. #Covid-19

License

Notifications You must be signed in to change notification settings

GiovanniBalestrieri/autodichiarazione_2.0

Repository files navigation

Hack4Italy |Autodichiarazione_2.0

Video presentation: https://www.youtube.com/watch?v=Ce1ZMYNVdmQ&feature=youtu.be


Content of the self declaration

Fields Type
UUID Citizen char[]
Dpi measures char[]
Simptoms char[]
Temperature float
Geographical sector id char[]
Departure time datetime
Arrival time datetime
Reason char[]
Destinations [ [(gps_coord, timestamps) ], [ ] ]

Roadmap

Milestone 0

  • Simulate one user and associate a random home gps coordinate.
  • Simulate random destination point within a radius of 1 km from home position
  • Simulate a first self declaration from Home to one destination
  • Get detailed navigation instructions and fill the Destinations field of the self declaration
  • Simulate temporary declaration by pushing it to the distributed digital ledger, the Tangle

Milestone 1

Create a visualization tool to show the path

Milestone 2

  • Create two users and two declarations with same destination point and time interval
  • Use visualization tool to show the paths

Milestone 3

Milestone 4

  • Create N users, N declarations in the same geographical area
  • Push declarations to the Tangle

Milestone 5

Investigate how to determine if two citizens have shared a portion of the path

Milestone 6

Assume one user is tested positive for the CoronaVirus after some time

  • Retrieve all declarations from the immutable ledger
  • Simulate random positive test results citizen with universally unique identifier
  • Create a Check function that given all retrieved declarations, and the id of a positive citizen returns a list of all possible contaminated users that have shared the same places at the same time and associate an number proportional to the exposure

Test the system

Clone the repository:

git clone https://github.com/GiovanniBalestrieri/autodichiarazione_2.0.git

Create and activate vitual environment:

cd autodichiarazione_2.0
python3 -m venv environ
. environ/bin/activate
pip install --upgrade pip

Install requirements:

pip install -r requirements.txt

Test the milestone you prefer. If you are interested in the output of mileston0:

pythone milestone0.py

When you are done. Deactivate the virtual environment and go back to normal life


Resources


Powered by IOTA

About

Self-declaration proposition to track positive asymptomatic citizens and verify their location based on the declared path. #Covid-19

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages