# Patient-lifestyle-details

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

#### **Input:** <a href="#patient-lifestyle-details-input" id="patient-lifestyle-details-input"></a>

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

#### **Sample Input:** <a href="#patient-lifestyle-details-sampleinput" id="patient-lifestyle-details-sampleinput"></a>

{     "patientTrackId": 1,     "tenantId": 4 }

#### **Output:** <a href="#patient-lifestyle-details-output" id="patient-lifestyle-details-output"></a>

| **Field Name**    | **Type** | **Comments**       |
| ----------------- | -------- | ------------------ |
| `lifestyle`       | String   | Lifestyle          |
| `lifestyleType`   | String   | lifestyle type     |
| `lifestyleAnswer` | String   | lifestyle answer   |
| `comments`        | String   | Lifestyle comments |

#### **Sample Output:** <a href="#patient-lifestyle-details-sampleoutput" id="patient-lifestyle-details-sampleoutput"></a>

```
{
    "message": "Patient LifeStyle Details fetched Successfully.",
    "entity": null,
    "status": true,
    "entityList": [
        {
            "comments": null,
            "lifestyle": "About how many hours per week do you spend doing physical labor, walking, and/or exercising?",
            "lifestyleType": "OTHER",
            "lifestyleAnswer": "1-3"
        },
        {
            "comments": "7 May",
            "lifestyle": "Have you ever consumed alcohol?",
            "lifestyleType": "ALCOHOL",
            "lifestyleAnswer": "Yes, In the past"
        }
    ],
    "responseCode": 200,
    "totalCount": null
}
```
