Skip to content

Transcribe Streaming  >  Structures  >  MedicalScribeChannelDefinition

MedicalScribeChannelDefinition

Structure Class

MedicalScribeChannelDefinition dataclass

Makes it possible to specify which speaker is on which channel. For example, if the clinician is the first participant to speak, you would set the ChannelId of the first ChannelDefinition in the list to 0 (to indicate the first channel) and ParticipantRole to CLINICIAN (to indicate that it's the clinician speaking). Then you would set the ChannelId of the second ChannelDefinition in the list to 1 (to indicate the second channel) and ParticipantRole to PATIENT (to indicate that it's the patient speaking).

If you don't specify a channel definition, HealthScribe will diarize the transcription and identify speaker roles for each speaker.

Attributes

channel_id class-attribute instance-attribute
channel_id: int = 0

Specify the audio channel you want to define.

participant_role instance-attribute
participant_role: MedicalScribeParticipantRole

Specify the participant that you want to flag. The allowed options are CLINICIAN and PATIENT.