/Drchrono-Hackathon

drchrono API example using django

Primary LanguagePython

drchrono virtual hackathon project

TODO

Doctor:

  • show scheduled appointments, checked-in patients (waiting times)
  • change the status of the check-ins
  • show statistics : number of patients, checked-ins, wait times
  • auto update of the dashboard
    • webhook verification
    • django channel
  • put a running clock for checked in patients
  • EXTRA: show appointments in different days
  • EXTRA: show today's date

Kiosk:

  • check-in: confirm, update change

Authentication:

  • set up the kiosk and dashboard
  • deauthorize
  • show limited access in dashboard if patients wants to access
  • EXTRA: refresh the token access
  • redirect everything to setup if not authorized

Tests:

  • check in backend for uniqueness of 'In Session' appointments

Webhook instructions

Tunnel your localhost using: $ ssh -R 80:localhost:8000 ssh.localhost.run and add the callback url in drchrono's API

Requirements

API token

The first thing to do is get an API token from drchrono.com, and connect this local application to it!

This project has social-auth preconfigured for you. The social_auth_drchrono/ contains a custom provider for Python Social Auth that handles OAUTH through drchrono. It should require only minimal configuration and tweaking.

  1. Log in to drchrono.com
  2. Go to the API management page
  3. Make a new application
  4. Copy the SOCIAL_AUTH_CLIENT_ID and SOCIAL_AUTH_CLIENT_SECRET to your docker/environment file.
  5. Set your redirect URI to http://localhost:8080/complete/drchrono/