---
title: "What changed on this sheet since the caller last looked: the order audit events after their marker, newest first, as terse facts. Empty with a null `lastSeenAt` when they have never marked the stay."
method: GET
path: "/hospitalstays/{id}/changes"
tags: ["HospitalStays"]
---

# What changed on this sheet since the caller last looked: the order audit events after their marker, newest first, as terse facts. Empty with a null \`lastSeenAt\` when they have never marked the stay.

`GET /hospitalstays/{id}/changes`

## Request

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

## Path parameters

- `id` string, required

## Response `200`

OK

- HospitalStayChangesDto: Response of `GET /hospitalstays/{id}/changes`.
  - `stayId` string
  - `lastSeenAt` string, date-time, nullable: Null when the caller has never marked the stay seen; then int HospitalStayChangesDto.Count is 0.
  - `count` union
    - integer
    - string, int32
  - `truncated` boolean: True when more than the returned tail changed; the count is then a floor.
  - `changes` HospitalStayChangeDto[]: Newest first.
    - `id` string
    - `orderId` string
    - `orderTitle` string
    - `orderKind` 'medication' | 'fluid' | 'diagnostic' | 'monitoring' | 'procedure' | 'nursing' | 'nutrition' | 'communication' | 'task': What kind of thing a treatment order is. Mirrors the prototype's `TreatmentOrderKind` so the web mirror can map one-to-one.
    - `occurrenceId` string, nullable
    - `action` 'created' | 'edited' | 'completed' | 'skipped' | 'held' | 'resumed' | 'discontinued' | 'delayed' | 'charge_captured' | 'charge_capture_failed': Append-only audit actions on the treatment-order trail, mirroring MedicationRequestEventType for the medication-request trail.
    - `at` string, date-time
    - `actor` string: Frozen actor string from the trail (an email for a person, "system" for a worker).
    - `actorUserId` string, nullable
    - `actorName` string, nullable: The actor's display name resolved now, for initials. Null for system actions or deleted users.
    - `detail` string, nullable

## Other responses

- `404`: Not Found

## Changes

- **2026-09-11** `503cd0546309`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/changes/hospitalstays/:id/changes/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)
