Execute complex migrations including legacy CDS system transitions, EHR integrations (Epic/Cerner), and multi-site deployments for OpenEvidence clinical AI.
| Scenario | Complexity | Downtime | Duration |
|---|---|---|---|
| Legacy CDS to OpenEvidence | High | 4-8 hours | 2-4 weeks |
| Add EHR Integration | Medium | None | 1-2 weeks |
| Multi-site Expansion | Medium | None | 1-2 weeks |
| API Version Upgrade | Low | None | 1-3 days |
Audit current usage (daily queries, peak rate, unique users), map features, identify integrations (EHR, SSO, audit), and determine data migration scope (saved searches, preferences, audit logs -- required for HIPAA).
Create ParallelRunner that queries OpenEvidence as primary, optionally queries legacy for comparison (configurable ratio). Log comparison metrics (response time, confidence, citation count) without PHI. Auto-fallback to legacy on OpenEvidence failure.
Run migration jobs for users (with role mapping), user preferences, and audit logs (HIPAA required). Use upsert for idempotency, batch processing for audit logs (10k per batch), and progress tracking.
Configure SMART on FHIR with appropriate scopes. Implement CDS Hooks endpoints for patient-view and medication-prescribe. Extract conditions and medications from FHIR prefetch data for OpenEvidence queries.
Define per-site configuration: siteId, region, OpenEvidence orgId, EHR system, feature flags, and quotas. Support different tiers per site.
Follow migration checklist: pre-migration (approvals, backups, test env), during (parallel run, data migration, EHR testing), post (decommission legacy, train staff, document lessons).
| Migration Issue | Detection | Resolution |
|---|---|---|
| Data corruption | Validation checks | Restore from backup |
| SSO failure | Auth errors | Verify IdP configuration |
| EHR integration fails | CDS Hook errors | Check FHIR endpoints |
| Performance regression | Metrics comparison | Optimize or rollback |
{
"services": [
{ "id": "openevidence-clinical-decision-support", "hook": "patient-view" },
{ "id": "openevidence-drug-interaction", "hook": "medication-prescribe" }
]
}
See detailed implementation for advanced patterns.