/abridge-pack:abridge-upgrade-migrationfrom abridge-pack
Plans and executes Abridge API version upgrades and EHR system migrations with zero-downtime canary rollouts and rollback procedures.
Ships in abridge-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Procedures for upgrading Abridge API integrations and migrating between EHR systems. Healthcare migrations are high-risk — clinical documentation cannot have gaps.
| Scenario | Complexity | Downtime | Risk |
|---|---|---|---|
| API version bump (v1 → v2) | Medium | Zero (dual-version) | Low |
| EHR migration (Epic → Athena) | High | Planned window | High |
| New specialty onboarding | Low | Zero | Low |
| Note template changes | Medium | Zero | Medium |
| Multi-site rollout | High | Per-site windows | Medium |
// src/migration/api-version-adapter.ts
// Dual-version adapter for zero-downtime API upgrades
interface ApiVersionConfig {
v1BaseUrl: string; // Current production
v2BaseUrl: string; // New version (canary)
canaryPercent: number; // Percentage of traffic to v2
}
class AbridgeVersionAdapter {
constructor(private config: ApiVersionConfig) {}
getBaseUrl(): string {
// Gradual canary rollout
const useV2 = Math.random() * 100 < this.config.canaryPercent;
return useV2 ? this.config.v2BaseUrl : this.config.v1BaseUrl;
}
// Map v1 response to v2 format (or vice versa)
normalizeNoteResponse(response: any, version: 'v1' | 'v2'): any {
if (version === 'v1') {
return {
...response,
// v2 adds quality_metrics — provide defaults for v1
quality_metrics: response.quality_metrics || {
confidence_score: response.confidence || 0,
completeness_score: 0,
coding_accuracy: 0,
},
};
}
return response;
}
}
// src/migration/ehr-migration.ts
interface EhrMigrationPlan {
sourceEhr: 'epic' | 'athena' | 'cerner' | 'eclinicalworks';
targetEhr: 'epic' | 'athena' | 'cerner' | 'eclinicalworks';
migrationDate: Date;
providerCount: number;
steps: MigrationStep[];
}
interface MigrationStep {
order: number;
name: string;
description: string;
rollbackable: boolean;
estimatedMinutes: number;
}
function generateMigrationPlan(source: string, target: string): EhrMigrationPlan {
return {
sourceEhr: source as any,
targetEhr: target as any,
migrationDate: new Date(),
providerCount: 0, // Set per org
steps: [
{ order: 1, name: 'Freeze new enrollments', description: 'Stop new provider enrollments on source EHR', rollbackable: true, estimatedMinutes: 5 },
{ order: 2, name: 'Export note templates', description: 'Export all custom note templates and SmartPhrases', rollbackable: true, estimatedMinutes: 30 },
{ order: 3, name: 'Configure target EHR', description: 'Set up FHIR endpoints and OAuth for target EHR', rollbackable: true, estimatedMinutes: 60 },
{ order: 4, name: 'Parallel run', description: 'Run both EHRs for 1 week — compare note output', rollbackable: true, estimatedMinutes: 10080 },
{ order: 5, name: 'Provider re-enrollment', description: 'Re-enroll providers on target EHR', rollbackable: true, estimatedMinutes: 120 },
{ order: 6, name: 'Cutover', description: 'Switch primary EHR integration to target', rollbackable: true, estimatedMinutes: 15 },
{ order: 7, name: 'Decommission source', description: 'Disable source EHR integration after 30-day soak', rollbackable: false, estimatedMinutes: 30 },
],
};
}
// src/migration/template-migration.ts
interface NoteTemplate {
id: string;
name: string;
specialty: string;
sections: string[];
smartPhrases: Record<string, string>; // Epic-specific
}
async function migrateTemplates(
sourceApi: any,
targetApi: any,
): Promise<{ migrated: number; failed: string[] }> {
const { data: templates } = await sourceApi.get('/note-templates');
const failed: string[] = [];
let migrated = 0;
for (const template of templates) {
try {
// Remove EHR-specific fields
const { smartPhrases, ...portable } = template;
await targetApi.post('/note-templates', {
...portable,
// Map SmartPhrases to target EHR equivalent if applicable
});
migrated++;
} catch (err) {
failed.push(template.id);
}
}
return { migrated, failed };
}
#!/bin/bash
# scripts/abridge-migration-rollback.sh
echo "=== Migration Rollback ==="
echo "Step 1: Revert FHIR endpoint to source EHR"
echo "Step 2: Re-enable source EHR Abridge module"
echo "Step 3: Notify providers of rollback"
echo "Step 4: Verify note generation on source EHR"
echo "=== Rollback Complete ==="
| Error | Cause | Solution |
|---|---|---|
| Template incompatible | EHR-specific fields | Strip EHR-specific data before migration |
| Provider enrollment fails | Credentials not migrated | Re-issue provider credentials on target |
| Note format mismatch | Different FHIR profiles | Map FHIR profiles between EHR systems |
For CI/CD pipeline setup, see abridge-ci-integration.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
18 skills in this plugin
/abridge-ci-integrationConfigure CI/CD pipeline for Abridge clinical AI integrations with GitHub Actions.
Use when setting up automated testing, FHIR validation, HIPAA compliance checks,
or deployment pipelines for healthcare AI applications.
Trigger: "abridge CI", "abridge GitHub Actions", "abridge pipeline",
"abridge automated testing", "abridge CI/CD".
/abridge-common-errorsDiagnose and fix common Abridge clinical AI integration errors.
Use when encountering EHR connectivity failures, note generation errors,
audio streaming issues, or FHIR validation problems with Abridge.
Trigger: "abridge error", "abridge not working", "abridge debug",
"fix abridge issue", "abridge troubleshoot".
/abridge-core-workflow-aImplement Abridge ambient clinical documentation capture-to-note pipeline.
Use when building the primary encounter workflow: audio capture, real-time
transcription, AI note generation, and EHR note insertion.
Trigger: "abridge clinical workflow", "abridge encounter pipeline",
"ambient documentation workflow", "abridge note generation".
/abridge-core-workflow-bImplement Abridge patient-facing documentation and after-visit summary generation.
Use when building patient portal integration, generating plain-language summaries,
multi-language translations, or after-visit instructions from clinical encounters.
Trigger: "abridge patient summary", "after-visit summary", "patient portal abridge",
"abridge patient-facing", "abridge multilingual".
/abridge-cost-tuningOptimize Abridge clinical AI costs through tier selection, session management,
and usage monitoring for healthcare organizations.
Use when analyzing Abridge billing, optimizing encounter volume,
or right-sizing your Abridge contract for provider count.
Trigger: "abridge cost", "abridge pricing", "abridge billing",
"abridge budget", "abridge ROI".
/abridge-debug-bundleCollect Abridge debug evidence for support tickets and troubleshooting.
Use when filing Abridge support tickets, collecting diagnostic data,
or preparing evidence for escalation to Abridge engineering.
Trigger: "abridge debug bundle", "abridge support ticket",
"abridge diagnostics", "collect abridge evidence".
npx claudepluginhub flight505/skill-forge --plugin abridge-packOther plugins' skills for the same job