# Lifestyle List

| **API URL**     | {{url}}/spice-service/patient-lifestyle/list |
| --------------- | -------------------------------------------- |
| **Method**      | POST                                         |
| **Description** | Patient Lifestyle List                       |

#### **Input:** <a href="#lifestylelist-input" id="lifestylelist-input"></a>

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

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

#### { <a href="#lifestylelist" id="lifestylelist"></a>

"nutritionist": false,

"patientTrackId": 25,

"tenantId": 4

}

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

| **Field Name**         | **Type**  | **Comments**             |
| ---------------------- | --------- | ------------------------ |
| `id`                   | Integer   | User ID                  |
| `cultureValue`         | String    | Lifestyle Name           |
| `name`                 | String    | Lifestyle Name           |
| `referredBy FirstName` | String    | Lifestyle Referred User  |
| `referredBy lastName`  | String    | Lifestyle Referred User  |
| `assessedBy`           | Integer   | Lifestyle Assessed User  |
| `referredDate`         | Timestamp | Lifestyle Referred Date  |
| `assessedDate`         | Timestamp | Lifestyle Assessed Date  |
| `clinicianNote`        | String    | Lifestyle Clinician Note |
| `otherNote`            | String    | Lifestyle Other Note     |

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

```
 {
  "message": "Got Patient Nutrition Lifestyles.",
  "entity": null,
  "status": true,
  "entityList": [
    {
      "id": 6,
      "lifestyle": [
        {
          "cultureValue": "Nutrition",
          "name": "Nutrition"
        },
        {
          "cultureValue": "Hypertension Education",
          "name": "Hypertension Education"
        }
      ],
      "referredBy": {
        "firstName": "Kavya",
        "lastName": "Provider",
        "userName": null
      },
      "assessedBy": null,
      "referredDate": "2023-05-26T17:25:49+05:30",
      "assessedDate": null,
      "clinicianNote": "notes",
      "lifestyleAssessment": null,
      "otherNote": null
    }
  ],
  "responseCode": 200,
  "totalCount": null
}
```
