> For the complete documentation index, see [llms.txt](https://spice.docs.medtroniclabs.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spice.docs.medtroniclabs.org/versions/spice-1.0/engineering/api-documentation/spice-services/labtest-result-create.md).

# Labtest Result Create

| **API URL**     | {{url}}/spice-service/patient-labtest/result/create |
| --------------- | --------------------------------------------------- |
| **Method**      | POST                                                |
| **Description** | Labtest result creation                             |

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

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

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

| **Field Name** | **Type** | **Mandatory** | **Example** |
| -------------- | -------- | ------------- | ----------- |
| resultValue    | Integer  | Yes           | 20          |
| isUnitValid    | Boolean  | Yes           | True        |
| displayName    | String   | Yes           | 0-7 mg/dL   |
| resultStatus   | String   | No            | Positive    |
| unit           | String   | Yes           | mg/dL       |
| labTestId      | Integer  | Yes           | 2           |
| name           | String   | Yes           | Fast plasma |

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

{ "patientLabTestId": 9, "isReviewed": true, "tenantId": 4, "roleName": "PROVIDER", "comment": "comments", "testedOn": "2023-05-24T00:00:00+05:30", "isEmptyRanges": false, "patientLabTestResults": \[ { "resultValue": "22", "isUnitValid": true, "isAbnormal": true, "displayName": "0-7 mg/dL", "displayOrder": 0.0, "isResultValueValid": true, "resultStatus": "POSITIVE", "unit": "mg/dL", "labTestId": 2.0, "name": "Fast plasma", "tenantId": 1.0, "id": 1 } ] }

**Sample Output:**

```
  {
    "message": "Patient LabTest Result created successfully.",
    "entity": null,
    "status": true,
    "entityList": null,
    "responseCode": 201,
    "totalCount": null
}
```
