# Medical

The Medical section stores DOT physical exam records for drivers. Users can add or edit the medical certificate, including issue and expiration dates, upload supporting documents, and leave optional notes. Validation ensures proper date logic and file handling.

`![DriverMedicalModal](../assets/driver-medical-modal.png)`\
\&#xNAN;*Figure: Medical modal with date validation, file upload, and optional notes.*

#### Add Medical 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 a valid date today or in the past</td></tr><tr><td>Expiration Date</td><td align="center">✅</td><td>Must be after the issue date</td></tr><tr><td>File Upload</td><td align="center">Optional</td><td>Upload drag/drop; may be required depending on company policy</td></tr><tr><td>Notes</td><td align="center">Optional</td><td>Free text field for remarks or medical provider notes</td></tr></tbody></table>

* Validation errors appear if the expiration date is before the issue date.
* Future issue dates are also flagged with an error message.
* Save is enabled only when all required fields are filled and valid.

#### Edit Medical Modal

* All fields are editable.
* Uploaded file can be replaced or deleted.
* Save and Delete options are available at the bottom of the modal.

#### Validation Rules

* Issue and expiration dates must follow logical order.
* Only one medical certificate can be active per driver.
* Replacing a certificate does not delete history—previous entries remain stored.

#### UI Notes

* Expired medicals are flagged in the driver list/card view.
* Drivers without an active medical record may trigger compliance alerts.


---

# 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/medical.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.
