scout/server/blueprints/variants/views.py
def evaluation(evaluation_id):
    """Show or delete an ACMG evaluation."""
    evaluation_obj = store.get_evaluation(evaluation_id)
    controllers.evaluation(store, evaluation_obj)
    if request.method == 'POST':
        link = url_for('.variant', institute_id=evaluation_obj['institute']['_id'],
                       case_name=evaluation_obj['case']['display_name'],
                       variant_id=evaluation_obj['variant_specific'])
        store.delete_evaluation(evaluation_obj)
        return redirect(link)
    return dict(evaluation=evaluation_obj, institute=evaluation_obj['institute'],
                case=evaluation_obj['case'], variant=evaluation_obj['variant'],
                CRITERIA=ACMG_CRITERIA)
def evaluation(evaluation_id):
    """Show or delete an ACMG evaluation."""
    evaluation_obj = store.get_evaluation(evaluation_id)
    controllers.evaluation(store, evaluation_obj)
    if request.method == 'POST':
        link = url_for('.variant', institute_id=evaluation_obj['institute']['_id'],
                       case_name=evaluation_obj['case']['display_name'],
                       variant_id=evaluation_obj['variant_specific'])
        store.delete_evaluation(evaluation_obj)
        return redirect(link)
    return dict(evaluation=evaluation_obj, institute=evaluation_obj['institute'],
                case=evaluation_obj['case'], variant=evaluation_obj['variant'],
                CRITERIA=ACMG_CRITERIA)
def evaluation ( evaluation_id ) : evaluation_obj = store . get_evaluation ( evaluation_id ) controllers . evaluation ( store , evaluation_obj ) if request . method == 'POST' : link = url_for ( '.variant' , institute_id = evaluation_obj [ 'institute' ] [ '_id' ] , case_name = evaluation_obj [ 'case' ] [ 'display_name' ] , variant_id = evaluation_obj [ 'variant_specific' ] ) store . delete_evaluation ( evaluation_obj ) return redirect ( link ) return dict ( evaluation = evaluation_obj , institute = evaluation_obj [ 'institute' ] , case = evaluation_obj [ 'case' ] , variant = evaluation_obj [ 'variant' ] , CRITERIA = ACMG_CRITERIA )
Show or delete an ACMG evaluation.
Show or delete an ACMG evaluation .