pfEnterpriseStatistics
Description
Holds statistics for an enterprise for the specified period. For livestock may be for a group defined by an inventory classification, animal set, or for a location.
The pfEnterpriseStatistics schema inherits from icarResource.
Properties
Name | Description | Required | Type |
---|---|---|---|
Id | Unique identifier (UUID) used within the current server to identify the resource. | Yes | string |
Enterprise | The type of enterprise from which the statistics have been derived. | Yes | pfEnterpriseType |
GroupMethod | Identifies whether the statistics are for the location, an inventory classification or an animal set. For non-livestock enterprises, use 'location'. | 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 pfEnterpriseStatisticsType |
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": "pfEnterpriseStatistics",
"id": "53d69761-0ed3-4e95-9a49-77804f1dea57",
"location": {
"scheme": "uk.cph",
"id": "33/444/5555"
},
"enterprise": "Sheep",
"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"
}
]
}
Example 2
{
"resourceType": "pfEnterpriseStatistics",
"id": "fc74058a-08d1-477b-97ec-1b10321316e3",
"location": {
"scheme": "nz.co.dairyco.supplynumber",
"id": "37581"
},
"meta": {
"source": "nz.myfarmco.dairystats",
"modified": "2022-07-03T11:00:00Z"
},
"enterprise": "Dairy",
"startDate": "2021-06-01T00:00:00Z",
"endDate": "2022-05-31T00:00:00Z",
"duration": "Y",
"groupMethod": "Location",
"statistics": [
{
"metric": {
"scheme": "nz.co.dairyco.keyinfo",
"id": "EffectiveArea"
},
"units": "HAR",
"value": 160
},
{
"metric": {
"scheme": "nz.co.dairyco.keyinfo",
"id": "PeakCows"
},
"units": "cows",
"value": 558
},
{
"metric": {
"scheme": "nz.co.dairyco.keyinfo",
"id": "StockingRate"
},
"units": "cows/ha",
"value": 3.5
},
{
"metric": {
"scheme": "nz.co.dairyco.keyinfo",
"id": "SomaticCellCount"
},
"method": {
"scheme": "nz.co.dairyco.scc",
"id": "BulkMilk"
},
"units": "cells/ml",
"value": 142485,
"lastKnownValue": 117358,
"lastKnownValueDate": "2021-05-31",
"aggregation": "Average"
}
]
}