{
  "id": "maintenance_policy",
  "title": "Maintenance policies",
  "makes": "A setup record: a PM task for an asset class, cited to its document.",
  "instructions": [
    "One row per task an owner's policy, a maker's manual or a code requires. Fill the Data sheet; this sheet explains each column.",
    "Leave an optional cell empty when the value is not known. Do not write a guess; write what you know and say where it came from in source.",
    "Lists take several values separated by a semicolon (;).",
    "Ids in a catalogue column must come from MissionSight's catalogue (the Catalogue column below names which list).",
    "If a row does not match, the whole load stops and the report names the row and the column. Nothing is half loaded.",
    "The example row is an example only. It names a made-up airport, Acme County, and is not anyone's data."
  ],
  "columns": [
    {
      "name": "policy_id",
      "type": "string",
      "required": true,
      "meaning": "Your id for the task. Unique in the sheet.",
      "example": "PM-ESC-M1",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
    },
    {
      "name": "asset_class",
      "type": "string",
      "required": true,
      "meaning": "The asset class it applies to.",
      "example": "vt.escalator",
      "ref": "catalogue:asset_class"
    },
    {
      "name": "task",
      "type": "string",
      "required": true,
      "meaning": "The task, as the document states it.",
      "example": "Inspect comb plates and step demarcation"
    },
    {
      "name": "interval_value",
      "type": "integer",
      "required": true,
      "meaning": "How often: the number.",
      "example": "1",
      "minimum": 1
    },
    {
      "name": "interval_unit",
      "type": "enum",
      "required": true,
      "meaning": "How often: the unit.",
      "example": "month",
      "values": [
        "day",
        "week",
        "month",
        "year",
        "hours_run",
        "cycles"
      ]
    },
    {
      "name": "source_document",
      "type": "string",
      "required": true,
      "meaning": "The document that requires it.",
      "example": "Example only: Acme County PM policy 4.2"
    },
    {
      "name": "source_page",
      "type": "string",
      "required": false,
      "meaning": "The page or clause.",
      "example": "p. 7, clause 4.2.1"
    },
    {
      "name": "authority",
      "type": "string",
      "required": false,
      "meaning": "Who requires it: the owner, the maker, a code.",
      "example": "Owner policy"
    },
    {
      "name": "source",
      "type": "string",
      "required": true,
      "meaning": "Where this row came from: a system export, a document and page, a walk-down, a person.",
      "example": "Example only: Acme County Airport asset spreadsheet, tab Conveying, row 12"
    }
  ]
}