# Fill Prescription - Update

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

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

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

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

| **Field Name**  | **Type** | **Mandatory** | **Example**     |
| --------------- | -------- | ------------- | --------------- |
| Frequency       | String   | Yes           | TDS             |
| Instructions    | String   | Yes           | Thrice a day    |
| Medication Name | String   | Yes           | Medication name |
| reason          | String   | Yes           |                 |
| prescription    | Integer  | Yes           |                 |
| id              | Integer  | Yes           |                 |

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

{\
"patientTrackId": 1,\
"patientVisitId": 21,\
"prescriptions": \[\
{\
"dosage\_frequency\_name": "TDS",\
"id": 4,\
"instructionNote": "Three times a day",\
"instructionUpdated": false,\
"medication\_name": "Dolo",\
"prescription": "0",\
"prescriptionFilledDays": 2,\
"reason": "Extra Stock with Patient"\
}\
],\
"tenantId": 4\
}

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

```
{
  "message": "Fill prescriptions updated successfully.",
  "entity": null,
  "status": true,
  "entityList": null,
  "responseCode": 200,
  "totalCount": null
}
```
