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