Skip to content

ohcnetwork/care_abdm

Repository files navigation

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_GATEWAY_URL": "",
        "ABDM_ABHA_URL": "",
        "ABDM_FACILITY_URL": "",
        "ABDM_HIP_NAME_PREFIX": "",
        "ABDM_HIP_NAME_SUFFIX": "",
        "ABDM_USERNAME": "",
        "ABDM_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_GATEWAY_URL: The URL for the ABDM service APIs.
  • ABDM_ABHA_URL: The URL for the health service APIs.
  • ABDM_FACILITY_URL: The URL for the ABDM facility APIs.
  • ABDM_HIP_NAME_PREFIX: The prefix for the HIP name. Used to avoid conflicts while registering a facility as ABDM health facility.
  • ABDM_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.
  • ABDM_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.

About

ABDM plug for care

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published