Package org.ehrbase.api.service
Interface TerminologyServer<T,ID,U>
-
- Type Parameters:
T- concept typeID- generic id type to specify the data type used for the identifier of the concept in the terminology server of choice.ID- generic type for parameters that are custom to each operation implementation.
public interface TerminologyServer<T,ID,U>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTerminologyServer.SubsumptionResultPossible subsumption evaluation results.static classTerminologyServer.TerminologyAdapter
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<T>expand(ID valueSetId)Expands the value set identified by the provided ID.List<T>expandWithParameters(ID valueSetId, U... operationParams)Expands the value set identified by the provided ID.TlookUp(ID conceptId)Searches all the attributes associated with the concept that corresponds to the provided ID.TerminologyServer.SubsumptionResultsubsumes(T conceptA, T conceptB)Evaluates if the concept B subsumes concept A.Booleanvalidate(T concept, ID valueSetId)Evaluates if the concept provided T belongs to the value set identified by the provided ID.Booleanvalidate(U... operationParams)Evaluates if the concept provided as one operationParams belongs to the value set provided as another operationParam.
-
-
-
Method Detail
-
expand
List<T> expand(ID valueSetId)
Expands the value set identified by the provided ID.- Parameters:
valueSetId-- Returns:
- Returns the list of concepts of type T that conform the expansion of the value set.
-
expandWithParameters
List<T> expandWithParameters(ID valueSetId, U... operationParams)
Expands the value set identified by the provided ID.- Parameters:
valueSetId-- Returns:
- Returns the list of concepts of type T that conform the expansion of the value set.
-
lookUp
T lookUp(ID conceptId)
Searches all the attributes associated with the concept that corresponds to the provided ID.- Parameters:
conceptId-- Returns:
- A complex Object of type T that contains all the attributes directly associated to the concept identified by the provided ID.
-
validate
Boolean validate(T concept, ID valueSetId)
Evaluates if the concept provided T belongs to the value set identified by the provided ID.- Parameters:
concept- to evaluate.valueSetId-- Returns:
- true if the concept belongs to the specified value set.
-
validate
Boolean validate(U... operationParams)
Evaluates if the concept provided as one operationParams belongs to the value set provided as another operationParam.- Parameters:
dynamic- list of parameters to perform the operation against an external terminology server.- Returns:
- true if the concept belongs to the specified value set.
-
subsumes
TerminologyServer.SubsumptionResult subsumes(T conceptA, T conceptB)
Evaluates if the concept B subsumes concept A.- Parameters:
concept- that is subsumed by the concept in the second param.concept- that subsumes the concept in the first param.- Returns:
org.ehrbase.aql.compiler.tsclient.TerminologyServer.SubsumptionResultindicating the result of the subsumption evaluation.
-
-