# Patient Remove

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

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

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

#### **Input:** <a href="#patientremove-input-.1" id="patientremove-input-.1"></a>

| **Field Name** | **Type** | **Mandatory** | **Example**      |
| -------------- | -------- | ------------- | ---------------- |
| deleteReason   | String   | Yes           | Patient Deceased |

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

{ "deleteReason": "Patient Deceased", "id": 25, "patientTrackId": 25, "tenantId": 4 }

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

| **Field Name**        | **Type** | **Comments**                                |
| --------------------- | -------- | ------------------------------------------- |
| `id`                  | Integer  | Patient Table ID                            |
| `nationalId`          | String   | National ID                                 |
| `firstName`           | String   | Patient FirstName                           |
| `middleName`          | String   | Patient MiddleName                          |
| `lastName`            | String   | Patient LastName                            |
| `gender`              | String   | Patient Gender                              |
| `dateOfBirth`         | Date     | Patient date of birth                       |
| `age`                 | BigInt   | Patient Age                                 |
| `isPregnant`          | Boolean  | Is patient pregnant or not                  |
| `phoneNumber`         | String   | Patient phone number                        |
| `phoneNumberCategory` | String   | Patient phone number category               |
| `countryId`           | BigInt   | Country ID                                  |
| `countyId`            | BigInt   | County ID                                   |
| `subCountyId`         | BigInt   | SubCounty ID                                |
| `siteId`              | BigInt   | Patient Site ID                             |
| `landmark`            | String   | Patient Landmark                            |
| `occupation`          | String   | Occupation                                  |
| `levelOfEducation`    | String   | Level of Education                          |
| `insuranceStatus`     | Boolean  | Insurance Status                            |
| `insuranceType`       | String   | Type of Insurance                           |
| `insuranceId`         | String   | Insurance ID                                |
| `otherInsurance`      | String   | Other Insurance                             |
| `isRegularSmoker`     | Boolean  | Is patient regular smoker                   |
| `programId`           | BigInt   | Program ID                                  |
| `initial`             | String   | Patient initial                             |
| `emrNumber`           | BigInt   | Patient EMR number                          |
| `patientStatus`       | String   | Patient Status                              |
| `virtualId`           | BigInt   | Patient Virtual Id created after enrollment |

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

```
{
    "message": "Patient deleted successfully.",
    "entity": {
        "id": 25,
        "nationalId": "AKSH123",
        "firstName": "AKSHATA",
        "middleName": "S",
        "lastName": "A",
        "gender": "Female",
        "dateOfBirth": "1997-05-26T00:00:00+05:30",
        "age": 26,
        "isPregnant": true,
        "phoneNumber": "149832758",
        "phoneNumberCategory": "Personal",
        "countryId": 1,
        "countyId": 2,
        "subCountyId": 3,
        "siteId": 1,
        "landmark": "US",
        "occupation": "Unemployed",
        "levelOfEducation": "College/University Completed",
        "insuranceStatus": true,
        "insuranceType": "Other",
        "insuranceId": "231",
        "otherInsurance": "LIC",
        "isRegularSmoker": true,
        "programId": 2,
        "initial": "A",
        "emrNumber": 0,
        "patientStatus": "true",
        "virtualId": 24
    },
    "status": true,
    "entityList": null,
    "responseCode": 200,
    "totalCount": null
}
```
