This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version 2.4.1
-
System dependencies Redis PostgreSQL
-
Configuration None
-
Database creation rails db:create db:migrate TODO: Add rails db:populate command to fill the seed data
-
Database initialization
-
How to run the test suite rspec
-
Services (job queues, cache servers, search engines, etc.) 2 queues - mailer queue and default queue after their namesakes
-
Deployment instructions heroku create thisapp
Assumptions made:
- Medical Records belongs to only user
- Medical record can have many prescriptions
- Asking for permission has been understood as asking permission to view the prescriptions of a particular medical record
- When a doctor asks for permission, a pseudo record 'share record' will be created
- User can temporarily turn off the permission to a particular doctor or a pharmacist over a medical record.
- User can also delete a permitted record.
- Doctors can view the medical records by going to a user's profile from a list of users and then ask for permission