---
title: "The patient-record discharge variables for an appointment (ITE-1237): microchip, colour, age, weight in kg and lbs, and sex with neuter/spay status, as the printed discharge fills them (DischargePatientVariables). The on-screen discharge preview merges these into its template context, so it no longer shows the raw tokens. A value the record lacks is an empty string. 404 for an unknown appointment, including another tenant's. Open to any authenticated tenant user, like GET /patients/{id}: patient demographics are not a sensitive read under docs/permissions.md (Model A)."
method: GET
path: "/templates/discharge-variables/{appointmentId}"
tags: ["Templates"]
---

# The patient-record discharge variables for an appointment (ITE-1237): microchip, colour, age, weight in kg and lbs, and sex with neuter/spay status, as the printed discharge fills them (DischargePatientVariables). The on-screen discharge preview merges these into its template context, so it no longer shows the raw tokens. A value the record lacks is an empty string. 404 for an unknown appointment, including another tenant's. Open to any authenticated tenant user, like GET /patients/{id}: patient demographics are not a sensitive read under docs/permissions.md (Model A).

`GET /templates/discharge-variables/{appointmentId}`

## Request

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

## Path parameters

- `appointmentId` string, required

## Response `200`

OK

- object

## Other responses

- `404`: Not Found

## Changes

- **2026-10-28** `099cf36186e0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/changes/templates/discharge-variables/:appointmentId/get.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)
