🤖 AI Summary
This study addresses the lack of standardized and automated case planning processes in medical social work, which currently relies heavily on individual practitioner experience and suffers from inefficiency. The authors propose a model-agnostic, open-source large language model (LLM) workflow that systematically integrates established social work practice frameworks into LLM prompt design for the first time. The approach decomposes case planning into six sequential stages—assessment, problem analysis, goal setting, intervention planning, risk anticipation, and outcome evaluation—and combines structured client profiling with staged prompt engineering to generate professional, reviewable draft assessment forms and service plans. Designed to be compatible across multiple LLM platforms, the framework ensures cross-model reproducibility, and its code has been publicly released to provide a standardized tool for advancing intelligent support in medical social work.
📝 Abstract
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.