Skip to content

StartMedicalScribeJob

Source: src/AWS/Transcribe/StartMedicalScribeJob.ts

Runtime binding for transcribe:StartMedicalScribeJob — start an AWS HealthScribe job that transcribes a patient-clinician conversation and generates preliminary clinical notes.

The binding is constructed with the data-access role (the IAM role Amazon Transcribe assumes to read your Amazon S3 data and write results; its trust policy must allow transcribe.amazonaws.com). The role’s ARN is injected as DataAccessRoleArn on every runtime request and the host is granted iam:PassRole on it alongside transcribe:StartMedicalScribeJob (which has no resource-level IAM).

// init — bind the Transcribe data-access role
const startMedicalScribeJob = yield* AWS.Transcribe.StartMedicalScribeJob(dataAccessRole);
// runtime
const { MedicalScribeJob } = yield* startMedicalScribeJob({
MedicalScribeJobName: "my-visit",
Media: { MediaFileUri: "s3://my-bucket/visits/visit.wav" },
OutputBucketName: "my-output-bucket",
Settings: { ShowSpeakerLabels: true, MaxSpeakerLabels: 2 },
});