# Chronic Disease Clinical 🩺🧬 (`khnaami/actor-clinical-disease`) Actor

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.

- **URL**: https://apify.com/khnaami/actor-clinical-disease.md
- **Developed by:** [khalid naami](https://apify.com/khnaami) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Apify Actor: Chronic Disease Clinical Intelligence & Medical Breakthroughs 🩺🧬

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**.

***

### 🌟 Key Features

1. **Comprehensive Disease Pathophysiology & Biomarkers**: Detailed ICD-10 profiles, international guidelines (ADA, AHA, ESC, KDIGO, GOLD), laboratory target reference ranges (HbA1c, ApoB, eGFR, hs-CRP, etc.), and frontline pharmacotherapy pillars.
2. **Evidence-Based Medical Nutrition**: Precision macronutrient splits, therapeutic micronutrient targets, beneficial anti-inflammatory superfoods, and strictly prohibited pro-inflammatory/atherogenic items.
3. **FITT Clinical Exercise Prescriptions**: Frequency, Intensity, Time, Type protocols, target heart rate training zones, cellular signaling mechanisms (AMPK, GLUT4, eNOS), and safety contraindications.
4. **Curated Landmark Breakthroughs**: Peer-reviewed trial data from *The New England Journal of Medicine*, *The Lancet*, *JAMA*, and *Nature Medicine* (e.g. Tirzepatide SURPASS, Inclisiran ORION, CRISPR PCSK9 base editing, p-tau217 biomarkers).
5. **Live Europe PMC Clinical Trials Harvester**: Real-time queries to Europe PMC / PubMed for recent human randomized controlled trials and clinical study abstracts.
6. **Multi-System Patient Risk Stratification**: Automated cardiovascular (ASCVD), diabetes metabolic risk, and CKD staging algorithms.

***

### 📥 Input Schema

| Field | Type | Default | Description |
|---|---|---|---|
| `targetDisease` | Select | `"All 7 Chronic Diseases"` | Disease filter or select all 7 conditions. |
| `includeNutritionProtocols` | Boolean | `true` | Include therapeutic nutrition plans and macro splits. |
| `includeExercisePrescriptions` | Boolean | `true` | Include FITT exercise protocols and contraindications. |
| `includeCuratedBreakthroughs` | Boolean | `true` | Include landmark NEJM/Lancet trial summaries. |
| `fetchLiveEuropePmcTrials` | Boolean | `true` | Harvester recent open-access trials from Europe PMC. |
| `patientSimulationAge` | Integer | `52` | Patient age for risk simulation. |
| `patientSimulationHba1c` | Float | `6.2` | HbA1c percentage. |
| `patientSimulationSystolicBp` | Integer | `135` | Systolic blood pressure (mmHg). |
| `patientSimulationLdlC` | Integer | `125` | LDL-C (mg/dL). |
| `patientSimulationBmi` | Float | `27.8` | Body Mass Index. |

***

### 📤 Output Dataset Format

```json
{
  "record_type": "disease_clinical_profile",
  "disease_name": "Type 2 Diabetes Mellitus",
  "icd10": "E11",
  "medical_nutrition_protocol": {
    "diet_name": "Low-Glycemic Mediterranean-Ketogenic Hybrid (L-Med)",
    "macros": { "Carbohydrates": 25, "Proteins": 25, "Healthy Fats": 50 },
    "therapeutic_superfoods": [ ... ],
    "strictly_prohibited_foods": [ ... ]
  },
  "fitt_exercise_prescription": {
    "aerobic_fitt": { ... },
    "resistance_fitt": { ... }
  },
  "landmark_breakthrough_publications": [ ... ],
  "recent_live_clinical_trials": [ ... ]
}
```

***

### 🚀 How to Run Locally

```bash
cd actor-clinical-disease
pip install -r requirements.txt
python -m src.main
```

# Actor input Schema

## `targetDisease` (type: `string`):

Select a specific chronic condition or analyze all 7 major diseases.

## `includeNutritionProtocols` (type: `boolean`):

Include therapeutic macronutrient splits, micronutrient guardrails, superfoods, and strictly prohibited foods.

## `includeExercisePrescriptions` (type: `boolean`):

Include Frequency, Intensity, Time, Type protocols, heart rate targets, and clinical contraindications.

## `includeCuratedBreakthroughs` (type: `boolean`):

Include curated landmark trial publications (NEJM, Lancet, JAMA, Nature Medicine).

## `fetchLiveEuropePmcTrials` (type: `boolean`):

Query Europe PMC REST API in real time for recent randomized controlled trials.

## `patientSimulationAge` (type: `integer`):

Simulated patient age for multi-system risk score calculation.

## `patientSimulationHba1c` (type: `number`):

Glycated hemoglobin percentage (e.g. 5.5 = normal, 6.2 = prediabetes, 7.8 = diabetes).

## `patientSimulationSystolicBp` (type: `integer`):

Systolic blood pressure.

## `patientSimulationLdlC` (type: `integer`):

Low-density lipoprotein cholesterol level.

## `patientSimulationBmi` (type: `number`):

Body Mass Index.

## `apiKey` (type: `string`):

Optional Apify API token or custom authentication key for MCP and programmatic triggers.

## Actor input object example

```json
{
  "targetDisease": "All 7 Chronic Diseases",
  "includeNutritionProtocols": true,
  "includeExercisePrescriptions": true,
  "includeCuratedBreakthroughs": true,
  "fetchLiveEuropePmcTrials": true,
  "patientSimulationAge": 52,
  "patientSimulationHba1c": 6.2,
  "patientSimulationSystolicBp": 135,
  "patientSimulationLdlC": 125,
  "patientSimulationBmi": 27.8
}
```

# Actor output Schema

## `results` (type: `string`):

Full clinical disease profiles, medical nutrition, FITT exercise, patient risk, and Europe PMC trials

## `overview` (type: `string`):

Summary report stored in Key-Value store

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("khnaami/actor-clinical-disease").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("khnaami/actor-clinical-disease").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call khnaami/actor-clinical-disease --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,khnaami/actor-clinical-disease"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/AqGgPMafJdsejzmam/builds/bijJULVGUCMLkgehA/openapi.json
