Care plugin for TeleICU Gateway, ONVIF Camera, HL7 Vitals Observation Device device integration.
Note
This plugin package consists of three plugs:
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.camera_device
- This plug is responsible for camera device integration such as ONVIF cameras.vitals_observation_device
- This plug is responsible for vitals observation device such as HL7 Monitor / Ventilator.
To develop the plug in local environment along with care, follow the steps below:
- Go to the care root directory and clone the plugin repository:
cd care
git clone git@github.com:ohcnetwork/care_teleicu_devices.git
- 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)
- 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.
- Install the plugins
python install_plugins.py
- Rebuild the docker image and run the server
make re-build
make up
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
This project is licensed under the terms of the MIT license.
This plugin was created with Cookiecutter using the ohcnetwork/care-plugin-cookiecutter.