toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case EntityType.medication:
      return 'MEDICATION';
    case EntityType.medicalCondition:
      return 'MEDICAL_CONDITION';
    case EntityType.protectedHealthInformation:
      return 'PROTECTED_HEALTH_INFORMATION';
    case EntityType.testTreatmentProcedure:
      return 'TEST_TREATMENT_PROCEDURE';
    case EntityType.anatomy:
      return 'ANATOMY';
    case EntityType.timeExpression:
      return 'TIME_EXPRESSION';
  }
}