{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/test-well-com/json-schema/test-well-com-catalog-item-schema.json",
  "title": "CatalogItem",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/test-well-com-openapi.json#/components/schemas/CatalogItem",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "test",
        "panel"
      ]
    },
    "name": {
      "type": "string"
    },
    "category": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "aliases": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "cpt": {
      "type": [
        "string",
        "null"
      ]
    },
    "biomarkers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "biomarkerCount": {
      "type": "integer"
    },
    "biomarkersNotReportedAt": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "description": "Markers of `biomarkers` that one lab's report for this test does not carry, keyed by lab; present only where it applies"
    },
    "reportNote": {
      "type": "string",
      "description": "How the labs' reports for this test differ; present only where they do"
    },
    "includedTests": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "sampleType": {
      "type": "string"
    },
    "fastingRequired": {
      "type": "boolean"
    },
    "resultsIn": {
      "type": "string"
    },
    "prepInstructions": {
      "type": [
        "string",
        "null"
      ]
    },
    "labs": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "Quest",
          "Labcorp",
          "BioReference"
        ]
      }
    },
    "prices": {
      "$ref": "#/$defs/CatalogPrices"
    },
    "labFee": {
      "type": "number"
    },
    "currency": {
      "type": "string"
    },
    "orderable": {
      "type": "boolean"
    },
    "url": {
      "type": "string"
    },
    "markdownUrl": {
      "type": "string"
    },
    "orderUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "reviewedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "popular": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "slug",
    "type",
    "name",
    "prices",
    "labFee",
    "orderable",
    "url"
  ],
  "$defs": {
    "CatalogPrices": {
      "type": "object",
      "properties": {
        "list": {
          "type": "number"
        },
        "quest": {
          "type": "number"
        },
        "labcorp": {
          "type": "number"
        },
        "bioreference": {
          "type": "number"
        }
      },
      "required": [
        "list"
      ]
    }
  }
}