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 aTranscription
object containing the text of the consultation.
Fields
- transcript: (String) - The full text of the consultation's transcription.
Example Usage
final transcription = await getTranscription(12345);
print(transcription.transcript); // Output: "Patient reported mild chest pain and shortness of breath."