{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.demiton.io/registers/environmental_observation/v1.json",
  "title": "environmental_observation contract v1",
  "type": "object",
  "required": [
    "description",
    "external_id",
    "observed_on",
    "project"
  ],
  "properties": {
    "due_on": {
      "type": "string",
      "description": "when the action is due",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "day",
      "format": "date",
      "x-demiton-type": "date"
    },
    "status": {
      "type": "string",
      "description": "where the observation is in its lifecycle",
      "x-demiton-requiredness": "optional"
    },
    "project": {
      "type": "string",
      "description": "the project the observation was made on",
      "x-demiton-requiredness": "required",
      "x-demiton-reference": true
    },
    "category": {
      "type": "string",
      "description": "the classification the observation was filed under",
      "x-demiton-requiredness": "optional"
    },
    "fixed_on": {
      "type": "string",
      "description": "when the responsible party reported it fixed",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "day",
      "format": "date",
      "x-demiton-type": "date"
    },
    "location": {
      "type": "string",
      "description": "where on site it was observed",
      "x-demiton-requiredness": "optional"
    },
    "priority": {
      "type": "string",
      "description": "how urgent the observation is",
      "x-demiton-requiredness": "optional"
    },
    "closed_at": {
      "type": "string",
      "description": "when the observation was closed",
      "x-demiton-requiredness": "optional",
      "format": "date-time",
      "x-demiton-type": "datetime"
    },
    "raised_by": {
      "type": "string",
      "description": "who recorded the observation",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    },
    "inspection": {
      "type": "string",
      "description": "the inspection the observation was raised during",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    },
    "description": {
      "type": "string",
      "description": "what was observed",
      "x-demiton-requiredness": "required"
    },
    "external_id": {
      "type": "string",
      "description": "the source system's own observation id",
      "x-demiton-requiredness": "required"
    },
    "is_positive": {
      "type": "boolean",
      "description": "whether this records good practice rather than a problem",
      "x-demiton-requiredness": "optional"
    },
    "observed_on": {
      "type": "string",
      "description": "when the observation was made",
      "x-demiton-requiredness": "required",
      "x-demiton-unit": "day",
      "format": "date",
      "x-demiton-type": "date"
    },
    "action_taken": {
      "type": "string",
      "description": "what the responsible party did",
      "x-demiton-requiredness": "optional"
    },
    "fix_accepted_by": {
      "type": "string",
      "description": "who accepted the fix",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    },
    "observation_type": {
      "type": "string",
      "description": "the kind of observation, as the tenant has configured it",
      "x-demiton-requiredness": "optional"
    },
    "responsible_party": {
      "type": "string",
      "description": "the company or person responsible for acting on it",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    }
  },
  "x-demiton-register-type": "environmental_observation",
  "x-demiton-contract-version": "1.0.3",
  "x-demiton-store": "tenant",
  "x-demiton-axes": [],
  "x-demiton-measures": [],
  "x-demiton-provenance": {
    "standards": [
      {
        "code": "AS/NZS ISO 14001:2016",
        "title": "Environmental management systems - Requirements with guidance for use",
        "access": "paywalled_secondary",
        "clause": "10.2 nonconformity and corrective action",
        "region": "Australia",
        "edition": "2016 (adoption of ISO 14001:2015)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "ISO 14001:2026",
        "title": "Environmental management systems - Requirements with guidance for use",
        "access": "paywalled_secondary",
        "clause": "10.2",
        "region": "International",
        "edition": "2026",
        "checked_on": "2026-09-14"
      }
    ]
  },
  "description": "Environmental observations on site: dust, noise, water, spills.",
  "x-demiton-contract-url": "https://docs.demiton.io/registers/environmental_observation/",
  "x-demiton-register-catalog": "https://docs.demiton.io/concepts/register-catalog"
}