{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-image-intelligence-metadata-schema.json",
  "title": "ImageIntelligenceMetadata",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-image-intelligence-api-openapi.yml#/components/schemas/ImageIntelligenceMetadata",
  "type": "object",
  "required": [
    "fileName",
    "mimeType",
    "procedureCodes",
    "serviceDate",
    "toothNumbers"
  ],
  "properties": {
    "fileName": {
      "type": "string",
      "description": "Original filename of the attachment file being uploaded. This is used for reference in Optum Image Intelligence processing and is not required to match the actual filename of the uploaded file."
    },
    "mimeType": {
      "type": "string",
      "description": "MIME type of the attachment file being uploaded. This is used for reference in Optum Image Intelligence processing and is not required to match the actual MIME type of the uploaded file."
    },
    "serviceDate": {
      "type": "string",
      "pattern": "^\\\\d{4}-\\\\d{2}-\\\\d{2}$",
      "description": "Service date associated with the attachment in YYYY-MM-DD format. This is used for reference in Optum Image Intelligence processing."
    },
    "toothNumbers": {
      "type": "string",
      "pattern": "^[A-Za-z0-9]{2}(,[A-Za-z0-9]{2})",
      "description": "List of tooth numbers associated with the attachment. These are used for reference in Optum Image Intelligence processing and will be further validated to ensure they conform to valid tooth identifiers."
    },
    "procedureCodes": {
      "type": "string",
      "pattern": "^([a-zA-Z0-9]{1,25})(,[a-zA-Z0-9]{1,25})$",
      "description": "List of procedure codes associated with the attachment. These are used for reference in Optum Image Intelligence processing."
    }
  }
}