# Prescription Update

| **API URL**     | {{url}}/spice-service/prescription/update |
| --------------- | ----------------------------------------- |
| **Method**      | POST                                      |
| **Description** | Prescription Update                       |

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

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

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

| Field Name          | **Type** | **Mandatory** | Example           |
| ------------------- | -------- | ------------- | ----------------- |
| brandName           | String   | Yes           | Antibiotics       |
| classificationName  | String   | No            | Spice123          |
| dosageFormName      | String   | No            | Diuretic          |
| dosageFrequencyId   | BigInt   | No            | 1                 |
| dosageFrequencyName | String   | No            | TDS               |
| dosageUnitId        | BigInt   | No            | 2                 |
| dosageUnitName      | String   | Yes           | µg                |
| dosageUnitValue     | String   | Yes           | 12                |
| instructionNote     | String   | Yes           | Three times a day |
| isDeleted           | Boolean  | No            | False             |
| medicationId        | BigInt   | Yes           | 6                 |
| medicationName      | String   | Yes           | Dolo              |
| prescribedDays      | Integer  | Yes           | 4                 |

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

{     "patientTrackId": 1,     "patientVisitId": 21,     "prescriptionList": \[         {             "brandName": "Antibiotics",             "classificationName": "Diuretic",             "dosageFormName": "Liquid",             "dosageFrequencyId": 1,             "dosageFrequencyName": "TDS",             "dosageUnitId": 2,             "dosageUnitName": "µg",             "dosageUnitValue": "12",             "instructionNote": "Three times a day",             "isDeleted": false,             "medicationId": 6,             "medicationName": "Dolo",             "prescribedDays": 4         }     ],     "tenantId": 4 }

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

```
{
    "message": "Prescription saved successfully.",
    "entity": null,
    "status": true,
    "entityList": null,
    "responseCode": 201,
    "totalCount": null
}
```
