(
    diagnoses: List[dict],
    mappings: Dict[str, List[ObservationMapping]],
    case_attrs: CaseAttrs,
)
return get_case_block_kwargs_from_concepts(
        diagnoses,
        mappings,
        case_attrs,
        uuid_func=lambda diag: diag.get('codedAnswer', {}).get('uuid'),
        fallback_value_func=lambda diag: diag.get('codedAnswer', {}).get('name'),
    )
Iterate a list of Bahmni diagnoses, and return the ones mapped to
    case properties.
Iterate a list of Bahmni diagnoses, and return the ones mapped to
    case properties.
Iterate a list of Bahmni diagnoses and return the ones mapped to case properties .
def get_case_block_kwargs_from_bahmni_diagnoses(
    diagnoses: List[dict],
    mappings: Dict[str, List[ObservationMapping]],
    case_attrs: CaseAttrs,
) -> Tuple[dict, List[CaseBlock]]:
    """
    Iterate a list of Bahmni diagnoses, and return the ones mapped to
    case properties.
    """
    return get_case_block_kwargs_from_concepts(
        diagnoses,
        mappings,
        case_attrs,
        uuid_func=lambda diag: diag.get('codedAnswer', {}).get('uuid'),
        fallback_value_func=lambda diag: diag.get('codedAnswer', {}).get('name'),
    )
def get_case_block_kwargs_from_bahmni_diagnoses ( diagnoses : List [ dict ] , mappings : Dict [ str , List [ ObservationMapping ] ] , case_attrs : CaseAttrs , ) -> Tuple [ dict , List [ CaseBlock ] ] : return get_case_block_kwargs_from_concepts ( diagnoses , mappings , case_attrs , uuid_func = lambda diag : diag . get ( 'codedAnswer' , { } ) . get ( 'uuid' ) , fallback_value_func = lambda diag : diag . get ( 'codedAnswer' , { } ) . get ( 'name' ) , )