|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectca.uhn.hl7v2.TableRepository
ca.uhn.hl7v2.DBTableRepository
public class DBTableRepository
Implements TableRepository by looking up values from the default HL7 normative database. Values are cached after they are looked up once.
| Constructor Summary | |
|---|---|
protected |
DBTableRepository()
|
| Method Summary | |
|---|---|
boolean |
checkValue(int table,
java.lang.String value)
Returns true if the given value exists in the given table. |
java.lang.String |
getDescription(int table,
java.lang.String value)
Returns the description matching the table and value given. |
int[] |
getTables()
Returns a list of HL7 lookup tables that are defined in the normative database. |
java.lang.String[] |
getValues(int table)
Returns a list of the values for the given table in the normative database. |
| Methods inherited from class ca.uhn.hl7v2.TableRepository |
|---|
getInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DBTableRepository()
| Method Detail |
|---|
public int[] getTables()
throws LookupException
getTables in class TableRepositoryLookupException
public boolean checkValue(int table,
java.lang.String value)
throws UndefinedTableException,
LookupException
checkValue in class TableRepositoryUndefinedTableException
LookupException
public java.lang.String[] getValues(int table)
throws LookupException,
UndefinedTableException
getValues in class TableRepositoryLookupException
UndefinedTableException
public java.lang.String getDescription(int table,
java.lang.String value)
throws LookupException,
UnknownValueException
getDescription in class TableRepositoryUnknownValueException - if the value can not be found. This may be an UnknownTableException.
LookupException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||