|
|
|
@@ -34,4 +34,15 @@ public class Icd10Code { |
|
|
|
public String toString() { |
|
|
|
return code+" - "+ text; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean isLastElementANumber() { |
|
|
|
String lastElement = code.substring(code.length() - 1); |
|
|
|
char[] lastEl = lastElement.toCharArray(); |
|
|
|
if (Character.isDigit(lastEl[0])) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
} |