Skip to content

Patient Intake/Output (I/O) Recorder


Install · Configure · Docs

This project is a simple tool for recording and tracking essential health parameters of patients. It provides a user-friendly interface for healthcare professionals to log various health metrics, including food intake, water consumption, urine volume, defecation frequency, and weight, along with corresponding timestamps for each entry. This information can be valuable for healthcare professionals to monitor and analyze the health status of patients over time.

Uses Poetry for dependency management and includes, ruff and pre-commit for linting and formatting.

Importance for Kidney Disease Management

In particular, it plays a crucial role in managing conditions such as kidney disease, where strict control over water intake is essential for maintaining health and preventing complications.

Getting Started

This guide will walk you through setting up the Patient Intake/Output Recorder (PIOR) project. Follow the steps below to install dependencies, configure settings, and start the server.

Installation

Install Dependencies

Patient Intake Output Recorder can be set up with either Poetry (recommended) or pip. Open a terminal in the project directory and install the dependencies:

poetry install
pip install -r requirements.txt

Note

Poetry is recommended as it simplifies version management and ensures reproducible builds.

Configuration

Backend

  1. In the backend directory, create a new config.json file.
  2. Replace {your_token_here} and {your_api_url_here} with your actual token and API URL.

Example content:

backend/config.json
{
  "token": "{your_token_here}",
  "api_url": "{your_api_url_here}"
}

Frontend (Patient)

  1. In the patient directory, create a new config.json file.
  2. Replace {your_api_url_here} with your actual API URL.

Example content:

patient/config.json
{
  "apiUrl": "{your_api_url_here}"
}

Frontend (Monitor)

  1. In the monitor directory, create a new config.json file.
  2. Replace {your_api_url_here} and {your_web_url_here} with your actual API URL and web URL.

Example content:

monitor/config.json
{
  "apiUrl": "{your_api_url_here}",
  "webUrl": "{your_web_url_here}"
}

Running the server

Once installed and configured, you can start the server with Uvicorn.

poetry run uvicorn main:app --reload
python -m uvicorn main:app --reload

This command launches the server with hot-reloading enabled, which automatically restarts the server upon code changes. With these steps completed, your server should be up and running, ready to handle requests.

Want to Contribute?

Refer to CONTRIBUTING.md

License

This project is licensed under the GNU General Public License v3.0 (GPL-3.0). See the LICENSE for more information.