---
title: "Share patient records with the RDVM by generating a PDF export"
method: POST
path: "/Referrals/{id}/share-records"
tags: ["Referrals"]
---

# Share patient records with the RDVM by generating a PDF export

`POST /Referrals/{id}/share-records`

## Path parameters

- `id` string, required

## Request body

- SharePatientRecordsRequest
  - `includeMedicalHistory` boolean
  - `includeSoapNotes` boolean
  - `includeMedications` boolean
  - `includeDischargeRecords` boolean
  - `includeTransactionHistory` boolean
  - `includeLabs` boolean
  - `includeImaging` boolean
  - `dateFrom` string, date-time, nullable
  - `dateTo` string, date-time, nullable

## Response `201`

Created

- ReferralDocumentDto
  - `id` string
  - `referralId` string
  - `documentType` string
  - `fileName` string
  - `description` string, nullable
  - `fileUrl` string, nullable
  - `fileSizeBytes` union
    - integer
    - string, int64
  - `mimeType` string, nullable
  - `uploadedById` string
  - `uploadedBy` ReferralUserSummaryDto
    - `id` string
    - `name` string
    - `role` string, nullable
  - `uploadedAt` string, date-time
  - `isSent` boolean
  - `sentAt` string, date-time, nullable
  - `createdAt` string, date-time

## Other responses

- `400` — Bad Request

---

[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/e7d381a5453b/schema)
