getStandardByType static method

String getStandardByType(
  1. int type
)

Obtains the standard type.

Implementation

static String getStandardByType(int type) {
  switch (type) {
    case 1:
      return 'blood_pressure_esh2002';
    case 2:
      return 'blood_pressure_esh2010';
    case 3:
      return 'blood_pressure_aami';
    case 4:
      return 'blood_pressure_bhs_a_a';
    case 5:
      return 'blood_pressure_bhs_a_b';
    case 6:
      return 'blood_pressure_bhs_b_a';
    case 7:
      return 'blood_pressure_bhs_b_b';
    case 8:
      return 'blood_glucose_iso151972003';
    case 9:
      return 'blood_glucose_iso151972013';
    default:
      return 'unknown';
  }
}