{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.demiton.io/registers/site_inspection/v1.json",
  "title": "site_inspection contract v1",
  "type": "object",
  "required": [
    "asset",
    "external_id",
    "form_title",
    "occurred_at"
  ],
  "properties": {
    "asset": {
      "type": "number",
      "description": "The vehicle or plant item the checklist is about; the required subject anchor.",
      "x-demiton-requiredness": "required",
      "x-demiton-reference": true
    },
    "worker": {
      "type": "number",
      "description": "The worker who submitted or signed the inspection.",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    },
    "form_id": {
      "type": "number",
      "description": "The Assignar form-template id, the stable twin of `form_title`.",
      "x-demiton-requiredness": "optional"
    },
    "project": {
      "type": "number",
      "description": "The project the inspection is recorded against.",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    },
    "comments": {
      "type": "string",
      "description": "Free-text remarks on the inspection.",
      "x-demiton-requiredness": "optional"
    },
    "odometer": {
      "type": "string",
      "description": "The odometer or meter reading the inspection captured.",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "unverified (the source states no unit)"
    },
    "attributes": {
      "type": "object",
      "description": "Every remaining form answer keyed by the tenant's own question text, plus `_raw_metadata` at rest. This is where the **82 checklist answer slugs**, the **152 tenant-derived identity/vehicle slugs** and the **15 excluded tenant-authored keys** live; all are counted, not named (SC002).",
      "x-demiton-requiredness": "tenant-specific"
    },
    "form_title": {
      "type": "string",
      "description": "The matched Assignar form's title — which inspection instrument this fact is.",
      "x-demiton-requiredness": "required"
    },
    "external_id": {
      "type": "string",
      "description": "Stable identity of the source record (Assignar form-result id, cast to text).",
      "x-demiton-requiredness": "required"
    },
    "occurred_at": {
      "type": "string",
      "description": "When the inspection was submitted; the event time and the retention clock start.",
      "x-demiton-requiredness": "required",
      "format": "date-time",
      "x-demiton-type": "datetime"
    },
    "inspection_date": {
      "type": "string",
      "description": "The date the form itself carries, distinct from submission time.",
      "x-demiton-requiredness": "optional",
      "format": "date",
      "x-demiton-type": "date"
    },
    "financial_period": {
      "type": "string",
      "description": "The accounting period the inspection falls in, derived from `occurred_at`.",
      "x-demiton-requiredness": "optional",
      "format": "date",
      "x-demiton-type": "date"
    },
    "flagged_item_count": {
      "type": "integer",
      "description": "Number of checklist answers whose **value** names a fault, derived from the response vocabulary by `form_measures`.",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "count"
    },
    "unanswered_item_count": {
      "type": "integer",
      "description": "Number of answerable checklist questions left blank.",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "count"
    }
  },
  "x-demiton-register-type": "site_inspection",
  "x-demiton-contract-version": "1.0.4",
  "x-demiton-store": "tenant",
  "x-demiton-axes": [
    {
      "axis": "project",
      "requirement": "optional",
      "role": "subject"
    },
    {
      "axis": "worker",
      "requirement": "optional",
      "role": "subject"
    },
    {
      "axis": "financial_period",
      "requirement": "optional",
      "role": "context"
    },
    {
      "axis": "asset",
      "requirement": "required",
      "role": "subject"
    }
  ],
  "x-demiton-measures": [],
  "x-demiton-provenance": {
    "standards": [
      {
        "code": "AS 1742.3:2019",
        "title": "Manual of uniform traffic control devices - Traffic control for works on roads",
        "access": "public_summary",
        "region": "Australia",
        "edition": "2019 (supersedes AS 1742.3-2009)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "AS 2550.10:2025",
        "title": "Cranes, hoists and winches - Safe use - Mobile elevating work platforms",
        "access": "public_summary",
        "region": "Australia",
        "edition": "2025 (third edition; supersedes AS 2550.10-2006 + Amd 1)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "AS/NZS ISO 14001:2016",
        "title": "Environmental management systems - Requirements with guidance for use",
        "access": "paywalled_secondary",
        "region": "Australia",
        "edition": "2016 (2026 intl edition supersedes)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "AS/NZS ISO 45001:2018",
        "title": "Occupational health and safety management systems - Requirements with guidance for use",
        "access": "paywalled_secondary",
        "clause": "7.2, 7.3, 10.2",
        "region": "Australia",
        "edition": "2018 (Amd 1 listing unverified)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "AS/NZS ISO 9001:2016",
        "title": "Quality management systems - Requirements",
        "access": "paywalled_secondary",
        "clause": "7.5; 8.7; 10.2",
        "region": "Australia",
        "edition": "2016",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Model WHS Act",
        "title": "Model Work Health and Safety Act",
        "access": "full_text_verified",
        "clause": "s 38(7) (5-year notifiable incident record); Part 3",
        "region": "Australia",
        "edition": "model Bill 1 Aug 2023",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Model WHS Regulations",
        "title": "Model Work Health and Safety Regulations",
        "access": "full_text_verified",
        "clause": "regs 224, 226, 235, 237 (records of tests, inspections, maintenance of registered plant)",
        "region": "Australia",
        "edition": "as amended 5 December 2025",
        "checked_on": "2026-09-14"
      },
      {
        "code": "ISO 45001:2018",
        "title": "Occupational health and safety management systems - Requirements with guidance for use",
        "access": "paywalled_secondary",
        "clause": "7.2, 7.3, 10.2",
        "region": "International",
        "edition": "2018 (Amd 1:2024)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "ISO 9001:2015",
        "title": "Quality management systems - Requirements",
        "access": "paywalled_secondary",
        "clause": "8.7; 10.2",
        "region": "International",
        "edition": "2015 (2026 expected)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "LOLER 1998",
        "title": "Lifting Operations and Lifting Equipment Regulations 1998",
        "access": "public_summary",
        "clause": "regs 9-11; Sch 1 (report contents incl. examination date and next due date)",
        "region": "United Kingdom",
        "edition": "1998",
        "checked_on": "2026-09-14"
      },
      {
        "code": "RIDDOR 2013",
        "title": "Reporting of Injuries, Diseases and Dangerous Occurrences Regulations 2013",
        "access": "public_summary",
        "region": "United Kingdom",
        "edition": "2013",
        "checked_on": "2026-09-14"
      },
      {
        "code": "29 CFR 1910.179",
        "title": "Overhead and gantry cranes",
        "access": "full_text_verified",
        "clause": "1910.179(j) (initial, frequent, periodic inspections; certification records)",
        "region": "United States",
        "edition": "current eCFR",
        "checked_on": "2026-09-14"
      },
      {
        "code": "29 CFR Part 1904",
        "title": "OSHA Recording and Reporting Occupational Injuries and Illnesses",
        "access": "full_text_verified",
        "region": "United States",
        "edition": "current",
        "checked_on": "2026-09-14"
      }
    ]
  },
  "description": "Vehicle and plant inspection checklists.",
  "x-demiton-contract-url": "https://docs.demiton.io/registers/site_inspection/",
  "x-demiton-register-catalog": "https://docs.demiton.io/concepts/register-catalog"
}