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

OCCUPIED when a patient is inside. RESERVED when nobody is inside and the kennel has an active reservation, whatever its condition. Null otherwise. Ignores search and patient filters.

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 condition 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
kennelConditionCensusKennelCondition!required

CLEAN for a kennel whose condition was never set.

kennelStatusCensusKennelStatus!required
DEPRECATED: Use `kennelCondition`.
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