---
title: "Download patient record as CSV"
method: POST
path: "/patients/{patientId}/export/csv"
tags: ["PatientRecordExport"]
---

# Download patient record as CSV

`POST /patients/{patientId}/export/csv`

## Request

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

## Path parameters

- `patientId` string, required

## Request body

- PatientRecordExportOptions: Options controlling which sections to include in the patient record export
  - `appointmentId` string, nullable: Optional appointment ID to filter export to a specific visit. When null, exports the full patient record across all appointments.
  - `order` integer
  - `includeMedicalHistory` boolean: Include medical history and warnings section
  - `includeSoapNotes` boolean: Include SOAP notes section
  - `includeMedications` boolean: Include medications section
  - `includeRdvmRecords` boolean: Include RDVM records/referrals
  - `includeTransactionHistory` boolean: Include transaction/payment history
  - `includeDischargeRecords` boolean: Include discharge records
  - `includeLabResults` boolean: Include lab results with original PDFs
  - `includeVaccinations` boolean: Include vaccination history
  - `includeReminders` boolean: Include reminders (full-record exports only)
  - `includeAnesthesiaRecords` boolean: Include the anesthesia record of each surgical visit (ITE-1332): the chart, a five-minute vitals table and the drug and event log. Only with the `AnesthesiaChart` flag on.

## Response `200`

OK

## Changes

- **2026-10-28** `099cf36186e0`: 3 info
  - added the new optional request property `oneOf[#/components/schemas/PatientRecordExportOptions]/includeAnesthesiaRecords` (media type: application/json)
  - added the new optional request property `oneOf[#/components/schemas/PatientRecordExportOptions]/includeAnesthesiaRecords` (media type: text/json)
  - added the new optional request property `oneOf[#/components/schemas/PatientRecordExportOptions]/includeAnesthesiaRecords` (media type: application/*+json)
- **2026-10-21** `85ee96c0bb96`: 3 info
  - added the new optional request property `oneOf[#/components/schemas/PatientRecordExportOptions]/order` (media type: application/json)
  - added the new optional request property `oneOf[#/components/schemas/PatientRecordExportOptions]/order` (media type: text/json)
  - added the new optional request property `oneOf[#/components/schemas/PatientRecordExportOptions]/order` (media type: application/*+json)

[Operation history](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/changes/patients/:patientId/export/csv/post.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)
