Class DefaultTermServiceProvider
- java.lang.Object
-
- com.ibm.fhir.term.service.provider.DefaultTermServiceProvider
-
- All Implemented Interfaces:
FHIRTermServiceProvider
public class DefaultTermServiceProvider extends Object implements FHIRTermServiceProvider
Default implementation of the FHIRTermServiceProvider interface using CodeSystemSupport, ConceptMapSupport, and ValueSetSupport
-
-
Constructor Summary
Constructors Constructor Description DefaultTermServiceProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<CodeSystem.Concept>
closure(Coding coding)
Generate the transitive closure for the code system concept represented by the given codingValueSet
expand(ValueSet valueSet, ExpansionParameters parameters)
Expand the given value set and expansion parametersboolean
isExpandable(ValueSet valueSet)
Indicates whether the given value set is expandableLookupOutcome
lookup(Coding coding, LookupParameters parameters)
Lookup the code system concept for the given coding and lookup parametersConceptSubsumptionOutcome
subsumes(Coding codingA, Coding codingB)
Perform a subsumption test to determine if the code system concept represented by the given coding "A" subsumes the code system concept represented by the given coding "B"TranslationOutcome
translate(ConceptMap conceptMap, CodeableConcept codeableConcept, TranslationParameters parameters)
Translate the given codeable concept using the provided concept map and translation parametersTranslationOutcome
translate(ConceptMap conceptMap, Coding coding, TranslationParameters parameters)
Translate the given coding using the provided concept map and translation parametersValidationOutcome
validateCode(CodeSystem codeSystem, CodeableConcept codeableConcept, ValidationParameters parameters)
Validate a codeable concept using the provided code system and validation parametersValidationOutcome
validateCode(CodeSystem codeSystem, Coding coding, ValidationParameters parameters)
Validate a coding using the provided code system and validation parametersValidationOutcome
validateCode(ValueSet valueSet, CodeableConcept codeableConcept, ValidationParameters parameters)
Validate a codeable concept using the provided value set using the provided validation parametersValidationOutcome
validateCode(ValueSet valueSet, Code code, ValidationParameters parameters)
Validate a code using the provided value set and validation parametersValidationOutcome
validateCode(ValueSet valueSet, Coding coding, ValidationParameters parameters)
Validate a coding using the provided value set using the provided validation parameters-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.fhir.term.spi.FHIRTermServiceProvider
expand, lookup, lookup, lookup, translate, translate, translate, translate, validateCode, validateCode, validateCode, validateCode, validateCode, validateCode, validateCode, validateCode, validateCode
-
-
-
-
Method Detail
-
isExpandable
public boolean isExpandable(ValueSet valueSet)
Description copied from interface:FHIRTermServiceProvider
Indicates whether the given value set is expandable- Specified by:
isExpandable
in interfaceFHIRTermServiceProvider
- Parameters:
valueSet
- the value set- Returns:
- true if the given value set is expandable, false otherwise
-
expand
public ValueSet expand(ValueSet valueSet, ExpansionParameters parameters)
Description copied from interface:FHIRTermServiceProvider
Expand the given value set and expansion parameters- Specified by:
expand
in interfaceFHIRTermServiceProvider
- Parameters:
valueSet
- the value set to expandparameters
- the expansion parameters- Returns:
- the expanded value set, or the original value set if already expanded or unable to expand
-
lookup
public LookupOutcome lookup(Coding coding, LookupParameters parameters)
Description copied from interface:FHIRTermServiceProvider
Lookup the code system concept for the given coding and lookup parameters- Specified by:
lookup
in interfaceFHIRTermServiceProvider
- Parameters:
coding
- the coding to lookupparameters
- the lookup parameters- Returns:
- the outcome of the lookup
-
subsumes
public ConceptSubsumptionOutcome subsumes(Coding codingA, Coding codingB)
Description copied from interface:FHIRTermServiceProvider
Perform a subsumption test to determine if the code system concept represented by the given coding "A" subsumes the code system concept represented by the given coding "B"- Specified by:
subsumes
in interfaceFHIRTermServiceProvider
- Parameters:
codingA
- the coding "A"codingB
- the coding "B"- Returns:
- the outcome of the subsumption test
-
closure
public Set<CodeSystem.Concept> closure(Coding coding)
Description copied from interface:FHIRTermServiceProvider
Generate the transitive closure for the code system concept represented by the given coding- Specified by:
closure
in interfaceFHIRTermServiceProvider
- Parameters:
coding
- the coding- Returns:
- a set containing the transitive closure for the code system concept represented by the given coding
-
validateCode
public ValidationOutcome validateCode(CodeSystem codeSystem, Coding coding, ValidationParameters parameters)
Description copied from interface:FHIRTermServiceProvider
Validate a coding using the provided code system and validation parameters- Specified by:
validateCode
in interfaceFHIRTermServiceProvider
- Parameters:
codeSystem
- the code systemcoding
- the codingparameters
- the validation parameters- Returns:
- the outcome of validation
-
validateCode
public ValidationOutcome validateCode(CodeSystem codeSystem, CodeableConcept codeableConcept, ValidationParameters parameters)
Description copied from interface:FHIRTermServiceProvider
Validate a codeable concept using the provided code system and validation parameters- Specified by:
validateCode
in interfaceFHIRTermServiceProvider
- Parameters:
codeSystem
- the code systemcodeableConcept
- the codeable conceptparameters
- the validation parameters- Returns:
- the outcome of validation
-
validateCode
public ValidationOutcome validateCode(ValueSet valueSet, Code code, ValidationParameters parameters)
Description copied from interface:FHIRTermServiceProvider
Validate a code using the provided value set and validation parameters- Specified by:
validateCode
in interfaceFHIRTermServiceProvider
- Parameters:
valueSet
- the value setcode
- the codeparameters
- the validation parameters- Returns:
- the outcome of validation
-
validateCode
public ValidationOutcome validateCode(ValueSet valueSet, Coding coding, ValidationParameters parameters)
Description copied from interface:FHIRTermServiceProvider
Validate a coding using the provided value set using the provided validation parameters- Specified by:
validateCode
in interfaceFHIRTermServiceProvider
- Parameters:
valueSet
- the value setcoding
- the codingparameters
- the validation parameters- Returns:
- the outcome of validation
-
validateCode
public ValidationOutcome validateCode(ValueSet valueSet, CodeableConcept codeableConcept, ValidationParameters parameters)
Description copied from interface:FHIRTermServiceProvider
Validate a codeable concept using the provided value set using the provided validation parameters- Specified by:
validateCode
in interfaceFHIRTermServiceProvider
- Parameters:
valueSet
- the value setparameters
- the validation parameters- Returns:
- the outcome of validation
-
translate
public TranslationOutcome translate(ConceptMap conceptMap, Coding coding, TranslationParameters parameters)
Description copied from interface:FHIRTermServiceProvider
Translate the given coding using the provided concept map and translation parameters- Specified by:
translate
in interfaceFHIRTermServiceProvider
- Parameters:
conceptMap
- the concept mapcoding
- the codingparameters
- the translation parameters- Returns:
- the outcome of translation
-
translate
public TranslationOutcome translate(ConceptMap conceptMap, CodeableConcept codeableConcept, TranslationParameters parameters)
Description copied from interface:FHIRTermServiceProvider
Translate the given codeable concept using the provided concept map and translation parameters- Specified by:
translate
in interfaceFHIRTermServiceProvider
- Parameters:
conceptMap
- the concept mapcodeableConcept
- the codeable conceptparameters
- the translation parameters- Returns:
- the outcome of translation
-
-