Giter Club home page Giter Club logo

medic / cht-core Goto Github PK

View Code? Open in Web Editor NEW
437.0 55.0 204.0 165.21 MB

The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.

Home Page: https://communityhealthtoolkit.org

License: GNU Affero General Public License v3.0

JavaScript 62.92% HTML 5.61% CSS 0.04% Shell 1.97% XSLT 0.79% Less 0.92% SCSS 0.07% TypeScript 27.50% Dockerfile 0.03% Python 0.13% Lua 0.02% Makefile 0.01%
medical couchdb javascript phone mobile health mhealth ehealth pouchdb hacktoberfest

cht-core's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cht-core's Issues

Handle invalid forms

Send user feedback if an incomplete form is sent.

Some possible responses:

  • if form is not in the db: send them a message that an invalid form was submitted.
  • if the form is in the db but data not complete: send them a message asking them to complete the data and resend.
  • if a blank message is received: reply that an invalid/empty message was received on the server, please try again.
  • if a freeform message was sent: may be nice to have to have the option to accept or reject free form message.

I imagine this can gets tricky when you want responses to be in a different language. Can we change the locale of the server so that the responses are localized?

Toggling of form fields

In the Records view, clicking on a record displays the form fields. I often find myself clicking on the record again to try to close the form fields, but then have to search for the X on the right to remove the form fields. Having a toggle behaviour on the record to show/hide the fields may be more natural to users.

Limit read access to data

In many implementations servers with Kujua-Export need to be accessible within a LAN or Internet, opening access of a client's potentially confidential information to the general public. The current security is by obscurity in that it is very unlikely for someone to find the address/link to the server and its data. However, we should have a way to limit access to authorized users only.

session login/logout

basic session support, it would be nice if we could associate some settings with a user as well. namely a default locale value and allow them to change that. (issue #27)

later we also want to extend it to allow for filtering based on district (issue #48). so a user would belong to a district or if admin they could see everything.

Show results on a per project basis

Show only the option to download data for specific projects.

ie)

PSI Cameroon SMS Forms Data

PSCQ
Download CSV: [en] [fr]

PSCM
Download CSV: [en] [fr]

fix in iOS

http://cl.ly/352x0K13042Y2U3X1X3j

Forms don't get loaded, possible jquery init issue. Some style leaves a border, this could be a bug in bootstrap since we are on bleeding edge. Also media queries and zooming needs fixing.

add style

make Kujua Export look somewhat like Kujua (i.e. a Medic product)

add docs

add docs feature so the app can parse markdown files and move the setup doc over

Parse cdc weekly reports

We need to set Kujua up to accept plain SMS messages via the TextForms parser. Once the parsers are pluggable, we should test the full pipeline using the CDC weekly report.

Show full form name instead of form code

Whenever possible show form name in Kujua Export instead of form code.

e.g.
Form Full Name: Synthese des cas pris en charge
Form Code: MSBP
Form Muvuku Name (shortened to fit screen): Rapport cas vus

Would be nice for administrators to see "Synthese des cas pris en charge" instead of "MSBP"

Simpler interface to delete messages

Often after testing or training we want to delete all the messages in the database. Currently the quickest way to do that is to delete the database and replicate again. There may also be a need for a database administrator to delete messages accidentally sent twice.

Would be useful to have a quicker way to delete individual or bulk messages. Right now to delete individual message you must do 3 clicks and 2 page reloads (click document you wish to delete, loads document's page, click delete document, click to confirm delete, loads page with all documents).

Network Issues for Replication

We should find a more effective means to replicate across an organization, such as registering nodes on startup, otherwise we will continuously battle with network admin issues which are difficult to monitor remotely (port forwarding, dynamic IPs, etc).

add reduce

We are doing some inefficient parsing on initial load to determine what data is available. We should add a map/reduce function so we can quickly determine what form types are available.

Delimiter localization for CSV export

Feels odd complaining about the delimiter in a Comma Separated Value file, but Excel on FR localized computers does not automatically separate values in comma delimited CSVs. Would be great if localization could be detected and handled automatically.

With FR localization the comma is used as the decimal value, whereas semi-colon is used as the delimiter.

add referrals processing support

Referral Scenarios:

Note: cref_rc and ref_rc refer to CHW/RC ID in all instances

  1. CHW/RC -> Health Center/CS (MSBR referral form)
    • Includes ref_rc field.
    • Referral recipient is referenced from clinic.parent.contact.phone
  2. Health Center/CS -> CHW/RC (MSBC counter referral form)
    • Includes cref_rc field
    • Referral Recipient is referenced by matching cref_rc and ref_rc of past referrals
    • cref_treated field is ignored and not included in referral data sent to recipient
  3. Health Center/CS -> Hospital/CH (MSBB referral form)
    • Includes ref_rc field
    • Referral recipient is referenced from health_center.parent.contact.phone
  4. Hospital/CH -> Health Center/CS (MSBC counter referral)
    • Includes cref_rc field
    • Referral recipient is referenced from clinic.parent.contact.phone

create a list of example form data

would be nice to have ready for testing a list of messages to send to a gateway once it's setup. you can find this right now by grepping the tests but we should probably maintain a list of test messages in a specific module, possibly that can be require()'d and scripted to send to a gateway.

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.