# ZSFG Uses Generative AI to Identify Social Needs and Match Local Services

> By turning social needs documented across EHRs into actionable assessments and referrals, ZSFG aims to reduce manual chart review and connect more patients with community services. The initiative pairs AI-generated recommendations with social-worker oversight.

**Source**: hcinnovationgroup.com | **Published**: 2026-12-05 | **Type**: case_study

## Key Facts

- Only 1.6% of Medicare FFS beneficiaries had social-needs codes, exposing a major data gap AI can address.
- ZSFG’s engine covers 22 needs domains and reads EHRs nightly, scaling social-work chart review.
- Local matching beat larger proprietary platforms: 230 resources are updated weekly to reflect changing rules.
- About 20 referral forms are automated, easing administrative work; accuracy validation is still underway.
- Simulations suggest day-one social-work visits can cut stays by over 3 days for select high-risk patients.

## Summary

\## Summary
Zuckerberg San Francisco General Hospital (ZSFG) built a generative AI engine to find social and behavioral needs in patient records and help connect patients with local services. The system reviews structured and unstructured EHR data across 22 domains, while social workers check matches and recommendations before they reach patients; referral-form support is also in use, with about 20 forms built.

\## Background
ZSFG is a hospital within the University of California, San Francisco system. Its PROSPECT Lab, embedded in the hospital’s Kaizen Promotion Office, builds and deploys custom AI tools. The team found that social needs often affected medical outcomes, but structured screening captured little: only 1.6% of Medicare fee-for-service beneficiaries had any social needs codes documented. At ZSFG, social workers spent hundreds of hours a week reviewing unstructured records to identify needs.

\## Challenge
Structured screens were not effective at identifying social needs, while relevant information was scattered through clinical notes and recorded inconsistently. ZSFG also needed to connect identified needs to appropriate local services, whose eligibility rules, languages, and locations vary and change over time, and to reduce the administrative work involved in referrals.

\## Solution
ZSFG co-designed and iteratively refined a social needs extraction engine with social workers, training it to identify needs in the way they review charts. The generative AI model scans structured and unstructured data across the medical record nightly and identifies needs across 22 social and behavioral domains. Its assessment includes source citations, a risk level, recommendations, and gaps where the record lacks enough information.

For resource matching, the team partnered with the City of San Francisco and a local nonprofit that maintains a weekly updated directory of 230 local social needs resources. AI matches patients to programs based on eligibility, language, and location. A social worker reviews every match and output before it is shared with a patient.

The system can also fill out and transmit referral forms. About 20 forms have been built, with more being added as social workers request them. The team is developing AI-supported follow-up to contact patients and community-based organizations and determine whether referrals led to interventions. Some parts of the system are deployed; others remain in development.

\## Results
The engine has been expanded to cover 22 social and behavioral needs domains. Agreement was high across 15 validated attributes, though the source does not provide a numerical agreement rate. About 20 referral forms are built, and a validation study is underway to compare AI-completed forms with forms completed by social workers.

In a simulation of selected high-risk inpatients receiving social worker visits on the first day of admission, the team found that hospital flow could improve, with length of stay reduced by over three days for certain patients. This was a simulated effect, not a reported result from a live intervention. ZSFG hopes to start a randomized controlled trial in February 2027.

\## Key Insights
- Social needs may be difficult to separate from medical outcomes, so identifying them can require reviewing the full record rather than relying on structured screening alone.
- Local knowledge matters in resource matching. ZSFG uses a frequently updated local directory and checks eligibility, language, and location.
- Human review remains part of the workflow: social workers approve matches and outputs before patients see them.
- Automating form completion can reduce administrative work, but the team is still validating how well the AI completes forms.
- Closing the referral loop is harder than drafting outreach; it also requires a system that gets patients and community organizations to respond.

\## Customer Testimonial
“We found that AI can reliably read clinical notes just as well as highly trained social workers. The same tool can help social workers act through matching forms and follow-ups. And simulation has actually helped us to simulate candidate interventions, so that when we actually do these interventions in the real world, we are picking interventions that are most likely to succeed.” — Lucas Zier, M.D., M.S., founder and director of the PROSPECT Lab at ZSFG and associate professor of clinical medicine at UCSF

## Entities

- **Companies**: OpenAI
- **Products**: Epic
- **Technologies**: Generative AI, AI-based social needs extraction engine, Predictive risk model, Social needs resource-matching system, AI-supported referral follow-up system, Simulation pipeline
- **People**: Lucas Zier, David Raths
- **Organizations**: Zuckerberg San Francisco General Hospital (ZSFG), UCSF, PROSPECT Lab, Kaizen Promotion Office, SIREN, Centers for Medicare & Medicaid Services (CMS), City of San Francisco, Community-based organizations (CBOs)

## Key Concepts

AI extraction of social and behavioral needs from structured and unstructured EHR data, Co-design and validation with social workers, Human review of AI-generated assessments and resource matches, Matching patients to local resources using eligibility, language, and location, Automating social-needs referral forms, Closed-loop referrals and follow-up to assess intervention outcomes, Simulation of social-needs interventions and their effects on hospital operations, Importance of local knowledge and validation

## Definitions

- **Social needs extraction engine**: A generative AI system that reviews structured and unstructured medical-record data to identify patients’ social and behavioral needs.
- **Human-in-the-loop system**: A system in which a person—in this case, a social worker—reviews AI-generated matches and outputs before they are shared with patients.
- **Closed-loop referral**: A referral process that follows up with patients or community organizations to determine whether a referral led to a successful intervention.
- **Social needs resource directory**: A locally maintained compendium of available social-service programs, including information used to match patients by eligibility, language, and location.
- **Structured and unstructured EHR data**: Structured data are organized fields such as codes or screening responses; unstructured data include narrative clinical notes and other free-text records.

## Use Cases

- Identifying social and behavioral needs from patients’ medical records
- Recommending local housing, food, and transportation programs
- Filling out and transmitting social-needs referral forms
- Drafting outreach to patients and community-based organizations to check referral outcomes
- Simulating the effects of inpatient social-work interventions, such as earlier assessment for high-risk patients

## Frequently Asked Questions

**What does ZSFG’s AI system do?**

It reviews structured and unstructured EHR data to identify social and behavioral needs across 22 domains. It can also support resource matching, referral-form completion, and follow-up workflows.

**How are patients matched with social-service resources?**

The system uses a local directory of available programs and considers eligibility, language, and location. A social worker reviews every match and output before a recommendation is shown to a patient.

**Can the system automate social-needs referrals?**

It can help complete and transmit referral forms, with about 20 forms built so far and more being developed. ZSFG is also validating how accurately the AI completes forms compared with social workers.

**What are the main challenges to implementing the system?**

Social-needs identification must align with local definitions and be validated, while resource matching depends on current local knowledge. Closed-loop referrals are also difficult because getting patients and organizations to respond requires a workable outreach platform.

**How might AI-supported social interventions affect hospital operations?**

ZSFG has used simulation to examine candidate interventions during hospitalization. In selected high-risk patients, simulations suggested that seeing a social worker on the first day could reduce length of stay by more than three days.

## Links

- [Read on Welcome.AI](https://welcome.ai/content/zsfg-uses-generative-ai-to-identify-social-needs-and-match-local-services)
- [Original source](https://www.hcinnovationgroup.com/analytics-ai/generative-ai/article/55423300/deploying-an-ai-based-social-needs-extraction-engine)

---

Source: Welcome.AI | https://welcome.ai/content/zsfg-uses-generative-ai-to-identify-social-needs-and-match-local-services