Skip to main content

Transcription

The getTranscription function fetches the transcription for a specific consultation. The transcription is a text-based representation of the consultation, typically generated by speech recognition or manual input.

Parameters​

  • consultation_id: (int) - The ID of the consultation for which the transcription is being fetched.

Returns​

  • Future<Transcription>: A future that resolves with a Transcription object containing the text of the consultation.

Fields​

  • transcript: (String) - The full text of the consultation's transcription.

Example Usage​

ApiService apiService = ApiService();
final transcription = await apiService.getTranscription(12345);
print(transcription.transcript); // Output: "Patient reported mild chest pain and shortness of breath."