Table of Contents

pfSensorObservationsEventResource

Description

The SensorObservationEventResource records observations by a sensor on a geospatial feature for a given date-time.

The pfSensorObservationsEventResource schema inherits from observationType.

Properties

Name Description Required Type
SampledFeature Optional, a reference to the feature being sampled such as a river. No featureReferenceType
SensorResults Observations performed by the sensor at this event. No Array of  pfSensorResultType
Device The device used for performing the sensor observations in this event. No pfDeviceType
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

{
  "resourceType": "pfSensorObservationsEvent",
  "id": "c35dd615-a82c-4238-b7ae-2b5ddfbe7698",
  "meta": {
    "sourceId": {
      "scheme": "nz.zaxfarm.hydrology",
      "id": "4699c420-9fd5-42f4-a716-0622c530a2d9"
    },
    "modified": "2023-06-14T18:30:00Z"
  },
  "name": "Potable water readings - Bliss Farm, 14 June 2023",
  "@self": "https://api.purefarming.com/data/environment/hydrological-observations-event/c35dd615-a82c-4238-b7ae-2b5ddfbe7698",
  "observationDate": "2023-06-14T15:30:00Z",
  "feature": {
    "contentType": "waterSupply",
    "identifier": {
      "scheme": "com.purefarming.waterSupplyId",
      "id": "9749dbf7-d3ae-4377-b84e-d4f5e239b405"
    },
    "name": "Water meter supplying houses, sheds, stock"
  },
  "holding": {
    "contentType": "holding",
    "identifier": {
      "scheme": "com.purefarming.holdingId",
      "id": "7b5be125-c96f-4095-89b3-1c267aa2206e"
    },
    "name": "Bliss Farm",
    "uri": "https://landco.co.nz/property/K384"
  },
  "phenomenonStartTime": "2023-06-14T15:15:00Z",
  "phenomenonEndTime": "2023-06-14T15:30:00Z",
  "responsible": "Josie Watts",
  "remark": "Water flow and cumulative usage, 14 June 2023",
  "sensorResults": [
    {
      "phenomenon": {
        "scheme": "nz.co.xxxxx.waterSupply",
        "id": "FlowRate"
      },
      "method": "Electromagnetic",
      "value": 4.944,
      "units": "G51",
      "resolution": 0.001,
      "duration": 15,
      "durationUnits": "MIN"
    },
    {
      "phenomenon": {
        "scheme": "nz.co.xxxxx.waterSupply",
        "id": "Volume"
      },
      "method": "Electromagnetic",
      "value": 193010.791,
      "units": "MTQ",
      "resolution": 0.001,
      "aggregation": "Sum"
    }
  ],
  "device": {
    "id": "XXX-65-974",
    "name": "XXX Smart Water Meter",
    "description": "XXXX Electromagnetic Flow Meter 80mm",
    "deviceCategory": "WaterMeter"
  }
}