All notable changes to Protocol Guide will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Issue: Generic queries like "pediatric cardiac arrest" returned protocols from other CA counties (Marin, Napa, Sacramento) instead of LA County protocols, breaking the ImageTrend integration demo.
Root Cause: LA County protocol chunks in database were missing agency_id values (NULL), causing the search filtering to fail.
Fix:
- Added data migration script to properly map LA County chunks to agency_id
- Updated 401 LA County protocol chunks with correct agency_id linkage
- Verified county filtering now works correctly in search results
Impact: 🎯 CRITICAL - Unblocks ImageTrend demo and ensures LA County users get relevant results
Issue: E2E tests and local development failing with Expo Router bundling error:
Error: node_modules\expo-router\_ctx.web.js:Invalid call at line 2: process.env.EXPO_ROUTER_APP_ROOT
First argument of `require.context` should be a string denoting the directory to require.
Root Cause: Missing EXPO_ROUTER_APP_ROOT environment variable configuration.
Fix:
- Added
EXPO_ROUTER_APP_ROOT=./appto.env.example - Updated documentation for future developers
Impact: ✅ HIGH - Fixes E2E test failures and improves developer experience
Feature: New protocol comparison functionality for differential diagnosis
Implementation:
- Added
/server/routers/comparison.tswith comprehensive comparison logic - Medication extraction with dose/route parsing for 25+ common EMS drugs
- Contraindication detection and key point extraction
- Side-by-side protocol comparison with variation analysis
- Related conditions mapping for differential diagnosis
Benefits:
- Helps paramedics compare treatment approaches across agencies
- Supports clinical decision-making for similar conditions
- Enhances protocol learning and training capabilities
Impact: 🌟 NEW FEATURE - Addresses medical director feedback for clinical decision support
Feature: Quick reference cards for high-frequency protocols
Status: Development in progress on feature/protocol-comparison-and-quick-ref branch
Improvements:
- Optimized E2E test timeouts and configurations
- Fixed visual regression test performance issues
- Improved county-filter test reliability
- Working toward >90% test coverage (from 86%)
Impact: 🧪 QUALITY - More reliable CI/CD pipeline and better code coverage
Context: Autonomous overnight development session while primary developer sleeping
Sub-Agents Deployed:
overnight-pg-county-filter- Fixed critical county filter database issueovernight-pg-test-improvements- Enhanced test coverage and reliabilityovernight-pg-features- Implemented protocol comparison toolovernight-octagon-research- Market research for swing trading opportunities
Key Outcomes:
- ✅ ImageTrend demo unblocked (county filter fix)
- ✅ Developer experience improved (Expo Router fix)
- 🌟 New clinical features added (protocol comparison)
- 📈 Test quality enhanced (coverage improvements)
- 💼 Financial research completed (trading opportunities identified)
- All tests passing (unit, integration, E2E)
- Visual regression tests pass
- Performance benchmarks within targets
- Documentation updated
- CHANGELOG.md updated
- Security scan completed
- Sentry error rates within normal range
- Production: https://protocol-guide.com (Netlify + Railway)
- Staging: Auto-deploy from
mainbranch - Development: Local development environment
- Revert problematic commit
- Trigger manual deployment of previous version
- Update status page if user-facing impact
- Post-mortem for critical issues
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: support@protocol-guide.com
- Developer: Tanner Osterkamp (GitHub)