# Patient Basic Details

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

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

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

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

{     "id": 10 }

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

| **Field Name**     | **Type** | **Comments**         |
| ------------------ | -------- | -------------------- |
| `id`               | String   | User ID              |
| `nationalId`       | String   | Patient national id  |
| `firstName`        | String   | Patient first name   |
| `lastName`         | String   | Patient last name    |
| `gender`           | String   | Gender               |
| `age`              | Bigint   | Patient age          |
| `isPregnant`       | Boolean  | Is pregnant          |
| `phoneNumber`      | String   | Patient phone number |
| `countryId`        | Bigint   | Country id           |
| `countyId`         | Bigint   | County id            |
| `subCountyId`      | Bigint   | Sub county id        |
| `siteId`           | Bigint   | Site id              |
| `occupation`       | String   | Patient occupation   |
| `levelOfEducation` | String   | Level of education   |
| `isRegularSmoker`  | Boolean  | Is regular smoker    |
| `programId`        | Bigint   | Program id           |
| `virtualId`        | Bigint   | Virtual id           |

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

```
{
  "message": "Patient Basic Details fetched successfully.",
  "entity": {
    "id": 10,
    "nationalId": "KAVISHREE",
    "firstName": "KAVYA",
    "lastName": "SHREE",
    "gender": "Female",
    "age": 32,
    "isPregnant": true,
    "phoneNumber": "678518565",
    "phoneNumberCategory": "Personal",
    "countryId": 1,
    "countyId": 1,
    "subCountyId": 2,
    "siteId": 1,
    "occupation": "Self Employed",
    "levelOfEducation": "Secondary School Completed",
    "insuranceStatus": false,
    "isRegularSmoker": true,
    "programId": 2,
    "initial": "G",
    "emrNumber": 0,
    "patientStatus": "false",
    "virtualId": 10
  },
  "status": true,
  "entityList": null,
  "responseCode": 200,
  "totalCount": null
}
```
