Object

CensusStatusCounts

Kennel counts on two independent axes. `clean`, `dirty`, `storage`, `doNotUse` and `occupied` are mutually exclusive: they partition the ward, and only they sum to `total`. `reserved` overlaps all of them. A kennel can be reserved and occupied, or reserved and dirty, at the same time. Do not add it to the others.

Usage Example
query {
# Use this type in your queries
someQuery {
clean
dirty
doNotUse
occupied
reserved
}
}

Fields

cleanInt!required

Unoccupied and clean. Includes kennels that are also reserved.

dirtyInt!required

Unoccupied and awaiting cleaning. Includes kennels that are also reserved.

doNotUseInt!required

Unoccupied and withdrawn from use. Includes kennels that are also reserved.

occupiedInt!required

Kennels holding at least one patient. Never also counted as dirty or clean.

reservedInt!required

Kennels with an upcoming booking. An OVERLAPPING count, not a bucket: a reserved kennel is also counted under `occupied` or under its physical status. It is not a summand of `unoccupied` or of `total`. Compare `CensusKennel.assignmentStatus`, which reports `RESERVED` only when nobody is physically in the kennel.

storageInt!required

Unoccupied and in use for storage. Includes kennels that are also reserved.

totalInt!required

`unoccupied + occupied`. Excludes `reserved`.

unoccupiedInt!required

`clean + dirty + storage + doNotUse`. Excludes `reserved`.