{
  "name": "Certificate of analysis lot intake",
  "description": "Extract supplier name, product name, lot reference from coa. 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": "supplier_name",
      "label": "Supplier Name",
      "type": "string",
      "required": false,
      "description": "Supplier name exactly as printed in this coa. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "product_name",
      "label": "Product Name",
      "type": "string",
      "required": false,
      "description": "Product name exactly as printed in this coa. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "lot_reference",
      "label": "Lot Reference",
      "type": "string",
      "required": false,
      "description": "Lot reference exactly as printed in this coa. Preserve identifiers and qualifiers; do not look up or infer missing information."
    },
    {
      "key": "test_date",
      "label": "Test Date",
      "type": "date",
      "required": false,
      "description": "Test date explicitly printed in this coa. Keep it distinct from other dates; leave it empty if no calendar date is stated."
    },
    {
      "key": "test_rows",
      "label": "Test Rows",
      "type": "array",
      "required": false,
      "description": "Every visible test rows row in this coa. Preserve separate rows, labels and qualifiers; do not merge entries or reconstruct missing ones.",
      "items": {
        "type": "object",
        "fields": [
          {
            "key": "test_name",
            "label": "Test Name",
            "type": "string",
            "required": false,
            "description": "Test name exactly as printed in this coa. Preserve identifiers and qualifiers; do not look up or infer missing information."
          },
          {
            "key": "result_text",
            "label": "Result Text",
            "type": "string",
            "required": false,
            "description": "Reported test result as text, preserving inequality signs and qualifiers such as less than or not detected."
          },
          {
            "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": "specification_text",
            "label": "Specification Text",
            "type": "string",
            "required": false,
            "description": "Specification text exactly as printed in this coa. Preserve identifiers and qualifiers; do not look up or infer missing information."
          },
          {
            "key": "stated_method",
            "label": "Stated Method",
            "type": "string",
            "required": false,
            "description": "Stated method exactly as printed in this coa. Preserve identifiers and qualifiers; do not look up or infer missing information."
          }
        ]
      }
    },
    {
      "key": "specification_reference",
      "label": "Specification Reference",
      "type": "string",
      "required": false,
      "description": "Specification reference exactly as printed in this coa. Preserve identifiers and qualifiers; do not look up or infer missing information."
    }
  ]
}