> For the complete documentation index, see [llms.txt](https://spice.docs.medtroniclabs.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spice.docs.medtroniclabs.org/engineering/api-documentation/admin-services/medication/medication-validate.md).

# Medication Validate

| **API URL**     | {{url}}/admin-service/medication/validate |
| --------------- | ----------------------------------------- |
| **Method**      | POST                                      |
| **Description** | Validate the Medication                   |

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

| **Field Name**         | **Type** | **Mandatory** | **Example**                                                                                                                             |
| ---------------------- | -------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| countryId              | Integer  | Yes           | Country id                                                                                                                              |
| classificationId       | Bigint   | Yes           | Classification Id                                                                                                                       |
| dosageFormId           | Bigint   | Yes           | DosageForm Id                                                                                                                           |
| brandId                | Bigint   | Yes           | Brand Id                                                                                                                                |
| classificationName     | String   | Yes           | Classification Name                                                                                                                     |
| brandName              | String   | Yes           | Brand Name                                                                                                                              |
| dosageFormName         | String   | Yes           | Dosage Form Name                                                                                                                        |
| codeDetails            | String   | Yes           | Code Details                                                                                                                            |
| code                   | Bigint   | Yes           | Labtest code                                                                                                                            |
| url                    | String   | Yes           | Lab test URL                                                                                                                            |
| name                   | String   | Yes           | Medication name to validate                                                                                                             |
| Authorization (Header) | String   | Yes           | Bearer 1ba363a1edf54402b51f58060aa52b11d30f99a490295adec900fdabf2b472181c0bfb165be18f4f5c430c7218a244bd29b9300d3471acc08197ccfb996118f6 |
| client                 | String   | Yes           | web                                                                                                                                     |

```
{
  "countryId": 1,
  "classificationId": 1,
  "classificationName": "ACE inhibitor",
  "brandId": 1,
  "brandName": "Antibiotics",
  "codeDetails": {
    "code": "medi",
    "url": "https://com/region/1/1/medication/create"
  },
  "name": "Medication One",
  "dosageFormId": 2,
  "dosageFormName": "Liquid",
  "category": {},
  "tenantId": "1"
}
```

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

| **Field Name** | **Type** | **Comments**                 |
| -------------- | -------- | ---------------------------- |
| status         | Boolean  | Medication validation status |

```
{
  "status": true
}
```
