---
title: "Extend Prescription"
method: POST
path: "/api/doctor/prescriptions/{rx_id}/extend"
---

# Extend Prescription

`POST /api/doctor/prescriptions/{rx_id}/extend`

## Request

- Base URL: `https://api.mednode.in` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mednode.in/api/doctor/prescriptions/{rx_id}/extend`
- Auth: HTTP bearer

Doctor extends a prescription's expiry by `days` days.

If the prescription is already expired, the extension starts from today.
If it's still active, extension adds `days` to the existing expiry_date.
The prescription is reactivated if it was expired.

## Path parameters

- `rx_id` integer, required

## Request body

- BodyExtendPrescriptionApiDoctorPrescriptionsRxIdExtendPost
  - `days` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mednode/apis/mednode-ai-api.md) · [All operations](https://skmtc.dev/mednode/apis/mednode-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mednode/apis/mednode-ai-api/revisions/7e0b84effd6e?raw)
