# Neutropenia Duration & Exposure Calculator AI Agent Connect

> Neutropenia Duration & Exposure Calculator MCP processes absolute neutrophil counts (ANC) to identify the start and end of neutropenic episodes. It uses configurable severity thresholds and interpolation rules to determine total exposure time and censoring status. Your AI client can use this to analyze patient data, check measurement density, or filter specific clinical events based on severity.

## Overview
- **Category:** healthcare
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_Y7L3V5EmnNCvVlldcni5MkgzHLkn1lY4FQd5uYup/ai-agent-connect
- **Tags:** neutropenia, anc, clinical-analytics, healthcare, medical-data

## Description

You can use this MCP to automate the heavy lifting involved in analyzing neutropenia episodes. Instead of manually calculating time intervals between ANC readings, you give your agent the raw data and the specific thresholds you care about. The MCP handles the math, applying interpolation to estimate when an episode actually began or ended between two data points. It also accounts for censoring, so you know if an episode was still ongoing when the last measurement was taken. Whether you need to check if your data is dense enough for reliable results or you want to isolate only the most severe clinical events, this tool provides the specific metrics you need for clinical analysis.

## Tools

### filter_episodes_by_severity
Use this tool to isolate neutropenia episodes that meet or exceed a specific severity threshold.

### get_patient_exposure_history
This tool retrieves a summary of all previous exposure calculations for a specific patient.

### validate_measurement_continuity
This tool checks if your ANC measurements are frequent enough to allow for reliable interpolation.

### calculate_neutropenia_exposure
This tool calculates the total duration and exposure of neutropenia based on your ANC measurements.

## Prompt Examples

**Prompt:** 
```
Calculate the neutropenia exposure for patient P123 with these ANC measurements: [{'timestamp': '2023-01-01T10:00:00Z', 'ancValue': 800}, {'timestamp': '2023-01-02T10:00:00Z', 'ancValue': 400}]. Use thresholds [500, 1000], an observation window from 2023-01-01 to 2023-01-03, linear interpolation, and a max missing interval of 1440 minutes.
```

**Response:** 
```
The patient spent 24 hours below the 500 ANC threshold, with the episode starting on 2023-01-01 and ending on 2023-01-02.
```

**Prompt:** 
```
Check if these ANC measurements are continuous for a 240-minute max interval: [{'timestamp': '2023-05-01T08:00:00Z', 'ancValue': 1200}, {'timestamp': '2023-05-01T12:00:00Z', 'ancValue': 900}].
```

**Response:** 
```
No, the measurements are not continuous. There is a gap of 240 minutes between the first and second measurement, which meets but does not stay below the 240-minute limit.
```

**Prompt:** 
```
Show me the history of exposure for patient ID 'PAT-99'.
```

**Response:** 
```
The history for patient PAT-99 shows three previous calculations, with the most recent recording a total duration of 120 minutes and a maximum severity of 500.
```

## Capabilities

### Exposure Calculation
Your agent calculates total time spent in neutropenia using ANC data.

### Data Density Validation
The MCP verifies if measurement gaps are small enough for accurate interpolation.

### Severity Filtering
Your AI client can pull only the episodes that hit specific clinical thresholds.

### Patient History Retrieval
The tool pulls previous exposure summaries for a specific patient ID.

### Episode Estimation
The MCP estimates the start and end times of episodes through interpolation.

## Use Cases

### Clinical Trial Analysis
Calculate the exact duration of neutropenia for patients in a study to assess drug impact.

### Patient Monitoring
Review a patient's history of neutropenia exposure to track trends over time.

### Data Quality Checks
Verify that ANC measurement frequency is sufficient before running complex calculations.

### Severity Reporting
Isolate only the most severe neutropenic episodes for targeted clinical review.

## Benefits

- Automates the calculation of neutropenia duration from raw ANC values.
- Uses interpolation to estimate episode boundaries between measurements.
- Identifies if data gaps are too large for reliable analysis.
- Filters clinical events by specific severity levels.

## How It Works

Connect your AI client to Vinkius to access these tools instantly.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your ANC measurement data to your AI agent.
3. Specify your desired severity thresholds and interpolation rules.
4. The MCP processes the data and returns the exposure summary or filtered results.

## Frequently Asked Questions

**How does this MCP calculate neutropenia duration?**
It processes absolute neutrophil counts (ANC) and uses configurable interpolation rules to estimate the start and end of episodes.

**Can I check if my ANC data is reliable for analysis?**
Yes, you can use the validate_measurement_continuity tool to see if your measurements are dense enough for reliable interpolation.

**What clients can I use with this MCP?**
You can use this MCP with any compatible client like Claude, Cursor, Windsurf, or VS Code.

**Can I filter for only severe neutropenia episodes?**
Yes, the filter_episodes_by_severity tool allows you to isolate episodes that meet a minimum severity threshold.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you, so it is ready to use as soon as you connect your client.

**How does the tool handle gaps in laboratory data?**
The engine uses the `maxMissingInterval` parameter. If the gap between two ANC measurements exceeds this limit, the data is considered discontinuous and the episode status may be marked as censored.

**Can I filter results to see only severe neutropenia episodes?**
Yes, you can use the `filter_episodes_by_severity` tool to isolate episodes that meet a specific minimum ANC threshold.

**What is considered 'censored' in the results?**
Censoring occurs if an episode is still active when the observation window ends, or if a gap in measurements exceeds the allowed interval.
