---
title: "Get outside medications (out-of-band, e.g. filled at an online/outside pharmacy) recorded on a patient for tracking. Intentionally separate from inventory and Rx governance — there may be no matching inventory item. NOTE: the \"external-medications\" route (and the external_medication_requests table) are kept stable across the OutsideMedication rename — the rename freed \"MedicationRequest\" for the stateful request entity (docs/medication-request-lifecycle-design.md)."
method: GET
path: "/Patients/{id}/external-medications"
tags: ["Patients"]
---

# Get outside medications (out-of-band, e.g. filled at an online/outside pharmacy) recorded on a patient for tracking. Intentionally separate from inventory and Rx governance — there may be no matching inventory item. NOTE: the "external-medications" route (and the external_medication_requests table) are kept stable across the OutsideMedication rename — the rename freed "MedicationRequest" for the stateful request entity (docs/medication-request-lifecycle-design.md).

`GET /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/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Response `200`

OK

- OutsideMedicationDto[]
  - `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

- `404`: Not Found

## Changes

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

[Operation history](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/changes/Patients/:id/external-medications/get.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)
