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

treatments should refer to diagnosis and courses #22

Closed Traksewt closed 4 years ago

Traksewt commented 4 years ago

At the moment, the Treatment Program links diagnosis, courses and treatments. This is a loose grouping which doesn't allow a treatment to link to a particular course or a particular diagnosis (as they both can be an array in the Treatment Program).

The treatment could have an optional property that refers to the course and an array of diagnoses.

cookeac commented 4 years ago

I've wondered this too. It could be an optional Reference (based on the icarReferenceType) to a course or diagnosis rather than embedding a diagnosis in a treatment for instance.

anitanagaraj commented 4 years ago

Updated in schema spreadsheet