> ## Documentation Index
> Fetch the complete documentation index at: https://developer.vetcove.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch a prescription

> Returns a prescription record by ID, including the latest prescription associated with that record. 
 
A **prescription** record is uniquely identified by the combination of patient, catalog item, and clinic. A record may have multiple prescriptions over time, but this endpoint returns only the most recent prescription for the requested record.



## OpenAPI

````yaml get /ext/v2/prescriptions/{prescription_id}/
openapi: 3.1.0
info:
  description: ''
  title: NinjaAPI
  version: 2.0.0
servers:
  - url: https://connect.vetcove.com/
security: []
paths:
  /ext/v2/prescriptions/{prescription_id}/:
    get:
      tags:
        - Prescriptions
      summary: Fetch a prescription
      description: >-
        Returns a prescription record by ID, including the latest prescription
        associated with that record. 
         
        A **prescription** record is uniquely identified by the combination of
        patient, catalog item, and clinic. A record may have multiple
        prescriptions over time, but this endpoint returns only the most recent
        prescription for the requested record.
      operationId: prescriptions_get
      parameters:
        - description: The ID of the prescription to fetch
          in: path
          name: prescription_id
          required: true
          schema:
            description: The ID of the prescription to fetch
            title: Prescription Id
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectPrescriptionDetailSchema'
          description: OK
      security:
        - ExternalAPIAuth: []
components:
  schemas:
    ConnectPrescriptionDetailSchema:
      description: A medication prescribed to a patient by a doctor.
      properties:
        allowed_uses:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          description: >-
            The number of fills allowed for this prescript, each with the
            specified `quantity`.
          title: Allowed Uses
        client_notes:
          anyOf:
            - type: string
            - type: 'null'
          description: Additional notes for the prescription.
          title: Client Notes
        clinic_id:
          description: The ID of the clinic where this prescription was created.
          title: Clinic Id
          type: integer
        clinic_patient_id:
          description: The ID of the clinic patient that this prescription is for.
          title: Clinic Patient Id
          type: integer
        created:
          description: The datetime this object was created.
          format: date-time
          title: Created
          type: string
        days_supply:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          description: How many days one unit of this prescription is itended to last for.
          title: Days Supply
        deleted:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: The datetime this record was soft deleted.
          title: Deleted
        directions:
          anyOf:
            - type: string
            - type: 'null'
          description: The directions for the prescription.
          title: Directions
        expiration_date:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: When this prescription expires, if applicable.
          title: Expiration Date
        id:
          description: The unique identifier for the prescription.
          title: Id
          type: integer
        is_deleted:
          description: Whether this record is soft deleted or not.
          title: Is Deleted
          type: boolean
        is_prn:
          anyOf:
            - type: boolean
            - type: 'null'
          description: Whether the prescription is PRN.
          title: Is Prn
        item:
          $ref: '#/components/schemas/ConnectPrescriptionItemSchema'
          description: The item this prescription is for.
        last_filled_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: The date and time when the last fill was dispensed.
          title: Last Filled At
        modified:
          description: >-
            The datetime this object was last modified; changes to related
            entities will not update this field.
          format: date-time
          title: Modified
          type: string
        prescribed_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: The date and time when the prescription was prescribed.
          title: Prescribed At
        prescribed_by:
          anyOf:
            - type: string
            - type: 'null'
          description: The name of the doctor who prescribed the prescription.
          title: Prescribed By
        prescribed_by_doctor_id:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            The ID of the doctor who prescribed the prescription. Use with the
            Doctors endpoint to look up full doctor details.
          title: Prescribed By Doctor Id
        quantity:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          description: How many of the items should be provided for each fill.
          title: Quantity
        remaining_fills:
          anyOf:
            - type: integer
            - type: 'null'
          description: The number of fills remaining for this prescription.
          title: Remaining Fills
        status:
          anyOf:
            - $ref: '#/components/schemas/PrescriptionStatus'
            - type: 'null'
          description: The status of the prescription.
        total_allowed_uses:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            The total quantity for which the prescription can be used for the
            item. None if the prescription is PRN.
          title: Total Allowed Uses
        total_order_item_count:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            The count of order items placed against this prescription. Each
            order consumes one full fill.
          title: Total Order Item Count
        total_uses:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            The total quantity of the item that has been used for this
            prescription.
          title: Total Uses
      required:
        - created
        - modified
        - is_deleted
        - deleted
        - id
        - clinic_id
        - clinic_patient_id
        - item
      title: Prescription
      type: object
    ConnectPrescriptionItemSchema:
      properties:
        id:
          description: The ID of the item.
          title: Id
          type: integer
        name:
          description: The name of the item.
          title: Name
          type: string
      required:
        - name
        - id
      title: ConnectPrescriptionItemSchema
      type: object
    PrescriptionStatus:
      enum:
        - ACTIVE
        - DRAFT
        - DECLINED
        - IMPORTED
      title: PrescriptionStatus
      type: string
  securitySchemes:
    ExternalAPIAuth:
      scheme: bearer
      type: http

````