pfMilkCollection
Description
This is a very simple WorkItem derivative that captures a record of milk being collected.
The pfMilkCollection schema inherits from observationType.
Properties
Name | Description | Required | Type |
---|---|---|---|
ProductionDays | Number of production days in this milk collection. Could be fractional (e.g. 1.5 if collection is for 3 of 4 milkings in 2 days). | No | Number |
Source | Source endpoint of the load | No | pfConsignmentEndPointType |
Destination | Destination endpoint of the load | No | pfConsignmentEndPointType |
LogisticUnit | No | pfLogisticsUnit | |
Quantity | Quantity in the load | No | Number |
Units | Units for the quantity metric | No | string |
RawQuantity | Raw quantity before standardisation | No | Number |
RawUnits | Units for the raw quantity before standardisation | No | string |
Analysis | No | Array of pfLaboratoryAnalysisType | |
Status | No | pfLoadStatus | |
ObservationDate | UTC Date (required) and time (optional) the sample was taken | Yes | date-time |
PhenomenonStartTime | ISO UTC DateTime | No | date-time |
PhenomenonEndTime | ISO UTC DateTime | No | date-time |
Holding | Reference to the holding on which this observation was performed. | No | featureReferenceType |
Feature | Reference to the feature to which this observation applies. Alternative to features[]. | No | featureReferenceType |
Features | Array of features to which this observation applies. Alternative to feature. | No | Array of featureReferenceType |
Responsible | Identifier of the person responsible for the observation | No | string |
Remark | Notes or remarks field | No | string |
Id | Unique identifier (UUID) used within the current server to identify the resource. | Yes | string |
Identifiers | Identifiers for the resource (see well-known/schemes... for example identity schemes). | No | Array of identifierType |
Links | Linked resources that are related to the current resource. | No | Array of relationType |
Meta | Meta-data for the resource. Mandatory if you wish to support synchronisation. | Yes | metaDataType |
Name | A user-readable name for the resource. | No | string |
Self | Uniform resource identifier (URI) of the resource (rel=self). | No | string |
Examples
Example 1
{
"id": "f6709aca-d0af-4e5b-a460-d1e5e551e833",
"resourceType": "pfMilkCollection",
"status": "Received",
"observationDate": "2024-08-14T00:00:00Z",
"phenomenonStartTime": "2022-11-13T12:46:00Z",
"phenomenonEndTime": "2022-11-14T12:46:00Z",
"productionDays": 2,
"holding": {
"contentType": "Holding",
"identifier": {
"id": "CDE444",
"scheme": "nz.dairyco.holding"
},
"name": "Green Valley Farm",
"uri": "https://greenvalleyfarm.nz"
},
"feature": {
"contentType": "Supplier",
"identifier": {
"id": "37785",
"scheme": "nz.farm.dairySupplyNumber"
}
},
"meta": {
"sourceId": {
"id": "37785",
"scheme": "nz.farm.dairySupplyNumber"
},
"modified": "2024-08-14T00:00:00Z",
"created": "2024-08-14T00:00:00Z"
},
"name": "Milk Collection",
"quantity": 2149,
"analysis": [
{
"laboratory": {
"leiCode": "ABC444",
"name": "Dairy Co Laboratory, Hamilton",
"uri": "https://dairyco.com/laboratory/hamilton",
"registration": {
"id": "CL47",
"scheme": "nz.dairyco.lab"
},
"gln": "GS1X666777999"
},
"laboratoryIdentifier": "Hamilton",
"sessionIdentifier": "45",
"responsible": "Max Henselite",
"results": [
{
"name": "Deduction",
"status": "completed",
"value": 0.0,
"unit": "%",
"rawValue": "0",
"rawUnit": "%"
},
{
"name": "Demerits",
"status": "completed",
"value": 0.0,
"unit": "count",
"rawValue": "0",
"rawUnit": "count"
},
{
"name": "Fat",
"status": "completed",
"value": 108.5,
"unit": "kg",
"rawValue": "108.5",
"rawUnit": "kg"
},
{
"name": "Fat %",
"status": "completed",
"value": 5.05,
"unit": "%",
"rawValue": "5.05",
"rawUnit": "%"
},
{
"name": "Milk Solids",
"status": "completed",
"value": 191.9,
"unit": "kg",
"rawValue": "191.9",
"rawUnit": "kg"
},
{
"name": "Milk Solids:Day",
"status": "completed",
"value": 95.95,
"unit": "kg",
"rawValue": "95.95",
"rawUnit": "kg"
},
{
"name": "Milk Solids %",
"status": "completed",
"value": 7.45,
"unit": "%",
"rawValue": "8.93",
"rawUnit": "%"
},
{
"name": "MSKG:Cow",
"status": "completed",
"value": 0.2,
"unit": "kg/cow"
},
{
"name": "MSKG:Cow:Day",
"status": "completed",
"value": 0.1,
"unit": "kg/cow",
"rawValue": "0.1",
"rawUnit": "kg/cow"
},
{
"name": "MS:HA",
"status": "completed",
"value": 0.68,
"unit": "kg/ha"
},
{
"name": "MS:HA:Day",
"status": "completed",
"value": 0.34,
"unit": "kg/ha",
"rawValue": "2.36",
"rawUnit": "kg/ha"
},
{
"name": "Protein",
"status": "completed",
"value": 83.4,
"unit": "kg",
"rawValue": "83.4",
"rawUnit": "kg"
},
{
"name": "Protein %",
"status": "completed",
"value": 3.88,
"unit": "%",
"rawValue": "3.88",
"rawUnit": "%"
},
{
"name": "SCC",
"status": "completed",
"value": 94,
"unit": "000 cells/mL",
"rawValue": "94",
"rawUnit": "000 cells/mL"
},
{
"name": "Temp (C)",
"status": "completed",
"value": 4.9,
"unit": "C",
"rawValue": "4.9",
"rawUnit": "C"
},
{
"name": "3 Day Urea",
"status": "completed",
"value": 12.1,
"unit": "mg/dL",
"rawValue": "12.1",
"rawUnit": "mg/dL"
},
{
"name": "Daily Urea",
"status": "completed",
"value": 19.2,
"unit": "mg/dL",
"rawValue": "19.2",
"rawUnit": "mg/dL"
},
{
"name": "Quality Rating",
"status": "completed",
"rawValue": "Excellence",
"qualitativeGrade": "Excellence"
},
{
"name": "Coliforms",
"status": "completed",
"value": 60,
"unit": "cfu/ml",
"rawValue": "60",
"rawUnit": "cfu/ml"
},
{
"name": "Bactoscan",
"status": "completed",
"rawValue": "A+ (3k)",
"qualitativeGrade": "A+ (3k)"
}
]
}
]
}