Object

CensusKennel

Usage Example
query {
# Use this type in your queries
someQuery {
additionalNotes
assignmentCount
assignmentStatus
assignments
dirtySince
}
}

Fields

additionalNotesString

Free text, max 500 characters.

assignmentCountInt!required
DEPRECATED: Counts occupants and bookings together. Use `occupantCount` and `reservationCount`.
assignmentStatusCensusAssignmentStatus
DEPRECATED: Reports a single status, so RESERVED is only ever returned for a kennel nobody is in and an occupied kennel's booking is invisible. Read `occupants` and `reservations` instead, which overlap.
assignments[CensusAssignment!]!required
DEPRECATED: Collapses occupancy and planned use into one list, and keeps one row per patient, so a kennel's occupant hides a booking made for it. Use `occupants` and `reservations`, which report the two independently.
dirtySinceDateTime

When the kennel was last marked dirty. Null unless it is dirty now: the underlying timestamp moves on every physical status write, so on a clean kennel it would mean "clean since".

hasSameDayReservationBoolean!required

True when at least one active booking on this kennel is for an appointment starting today at the kennel's own location — its local date, not the caller's and not UTC.

idID!required
kennelStatusCensusKennelStatus!required
maxWeightDecimal
minWeightDecimal
nameString
occupantCountInt!required

How many patients are physically in this kennel. The length of `occupants`.

occupants[CensusAssignment!]!required

The patients physically in this kennel. The occupying subset of `assignments`, resolved from the same batch.

positionInt!required
reservationCountInt!required

How many active bookings this kennel has. The length of `reservations`, and independent of `occupantCount` — a kennel can have both.

reservations[CensusReservation!]!required

Every active booking on this kennel, oldest first. Orthogonal to `occupants`: a kennel can be occupied and reserved at once, and a booking appears here even when its patient is physically somewhere else — the case `assignments` collapses away.

species[String]
wardIdID