Research & Analysis
All Platforms

Extract Events V1

LangChain Hub prompt: foundation29/extract_events_v1

A
alphaquery
·May 3, 2026·
6,040 0 50
$7.99
Prompt
336 words

Your task is to analyze the following question and extract NEW medical insights or events specific to the patient.

CRITICAL DUPLICATE CHECK:

Before returning ANY event, you MUST check the "Previously Extracted Insights" list below.

  • If an event with the SAME DATE and SAME TYPE (key) already exists → DO NOT include it
  • If the event description is very similar to an existing one (even in different words/language) → DO NOT include it
  • Only return genuinely NEW events that are NOT already saved
  • When in doubt, DO NOT include the event (prefer false negatives over duplicates)

EXTRACTION RULES:

  • Extract patient-specific information (NOT generic medical content from studies/trials)
  • Extract life events relevant to health: smoking, drinking, exercise, diet, work, etc.
  • Extract BOTH past events AND future appointments/plans
  • DO NOT extract events that are simply being mentioned or referenced from context

EVENT TYPES (key field):

  • diagnosis - Medical diagnoses, conditions
  • symptom - Symptoms reported by patient
  • medication - Medications, dosage changes
  • treatment - Treatments, therapies, procedures
  • test - Lab tests, medical exams, imaging
  • appointment - Future or past medical appointments, consultations
  • activity - Exercise, lifestyle activities
  • reminder - General reminders, tasks to do
  • other - Other relevant patient information
  • null - Non-medical life events

DATE HANDLING:

  • TODAY'S DATE: {dayOfWeek}, {isoDate}
  • Past events: Use exact date if mentioned, otherwise 'unknown'
  • Future events (appointments): Calculate date from context (e.g., "tomorrow" = tomorrow's date, "next Monday" = calculate)
  • Relative dates: "yesterday", "last week", "3 days ago" → calculate ISO date

OUTPUT FORMAT (valid JSON array):

[ ⟨ "insight": "Brief description of the event", "date": "YYYY-MM-DD or 'unknown'", "present": true/false (is this still relevant/active?), "key": "diagnosis|symptom|medication|treatment|test|appointment|activity|reminder|other|null" ⟩ ]

If no NEW events found (or all are duplicates), return: []


User's Question: {questionText}


Previously Extracted Insights (ALREADY SAVED - DO NOT DUPLICATE): {events}


NEW INSIGHTS ONLY (return [] if none are truly new):

This prompt contains variables shown as ⟨variable_name⟩. Replace them with your own values before using.

How to Use

Use with LangChain: hub.pull("foundation29/extract_events_v1")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Research & Analysis

View All
Research & Analysis
Universal

My Blueprint

Unlock the secrets of your life’s purpose and potential. Discover your Life Path, Destiny, and hidden strengths, overcome challenges, and align with your true calling. This detailed analysis will give you insights into your personality, relationships, and career, helping you make empowered decisions and live your most authentic life. Ready to explore the path the universe has laid out for you?

A
axiomprompts$5.99
476 482
Research & Analysis
ChatGPTClaudeGemini

Formal Risk Assessment Framework

Get a comprehensive risk assessment across 5 categories with likelihood/impact ratings and mitigation strategies — plus a detailed plan for the highest-priority risk.

A
aiscribe$3.99
189 2,200
Research & Analysis
ChatGPTClaudeGemini

Data Findings to Business Insights Translator

Translate statistical findings into executive-ready business insights with plain-English summaries, action items, and visualization recommendations.

C
clearframe$8.99
178 2,000
Research & Analysis
Universal

Make the Best Life Decisions

Not sure wether you should make that big decision? Use this prompt to ask ChatGPT

S
spectrumtextFree
83 92
Research & Analysis
Universal

Find your dream career! 🚀

🌟 Unleash Your True Potential: Discover Your Perfect Vocation with your personal Career Coach 🌟 Feeling stuck in your current role? Uncertain about your career path? Let's unlock your true purpose together! I'm your personal coach, a highly experienced life and career coach with a track record of helping people just like you find their true vocation. My empathetic approach and deep understanding of human nature will put you at ease while we explore your goals, desires, and potential. Together, we'll create a personalized report that empowers you to make confident choices for your future. 🔑 What you'll experience: A compassionate coaching approach that will help you understand your unique situation Sensitive, revealing questions that build a complete profile of your personality and context Insights that lead to significant, positive, and long-lasting changes 🌈 Your outcome: A clear understanding of the perfect vocation for you Enhanced self-awareness and confidence in your professio

L
layerprompt$7.99
440 452
Research & Analysis
ChatGPTClaudeGemini

User Research Insight Synthesizer

Transform messy user research data into structured themes, evidence-backed insights, priority rankings, and specific product recommendations.

M
mindmapai$8.99
167 1,900