{
  "name": "Field work order cost capture",
  "description": "Extract project name, work order reference, work date from work order. 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": "project_name",
      "label": "Project Name",
      "type": "string",
      "required": false,
      "description": "Project name exactly as printed in this work order. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "work_order_reference",
      "label": "Work Order Reference",
      "type": "string",
      "required": false,
      "description": "Work order reference exactly as printed in this work order. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "work_date",
      "label": "Work Date",
      "type": "date",
      "required": false,
      "description": "Work date explicitly printed in this work order. Keep it distinct from other dates; leave it empty if no calendar date is stated."
    },
    {
      "key": "work_description",
      "label": "Work Description",
      "type": "string",
      "required": false,
      "description": "Work description exactly as printed in this work order. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "labor_rows",
      "label": "Labor Rows",
      "type": "array",
      "required": false,
      "description": "Every visible labor rows row in this work order. Preserve separate rows, labels and qualifiers; do not merge entries or reconstruct missing ones.",
      "items": {
        "type": "object",
        "fields": [
          {
            "key": "worker_reference",
            "label": "Worker Reference",
            "type": "string",
            "required": false,
            "description": "Worker reference exactly as printed in this work order. Preserve identifiers and qualifiers; do not look up or infer missing information."
          },
          {
            "key": "description",
            "label": "Description",
            "type": "string",
            "required": false,
            "description": "Description exactly as printed in this work order. Preserve identifiers and qualifiers; do not look up or infer missing information."
          },
          {
            "key": "hours",
            "label": "Hours",
            "type": "number",
            "required": false,
            "description": "Hours as reported in this work order. Preserve the labeled measure and its unit; do not estimate it."
          },
          {
            "key": "stated_rate",
            "label": "Stated Rate",
            "type": "currency",
            "required": false,
            "description": "Rate printed in the source. Preserve its stated unit or rate basis separately."
          },
          {
            "key": "amount",
            "label": "Amount",
            "type": "currency",
            "required": false,
            "description": "Amount explicitly labeled in this work order. Preserve its sign and stated currency; do not calculate a missing amount."
          }
        ]
      }
    },
    {
      "key": "material_rows",
      "label": "Material Rows",
      "type": "array",
      "required": false,
      "description": "Every visible material rows row in this work order. Preserve separate rows, labels and qualifiers; do not merge entries or reconstruct missing ones.",
      "items": {
        "type": "object",
        "fields": [
          {
            "key": "item_reference",
            "label": "Item Reference",
            "type": "string",
            "required": false,
            "description": "Item reference exactly as printed in this work order. Preserve identifiers and qualifiers; do not look up or infer missing information."
          },
          {
            "key": "description",
            "label": "Description",
            "type": "string",
            "required": false,
            "description": "Description exactly as printed in this work order. Preserve identifiers and qualifiers; do not look up or infer missing information."
          },
          {
            "key": "quantity",
            "label": "Quantity",
            "type": "number",
            "required": false,
            "description": "Quantity as reported in this work order. Preserve the labeled measure and its unit; do not estimate it."
          },
          {
            "key": "unit_of_measure",
            "label": "Unit Of Measure",
            "type": "string",
            "required": false,
            "description": "Printed quantity unit, kept distinct from package type or pricing unit."
          },
          {
            "key": "amount",
            "label": "Amount",
            "type": "currency",
            "required": false,
            "description": "Amount explicitly labeled in this work order. Preserve its sign and stated currency; do not calculate a missing amount."
          }
        ]
      }
    },
    {
      "key": "stated_total",
      "label": "Stated Total",
      "type": "currency",
      "required": false,
      "description": "Stated total explicitly labeled in this work order. Preserve its sign and stated currency; do not calculate a missing amount."
    }
  ]
}