{
  "vocabulary": "agritrace.event-types",
  "version": "1.3.0",
  "notes": "Business events (as opposed to telemetry). Each maps to a supply-chain step (TCVN 12850 / GS1 CBV bizStep, FSMA 204 CTE). 'required' lists context keys that must be present; 'requiredAny' lists groups of which at least one key must be present. 1.1.0 (#160): a harvest no longer requires a lot, since a collection point records it before any lot exists; it names one when it can. 1.2.0 (#91): 'transform', a merge of lots into a new one (FSMA 204 transformation CTE, an EPCIS 2.0 TransformationEvent with input and output lots, so its 'action' is null). The console records it (POST /v1/lots/{lot}/merge), never a device: no device profile declares it, so a device envelope of that type is refused. 1.3.0 (#241): 'apply', a record of an input applied to a growing area or parcel (water, fertiliser, pesticide, lime or light), with what was applied, how much and, for a product whose label gives one, its pre-harvest interval in days (capabilities 1.3.0, apply.*): a record only, never a command, and a pesticide application names its growing area, its product and that interval. GS1 CBV has no business step for applying an input, so its bizStep is a CropPath extension URI. 'retention' (1.3.0) names each type's class in 'retentionClasses': every business event is evidence; 'observe' is telemetry.",
  "retentionClasses": {
    "evidence": {
      "minYears": 5,
      "description": "Kept at least 5 years under CropPath's approved retention policy, and never expired as telemetry is: signed business records, application (fertiliser and spray) records included."
    },
    "telemetry": {
      "rawMonths": 13,
      "description": "Raw readings may be expired after 13 months under CropPath's approved retention policy; their daily summaries are kept 5 years."
    }
  },
  "eventTypes": {
    "harvest": {
      "bizStep": "commissioning", "action": "ADD", "cte": "harvesting",
      "required": [], "requiredAny": [["parcel", "growing_area"]], "retention": "evidence"
    },
    "receive": {
      "bizStep": "receiving", "action": "OBSERVE", "cte": "receiving",
      "required": ["lot", "facility"], "retention": "evidence"
    },
    "inspect": {
      "bizStep": "inspecting", "action": "OBSERVE", "cte": null,
      "required": ["lot", "facility"], "retention": "evidence"
    },
    "cool": {
      "bizStep": "storing", "action": "OBSERVE", "cte": "cooling",
      "required": ["lot", "facility"], "retention": "evidence"
    },
    "pack": {
      "bizStep": "packing", "action": "OBSERVE", "cte": "initial_packing",
      "required": ["lot", "facility"], "retention": "evidence"
    },
    "ship": {
      "bizStep": "shipping", "action": "OBSERVE", "cte": "shipping",
      "required": ["lot", "facility"], "retention": "evidence"
    },
    "sampling": {
      "bizStep": "sampling", "action": "OBSERVE", "cte": null,
      "required": ["lot", "facility"], "retention": "evidence"
    },
    "observe": {
      "bizStep": "sensor_reporting", "action": "OBSERVE", "cte": null,
      "required": [], "requiredAny": [["parcel", "growing_area", "facility"]], "retention": "telemetry"
    },
    "transform": {
      "bizStep": "repackaging", "action": null, "cte": "transformation", "epcisEventType": "TransformationEvent",
      "required": ["lot", "facility"], "retention": "evidence"
    },
    "apply": {
      "bizStep": "https://agritrace.vn/voc/BizStep-applying", "action": "OBSERVE", "cte": null,
      "required": [], "requiredAny": [["parcel", "growing_area"]], "retention": "evidence"
    }
  }
}
