diff --git a/resources/icarMovementArrivalEventResource.json b/resources/icarMovementArrivalEventResource.json index 501e238..82b2e83 100644 --- a/resources/icarMovementArrivalEventResource.json +++ b/resources/icarMovementArrivalEventResource.json @@ -16,6 +16,10 @@ "$ref": "icarAnimalCoreResource.json", "description": "Core animal details. Can be used if the animal has not already been defined on the holding." }, + "animalState": { + "$ref": "../types/icarAnimalStateType.json", + "description": "State information about an animal." + }, "consignment": { "$ref": "../types/icarConsignmentType.json", "description": "Identifies the consignment of the animal to the holding." @@ -23,4 +27,4 @@ } } ] -} \ No newline at end of file +} diff --git a/types/icarAnimalStateType.json b/types/icarAnimalStateType.json new file mode 100644 index 0000000..0ed1ca9 --- /dev/null +++ b/types/icarAnimalStateType.json @@ -0,0 +1,24 @@ +{ + "description": "State information about an animal", + + "type": "object", + + "properties": { + "currentLactationParity": { + "type": "number", + "description": "The current parity of the animal." + }, + "lastCalvingDate": { + "$ref": "../types/icarDateType.json", + "description": "RFC3339 UTC date (see https://ijmacd.github.io/rfc3339-iso8601/)." + }, + "lastInseminationDate": { + "$ref": "../types/icarDateType.json", + "description": "RFC3339 UTC date (see https://ijmacd.github.io/rfc3339-iso8601/)." + }, + "lastDryingOffDate": { + "$ref": "../types/icarDateType.json", + "description": "RFC3339 UTC date (see https://ijmacd.github.io/rfc3339-iso8601/)." + } + } +}