# Investigation Search

| **API URL**     | {{url}}//spice-service/patient-labtest/search |
| --------------- | --------------------------------------------- |
| **Method**      | POST                                          |
| **Description** | Investigation search                          |

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

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

**Input:**

| **Field Name** | **Type** | **Mandatory** | **Example** |
| -------------- | -------- | ------------- | ----------- |
| searchTerm     | String   | Yes           | Glucose     |

**Sample Input:**

{ "countryId": 1, "isActive": true, "searchTerm": "as" }

**Output:**

| **Field Name** | **Type** | **Comments** |
| -------------- | -------- | ------------ |
| `id`           | Integer  | User ID      |
| `name`         | String   | Labtest Name |

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

```
  {
    "message": "Patient LabTest Result fetched Successfully.",
    "entity": null,
    "status": true,
    "entityList": [
        {
            "createdBy": 5,
            "id": 2,
            "updatedBy": 5,
            "createdAt": null,
            "updatedAt": null,
            "tenantId": null,
            "name": "Fast plasma",
            "displayOrder": 0,
            "labTestResults": null,
            "countryId": null,
            "resultTemplate": false,
            "active": true,
            "deleted": false
        }
    ],
    "responseCode": 200,
    "totalCount": null
}
```
