integritysystemscompany / animal_schema

Collaborative definition of JSON Schema to support individual animal data exchange. Builds on ICAR standard and focuses on Australian red meat needs.
6 stars 6 forks source link

Treatment: Courses should support multiple batches or be removed #21

Closed Traksewt closed 4 years ago

Traksewt commented 4 years ago

Course is considered as a plan, while the treatment is the actual. The treatment is already recording the batch information. It is feasible that a batch number changes over a course as the same treatment may be applied to many animals.

If the course is considered like a plan that is created prior to treatment, then the batch numbers may not be known. In this case, there should not be batch number on course.

If the course is supposed to be updated after the treatments, then it will need to support multiple batch numbers.

cookeac commented 4 years ago

Course does not necessarily have to be a plan - it could be plan or an actual summary of a course (some vet software doesn't record the individual treatments).

You're right - the batches with batch numbers and expiry dates should be an array for a course.

cookeac commented 4 years ago

To make it clear that a course has an array of batch and expiry objects.

anitanagaraj commented 4 years ago

Updated in schema spreadsheet.