# GlucoseLog List

| **API URL**     | {{url}}/spice-service/glucoselog/list |
| --------------- | ------------------------------------- |
| **Method**      | POST                                  |
| **Description** | GlucoseLog list                       |

**Input:**

| **Field Name**        | **Type** | **Mandatory** | **Example**                                                                                                                                     |
| --------------------- | -------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| Authorization(Header) | String   | Yes           | Bearer eyJlbmMiOiJBMTI4R0NNIiwiYWxnIjoiUlNBLU9BRVAtMjU2In0.MCm0mJDfpfjlr10Uok79-kTF7fv9Tn7cI5m2WsRDGUd9VS7iRmfbszjuc1-w5D-PYt9CdVxRMGBQlzYauhnI |

#### **Sample Input:** <a href="#glucoseloglist-sampleinput" id="glucoseloglist-sampleinput"></a>

{     "latestRequired": false,     "patientTrackId": 25,     "skip": 0,     "sortField": "bgTakenOn" }

#### **Output** <a href="#glucoseloglist-output" id="glucoseloglist-output"></a>

| **Field Name**    | **Type**         | **Comments**                |
| ----------------- | ---------------- | --------------------------- |
| `id`              | String           | User ID                     |
| `hba1c`           | Double Precision | hba1c value                 |
| `hba1cUnit`       | String           | hba1c unit                  |
| `glucoseType`     | String           | Type of Glucose             |
| `glucoseValue`    | Double Precision | Glucose Value               |
| `glucoseDateTime` | String           | Glucose taken time and date |
| `glucoseUnit`     | String           | Glucose unit                |

#### **Sample Output:** <a href="#glucoseloglist-sampleoutput" id="glucoseloglist-sampleoutput"></a>

```
  {
    "message": "Glucose Logs fetched successfully.",
    "entity": {
        "total": 2,
        "limit": 0,
        "skip": 0,
        "glucoseLogList": [
            {
                "id": 28,
                "hba1c": 27,
                "createdBy": 5,
                "updatedBy": 5,
                "hba1cUnit": "mmol/L",
                "glucoseType": "rbs",
                "glucoseValue": 25,
                "glucoseDateTime": "2023-05-26T16:36:50+05:30",
                "glucoseUnit": "mmol/L",
                "createdAt": "2023-05-26T16:36:53+05:30",
                "updatedFromEnrollment": false,
                "latest": false,
                "deleted": false,
                "oldRecord": false
            },
            {
                "id": 27,
                "hba1c": 21,
                "createdBy": 5,
                "updatedBy": 5,
                "hba1cUnit": "mmol/L",
                "glucoseType": "rbs",
                "glucoseValue": 26,
                "glucoseDateTime": "2023-05-26T16:35:44+05:30",
                "glucoseUnit": "mmol/L",
                "createdAt": "2023-05-26T16:33:22+05:30",
                "updatedFromEnrollment": false,
                "latest": false,
                "deleted": false,
                "oldRecord": false
            }
        ],
        "latestGlucoseLog": null,
        "glucoseThreshold": [
            {
                "unit": "mmol/L",
                "rbs": 11,
                "fbs": 7
            },
            {
                "unit": "mg/dL",
                "rbs": 198,
                "fbs": 126
            }
        ]
    },
    "status": true,
    "entityList": null,
    "responseCode": 200,
    "totalCount": null
}
```
