toRelationshipType method
Implementation
RelationshipType toRelationshipType() {
switch (this) {
case 'EVERY':
return RelationshipType.every;
case 'WITH_DOSAGE':
return RelationshipType.withDosage;
case 'ADMINISTERED_VIA':
return RelationshipType.administeredVia;
case 'FOR':
return RelationshipType.$for;
case 'NEGATIVE':
return RelationshipType.negative;
case 'OVERLAP':
return RelationshipType.overlap;
case 'DOSAGE':
return RelationshipType.dosage;
case 'ROUTE_OR_MODE':
return RelationshipType.routeOrMode;
case 'FORM':
return RelationshipType.form;
case 'FREQUENCY':
return RelationshipType.frequency;
case 'DURATION':
return RelationshipType.duration;
case 'STRENGTH':
return RelationshipType.strength;
case 'RATE':
return RelationshipType.rate;
case 'ACUITY':
return RelationshipType.acuity;
case 'TEST_VALUE':
return RelationshipType.testValue;
case 'TEST_UNITS':
return RelationshipType.testUnits;
case 'DIRECTION':
return RelationshipType.direction;
case 'SYSTEM_ORGAN_SITE':
return RelationshipType.systemOrganSite;
}
throw Exception('$this is not known in enum RelationshipType');
}