Erx

Send a non-controlled prescription to an outside pharmacy via VetHubRx. Creates the OutsideMedication record (Status=Sending) and returns it; the final Sent/Failed state arrives asynchronously via webhook.

Changed on
post/erx/prescriptions

Request

Request body

patientIdstring
providerUserIdstring
sigstring

Directions to the client (patient's owner).

notesToPharmaciststring nullable
weightstring nullable

Free text with units, e.g. "12 lbs". REQUIRED — the pharmacy network rejects sends without it.

medicationRequestIdstring nullable

Optional back-link when this send fulfills an approved MedicationRequest routed to an online pharmacy (design §6.4). No state coupling — the request completes its own lifecycle; the eRx record just remembers where it came from.

Response

Created

idstring
patientIdstring
medicationNamestring
quantitystring nullable
sigstring nullable
statusstring

One of: Requested, Filled, Cancelled, Sending, Sent, Failed (the last three are eRx-only).

kindstring

One of: Medication, Diet. Diets are charted in their own section.

requestedDatestring date-time
sourcestring nullable
notesstring nullable
createdByNamestring nullable
createdAtstring date-time
updatedAtstring date-time
filledAtstring date-time nullable

When staff confirmed the pharmacy filled it. Set/cleared by the status endpoint.

filledByNamestring nullable

Changes

    • info

      added the optional property to the response with the status (media type: text/plain)

    • info

      added the optional property to the response with the status (media type: application/json)

    • info

      added the optional property to the response with the status (media type: text/json)

    • info

      endpoint added