Skip to content

6.6.1 Introduction

Events & Periods holds what happened to an animal, such as a calving or a treatment, and the states it went through, such as a lactation. Each canonical event is what one source reported; periods are worked out from the resolved events. The rules for canonical data in Observations apply here too.

6.6.1.1 Diagram

Entities of this domain, their subtypes and the references between them. References to other domains are listed on each entity page.

classDiagram class CanonicalEvent class AnimalEvent class AnimalGroupEvent class ProductEvent class Offspring class TreatmentProduct class DeathType class CanonicalPeriod class AnimalPeriod class AnimalGroupPeriod class PeriodType class FarmConfiguration class Farm <<external>> Farm CanonicalEvent <|-- AnimalEvent CanonicalEvent <|-- AnimalGroupEvent CanonicalEvent <|-- ProductEvent CanonicalPeriod <|-- AnimalPeriod CanonicalPeriod <|-- AnimalGroupPeriod AnimalEvent --> DeathType : death_type AnimalEvent --> AnimalEvent : related_service AnimalEvent --> Offspring : offspring AnimalEvent --> AnimalEvent : related_diagnosis AnimalEvent --> TreatmentProduct : products AnimalGroupEvent --> TreatmentProduct : products Offspring --> AnimalEvent : parturition CanonicalPeriod --> PeriodType : period_type FarmConfiguration --> Farm : farm

Classes marked «external» belong to another domain.

6.6.1.2 Entities

  • CanonicalEvent: Something that happened to an animal, a group or a product lot at a point in time, as reported by one feed: a calving, a service, a treatment, an exit from the herd.
  • Offspring: One newborn of a parturition, alive or dead.
  • TreatmentProduct: One product used in a treatment, with dose, route, quantity taken from stock and withdrawal periods (how long milk or meat from the animal cannot be sold afterwards).
  • DeathType: Catalog of the kinds of death recorded when an animal leaves the herd because it died.
  • CanonicalPeriod: A state of an animal or group with a start and an end: a lactation, a dry period, a pregnancy, a withdrawal.
  • PeriodType: Catalog of the kinds of period, such as lactation, dry, pregnancy and withdrawal, scoped to species.
  • FarmConfiguration: Farm context that changes over time and affects how data is read and exported, such as the milking system in use.