Code, Data and Paper for Medwings - My Bachelor's thesis.
Find a file
2023-07-20 12:56:15 +02:00
backend feat(backend): CRUD and endpoints for records 2023-05-17 13:29:41 +02:00
docs docs(proposal): add literature review 2023-06-15 11:25:55 +02:00
frontend squashme 2023-07-20 12:56:15 +02:00
public/static/images/devices feat(backend): add devices data model and assets 2023-05-12 23:03:44 +02:00
robots feat: add project skeleton 2023-05-10 17:19:38 +02:00
.gitignore docs(proposal): add literature review 2023-06-15 11:25:55 +02:00
.postcssrc feat: add project skeleton 2023-05-10 17:19:38 +02:00
development.backend.Dockerfile feat: add project skeleton 2023-05-10 17:19:38 +02:00
development.Caddyfile feat: add project skeleton 2023-05-10 17:19:38 +02:00
development.docker-compose.yml fix: misspelling in pgweb env var 2023-06-14 11:26:43 +02:00
development.frontend.Dockerfile feat: add project skeleton 2023-05-10 17:19:38 +02:00
development.parcel.Dockerfile feat: add project skeleton 2023-05-10 17:19:38 +02:00
package-lock.json feat: add project skeleton 2023-05-10 17:19:38 +02:00
package.json feat: add project skeleton 2023-05-10 17:19:38 +02:00
postcss.config.js feat: add project skeleton 2023-05-10 17:19:38 +02:00
production.backend.Dockerfile feat: add project skeleton 2023-05-10 17:19:38 +02:00
production.Caddyfile feat: add project skeleton 2023-05-10 17:19:38 +02:00
production.docker-compose.yml feat(backend): add database and api 2023-05-12 04:59:05 +02:00
production.frontend.Dockerfile feat: add project skeleton 2023-05-10 17:19:38 +02:00
README.md fix(docs): add instructions to README 2023-06-15 14:01:04 +02:00
requirements.txt feat(backend): add alembic for db migrations 2023-05-12 20:29:46 +02:00
tailwind.config.js feat: add project skeleton 2023-05-10 17:19:38 +02:00

MEDWings

Mobile Early Deterioration Warning System.

MEWS

The following vital signs need to be recorded for a MEWS calculation:

  • Heart Rate
  • SPO2
  • Blood Pressure
  • Body Temperature
  • Respiration Rate

A detailed explanation and formula can be found here.

Handheld Devices

We have procured the following devices for vitals data measurement:

API Access

Data is gathered by taking measurements using the devices, either actively (BP sleeve, thermometer) or passively (smartwatch). The devices are connected to the Withings mobile app. The mobile app then regularly pushes gathered data to the Withings cloud.

The Withings Dev Free plan allows for 120 API requests per minute. Access to vitals data is available through the Withings API.

A detailed API integration guide, as well as an API reference guide are available online.

Development

To start the development compose-stack, run the following command:

sudo docker-compose -f development.docker-compose.yml up --force-recreate --build --remove-orphans

Run alembic database migrations inside the running container like so:

sudo docker exec -w /app/backend/database -it backend alembic upgrade head

To run commands inside the backend container, run the following:

sudo docker exec -it backend <command>