---
title: "Export patient records on-demand (requires canViewRecords permission) Returns PDF directly for download, not stored as a document"
method: POST
path: "/public/rdvm/referrals/{referralId}/export"
tags: ["RdvmPortal"]
---

# Export patient records on-demand (requires canViewRecords permission) Returns PDF directly for download, not stored as a document

`POST /public/rdvm/referrals/{referralId}/export`

## Request

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

## Path parameters

- `referralId` string, required

## Request body

- RdvmExportRequest
  - `sessionId` string
  - `clinicId` string
  - `includeMedicalHistory` boolean
  - `includeSoapNotes` boolean
  - `includeMedications` boolean
  - `includeDischargeRecords` boolean
  - `includeLabs` boolean
  - `includeImaging` boolean
  - `dateFrom` string, date-time, nullable
  - `dateTo` string, date-time, nullable

## Response `200`

OK

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

---

[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)
