{
  "openapi": "3.0.1",
  "info": {
    "title": "Chronic Disease Clinical 🩺🧬",
    "description": "A clinical-grade chronic pathology intelligence Actor covering 7 major non-communicable diseases: Type 2 Diabetes Mellitus, Cardiovascular & CAD, Essential Hypertension, Oncology, Chronic Kidney Disease (CKD), COPD, and Alzheimer's Disease.",
    "version": "0.0",
    "x-build-id": "bijJULVGUCMLkgehA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khnaami~actor-clinical-disease/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khnaami-actor-clinical-disease",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/khnaami~actor-clinical-disease/runs": {
      "post": {
        "operationId": "runs-sync-khnaami-actor-clinical-disease",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/khnaami~actor-clinical-disease/run-sync": {
      "post": {
        "operationId": "run-sync-khnaami-actor-clinical-disease",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "targetDisease": {
            "title": "Target Chronic Disease",
            "enum": [
              "All 7 Chronic Diseases",
              "Type 2 Diabetes Mellitus",
              "Cardiovascular & Coronary Artery Disease",
              "Essential Hypertension",
              "Oncology & Cancer Prevention",
              "Chronic Kidney Disease (CKD)",
              "Chronic Obstructive Pulmonary Disease (COPD)",
              "Alzheimer's Disease & Cognitive Decline"
            ],
            "type": "string",
            "description": "Select a specific chronic condition or analyze all 7 major diseases.",
            "default": "All 7 Chronic Diseases"
          },
          "includeNutritionProtocols": {
            "title": "Include Medical Nutrition Protocols",
            "type": "boolean",
            "description": "Include therapeutic macronutrient splits, micronutrient guardrails, superfoods, and strictly prohibited foods.",
            "default": true
          },
          "includeExercisePrescriptions": {
            "title": "Include FITT Exercise Prescriptions",
            "type": "boolean",
            "description": "Include Frequency, Intensity, Time, Type protocols, heart rate targets, and clinical contraindications.",
            "default": true
          },
          "includeCuratedBreakthroughs": {
            "title": "Include Landmark Clinical Breakthroughs",
            "type": "boolean",
            "description": "Include curated landmark trial publications (NEJM, Lancet, JAMA, Nature Medicine).",
            "default": true
          },
          "fetchLiveEuropePmcTrials": {
            "title": "Harvester Live Trials from Europe PMC / PubMed",
            "type": "boolean",
            "description": "Query Europe PMC REST API in real time for recent randomized controlled trials.",
            "default": true
          },
          "patientSimulationAge": {
            "title": "Patient Risk Profile: Age",
            "minimum": 18,
            "maximum": 100,
            "type": "integer",
            "description": "Simulated patient age for multi-system risk score calculation.",
            "default": 52
          },
          "patientSimulationHba1c": {
            "title": "Patient Risk Profile: HbA1c (%)",
            "minimum": 4,
            "maximum": 16,
            "type": "number",
            "description": "Glycated hemoglobin percentage (e.g. 5.5 = normal, 6.2 = prediabetes, 7.8 = diabetes).",
            "default": 6.2
          },
          "patientSimulationSystolicBp": {
            "title": "Patient Risk Profile: Systolic BP (mmHg)",
            "minimum": 80,
            "maximum": 240,
            "type": "integer",
            "description": "Systolic blood pressure.",
            "default": 135
          },
          "patientSimulationLdlC": {
            "title": "Patient Risk Profile: LDL-C (mg/dL)",
            "minimum": 30,
            "maximum": 350,
            "type": "integer",
            "description": "Low-density lipoprotein cholesterol level.",
            "default": 125
          },
          "patientSimulationBmi": {
            "title": "Patient Risk Profile: BMI",
            "minimum": 15,
            "maximum": 60,
            "type": "number",
            "description": "Body Mass Index.",
            "default": 27.8
          },
          "apiKey": {
            "title": "Apify API Token / Custom Key",
            "type": "string",
            "description": "Optional Apify API token or custom authentication key for MCP and programmatic triggers."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}