// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub(crate) fn medical_scribe_encryption_settings_correct_errors(
    mut builder: crate::types::builders::MedicalScribeEncryptionSettingsBuilder,
) -> crate::types::builders::MedicalScribeEncryptionSettingsBuilder {
    if builder.kms_key_id.is_none() {
        builder.kms_key_id = Some(Default::default())
    }
    builder
}

pub(crate) fn medical_scribe_post_stream_analytics_settings_correct_errors(
    mut builder: crate::types::builders::MedicalScribePostStreamAnalyticsSettingsBuilder,
) -> crate::types::builders::MedicalScribePostStreamAnalyticsSettingsBuilder {
    if builder.clinical_note_generation_settings.is_none() {
        builder.clinical_note_generation_settings = {
            let builder = crate::types::builders::ClinicalNoteGenerationSettingsBuilder::default();
            crate::serde_util::clinical_note_generation_settings_correct_errors(builder).build().ok()
        }
    }
    builder
}

pub(crate) fn clinical_note_generation_settings_correct_errors(
    mut builder: crate::types::builders::ClinicalNoteGenerationSettingsBuilder,
) -> crate::types::builders::ClinicalNoteGenerationSettingsBuilder {
    if builder.output_bucket_name.is_none() {
        builder.output_bucket_name = Some(Default::default())
    }
    builder
}

pub(crate) fn medical_scribe_channel_definition_correct_errors(
    mut builder: crate::types::builders::MedicalScribeChannelDefinitionBuilder,
) -> crate::types::builders::MedicalScribeChannelDefinitionBuilder {
    if builder.channel_id.is_none() {
        builder.channel_id = Some(Default::default())
    }
    if builder.participant_role.is_none() {
        builder.participant_role = "no value was set".parse::<crate::types::MedicalScribeParticipantRole>().ok()
    }
    builder
}
