GithubHelp home page GithubHelp logo

si3792 / icough Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 149 KB

Web application for doctors and patients, built on top of drf-angular-user-system.

License: GNU General Public License v3.0

JavaScript 56.24% HTML 14.37% CSS 0.13% Python 29.26%

icough's Introduction

icough

Web application for doctors and patients, built on top of drf-angular-user-system.

Check it out here (Note that social login is disabled)

Index

  1. Setup
  2. API
  3. Additional Configurations
  4. Testing
  5. Deployment considerations
  6. Further development notes
  7. License

Setup

Setup is identical to drf-angular-user-system (setup and configuration). Follow the steps there.

Additionally, a doctors group needs to be created using Django admin. Users are considered doctors if they are in the group. It is up to the server administrator to add users to it, as this is only possible through the Django admin.

API

/icough/appointments/

API endpoint for Appointments

GET returns a list of UPCOMING appointments where:

  • If request comes from a patient, appointments where patient = user are returned.
  • If request comes from a doctor, appointments where doctor = user are returned.

POST expects a a time field as well as doctor object field.
( Doctor objects are retrieved from /icough/doctors/ )

PUT is used to update appointment at /icough/appointments/id/ where:

  • If request comes from a doctor, state field is expected.
  • If request comes from a patient, time field is expected.

/icough/history/

API endpoint for Appointments history

GET returns a list of EXPIRED appointments where:

  • If request comes from a patient, appointments where patient = user are returned.
  • If request comes from a doctor, appointments where doctor = user are returned.

/icough/doctors/

Endpoint for fetching a list of doctors.

GET returns an array of doctor objects.

Additional configurations

Changing the relative date cutoff value

Times for appointments that have happened (or are going to happen) recently are showed as relative to the current moment.

(eg 'a few seconds ago', 'in an hour', etc).

You can modify RELATIVE_DATE_CUTOFF_MINUTES in /client/app/controllers/appointments-table-controller/appointments-table-controller.js to control the cutoff time for displaying datetimes as relative.

Changing the appointment duration

Appointments are by default 30 minutes long. You can edit this value by setting APPOINTMENT_DURATION in server/project/icough/settings.py.

drf-angular-user-system

Check out drf-angular-user-system (additional configuration).

Testing

Identical to drf-angular-user-system (testing).

Deployment considerations

Check out drf-angular-user-system (deployment considerations) before deploying.

Further development notes

  • A lot of reduntant server calls are made using AccountService for isDoctor checking. AccountService should be refactored to cache the requests.

  • Saving events to calendar for Google users should be configurable (in /#/settings)

License

Copyright 2016 Simo Iliev

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

icough's People

Contributors

si3792 avatar

Stargazers

sheoak avatar Serudda avatar  avatar

Watchers

 avatar

Forkers

fly304625

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.