OnInvoxAuraClinicalNoteFinished


Triggered when the full processing of a clinical note in Invox Aura is complete.

Payload

{
  "eventName": "OnInvoxAuraClinicalNoteFinished",
  "organizationId": "org-789",
  "userId": "user-456",
  "timestamp": "2026-03-31T19:06:58.667Z",
  "consultationSessionId": "medical-consultation-u1234-1234567890-abc123",
  "patientId": "PAT-12345",
  "clinicalNoteId": "note-123",
  "language": "ES",
  "metadata": {
    "id": "note-123",
    "organizationId": "org-789",
    "userId": "user-456",
    "processingStatus": "COMPLETED",
    "createdAt": 1738670000000,
    "updatedAt": 1738670400000,
    "summaryLanguage": "ES",
    "summaryFormat": "SOAP",
    "audioDuration": 330,
    "patientId": "PAT-12345",
    "consultationSessionId": "medical-consultation-u1234-1234567890-abc123",
    "isFavorite": false,
    "isFinished": true,
    "finishedAt": 1738670400000
  },
  "summary": "Full clinical note text...",
  "requestSignature": "<base64>"
}

Field description

FieldTypeRequiredDescription
eventNamestringYesAlways "OnInvoxAuraClinicalNoteFinished"
organizationIdstringYesOrganization that owns the clinical note
userIdstringYesUser that owns the clinical note
timestampstringYesISO 8601 UTC — time of delivery
consultationSessionIdstringNoConsultation session of the note, when it has one
patientIdstringNoPatient of the note, when it has one
clinicalNoteIdstringYesClinical note ID
languagestringYesLanguage of the summary
metadataobjectYesRecord of the clinical note; it can carry additional fields (see below)
summarystringYesText of the clinical note summary
requestSignaturestringNoHMAC-SHA256 in Base64. Present if the organization has credentials configured.

metadata structure

metadata is the record of the clinical note. It can carry additional fields, so do not reject a payload because it has a field that is not listed here.

interface ClinicalNoteRecord {
  id: string
  organizationId?: string
  userId?: string
  processingStatus: 'PENDING' | 'COMPLETED' | 'FAILED'
  createdAt: number
  updatedAt?: number
  summary?: string
  transcription?: ITranscriptionSegment[]
  vtt?: string
  errorMessage?: string
  audioDuration?: number
  deviceMetadata?: Record<string, unknown>
  patientId?: string
  isFavorite?: boolean
  isFinished?: boolean
  finishedAt?: number
  metadata?: Record<string, unknown>
  rating?: number
  summaryLanguage?: string
  summaryFormat?: string
  consultationSessionId?: string
  statsEmitted?: boolean
  summaryFieldRatings?: { fieldId: string; fieldName: string; rating: number | null }[] // null = unrated, 1 = positive, 0 = negative
}

Signature string

The metadata object is serialized as complete JSON. The fields are signed in the following order:

organizationId|userId|timestamp|consultationSessionId|patientId|clinicalNoteId|language|{"id":"...","processingStatus":"COMPLETED",...}|summary|API_KEY

The optional fields consultationSessionId and patientId are left out of the payload when they have no value. If either is missing, sign it as "" in its position.