{
  "name": "Permit inspection card indexing",
  "description": "Extract permit reference, property address, issuing authority from permit card. 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": "permit_reference",
      "label": "Permit Reference",
      "type": "string",
      "required": false,
      "description": "Permit reference exactly as printed in this permit card. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "property_address",
      "label": "Property Address",
      "type": "string",
      "required": false,
      "description": "Property address exactly as printed in this permit card. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "issuing_authority",
      "label": "Issuing Authority",
      "type": "string",
      "required": false,
      "description": "Issuing authority exactly as printed in this permit card. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "issue_date",
      "label": "Issue Date",
      "type": "date",
      "required": false,
      "description": "Issue date explicitly printed in this permit card. Keep it distinct from other dates; leave it empty if no calendar date is stated."
    },
    {
      "key": "inspection_rows",
      "label": "Inspection Rows",
      "type": "array",
      "required": false,
      "description": "Every visible inspection rows row in this permit card. Preserve separate rows, labels and qualifiers; do not merge entries or reconstruct missing ones.",
      "items": {
        "type": "object",
        "fields": [
          {
            "key": "inspection_type",
            "label": "Inspection Type",
            "type": "string",
            "required": false,
            "description": "Inspection type exactly as printed in this permit card. Preserve identifiers and qualifiers; do not look up or infer missing information."
          },
          {
            "key": "inspection_date",
            "label": "Inspection Date",
            "type": "date",
            "required": false,
            "description": "Inspection date explicitly printed in this permit card. Keep it distinct from other dates; leave it empty if no calendar date is stated."
          },
          {
            "key": "inspector_name",
            "label": "Inspector Name",
            "type": "string",
            "required": false,
            "description": "Inspector name exactly as printed in this permit card. Preserve identifiers and qualifiers; do not look up or infer missing information."
          },
          {
            "key": "stated_result",
            "label": "Stated Result",
            "type": "string",
            "required": false,
            "description": "Result as reported in the source. This field does not independently validate the test or inspection."
          },
          {
            "key": "notes_text",
            "label": "Notes Text",
            "type": "string",
            "required": false,
            "description": "Notes text exactly as printed in this permit card. Preserve identifiers and qualifiers; do not look up or infer missing information."
          }
        ]
      }
    },
    {
      "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."
    }
  ]
}