From 3419e37273faa6c000a59d69852d8c18243effa6 Mon Sep 17 00:00:00 2001 From: Andrew Cooke <45248509+cookeac@users.noreply.github.com> Date: Thu, 29 Jul 2021 21:05:11 +1200 Subject: [PATCH 1/3] Correct treatmentInterval to an integer Correct *treatmentInterval* in **icarMedicineCourseSummaryType.json** to an integer per [comment in 227](https://github.com/adewg/ICAR/pull/227#issuecomment-888866019) --- types/icarMedicineCourseSummaryType.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/icarMedicineCourseSummaryType.json b/types/icarMedicineCourseSummaryType.json index 55d21e0..96e4684 100644 --- a/types/icarMedicineCourseSummaryType.json +++ b/types/icarMedicineCourseSummaryType.json @@ -38,8 +38,7 @@ "nullable": true }, "treatmentInterval": { - "type": "number", - "format": "double", + "type": "integer", "description": "The interval between treatments specified in HOURS.", "nullable": true }, From 9ac08f86ca06c825b6180359678a54a9f15e9f86 Mon Sep 17 00:00:00 2001 From: Andrew Cooke <45248509+cookeac@users.noreply.github.com> Date: Thu, 29 Jul 2021 21:07:47 +1200 Subject: [PATCH 2/3] Added PregnantMultipleFoetus Added "PregnantMultipleFoetus" to **icarAnimalReproductionStatusType**. Use this to indicate that an animal has been confirmed to be carrying multiple foetuses. Fixes #223 --- enums/icarAnimalReproductionStatusType.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/enums/icarAnimalReproductionStatusType.json b/enums/icarAnimalReproductionStatusType.json index 54fb9e3..95eba94 100644 --- a/enums/icarAnimalReproductionStatusType.json +++ b/enums/icarAnimalReproductionStatusType.json @@ -9,6 +9,7 @@ "Pregnant", "NotPregnant", "Birthed", - "DoNotBreed" + "DoNotBreed", + "PregnantMultipleFoetus" ] } \ No newline at end of file From 87bd4cafebfa8c81cff03f67f83199cde6f468f2 Mon Sep 17 00:00:00 2001 From: Andrew Cooke <45248509+cookeac@users.noreply.github.com> Date: Thu, 29 Jul 2021 21:17:22 +1200 Subject: [PATCH 3/3] Add boolean to icarReproDoNotBreedEventResource Added a boolean, nullable (default true) *doNotBreed* to document toggling the reproductive status "Do Not Breed" on or off. Fixes #213 --- resources/icarReproDoNotBreedEventResource.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/resources/icarReproDoNotBreedEventResource.json b/resources/icarReproDoNotBreedEventResource.json index fc36bfa..41f6816 100644 --- a/resources/icarReproDoNotBreedEventResource.json +++ b/resources/icarReproDoNotBreedEventResource.json @@ -3,6 +3,17 @@ "allOf": [{ "$ref": "../resources/icarEventCoreResource.json" + }, + { + "type": "object", + "properties": { + "doNotBreed": { + "type": "boolean", + "description": "Set this attribute to true if the animal should not be bred, false if it may now be bred.", + "nullable": true, + "default": true + } + } } ] }