Giter Club home page Giter Club logo

cageur-old's People

Contributors

girikuncoro avatar

Watchers

 avatar  avatar  avatar  avatar

cageur-old's Issues

Refactor patient to user data model

Since clinic person should be included in the phoneNumbers data model and clinic person can also be a patient. Add permission or role later

Implement broadcast action

Should implement using heroku task queue to send to many SMS receivers.
Command format is:

kirim <option> <text>

example:

kirim semua akan ada penyuluhan bpjs hari ini, mohon hadir
kirim ginjal obat ginjal sudah datang dan bisa dibeli disini

Schedule SMS API

User should be able to schedule SMS:

  • Without repeat (only schedule)
  • Repeated once a day
  • Repeated once a month

endpoint: /api/v1/sms/schedule

{
  group: string (required),
  message: string (required),
  repeat: string (enum: once, daily, monthly),
  startTime: Date in epoch sec,
  schedules: [Date in epoch sec]
}

Patient API - insert and retrieve user

Anyone can insert patient info (unsecured for now).

Storing a patient:

location : /api/v1/patient
method : post
data : 
  "phoneNumber": (required, str)
  "firstName": (required, str)
  "lastName": (optional, str)
  "category": (required, list of enum str: ['diabetes', 'uric acid', ...])

The api should allow fetch the patient info

location : /api/v1/patient/id/<patientID>
method : get
data : 
  "id": (str)
  "phoneNumber": (str)
  "firstName": (str)
  "lastName": (str)
  "category": (str[])
  "createdAt" : (date)
  "updatedAt" : (date)

Should also fetch by phone number

location : /api/v1/patient/phone/<phoneNumber>
method : get
data : 
  "id": (str)
  "phoneNumber": (str)
  "firstName": (str)
  "lastName": (str)
  "category": (str[])
  "createdAt" : (date)
  "updatedAt" : (date)

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.