# Investigation Remove

| **API URL**     | {{url}}/spice-service/investigation/remove |
| --------------- | ------------------------------------------ |
| **Method**      | POST                                       |
| **Description** | Remove lab test investigation for patient  |

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

| **Field Name**         | **Type** | **Mandatory** | **Example**                                                                                                                             |
| ---------------------- | -------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| id                     | Bigint   | Yes           | Investigation id                                                                                                                        |
| provenance             | String   | Yes           | Provenance for investigation                                                                                                            |
| modifiedDate           | Date     | Yes           | Modified Date of investigation                                                                                                          |
| organizationId         | Bigint   | Yes           | Organization Id                                                                                                                         |
| spiceUserId            | Bigint   | Yes           | SpiceUser Id                                                                                                                            |
| userId                 | Bigint   | Yes           | User Id                                                                                                                                 |
| Authorization (Header) | String   | Yes           | Bearer 1ba363a1edf54402b51f58060aa52b11d30f99a490295adec900fdabf2b472181c0bfb165be18f4f5c430c7218a244bd29b9300d3471acc08197ccfb996118f6 |
| client                 | String   | Yes           | mob                                                                                                                                     |

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

{\
"id": "1",\
"provenance": {\
"modifiedDate": "2025-01-22T06:38:53.866Z",\
"organizationId": "9",\
"spiceUserId": 1,\
"userId": "11"\
}\
}

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

| **Field Name** | **Type** | **Comments**                       |
| -------------- | -------- | ---------------------------------- |
| message        | String   | Removed Investigation Successfully |
| id             | Bigint   | Investigation id                   |
| status         | Boolean  | Response status                    |

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

```
{
  "message": "Removed Investigation Successfully.",
  "entity": {
    "id": "1"
  },
  "status": true,
  "entityList": null,
  "responseCode": 200,
  "totalCount": null
}
```
