{
  "title": "ClinicalTrials.gov Monitor",
  "type": "object",
  "schemaVersion": 1,
  "properties": {
    "query": {
      "title": "Search query",
      "type": "string",
      "description": "Free-text ClinicalTrials.gov query (condition, intervention, sponsor, NCT id, etc.). Leave blank to use the default diabetes sample so an empty run still returns rows.",
      "editor": "textfield",
      "prefill": "diabetes",
      "sectionCaption": "1 · Find studies",
      "sectionDescription": "The condition filter is combined with the search query; blank search uses the documented diabetes sample."
    },
    "condition": {
      "title": "Condition",
      "type": "string",
      "description": "Optional condition filter (query.cond). Combined with the free-text query.",
      "editor": "textfield"
    },
    "statuses": {
      "title": "Published study statuses",
      "type": "array",
      "description": "Optional overallStatus filters such as RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED, TERMINATED. Leave empty for any status.",
      "editor": "stringList",
      "items": {
        "type": "string"
      }
    },
    "phases": {
      "title": "Study phases",
      "type": "array",
      "description": "Optional phase filters such as PHASE1, PHASE2, PHASE3, PHASE4, EARLY_PHASE1, NA.",
      "editor": "stringList",
      "items": {
        "type": "string"
      }
    },
    "maxResults": {
      "title": "Maximum studies",
      "type": "integer",
      "description": "Upper bound on study rows returned. Default is a fast representative sample.",
      "editor": "number",
      "default": 25,
      "minimum": 1,
      "maximum": 1000,
      "sectionCaption": "2 · Bound the study sample",
      "sectionDescription": "Result count and API page size are separate controls."
    },
    "pageSize": {
      "title": "Page size",
      "type": "integer",
      "description": "ClinicalTrials.gov v2 pageSize (max 1000). Keep modest for default runs.",
      "editor": "number",
      "default": 25,
      "minimum": 1,
      "maximum": 1000
    },
    "maxRunSeconds": {
      "title": "Run time budget (seconds)",
      "type": "integer",
      "description": "Wall-clock budget. When reached the Actor stops cleanly with rows already collected.",
      "editor": "number",
      "default": 240,
      "minimum": 30
    }
  },
  "description": "Search published studies by condition, status, phase or text and set a small study cap. Registry records do not establish treatment effectiveness or suitability for a particular person."
}
