MedSWFlow: An Open-Source LLM Workflow for Drafting Medical Social Work Case Plans
This work provides a standardized, open-source framework for automating case-plan drafting in medical social work, but the results are preliminary and intended only as practitioner-reviewed drafts.
MedSWFlow introduces an open-source LLM workflow that drafts medical social work case plans by structuring the process into six stages, enabling reproducible generation of assessment forms and service plans across different LLM providers.
We present MedSWFlow, an open-source, model-agnostic LLM workflow for drafting medical social work case plans. The framework translates professional case-planning tasks into six stages: assessment, problem analysis, goal setting, intervention planning, risk anticipation, and planned effect evaluation. Drawing on established social work and behavioral frameworks, MedSWFlow standardizes case inputs, builds structured case profiles, and generates reviewable assessment forms and service plans through staged prompting. The system is released as an open-source research framework for reproducible case-plan generation across LLM providers. Outputs are intended as practitioner-reviewed drafts rather than final service decisions. Source code: https://github.com/santhiyacw-droid/MedSWFlow/tree/main.