paul121:
It seems you would want to display a similar message when viewing these animal assets, correct? If so, adding a field to the medical log makes sense considering we need both a timestamp + duration for this “withdrawal period”. Regarding what to name the field… do you think there is language that could be abstracted to cover any type of animal? A quick sketch: " Specify a withdrawal interval if this medical event impacts goods this animal produces." It would be interesting if you could allow a custom message as well, but maybe the log name and other attributes are sufficient for this?
It’s a step beyond what I was thinking but it sounds ideal.
There are 2 withdrawal periods to consider with animals.
Meat Withdrawal Period : I think this is universal enough to cover all animals.
Milk or Egg Withdrawal Period : Probably don’t want to word it so it sounds like cows produce eggs or poultry produce milk so perhaps Other Produce Withdrawal ?
paul121:
I’m curious if we could abstract some of this into helpers provided by farmOS core so that you could generate this “interval” contextual message for any asset + log type combo that has a custom “interval” type of field. Just thinking out loud, maybe that could simply be a new field type (the REI stores a simple integer for the # of days, but we’ve thought next steps would be to store this as # of seconds, with an improved UI to select hours/days/weeks, etc)?
mstenta:
I could almost see a unified system for handling these kinds of “time period considerations” provided by farmOS core. Maybe farm_rei
(and farm_medical
?) could then just depend on this, and add whatever specifics they need on top.
One of the ideas that floated around earlier was using standard “repeating event” calendar behavior/rules to define the time periods. That would allow, for example, adding considerations that repeat yearly - like ground water cycles, pest pressures, weather patterns, etc etc - in addition to more specific things that are triggered by farm management activities - like inputs to land and animals.
Making these types of timers part of core would be fantastic, there are probably loads of use cases and having helpers for them sounds great especially for us greenhorns.
1 Like