{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.demiton.io/registers/compliance_documents/v1.json",
  "title": "compliance_documents contract v1",
  "type": "object",
  "required": [
    "document_title",
    "external_id",
    "occurred_at",
    "project"
  ],
  "properties": {
    "asset": {
      "type": "string",
      "description": "Plant/asset the document attaches to.",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    },
    "worker": {
      "type": "string",
      "description": "Worker the document attaches to.",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    },
    "project": {
      "type": "string",
      "description": "Project the compliance document is attached to.",
      "x-demiton-requiredness": "required",
      "x-demiton-reference": true
    },
    "summary": {
      "type": "string",
      "description": "Composed prose description of the submission.",
      "x-demiton-requiredness": "optional"
    },
    "revision": {
      "type": "string",
      "description": "Document revision/version identifier.",
      "x-demiton-requiredness": "optional"
    },
    "expires_at": {
      "type": "string",
      "description": "Document/credential expiry, where the document has one.",
      "x-demiton-requiredness": "optional",
      "format": "date",
      "x-demiton-type": "date"
    },
    "external_id": {
      "type": "string",
      "description": "Stable identity of the source submission, shelf-qualified as `compliance_documents:<id>`.",
      "x-demiton-requiredness": "required"
    },
    "occurred_at": {
      "type": "string",
      "description": "Submission date/time; the evidence and retention clock.",
      "x-demiton-requiredness": "required",
      "format": "date-time",
      "x-demiton-type": "datetime"
    },
    "source_refs": {
      "type": "object",
      "description": "The originating system's own identifiers (`assignar_project_id`, `assignar_worker_id`, `assignar_asset_id`) kept for reconciliation, rather than freezing one vendor's column names into the contract.",
      "x-demiton-requiredness": "optional"
    },
    "status_code": {
      "type": "string",
      "description": "Document status/suitability, stored **with the code set it comes from**.",
      "x-demiton-requiredness": "optional"
    },
    "document_type": {
      "type": "string",
      "description": "Class of compliance document (SWMS / ITP / inspection / diary).",
      "x-demiton-requiredness": "optional"
    },
    "document_title": {
      "type": "string",
      "description": "Name of the form/document as submitted (observed source key `form_title`).",
      "x-demiton-requiredness": "required"
    },
    "financial_period": {
      "type": "string",
      "description": "The period the submission falls in, derived from `occurred_at`.",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "`YYYY-MM`",
      "format": "date",
      "x-demiton-type": "date"
    }
  },
  "x-demiton-register-type": "compliance_documents",
  "x-demiton-contract-version": "1.0.3",
  "x-demiton-store": "tenant",
  "x-demiton-axes": [
    {
      "axis": "project",
      "requirement": "required",
      "role": "subject"
    },
    {
      "axis": "worker",
      "requirement": "optional",
      "role": "subject"
    },
    {
      "axis": "financial_period",
      "requirement": "optional",
      "role": "context"
    }
  ],
  "x-demiton-measures": [],
  "x-demiton-provenance": {
    "standards": [
      {
        "code": "AS ISO 19650.1:2019 / AS ISO 19650.2:2019",
        "title": "Organization and digitization of information about buildings and civil engineering works, including BIM - Information management using building information modelling (Parts 1 and 2)",
        "access": "public_summary",
        "region": "Australia",
        "edition": "2019 (identical to ISO 19650-1:2018 and -2:2018)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "AS/NZS ISO 14001:2016",
        "title": "Environmental management systems - Requirements with guidance for use",
        "access": "paywalled_secondary",
        "clause": "10.2",
        "region": "Australia",
        "edition": "2016",
        "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": "6.1.2, 8.1, 10.2 (per digest)",
        "region": "Australia",
        "edition": "2018",
        "checked_on": "2026-09-14"
      },
      {
        "code": "AS/NZS ISO 9001:2016",
        "title": "Quality management systems - Requirements",
        "access": "paywalled_secondary",
        "clause": "7.5 documented information",
        "region": "Australia",
        "edition": "2016",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Model WHS Regulations",
        "title": "Model Work Health and Safety Regulations (safe work method statements)",
        "access": "public_summary",
        "clause": "reg 299 (SWMS required for high risk construction work); SWMS copy kept 2 years after a notifiable incident",
        "region": "Australia",
        "edition": "model regulations",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Occupational Health and Safety Act 2004 (Vic)",
        "title": "Occupational Health and Safety Act 2004 (Vic)",
        "access": "public_summary",
        "clause": "s 38 (written notification kept at least 5 years)",
        "region": "Australia",
        "edition": "current",
        "checked_on": "2026-09-14"
      },
      {
        "code": "ISO 19650-1:2018 / ISO 19650-2:2018",
        "title": "Information management using building information modelling (Parts 1 and 2)",
        "access": "public_summary",
        "region": "International",
        "edition": "2018",
        "checked_on": "2026-09-14"
      },
      {
        "code": "ISO 45001:2018",
        "title": "Occupational health and safety management systems - Requirements with guidance for use",
        "access": "paywalled_secondary",
        "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": "7.5",
        "region": "International",
        "edition": "2015 (2026 expected)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "BS EN ISO 19650-2 UK National Annex",
        "title": "BS EN ISO 19650-2 UK National Annex",
        "access": "paywalled_secondary",
        "clause": "NA.4.2, NA.4.3 (unverified)",
        "region": "United Kingdom",
        "edition": "2021 revision",
        "checked_on": "2026-09-14"
      }
    ]
  },
  "description": "Safety and compliance documents attached to projects or workers.",
  "x-demiton-contract-url": "https://docs.demiton.io/registers/compliance_documents/",
  "x-demiton-register-catalog": "https://docs.demiton.io/concepts/register-catalog"
}