Skip to main content

Virtual Care Service — AI Integration

Status: populated Owner: TBD Last updated: 2026-04-18 Companion: Service Template · 03 platform-services

1. Active AI Calls

#PurposeAI Gateway endpointPrompt templateModerationHITL requiredPhase
1Speech-to-text (STT) transcription of session audioPOST /api/v1/ai/audio/transcriptions via ai-gateway-serviceN/A — raw audio streamInput: audio validation; Output: PHI screenYes — clinician reviews before chart entryPhase 2
2Visit summary draft from session transcriptPOST /api/v1/ai/completions via ai-gateway-servicevcare-session-summary-v1Input: PII screen; Output: clinical safety screenYes — mandatory clinician accept before chart finalizationPhase 2

2. STT Flow

3. Visit Summary Draft Flow

4. Moderation and Safety

GateWhere applied
Audio size limitInput: max 30 MB per chunk
PHI in logsAudio and transcript content must never appear in log lines
Clinical safety screenai-gateway applies content classifier to reject output with unsafe clinical recommendations
HITL mandatoryAI draft is never auto-pushed to chart; AcceptAiSummaryUseCase requires explicit accepted: true from authenticated clinician
Refused completionsIf ai-gateway returns refusal, clinician is informed; falls back to manual documentation

5. AI Provenance

Accepted AI-generated notes written to patient-chart-service include:

  • aiGenerated: true
  • aiModel: "<model-id from ai-gateway response>"
  • aiAcceptedBy: "<clinicianUserId>"
  • aiAcceptedAt: "<ISO timestamp>"

These fields are stored in the clinical note metadata and are visible in the audit trail.

6. Offline Behavior

When ai-gateway-service is unreachable (offline or degraded):

  • STT and summary features are unavailable; clinician is notified via UI.
  • Session can still proceed and end normally.
  • Manual documentation fallback is always available.
  • No AI features degrade silently; all failures surface explicit user-facing messages.