• METRIC
  • TREND
  • REPORT
  • HUMAN

How to track medication persistence with your agent

Connect your patient data to your AI client to monitor therapy duration. Once connected, your agent handles the math for you.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How do I track medication persistence with my AI?

Your agent uses the get_persistence_days tool to calculate the exact number of days a patient has remained on a specific therapy. This lets you spot drop-off points without manual data entry. You'll see the specific outcomes and workflow below.

Where the data lands.

The outcomes of your analysis.

Your agent processes the raw therapy logs and delivers these specific insights.

METRIC

Calculated duration

Your agent finds the exact day count for any patient. You get a clean number instead of a raw log.

TREND

Drop-off identification

Your agent compares different therapy windows to see where patients stop taking their meds. This highlights which regimens have the lowest retention.

REPORT

Patient summaries

Your agent drafts a summary of how long each patient has stayed compliant. You can use these to prep for clinical reviews.

HUMAN

Clinical intervention

Your agent flags patients with low persistence scores. You decide which patients need a phone call or a dosage adjustment.

The workflow

What your agent does when the data arrives.

Your agent handles the heavy lifting of calculating timeframes so you can focus on patient care.

  1. Fetch duration

    Your agent pulls the specific number of days a patient has been on a therapy from your records.

    get_persistence_days
  2. Analyze patterns

    Your agent looks at the persistence numbers across your patient list to find common trends.

    get_persistence_days
  3. Identify risks

    Your agent flags patients whose persistence days fall below a specific threshold you set.

    get_persistence_days
  4. Summarize findings

    Your agent organizes the persistence data into a readable format for your review.

    get_persistence_days

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute Medication Adherence Score tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to trigger the persistence calculations immediately.

Starting points

Replace the bracketed text with your actual patient IDs or therapy names.

Medication Adherence Score Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_XakEtWCbmdNubXQ6It1DBrg3PPkLSkRx4Rss62w9/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, Medication Adherence Score capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "medication-adherence-score-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_XakEtWCbmdNubXQ6It1DBrg3PPkLSkRx4Rss62w9/mcp"
    }
  }
}
Copy into chat04
  • 01

    How many days has patient ID 8829 been on their current therapy?

  • 02

    Calculate the persistence days for all patients on the Metformin regimen.

  • 03

    Show me a list of patients who have been on their medication for less than 30 days.

  • 04

    Summarize the average persistence days for the recent cohort in my patient sheet.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Medication Adherence Score once, then ask.

Click the link to connect your data. Your credentials stay encrypted, and you can start asking questions in your preferred AI client right away.

Connect Medication Adherence Score to your agent

FAQ

How this task behaves.

  • 01

    Can your agent change my patient records?

    No. Your agent can only read data to calculate persistence. It cannot edit or delete your original patient files.

  • 02

    Does your agent automatically contact patients when persistence is low?

    No. Your agent only identifies the patients. You must be the one to initiate any contact or clinical action.

  • 03

    How does your agent know when a patient stopped their medication?

    It uses the get_persistence_days tool to look at the timestamps in your therapy logs.

  • 04

    Can I use this with Claude or Cursor?

    Yes. Any MCP-compatible client will work once you have connected the connector.

  • 05

    Do I need to manually calculate the days myself?

    No. Your agent performs the calculation for you using the provided tool.

  • More questions about Medication Adherence Score? The Connector page answers them. See everything the Medication Adherence Score Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from Medication Adherence Score to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    Medication Adherence Score plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect Medication Adherence Score to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.