Giter Site home page Giter Site logo

drchrono's Introduction

drchrono Hackathon

Requirements

  • pip
  • python virtual env
  • client_id = Please update this field with your drchrono client_id
  • client_secret = Please update this field with your drchrono client_secret
  • EMAIL_HOST_USER = Please update this field with your email id
  • EMAIL_HOST_PASSWORD = Please update this field with your email password

Setup

$ git clone https://github.com/vipmunot/drchrono.git
$ cd drchrono/
$ virtualenv myenv
$ source myenv/bin/activate
$ pip install -r requirements.txt
$ sh code.sh

drchrono API Settings

Landing Page

Home Page

  • Filtering Patients data to display today's birthdays using following code
@register.filter(name='todaybirthay')
def today_birthday(pdata):
    plist = []
    for person in pdata:
        if person["date_of_birth"] is None:
            return False
        now = datetime.now()
        toks = person["date_of_birth"].split("-")
        if int(toks[1]) == now.month and int(toks[2]) == now.day:
            plist.append(person)
    return plist
  • Displaying Upcoming birthdays latest first
  • Patients information displayed
    • Patient photo
    • Patient age
    • Patient home and cell numbers
    • Patient email address

Wish Page

  • Patient's email address, subject and birthday message is pre-filled. In case, if you want to add things you can add them!
  • Birthday message is populated randomly using following code (You can add more messages)
@register.filter(name='sub',is_safe = True)
def sub(value):
    lst = ['I hope your special day will bring you lots of happiness, love and fun. You deserve them a lot. Enjoy!',
    'Have a wonderful birthday. I wish your every day to be filled with lots of love, laughter, happiness and the warmth of sunshine.',
    'May your coming year surprise you with the happiness of smiles, the feeling of love and so on. I hope you will find plenty of sweet memories to cherish forever. Happy birthday.'
    'On your special day, I wish you good luck. I hope this wonderful day will fill up your heart with joy and blessings. Have a fantastic birthday, celebrate the happiness on every day of your life. Happy Birthday!!']
    cite = '\nFrom,\nDoctor '
    return '\n' + random.choice(lst) + cite

Email Confirmation

drchrono's People

Contributors

vipmunot avatar sangelone avatar

Watchers

James Cloos avatar  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.