diff --git a/resources/icarMovementDeathEventResource.json b/resources/icarMovementDeathEventResource.json index d93bc2d..69f5ccc 100644 --- a/resources/icarMovementDeathEventResource.json +++ b/resources/icarMovementDeathEventResource.json @@ -1,5 +1,5 @@ { - "description": "Event for recording animal death", + "description": "Event for recording animal death on farm.", "allOf": [{ "$ref": "../resources/icarAnimalEventCoreResource.json" @@ -35,6 +35,13 @@ "deathMethod": { "$ref": "../enums/icarDeathMethodType.json", "description": "Defines the method of death, including an accident, natural causes, or euthanised." + }, + "extendedReasons": { + "description": "Extended reason codes why this animal has died.", + "type": "array", + "items": { + "$ref": "../types/icarReasonIdentifierType.json" + } } } } diff --git a/resources/icarMovementDepartureEventResource.json b/resources/icarMovementDepartureEventResource.json index 78286b7..6e9f832 100644 --- a/resources/icarMovementDepartureEventResource.json +++ b/resources/icarMovementDepartureEventResource.json @@ -1,5 +1,5 @@ { - "description": "Event for recording animal departure", + "description": "Event for recording live animal departure.", "allOf": [{ "$ref": "../resources/icarAnimalEventCoreResource.json" @@ -19,6 +19,13 @@ "consignment": { "$ref": "../types/icarConsignmentType.json", "description": "Identifies the consignment of the animal from the holding." + }, + "extendedReasons": { + "description": "Extended reason codes why this animal has departed.", + "type": "array", + "items": { + "$ref": "../types/icarReasonIdentifierType.json" + } } } } diff --git a/resources/icarReproDoNotBreedEventResource.json b/resources/icarReproDoNotBreedEventResource.json index ce7fbb3..75c36ec 100644 --- a/resources/icarReproDoNotBreedEventResource.json +++ b/resources/icarReproDoNotBreedEventResource.json @@ -11,6 +11,13 @@ "type": ["boolean", "null"], "description": "Set this attribute to true if the animal should not be bred, false if it may now be bred.", "default": true + }, + "extendedReasons": { + "description": "Extended reason codes why this animal should not be bred.", + "type": "array", + "items": { + "$ref": "../types/icarReasonIdentifierType.json" + } } } } diff --git a/types/icarReasonIdentifierType.json b/types/icarReasonIdentifierType.json new file mode 100644 index 0000000..39e5bb1 --- /dev/null +++ b/types/icarReasonIdentifierType.json @@ -0,0 +1,7 @@ +{ + "description": "Extended reason identifier based on a scheme and ID.", + + "allOf": [{ + "$ref": "../types/icarIdentifierType.json" + }] +} \ No newline at end of file diff --git a/well-known/icarReasonIdentifierType.md b/well-known/icarReasonIdentifierType.md new file mode 100644 index 0000000..6789511 --- /dev/null +++ b/well-known/icarReasonIdentifierType.md @@ -0,0 +1,6 @@ +# Well-known Extended Reason Identifier Schemes + +These schemes define country, region, or species-specific extended reason codes for departures, deaths, and do not breed events. If you represent a recording organisation or scheme operator, please edit and "Pull Request" this file to let others know about your extended reason code schemes. + +| Short URI | Resolvable URI | Description | Example | Code list or format specification | +| --- | --- | --- | --- | --- | \ No newline at end of file