Coder Social home page Coder Social logo

care_abdm's Introduction

Care Abdm

Release Status Build Status

Care Abdm is a plugin for care to add voice auto fill support using external services like OpenAI whisper and Google Speech to Text.

Features

  • Voice auto fill support for care
  • Support for OpenAI whisper and Google Speech to Text

Installation

https://care-be-docs.ohc.network/pluggable-apps/configuration.html

https://github.com/ohcnetwork/care/blob/develop/plug_config.py

To install care abdm, you can add the plugin config in care/plug_config.py as follows:

...

abdm_plug = Plug(
    name="abdm",
    package_name="git+https://github.com/ohcnetwork/care_abdm.git",
    version="@master",
    configs={
        "ABDM_CLIENT_ID": "abdm_client_id",
        "ABDM_CLIENT_SECRET": "abdm_client_secret",
        "ABDM_URL": "",
        "HEALTH_SERVICE_API_URL": "",
        "ABDM_FACILITY_URL": "",
        "HIP_NAME_PREFIX": "",
        "HIP_NAME_SUFFIX": "",
        "ABDM_USERNAME": "",
        "X_CM_ID": "",
        "AUTH_USER_MODEL": "users.User"
    },
)
plugs = [abdm_plug]
...

Configuration

The following configurations variables are available for Care Abdm:

  • ABDM_CLIENT_ID: The client id for the ABDM service.
  • ABDM_CLIENT_SECRET: The client secret for the ABDM service.
  • ABDM_URL: The URL for the ABDM service APIs.
  • HEALTH_SERVICE_API_URL: The URL for the health service APIs.
  • ABDM_FACILITY_URL: The URL for the ABDM facility APIs.
  • HIP_NAME_PREFIX: The prefix for the HIP name. Used to avoid conflicts while registering a facility as ABDM health facility.
  • HIP_NAME_SUFFIX: The suffix for the HIP name. Used to avoid conflicts while registering a facility as ABDM health facility.
  • ABDM_USERNAME: The internal username for the ABDM service. Intended to track the records created via ABDM.
  • X_CM_ID: The X-CM-ID header value for the ABDM service.
  • AUTH_USER_MODEL: The user model to use for the ABDM service.

The plugin will try to find the API key from the config first and then from the environment variable.

License

This project is licensed under the terms of the MIT license.


This plugin was created with Cookiecutter using the ohcnetwork/care-plugin-cookiecutter.

care_abdm's People

Contributors

khavinshankar avatar

Watchers

syamkumar avatar Gigin George avatar Vignesh Hari avatar

Forkers

tguructa

care_abdm's Issues

Add a prefix for care context id while linking care contexts

Add a prefix like (consultation::consultation_external_id) to careContextId while linking care context, so it is easy to map it back to care models even when the models are changed internally.

This would also be useful when multiple care contexts are added for a single consultation (#2).

Note: Consider managing existing care context linked without any prefixes

Refresh Patient's X-Token Regularly

Refresh the patient's x-token (AbhaNumber.access_token and bhaNumber.refresh_token) at regular intervals, like a day before the refresh token's expiry.

Look into the standard practice regarding this and check ABDM's norms regarding this.

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.