lib/mcg/diagnosis/dgo.rb
def algorithm_diag( algo_name, diag_name )
          algo = algorithm(algo_name)
          algo ||= algorithm_sym(algo_name)
          return if not algo
          diag = algo.diagnosis(diag_name)
          diag = algo.diagnosis_sym(diag_name) if diag.is_a? NullDiagnosis
          diag
        end
Return a Diagnosis object for the specified algorithm and diagnosis. Note that
either a name or a symbol can be provided for the Diagnosis and Algorithm.
Return a Diagnosis object for the specified algorithm and diagnosis. Note that
either a name or a symbol can be provided for the Diagnosis and Algorithm.
Return a Diagnosis object for the specified algorithm and diagnosis . Note that either a name or a symbol can be provided for the Diagnosis and Algorithm .
def algorithm_diag( algo_name, diag_name )
          algo = algorithm(algo_name)
          algo ||= algorithm_sym(algo_name)
          return if not algo
          diag = algo.diagnosis(diag_name)
          diag = algo.diagnosis_sym(diag_name) if diag.is_a? NullDiagnosis
          diag
        end
def algorithm_diag ( algo_name , diag_name ) algo = algorithm ( algo_name ) algo ||= algorithm_sym ( algo_name ) return if not algo diag = algo . diagnosis ( diag_name ) diag = algo . diagnosis_sym ( diag_name ) if diag . is_a? NullDiagnosis diag end
Return a Diagnosis object for the specified algorithm and diagnosis.
Return a Diagnosis object for the specified algorithm and diagnosis .
algo_name
diag_name