# Drug & Alcohol Test

The Test section allows companies to track drug and alcohol testing for drivers. Users can log new test entries or edit existing ones, including type, reason, result, and supporting documents. This ensures compliance with DOT regulations and internal safety protocols.

`![DriverTestModal](../assets/driver-test-modal.png)`\
\&#xNAN;*Figure: Drug & Alcohol Test modal with required fields and file upload support.*

#### Add Test Modal

<table><thead><tr><th width="200">Field</th><th width="90" align="center">Required</th><th>Description</th></tr></thead><tbody><tr><td>Issue Date</td><td align="center">✅</td><td>Must be today or a past date</td></tr><tr><td>Test Type</td><td align="center">✅</td><td>Type of test (e.g., Drug or Alcohol)</td></tr><tr><td>Reason</td><td align="center">✅</td><td>Reason for the test (e.g., Random, Post-Accident, Pre-Employment)</td></tr><tr><td>Result</td><td align="center">✅</td><td>Result of the test (e.g., Negative, Positive, Refused)</td></tr><tr><td>File Upload</td><td align="center">Optional</td><td>Drag-and-drop upload; required only if enforced by company policy</td></tr><tr><td>Notes</td><td align="center">Optional</td><td>Optional remarks or additional context</td></tr></tbody></table>

* Save button is only enabled after all required fields are filled.
* Dropdowns are single-select and fully searchable.

#### Edit Test Modal

* All fields are editable.
* Existing document is previewed with replace/delete option.
* Save and Delete actions are available.

#### Validation Rules

* Issue Date must be logical (no future dates).
* All three dropdowns (Type, Reason, Result) must be selected before saving.
* One or more test entries can exist per driver.

#### UI Notes

* Most recent test date may be displayed in the driver detail summary.
* Tests do not auto-expire, but older entries may be reviewed or replaced as needed.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rute.gitbook.io/carrier/compliance/drug-and-alcohol-test.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
