# Fill Prescription List

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

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

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

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

{ "id": 1, "assessmentRequired": true, "assessmentDataRequired": false, "isConfirmDiagnosis": false, "isDiabetesDiagnosis": false, "isGad7": false, "isHtnDiagnosis": false, "lifeStyleRequired": false, "isPhq9": false, "isPregnant": false, "prescriberRequired": true, "redRiskPatient": false }

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

| **Field Name**              | **Type**  | **Comments**                          |
| --------------------------- | --------- | ------------------------------------- |
| `id`                        | Boolean   | Medication ID                         |
| `medicationName`            | String    | Medication Name                       |
| `dosageUnitName`            | String    | Medication Dosage unit                |
| `dosageUnitValue`           | Integer   | Medication Dosage unit value          |
| `dosageFormName`            | String    | Medication Dosage form                |
| `dosageFrequencyName`       | String    | Frequency name                        |
| `instructionNote`           | String    | Medication frequency instruction note |
| `endDate`                   | Timestamp | Medication end date                   |
| `remainingPrescriptionDays` | Integer   | Remaining prescription days           |
| `classificationName`        | String    | Medication classification name        |
| `brandName`                 | String    | Medication brand name                 |

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

```
{
  "message": "Got Fill Prescription's.",
  "entity": null,
  "status": true,
  "entityList": [
    {
      "id": 1,
      "medicationName": "Dolophime",
      "dosageUnitName": "µg",
      "dosageUnitValue": "5",
      "dosageFormName": "Tablet",
      "dosageFrequencyName": "OM",
      "instructionNote": "In the morning",
      "endDate": "2023-05-29T11:54:58+05:30",
      "remainingPrescriptionDays": 1,
      "tenantId": 4,
      "prescription": 5,
      "createdAt": "2023-05-24T11:54:58+05:30",
      "classificationName": "Diuretic",
      "brandName": "Antibiotics"
    }
  ],
  "responseCode": 200,
  "totalCount": 3
}
```
