---
title: "Record a new external (out-of-band) medication request on a patient. Tracking only — this never touches inventory or the Rx governance workflow."
method: POST
path: "/Patients/{id}/external-medications"
tags: ["Patients"]
---

# Record a new external (out-of-band) medication request on a patient. Tracking only — this never touches inventory or the Rx governance workflow.

`POST /Patients/{id}/external-medications`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/Patients/{id}/external-medications`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/Patients/:id/external-medications/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Request body

- CreateOutsideMedicationDto: Payload for recording a new external medication request on a patient.
  - `medicationName` string, required
  - `quantity` string, nullable
  - `sig` string, nullable
  - `status` string, nullable: One of: Requested, Filled, Cancelled. Defaults to Requested.
  - `kind` string, nullable: One of: Medication, Diet. Defaults to Medication.
  - `requestedDate` string, date-time, nullable
  - `source` string, nullable
  - `notes` string, nullable

## Response `201`

Created

- OutsideMedicationDto: Patient-facing view of an out-of-band external medication request (tracking only — no inventory or Rx governance involvement).
  - `id` string
  - `patientId` string
  - `medicationName` string
  - `quantity` string, nullable
  - `sig` string, nullable
  - `status` string: One of: Requested, Filled, Cancelled, Sending, Sent, Failed (the last three are eRx-only).
  - `kind` string: One of: Medication, Diet. Diets are charted in their own section.
  - `requestedDate` string, date-time
  - `source` string, nullable
  - `notes` string, nullable
  - `createdByName` string, nullable
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `filledAt` string, date-time, nullable: When staff confirmed the pharmacy filled it. Set/cleared by the status endpoint.
  - `filledByName` string, nullable
  - `erx` OutsideMedicationErxDto: Read-side e-prescribing detail for an OutsideMedication row (design §3).
    - `vendor` string
    - `providerUserId` string, nullable
    - `providerName` string, nullable
    - `ndcCode` string, nullable
    - `quantityUomCode` string, nullable
    - `daysSupply` union
      - integer
      - string, int32
    - `refills` union
      - integer
      - string, int32
    - `pharmacyDirectoryId` union
      - integer
      - string, int32
    - `pharmacySnapshot` string, nullable: Raw pharmacy snapshot JSON captured at send time (name/address/ncpdp/npi).
    - `code` string, nullable
    - `sentAt` string, date-time, nullable
    - `result` string, nullable: Webhook result JSON (response + normalized status). Never the NCPDP xml.
    - `lastError` string, nullable
    - `medicationRequestId` string, nullable

## Other responses

- `400`: Bad Request
- `404`: Not Found

## Changes

- **2026-10-07** `021fabd866ff`: 6 info
  - added the new optional request property `kind` (media type: application/json)
  - added the new optional request property `kind` (media type: text/json)
  - added the new optional request property `kind` (media type: application/*+json)
  - added the optional property `kind` to the response with the `201` status (media type: text/plain)
  - …2 more
- **2026-08-26** `a57456aa87b0`: 9 info
  - added the optional property `erx` to the response with the `201` status (media type: text/plain)
  - added the optional property `erx` to the response with the `201` status (media type: application/json)
  - added the optional property `erx` to the response with the `201` status (media type: text/json)
  - added the optional property `filledAt` to the response with the `201` status (media type: text/plain)
  - …5 more

[Operation history](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/changes/Patients/:id/external-medications/post.md)

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
