libreconnect / backend

MIT License
12 stars 0 forks source link

Integration of a patient's blood glucose history #2

Open NathaelB opened 3 months ago

NathaelB commented 3 months ago

Development of a module to manage all patient diabetes-related data. This module will include management of blood glucose data, bolus information and basal rates.

Features to be implemented

  1. Create blood glucose data
  2. Retrieve blood glucose data

Routes to be implemented

  1. POST /v1/diabetes/glucose
    • Description: Add blood glucose data for a patient.
    • Body: JSON containing a table of blood glucose levels and the patient's identifier.
      {
      "patientId": "12345",
      "data": {
      "factoryTimestamp?": "7/10/2024 9:22:35 AM",
      "timestamp": "7/10/2024 11:22:35 AM",
      "type": 3,
      "valueInMgPerDl": 244,
      "trendArrow": 5,
      "trendMessage": null,
      "measurementColor": 3,
      "glucoseUnits": 1,
      "value": 244,
      "isHigh": false,
      "isLow": false,
      "alarmType": 2
      }
      }
  2. GET /v1/diabetes/glucose
    • Description: Add blood glucose data for a patient.
    • Body: JSON containing a table of blood glucose levels and the patient's identifier.
    • patientId: ID of Patient (optional)
    • startDate
    • endDate