Back to prompt library
Build LangGraph State Machine for EHR Eligibility
Linked challenge: Anti-Inflammatory Cardiovascular Trial Matching with LangChain and LangGraph
Prompt source
implementation1 lines1 sectionsNo variables0 checklist items
Implement a Python script defining a LangGraph `StateGraph` with state key `patient_data`. Node 1 should check biomarker thresholds (hsCRP > 2.0, IL-6 > 3.0), Node 2 should check comorbidities, and Node 3 outputs final match status.