Skip to content

10bedicu/care_teleicu_devices

Repository files navigation

Care TeleICU Devices Plugin

Care plugin for TeleICU Gateway, ONVIF Camera, HL7 Vitals Observation Device device integration.

Note

This plugin package consists of three plugs:

  1. gateway_device - This plug is responsible for gateway device integration such as TeleICU Gateway. This is required for camera and vitals observation device plugs to work.
  2. camera_device - This plug is responsible for camera device integration such as ONVIF cameras.
  3. vitals_observation_device - This plug is responsible for vitals observation device such as HL7 Monitor / Ventilator.

Local Development

To develop the plug in local environment along with care, follow the steps below:

  1. Go to the care root directory and clone the plugin repository:
cd care
git clone git@github.com:ohcnetwork/care_teleicu_devices.git
  1. Add the following plug configuration to your plug_config.py file to enable the plugins locally:
from plugs.manager import PlugManager
from plugs.plug import Plug

plugs = [
    Plug(
        name="gateway_device",
        package_name="/path/to/care_teleicu_devices", # for local development, point this to the absolute path to the cloned plug repository
        version="",
        configs={},
    ),
    Plug(
        name="camera_device",
        package_name="/path/to/care_teleicu_devices", # for local development, point this to the absolute path to the cloned plug repository
        version="",
        configs={},
    ),
    Plug(
        name="vitals_observation_device",
        package_name="/path/to/care_teleicu_devices", # for local development, point this to the absolute path to the cloned plug repository
        version="",
        configs={},
    ),
]

manager = PlugManager(plugs)
  1. Tweak the code in plugs/manager.py to update the pip install command with the -e flag for editable installation
subprocess.check_call(
    [sys.executable, "-m", "pip", "install", "-e", *packages] # add -e flag to install in editable mode
)

Important

Do not push these changes in a PR. These changes are only for local development.

  1. Install the plugins
python install_plugins.py
  1. Rebuild the docker image and run the server
make re-build
make up

Production Setup

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

from plugs.manager import PlugManager
from plugs.plug import Plug

plugs = [
    Plug(
        name="gateway_device",
        package_name="git+https://github.com/ohcnetwork/care_teleicu_devices.git",
        version="@main",
        configs={},
    ),
    Plug(
        name="camera_device",
        package_name="git+https://github.com/ohcnetwork/care_teleicu_devices.git",
        version="@main",
        configs={},
    ),
    Plug(
        name="vitals_observation_device",
        package_name="git+https://github.com/ohcnetwork/care_teleicu_devices.git",
        version="@main",
        configs={},
    ),
]

manager = PlugManager(plugs)

Extended Docs on Plug Installation

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

TeleICU Devices Plug for Care (Gateway, Camera and Vitals Observation Devices)

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •