# Lifestyle view history

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

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

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

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

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

&#x20; "nutritionHistoryRequired": true,

&#x20; "nutritionist": true,

&#x20; "patientTrackId": 25,

&#x20; "tenantId": 4

}

#### **Output:** <a href="#lifestyleviewhistory-output" id="lifestyleviewhistory-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 firstName`  | String    | Lifestyle Assessed User   |
| `assessedBy` `lastName` | String    | Lifestyle Assessed User   |
| `referredDate`          | Timestamp | Lifestyle Referred Date   |
| `assessedDate`          | Timestamp | Lifestyle Assessed Date   |
| `clinicianNote`         | String    | Lifestyle Clinician Note  |
| `lifestyleAssessment`   | String    | Lifestyle Assessment Note |
| `otherNote`             | String    | Lifestyle Other Note      |

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

```
  {
  "message": "Got Patient Nutrition Lifestyles.",
  "entity": null,
  "status": true,
  "entityList": [
    {
      "id": 7,
      "lifestyle": [
        {
          "cultureValue": "Nutrition",
          "name": "Nutrition"
        },
        {
          "cultureValue": "Hypertension Education",
          "name": "Hypertension Education"
        }
      ],
      "referredBy": {
        "firstName": "Kavya",
        "lastName": "Provider",
        "userName": null
      },
      "assessedBy": {
        "firstName": "Kavya",
        "lastName": "Nutritionist",
        "userName": null
      },
      "referredDate": "2023-05-26T17:34:04+05:30",
      "assessedDate": "2023-05-26T17:37:01+05:30",
      "clinicianNote": "check",
      "lifestyleAssessment": "Listyle assessment note",
      "otherNote": "others"
    }
  ],
  "responseCode": 200,
  "totalCount": null
}
```
