Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IcarMilkingVisitEventResource, extend with exemptFromRecording #220

Closed
AndreasSchultzGEA opened this issue Jun 17, 2021 · 7 comments
Closed
Labels
this-release Scheduled to be implemented for this release in development

Comments

@AndreasSchultzGEA
Copy link
Collaborator

AndreasSchultzGEA commented Jun 17, 2021

IcarMilkingVisitEventResource does contain the existing attribute 'milkingComplete', which provides the information if there have been mostly technical reasons why the MilkingVisitshould be regarded to be imcomplete.

We suggest to extend IcarMilkingVisitEventResource with an additional attribute 'exemptFromRecording',
which indicates, that the milking-result is not reliable for other reasons (separations, e.g.).
@ahokkonen: please provide the lookup-list which is used in Nordics.

@AndreasSchultzGEA AndreasSchultzGEA changed the title IcarMilkingVisitEventResource, extend with exceptFromRecording IcarMilkingVisitEventResource, extend with exemptFromRecording Jun 17, 2021
@ahokkonen
Copy link
Contributor

In NCDX data exchange we use such field "ExemptFromRecording" for indicating if sample result should be ignored from recording. In Finnish database field is called "TestMilkingException".

We use it only for sampled milkings, but in ADE we can extend the use also for all milking visit if required.
We use predefined parameters:

Finland

  • Normal test milking (default if not specified)
  • Sick, no test milking
  • Sick, test milking done
  • Milked separately, sample sent
  • Milked separately, no sample
  • Sample spoiled

Norway

  • Normal test milking (default if not specified)
  • Sick, no test milking

@tpekeler
Copy link
Collaborator

We checked with our local experts for Germany.
The Entity 880022 (milking-automated) in ADIS has different Items for both purposes:
800701/milked corresponds to milkingComplete (0=false, 1=true)
800703/event-of-milking refers to some reason for exception (3 char codes)

We decide on our own whether to record the milking or not.
Therefore a name like milkingEvent is better suited than exemptFromRecording

@AndreasSchultzGEA
Copy link
Collaborator Author

AndreasSchultzGEA commented Jun 21, 2021

I agree to Thomas, that 'milkingEvent' or even 'eventOfMilking' is a better naming than 'exemptFromRecording'.
The attribute should be null in the case of no information.
In other cases, possible values could be:

  • sickness,
  • separated (in concerns of at least one separated teat)
  • milked separately

Do we need a differentiation between normal MilkVisits and MVs with sampling?

@AndreasSchultzGEA
Copy link
Collaborator Author

AndreasSchultzGEA commented Jun 30, 2021

After discussing, instead of milkingEvent/ eventOfMilking we would like to suggest the additional attribute named 'milkingRemarks', as it fits better the usecases described by Anton as well as our own.

The milkingRemarks could either be a

  • list of possible enum-values like ['animal sick', 'separated', 'milked separately', 'sampling failed', ...], or
  • a new resource which contains boolean flags for each of the necessary information, e.g.:
    { "sickAnimal": true/false, "separated": true/false, "separatelyMilked: true/false, "failedSampling": true/false, ...}

@cookeac
Copy link
Collaborator

cookeac commented Jul 1, 2021

Add "milkingIncomplete" to the remark array as well (and keep the existing numeric flag as well for backward compatibility).

We liked the idea of an array. Ideally an array of enumerations (because of flexibility and ability to have combinations) but noting this could end up with duplicates, in which case the object with booleans would be a better idea.

Thomas and Andreas will make a pull request proposal.

@cookeac cookeac added the this-release Scheduled to be implemented for this release in development label Jul 1, 2021
@AndreasSchultzGEA
Copy link
Collaborator Author

PR is provided

@cookeac
Copy link
Collaborator

cookeac commented Jul 15, 2021

Resolved by #222

@cookeac cookeac closed this as completed Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
this-release Scheduled to be implemented for this release in development
Projects
None yet
Development

No branches or pull requests

4 participants