---
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`

## 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.net/clinicos/apis/pawthosx-business-api-v1.md) · [All operations](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clinicos/pawthosx-business-api-v1/revisions/a905bde4e796/schema)
