toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case EntitySubType.name:
      return 'NAME';
    case EntitySubType.dosage:
      return 'DOSAGE';
    case EntitySubType.routeOrMode:
      return 'ROUTE_OR_MODE';
    case EntitySubType.form:
      return 'FORM';
    case EntitySubType.frequency:
      return 'FREQUENCY';
    case EntitySubType.duration:
      return 'DURATION';
    case EntitySubType.genericName:
      return 'GENERIC_NAME';
    case EntitySubType.brandName:
      return 'BRAND_NAME';
    case EntitySubType.strength:
      return 'STRENGTH';
    case EntitySubType.rate:
      return 'RATE';
    case EntitySubType.acuity:
      return 'ACUITY';
    case EntitySubType.testName:
      return 'TEST_NAME';
    case EntitySubType.testValue:
      return 'TEST_VALUE';
    case EntitySubType.testUnits:
      return 'TEST_UNITS';
    case EntitySubType.procedureName:
      return 'PROCEDURE_NAME';
    case EntitySubType.treatmentName:
      return 'TREATMENT_NAME';
    case EntitySubType.date:
      return 'DATE';
    case EntitySubType.age:
      return 'AGE';
    case EntitySubType.contactPoint:
      return 'CONTACT_POINT';
    case EntitySubType.email:
      return 'EMAIL';
    case EntitySubType.identifier:
      return 'IDENTIFIER';
    case EntitySubType.url:
      return 'URL';
    case EntitySubType.address:
      return 'ADDRESS';
    case EntitySubType.profession:
      return 'PROFESSION';
    case EntitySubType.systemOrganSite:
      return 'SYSTEM_ORGAN_SITE';
    case EntitySubType.direction:
      return 'DIRECTION';
    case EntitySubType.quality:
      return 'QUALITY';
    case EntitySubType.quantity:
      return 'QUANTITY';
    case EntitySubType.timeExpression:
      return 'TIME_EXPRESSION';
    case EntitySubType.timeToMedicationName:
      return 'TIME_TO_MEDICATION_NAME';
    case EntitySubType.timeToDxName:
      return 'TIME_TO_DX_NAME';
    case EntitySubType.timeToTestName:
      return 'TIME_TO_TEST_NAME';
    case EntitySubType.timeToProcedureName:
      return 'TIME_TO_PROCEDURE_NAME';
    case EntitySubType.timeToTreatmentName:
      return 'TIME_TO_TREATMENT_NAME';
  }
}