adewg / ICAR

Standard messages and specifications for animal data exchange in livestock.
https://icar.org/
Apache License 2.0
47 stars 26 forks source link

Device Attentions message #393

Closed cookeac closed 10 months ago

cookeac commented 1 year ago

Discussed as a small, generalised start from requirement identified at the ICAR 2023 meeting in Spain @erwinspeybroeck will add an example

erwinspeybroeck commented 1 year ago

[ Attention{ description:
consideration with a view to action.

id string The technical, non-meaningful and unique identification code of an object.

animalId string The technical, non-meaningful and unique identification code of an object.

attentionType string Type of attention Enum: [ HEALTH, PROLONGED_CALVING, POST_CALVING, EATING, ACTIVITY, WALKING, STANDING_UP, STANDING, LYING_TOO_LONG, LYING_TOO_SHORT, INACTIVITY, RUMINATION ]

attentionGroup string Group of attention Enum: [ BEHAVIOUR, HEALTH ]

startDateTime dateTimestring($date-time) This is a timestamp the event occured. The date instant is represented as 2017-08-23T08:59:35.120Z.

endDateTime string($date-time) This is a timestamp the event occured. The date instant is represented as 2017-08-23T08:59:35.120Z.

priority string Priority of attention Enum: [ NORMAL, URGENT ]

source string Source of attention Enum: [ NEDAP_AGRI_BV, //, SCR_HEADQUARTERS_SENSETIME, //, SCR_HEADQUARTERS_HEATIME ]

creationDateTime string($date-time) the moment of insertion in the database

} ]

cookeac commented 1 year ago

So an ICAR ADE equivalent might be based on icarAnimalEventCoreResource and contain:

Attribute Type Description
category icarAttentionCategoryType A category that would allow filtering of alerts.
cause icarAttentionCauseType The cause of the specific alert.
priority icarAttentionPriorityType The relative priority of the alert.
device icarDeviceReferenceType Identification or details of the device raising the alert.

We might wish to consider the event name - should it be Attention? In English we might express this as Warning or Alert or Alarm or Notification.

cookeac commented 1 year ago

Agreed we will ask manufacturers to review

tpekeler commented 1 year ago

I aked our partner to have a look into this issue.

The response was: Looks ok to me, I would like to suggest adding Mastitis and Ketosis to the list of enums.

cookeac commented 1 year ago

We reviewed #407

cookeac commented 1 year ago

Consider creating a Group Attentions message based on icarGroupEventCoreResource.

dirksieben commented 1 year ago

Based on the discussion on 7/09/2023, below multiple suggestions for updating the list. Including an extra field with alert type:

cookeac commented 1 year ago

The other area we discussed was whether the icarDiagnosisSeverityType and icarDiagnosisStageType enumerations might be helpful in providing more detail for health alerts.

JeroenW1 commented 1 year ago

Multiple manufactures also include a health score/index with health attentions. This is an integer, the higher the value the more likely the cow is healthy. The score/index helps the farmer in the decision making. It contains more and other information next to the Attention priority and Severity. Its often used for automatic sorting/drafting of animals with health attentions.   Would it be possible to also add some kind of health score (integer)? Just like for example the deviceHeatProbability in the icarReproHeatEvent the health score is also device or manufacture depended. Manufactures have different algorithms to calculated the score and different scales to indicate the score (0 – 10 / 0 – 100 / etc..) .

cookeac commented 1 year ago

In response to the suggestion from @JeroenW1 I would suggest we add deviceAttentionScore (integer) to the message, with a description similar to "Provides a manufacturer-specific score related to the alert." This way the score can be used for other than health alerts.

cookeac commented 11 months ago

Added further commits to #407 addressing suggestions above from @dirksieben and @JeroenW1

cookeac commented 11 months ago

We should add "severity" which would be icarDiagnosisSeverityType (an enumeration).

cookeac commented 10 months ago

Closing as this has been merged.