A hallucination-safe, enterprise-oriented AI system that detects clinical narrative drift across hospital roles (physicians, nurses, allied health). This demonstration uses synthetic data; the system is designed to integrate with hospital information systems like Oracle Health (Cerner), Epic, and other EHR platforms.
Through personal experience dealing with doctors, nurses, and specialists, I've witnessed a recurring problem: all parties don't have the same information, aren't on the same page, or don't consult with each other before speaking with patients or their families. This has led to miscommunication between staff members and confusion for patients and families.
My family members who work in healthcare have repeatedly expressed frustration with this issue - a problem that has persisted without a clear solution. In busy hospital environments, different clinicians document patient status at different times, and without a system to catch inconsistencies, critical information gaps can go unnoticed until they cause problems.
The Real-World Impact:
Care Sync was built to solve this problem by analyzing and alerting on notes as they come in, in real-time. The system automatically detects when different clinicians document conflicting information or when critical updates aren't acknowledged across the care team.
Beyond Communication: By providing real-time alerts and creating an audit trail of documentation inconsistencies, Care Sync helps reduce hospital mishaps, supports accountability, and can even help prevent malpractice by ensuring all care team members have access to the same information and are aware of contradictions before they impact patient care.
Care Sync is an AI-powered clinical decision support system that analyzes and alerts on notes as they come in, in real-time. The system processes time-stamped clinical notes from multiple healthcare roles to detect documentation drift and contradictions as they occur. The system:
Important: This system does NOT perform diagnosis, prognosis, or treatment recommendations. It only flags documentation inconsistencies for clinical review.
Care Sync was built using a modern, scalable architecture:
Demonstration Dataset: This project uses a synthetic dataset structured as JSON with the following format:
{
"patients": [
{
"patient_id": "DX-401",
"patient_name": "Marcus Lee",
"mrn": "MRN-904112",
"admission_date": "2026-02-22",
"diagnosis": "...",
"notes": [
{
"note_id": "DX-401-n-001",
"timestamp": "2026-02-22T06:18:00",
"author_role": "ED_MD",
"note_text": "ED Provider Note: ..."
}
]
}
]
}Each note includes:
Real-World Integration: For production deployment, clinical notes from EHR systems (Oracle Health/Cerner, Epic, etc.) can be extracted and converted to this JSON format. EHR systems typically provide:
The system is designed to accept this standardized JSON format, making it EHR-agnostic as long as notes can be converted to the required structure with the essential fields (note_id, timestamp, author_role, note_text, patient_id).
The architecture is designed for enterprise deployment with:
The LLM prompt includes strict clinical guardrails to prevent false positives and ensure clinically meaningful alerts:
To prevent hallucination of note IDs and ensure accuracy:
response_format: { type: 'json_object' } to enforce structured output{ "alerts": [...] } format; treats other formats as failureEvery alert includes verbatim source quotes that are validated for accuracy:
source_quote is a verbatim substring of the actual note textMultiple layers of post-processing filters suppress false positives:
Result: These multi-layer constraints ensure that Care Sync generates only clinically meaningful, evidence-based alerts with verifiable source quotes, preventing hallucination and false positives while maintaining high sensitivity for true safety-relevant contradictions.
Through building Care Sync, I learned:
Challenge: Initial LLM prompts flagged too many false positives (e.g., "pain improved" vs "pain 2/10" was flagged as contradictory).
Solution: Added clinical guardrails to the prompt, post-processing filters to detect confirming patterns, and explicit rules about what constitutes a true contradiction vs. normal progression.
Challenge: LLM sometimes paraphrased or combined text from multiple sentences instead of using verbatim quotes.
Solution: Added strict quote validation that checks if source quotes are verbatim substrings of note text, with automatic correction when possible.
Challenge: LLM API calls are slow and expensive, and the system was re-analyzing on every page refresh.
Solution: Implemented multi-layer caching (localStorage, server-side in-memory cache) and change detection to only re-analyze when notes actually change.
Challenge: Determining appropriate severity levels (CRITICAL, HIGH, MEDIUM, LOW) based on clinical impact.
Solution: Defined clear severity rules (e.g., CRITICAL requires objective instability like SpO2 < 88, HR > 120, SBP < 90) and implemented post-processing to adjust severity based on clinical criteria.
Primary Use Case: Care Sync is designed to integrate with hospital information systems (HIS) and electronic health records (EHR) to provide real-time clinical decision support.
Integration Approach:
Note: This demonstration uses synthetic data to showcase functionality. In production, Care Sync would connect directly to hospital EHR systems to analyze real-time clinical documentation.
Care Sync aims to improve patient safety and care coordination by:
Identify documentation inconsistencies before they lead to adverse events or miscommunication
Help care teams reconcile conflicting documentation and align on patient status and care plans
Prevent discharge safety conflicts, unacknowledged deterioration, and treatment plan misalignments
Reduce time spent manually reviewing notes for inconsistencies and focus on patient care
Long-term Vision: Care Sync represents a step toward AI-assisted clinical decision support that enhances rather than replaces clinical judgment, helping healthcare teams provide safer, more coordinated care.
Accountability & Risk Reduction: By creating an audit trail of documentation inconsistencies and alerting care teams in real-time, Care Sync helps:
Target 3.8: Achieve universal health coverage, including financial risk protection, access to quality essential health-care services, and access to safe, effective, quality, and affordable essential medicines and vaccines for all.
How Care Sync Contributes:
Additional Alignment: Care Sync also supports SDG 9 (Industry, Innovation, and Infrastructure) by demonstrating how AI can be safely and effectively integrated into healthcare systems to improve infrastructure and service delivery.
TypeScript, JavaScript, React, Next.js 14
OpenAI API (GPT-5.1), Vercel Serverless Functions
Vercel
Axios, OpenAI SDK
Built for IBM Z Sheridan – BYTE: Enterprise AI Hackathon (TMU Tech Week 2026)
This project demonstrates enterprise-grade AI integration in healthcare, focusing on safety, traceability, and clinical utility.