{
  "name": "Corrective action report register",
  "description": "Extract report reference, supplier name, problem text from capa or 8d report. Start with an editable schema, inspect JSON and review exceptions before your system handoff.",
  "prompt_additions": "Extract only information explicitly present in this document. Do not infer missing values, verify authenticity, make business decisions, or compare other documents. Preserve identifiers as strings. Return amounts as numbers and dates as YYYY-MM-DD. Review and set required fields for your process before using this schema in production.",
  "fields": [
    {
      "key": "report_reference",
      "label": "Report Reference",
      "type": "string",
      "required": false,
      "description": "Report reference exactly as printed in this capa or 8d report. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "supplier_name",
      "label": "Supplier Name",
      "type": "string",
      "required": false,
      "description": "Supplier name exactly as printed in this capa or 8d report. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "problem_text",
      "label": "Problem Text",
      "type": "string",
      "required": false,
      "description": "Problem text exactly as printed in this capa or 8d report. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "stated_cause_text",
      "label": "Stated Cause Text",
      "type": "string",
      "required": false,
      "description": "Stated cause text exactly as printed in this capa or 8d report. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "action_rows",
      "label": "Action Rows",
      "type": "array",
      "required": false,
      "description": "Every visible action rows row in this capa or 8d report. Preserve separate rows, labels and qualifiers; do not merge entries or reconstruct missing ones.",
      "items": {
        "type": "object",
        "fields": [
          {
            "key": "action_reference",
            "label": "Action Reference",
            "type": "string",
            "required": false,
            "description": "Action reference exactly as printed in this capa or 8d report. Preserve identifiers and qualifiers; do not look up or infer missing information."
          },
          {
            "key": "action_text",
            "label": "Action Text",
            "type": "string",
            "required": false,
            "description": "Action text exactly as printed in this capa or 8d report. Preserve identifiers and qualifiers; do not look up or infer missing information."
          },
          {
            "key": "owner_name",
            "label": "Owner Name",
            "type": "string",
            "required": false,
            "description": "Owner name exactly as printed in this capa or 8d report. Preserve identifiers and qualifiers; do not look up or infer missing information."
          },
          {
            "key": "stated_target_date",
            "label": "Stated Target Date",
            "type": "date",
            "required": false,
            "description": "Date explicitly assigned to this action. Leave empty if the source gives no date."
          },
          {
            "key": "stated_status",
            "label": "Stated Status",
            "type": "string",
            "required": false,
            "description": "Status exactly as the document describes it. Do not infer authorization, settlement, completion or current validity."
          }
        ]
      }
    },
    {
      "key": "verification_text",
      "label": "Verification Text",
      "type": "string",
      "required": false,
      "description": "Verification text exactly as printed in this capa or 8d report. Preserve identifiers and qualifiers; do not look up or infer missing information."
    }
  ]
}