pfAnimalStatistics
Description
Holds animal statistics for the specified period for a group of livestock defined by an inventory classification, animal set, or for a location.
The pfAnimalStatistics schema inherits from icarResource.
Properties
Name | Description | Required | Type |
---|---|---|---|
Id | Unique identifier (UUID) used within the current server to identify the resource. | Yes | string |
GroupMethod | Yes | pfGroupMethod | |
AnimalSetReference | Optional unique animal set identifier from the source system for animal set these statistics refer to. | No | string |
StartDate | Date of the start of the period to which the statistics apply | Yes | date-time |
EndDate | Date of the end of the period to which the statistics apply | No | date-time |
Duration | Defines the duration that the statistics apply to: week, month or year | No | pfDurationUnitsType |
InventoryClassification | Optional inventory classification which defines the group of animals by their characteristics to which the statistics refer | No | icarInventoryClassificationType |
Statistics | The array of statistics. | No | Array of pfAnimalStatisticsType |
Self | Uniform resource identifier (URI) of the resource (rel=self). | No | string |
Meta | Meta-data for the resource. Mandatory if you wish to support synchronisation. | No | icarMetaDataType |
Location | Unique location scheme and identifier combination. | No | icarIdentifierType |
Examples
Example 1
{
"resourceType": "/livestock/animal-statistics",
"id": "53d69761-0ed3-4e95-9a49-77804f1dea57",
"location": {
"scheme": "uk.cph",
"id": "33/444/5555"
},
"startDate": "2022-09-01T00:00:00Z",
"endDate": "2022-09-30T23:59:00Z",
"duration": "M",
"groupMethod": "InventoryClassification",
"inventoryClassification": {
"name": "Breeding ewes",
"species": "Sheep",
"sex": "Female",
"birthPeriod": "2016-01-01/2021-12-31",
"count": 375
},
"statistics": [
{
"metric": {
"scheme": "antibioticUsage",
"id": "udder"
},
"method": {
"scheme": "eu.ema",
"id": "DDDVet"
},
"lastKnownValue": 2,
"lastKnownValueDate": "2022-08-01",
"aggregation": "COUNT"
}
]
}