# Prescription List

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

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

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

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

| **Field Name** | **Type** | **Mandatory** | **Example** |
| -------------- | -------- | ------------- | ----------- |
| isDeleted      | Boolean  | Yes           | False       |

#### **Sample Input 1:** <a href="#prescriptionlist-sampleinput1" id="prescriptionlist-sampleinput1"></a>

{     "isDeleted": false,     "patientTrackId": 1,     "tenantId": 4 }

#### **Sample Input 2:** <a href="#prescriptionlist-sampleinput2" id="prescriptionlist-sampleinput2"></a>

{     "isDeleted": true,     "patientTrackId": 1,     "tenantId": 4 }

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

| **Field Name**              | **Type**  | **Comments**                   |
| --------------------------- | --------- | ------------------------------ |
| `id`                        | Integer   | Country ID                     |
| `medicationId`              | BigInt    | Medication Id                  |
| `dosageFrequencyId`         | BigInt    | Dosage frequency ID            |
| `dosageUnitId`              | BigInt    | Dosage Unit ID                 |
| `endDate`                   | Timestamp | Medication End date            |
| `prescribedDays`            | Integer   | Medication prescribed days     |
| `classificationName`        | String    | Medication classification name |
| `brandName`                 | String    | Medication brand name          |
| `medicationName`            | String    | Medication name                |
| `dosageUnitValue`           | String    | Dosage Unit Value              |
| `dosageUnitName`            | String    | Dosage unit name               |
| `dosageFrequencyName`       | String    | Dosage frequency name          |
| `instructionNote`           | String    | Instruction note               |
| `dosageFormName`            | String    | Dosage form name               |
| `isActive`                  | Boolean   | Is Active                      |
| `isDeleted`                 | Boolean   | Is Deleted                     |
| `prescribedSince`           | Timestamp | Prescription Start date        |
| `prescriptionRemainingDays` | Integer   | Prescription Remaining Days    |
| `discontinuedOn`            | Timestamp | Prescription Discontinued on   |

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

```
{
    "message": "Got prescription's.",
    "entity": null,
    "status": true,
    "entityList": [
        {
            "id": 1,
            "medicationId": 3,
            "dosageFrequencyId": 2,
            "dosageUnitId": 2,
            "endDate": "2023-05-29T11:54:58+05:30",
            "prescribedDays": 6,
            "classificationName": "Diuretic",
            "brandName": "Antibiotics",
            "medicationName": "Dolophime",
            "dosageUnitValue": "5",
            "dosageUnitName": "µg",
            "dosageFrequencyName": "OM",
            "instructionNote": "In the morning",
            "dosageFormName": "Tablet",
            "isActive": null,
            "isDeleted": null,
            "prescribedSince": "2023-05-24T11:54:58+05:30",
            "prescriptionRemainingDays": 4,
            "discontinuedOn": null
        },
        {
            "id": 2,
            "medicationId": 6,
            "dosageFrequencyId": 1,
            "dosageUnitId": 2,
            "endDate": "2023-05-26T11:55:21+05:30",
            "prescribedDays": 3,
            "classificationName": "Diuretic",
            "brandName": "Antibiotics",
            "medicationName": "Dolo",
            "dosageUnitValue": "6",
            "dosageUnitName": "µg",
            "dosageFrequencyName": "TDS",
            "instructionNote": "Three times a day",
            "dosageFormName": "Liquid",
            "isActive": null,
            "isDeleted": null,
            "prescribedSince": "2023-05-24T11:55:21+05:30",
            "prescriptionRemainingDays": 1,
            "discontinuedOn": null
        },
        {
            "id": 3,
            "medicationId": 2,
            "dosageFrequencyId": 1,
            "dosageUnitId": 2,
            "endDate": "2023-05-31T11:56:29+05:30",
            "prescribedDays": 8,
            "classificationName": "ACE inhibitor",
            "brandName": "Biomet",
            "medicationName": "Acetolophime",
            "dosageUnitValue": "9",
            "dosageUnitName": "µg",
            "dosageFrequencyName": "TDS",
            "instructionNote": "Three times a day",
            "dosageFormName": "Liquid",
            "isActive": null,
            "isDeleted": null,
            "prescribedSince": "2023-05-24T11:56:29+05:30",
            "prescriptionRemainingDays": 6,
            "discontinuedOn": null
        }
    ],
    "responseCode": 200,
    "totalCount": 3
}
```
