{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.demiton.io/registers/prequalification_answer/v1.json",
  "title": "prequalification_answer contract v1",
  "type": "object",
  "required": [
    "form_id",
    "question_id"
  ],
  "properties": {
    "answer": {
      "type": "array",
      "description": "the answer value or values given",
      "x-demiton-requiredness": "optional"
    },
    "form_id": {
      "type": "string",
      "description": "the questionnaire the answer belongs to",
      "x-demiton-requiredness": "required"
    },
    "category": {
      "type": "string",
      "description": "the section the question sits in",
      "x-demiton-requiredness": "optional"
    },
    "form_name": {
      "type": "string",
      "description": "the questionnaire's name",
      "x-demiton-requiredness": "optional"
    },
    "form_type": {
      "type": "string",
      "description": "the kind of questionnaire",
      "x-demiton-requiredness": "optional"
    },
    "is_active": {
      "type": "boolean",
      "description": "whether the questionnaire is still in force",
      "x-demiton-requiredness": "optional"
    },
    "expires_on": {
      "type": "string",
      "description": "when the answer stops being accepted",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "day",
      "format": "date",
      "x-demiton-type": "date"
    },
    "answer_type": {
      "type": "string",
      "description": "the kind of answer expected, e.g. text, choice or file",
      "x-demiton-requiredness": "optional"
    },
    "answered_at": {
      "type": "string",
      "description": "when the answer last changed",
      "x-demiton-requiredness": "optional",
      "format": "date-time",
      "x-demiton-type": "datetime"
    },
    "form_period": {
      "type": "string",
      "description": "the year or period the questionnaire covers",
      "x-demiton-requiredness": "optional"
    },
    "form_status": {
      "type": "string",
      "description": "where the questionnaire is in review, e.g. pending or submitted",
      "x-demiton-requiredness": "optional"
    },
    "question_id": {
      "type": "string",
      "description": "the question answered",
      "x-demiton-requiredness": "required"
    },
    "question_text": {
      "type": "string",
      "description": "the question as asked",
      "x-demiton-requiredness": "optional"
    },
    "answer_comment": {
      "type": "string",
      "description": "a comment given with the answer",
      "x-demiton-requiredness": "optional"
    },
    "evidence_files": {
      "type": "array",
      "description": "links to files uploaded as the answer",
      "x-demiton-requiredness": "optional"
    },
    "review_outcome": {
      "type": "string",
      "description": "whether the client approved or rejected it",
      "x-demiton-requiredness": "optional"
    },
    "reviewer_comment": {
      "type": "string",
      "description": "the reviewer's comment",
      "x-demiton-requiredness": "optional"
    },
    "requesting_client": {
      "type": "string",
      "description": "the client that requires the questionnaire",
      "x-demiton-requiredness": "optional"
    }
  },
  "x-demiton-register-type": "prequalification_answer",
  "x-demiton-contract-version": "1.0.3",
  "x-demiton-store": "tenant",
  "x-demiton-axes": [],
  "x-demiton-measures": [],
  "x-demiton-provenance": {
    "standards": [
      {
        "code": "Austroads NPS",
        "title": "National Prequalification System for Civil (Road and Bridge) Construction",
        "access": "public_summary",
        "region": "Australia",
        "edition": "2025 Edition",
        "checked_on": "2026-09-14"
      },
      {
        "code": "ISO 9001 / ISO 14001 / ISO 45001",
        "title": "Management system certificates supplied as answer evidence",
        "access": "paywalled_secondary",
        "region": "International",
        "edition": "ISO 9001:2015; ISO 14001:2026; ISO 45001:2018",
        "checked_on": "2026-09-14"
      }
    ]
  },
  "description": "Your answers to a prequalification questionnaire.",
  "x-demiton-contract-url": "https://docs.demiton.io/registers/prequalification_answer/",
  "x-demiton-register-catalog": "https://docs.demiton.io/concepts/register-catalog"
}