Skip to main content

Transcription

The Transcription struct holds the textual transcript of a consultation. This transcript can be generated based on speech recognition or manual input during the consultation.

Fields

  • transcript: (String?) - The full text of the transcription.

Example Usage

The transcript can be used for generating consultation records, enabling search within conversations, or for further analysis.

Example of Handling a Transcription

Once the transcription is retrieved, it can be printed or processed for use in records or reports.

// Function to handle a transcription
func handleTranscription(transcription: Transcription) {
if let transcriptText = transcription.transcript {
print("Consultation Transcription: \(transcriptText)")
} else {
print("No transcription available.")
}
}

// Example transcription usage
let transcription = Transcription(transcript: "Patient reported mild chest pain and shortness of breath.")
handleTranscription(transcription: transcription)