# Create Diagnosis

| **API URL**     | {{url}}/spice-service/patient/confirm-diagnosis |
| --------------- | ----------------------------------------------- |
| **Method**      | POST                                            |
| **Description** | Create patient diagnosis                        |

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

| **Field Name**         | **Type** | **Mandatory** | **Example**                                                                                                                             |
| ---------------------- | -------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| patientId              | Integer  | Yes           | Patient Id                                                                                                                              |
| patientReference       | String   | No            | Patient Reference                                                                                                                       |
| diseases               | String   | Yes           | Patient disease                                                                                                                         |
| diseaseCategoryId      | Bigint   | Yes           | Disease Category Id                                                                                                                     |
| diseaseCategory        | String   | Yes           | Disease Category                                                                                                                        |
| provenance             | String   | Yes           | Patient Provenance                                                                                                                      |
| type                   | String   | Yes           | Medical review type                                                                                                                     |
| otherNotes             | String   | Yes           | Custom notes                                                                                                                            |
| Authorization (Header) | String   | Yes           | Bearer 1ba363a1edf54402b51f58060aa52b11d30f99a490295adec900fdabf2b472181c0bfb165be18f4f5c430c7218a244bd29b9300d3471acc08197ccfb996118f6 |
| client                 | String   | Yes           | mob                                                                                                                                     |

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

{\
"patientId": "1",\
"patientReference": null,\
"diseases": \[\
{\
"diseaseCategoryId": 1,\
"diseaseConditionId": null,\
"diseaseCategory": "uncomplicatedMalaria",\
"notes": null,\
"diseaseCondition": null,\
"type": null\
}\
],\
"provenance": {\
"userId": "11",\
"spiceUserId": 1,\
"organizationId": "91",\
"modifiedDate": "2025-01-20T06:41:12+00:00"\
},\
"type": "UNDER\_FIVE\_YEARS",\
"otherNotes": "Health",\
"value": null\
}

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

| **Field Name** | **Type** | **Comments**                               |
| -------------- | -------- | ------------------------------------------ |
| message        | String   | Patient diagnosis was updated successfully |
| status         | Boolean  | Response status                            |

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

```
{
  "message": "Patient diagnosis was updated successfully.",
  "entity": null,
  "status": true,
  "entityList": null,
  "responseCode": 200,
  "totalCount": null
}
```
