Package com.ibm.fhir.term.service
Class FHIRTermService
- java.lang.Object
-
- com.ibm.fhir.term.service.FHIRTermService
-
- All Implemented Interfaces:
FHIRTermServiceProvider
public class FHIRTermService extends Object implements FHIRTermServiceProvider
-
-
Method Summary
All Methods Static 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)
Expand the given value setValueSet
expand(ValueSet valueSet, ExpansionParameters parameters)
Expand the given value set and expansion parametersstatic FHIRTermService
getInstance()
boolean
isExpandable(ValueSet valueSet)
Indicates whether the given value set is expandableLookupOutcome
lookup(Coding coding)
Lookup the code system concept for the given codingLookupOutcome
lookup(Coding coding, LookupParameters parameters)
Lookup the code system concept for the given coding and lookup parametersLookupOutcome
lookup(Uri system, String version, Code code)
Lookup the code system concept for the given system, version, and codeLookupOutcome
lookup(Uri system, String version, Code code, LookupParameters parameters)
Lookup the code system concept for the given system, version, code 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)
Translate the given coding using the provided concept mapTranslationOutcome
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)
Translate the given coding using the provided concept mapTranslationOutcome
translate(ConceptMap conceptMap, Coding coding, TranslationParameters parameters)
Translate the given coding using the provided concept map and translation parametersTranslationOutcome
translate(ConceptMap conceptMap, Uri system, String version, Code code)
Translate the given system, version and code using the provided concept mapTranslationOutcome
translate(ConceptMap conceptMap, Uri system, String version, Code code, TranslationParameters parameters)
Translate the given system, version and code using the provided concept map and translation parametersValidationOutcome
validateCode(CodeSystem codeSystem, CodeableConcept codeableConcept)
Validate a codeable concept using the provided code systemValidationOutcome
validateCode(CodeSystem codeSystem, CodeableConcept codeableConcept, ValidationParameters parameters)
Validate a codeable concept using the provided code system and validation parametersValidationOutcome
validateCode(CodeSystem codeSystem, Coding coding)
Validate a coding using the provided code systemValidationOutcome
validateCode(CodeSystem codeSystem, Coding coding, ValidationParameters parameters)
Validate a coding using the provided code system and validation parametersValidationOutcome
validateCode(CodeSystem codeSystem, String version, Code code, String display)
Validate a code and display using the provided code system and versionValidationOutcome
validateCode(CodeSystem codeSystem, String version, Code code, String display, ValidationParameters parameters)
Validate a code and display using the provided code system, version and validation parametersValidationOutcome
validateCode(ValueSet valueSet, Code code)
Validate a code using the provided value setValidationOutcome
validateCode(ValueSet valueSet, CodeableConcept codeableConcept)
Validate a codeable concept using the provided value setValidationOutcome
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)
Validate a coding using the provided value set using the provided validation parametersValidationOutcome
validateCode(ValueSet valueSet, Coding coding, ValidationParameters parameters)
Validate a coding using the provided value set using the provided validation parametersValidationOutcome
validateCode(ValueSet valueSet, Uri system, String version, Code code, String display)
Validate a code and display using the provided value setValidationOutcome
validateCode(ValueSet valueSet, Uri system, String version, Code code, String display, ValidationParameters parameters)
Validate a code and display using the provided value set and validation parameters
-
-
-
Method Detail
-
isExpandable
public boolean isExpandable(ValueSet valueSet)
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)
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
-
expand
public ValueSet expand(ValueSet valueSet)
Expand the given value set- Specified by:
expand
in interfaceFHIRTermServiceProvider
- Parameters:
valueSet
- the value set to expand- Returns:
- the expanded value set, or the original value set if already expanded or unable to expand
-
lookup
public LookupOutcome lookup(Uri system, String version, Code code, LookupParameters parameters)
Lookup the code system concept for the given system, version, code and lookup parameters- Specified by:
lookup
in interfaceFHIRTermServiceProvider
- Parameters:
system
- the systemversion
- the versioncode
- the codeparameters
- the lookup parameters- Returns:
- the outcome of the lookup
-
lookup
public LookupOutcome lookup(Uri system, String version, Code code)
Lookup the code system concept for the given system, version, and code- Specified by:
lookup
in interfaceFHIRTermServiceProvider
- Parameters:
system
- the systemversion
- the versioncode
- the code- Returns:
- the outcome of the lookup
-
lookup
public LookupOutcome lookup(Coding coding, LookupParameters parameters)
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
-
lookup
public LookupOutcome lookup(Coding coding)
Lookup the code system concept for the given coding- Specified by:
lookup
in interfaceFHIRTermServiceProvider
- Parameters:
coding
- the coding to lookup- Returns:
- the outcome of the lookup
-
subsumes
public ConceptSubsumptionOutcome 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"- 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)
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, String version, Code code, String display, ValidationParameters parameters)
Validate a code and display using the provided code system, version and validation parameters- Specified by:
validateCode
in interfaceFHIRTermServiceProvider
- Parameters:
codeSystem
- the code systemversion
- the versioncode
- the codedisplay
- the displayparameters
- the validation parameters- Returns:
- the outcome of validation
-
validateCode
public ValidationOutcome validateCode(CodeSystem codeSystem, String version, Code code, String display)
Validate a code and display using the provided code system and version- Specified by:
validateCode
in interfaceFHIRTermServiceProvider
- Parameters:
code
- system the code systemversion
- the versioncode
- the codedisplay
- the display- Returns:
- the outcome of validation
-
validateCode
public ValidationOutcome validateCode(CodeSystem codeSystem, Coding coding, ValidationParameters parameters)
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, Coding coding)
Validate a coding using the provided code system- Specified by:
validateCode
in interfaceFHIRTermServiceProvider
- Parameters:
codeSystem
- the codeSystemcoding
- the coding- Returns:
- the outcome of validation
-
validateCode
public ValidationOutcome validateCode(CodeSystem codeSystem, CodeableConcept codeableConcept, ValidationParameters parameters)
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(CodeSystem codeSystem, CodeableConcept codeableConcept)
Validate a codeable concept using the provided code system- Specified by:
validateCode
in interfaceFHIRTermServiceProvider
- Parameters:
codeableConcept
- the codeable concept- Returns:
- the outcome of validation
-
validateCode
public ValidationOutcome validateCode(ValueSet valueSet, Code code, ValidationParameters parameters)
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, Code code)
Validate a code using the provided value set- Specified by:
validateCode
in interfaceFHIRTermServiceProvider
- Parameters:
valueSet
- the value setcode
- the code- Returns:
- the outcome of validation
-
validateCode
public ValidationOutcome validateCode(ValueSet valueSet, Uri system, String version, Code code, String display, ValidationParameters parameters)
Validate a code and display using the provided value set and validation parameters- Specified by:
validateCode
in interfaceFHIRTermServiceProvider
- Parameters:
valueSet
- the value setsystem
- the systemversion
- the versioncode
- the codedisplay
- the displayparameters
- the validation parameters- Returns:
- the outcome of validation
-
validateCode
public ValidationOutcome validateCode(ValueSet valueSet, Uri system, String version, Code code, String display)
Validate a code and display using the provided value set- Specified by:
validateCode
in interfaceFHIRTermServiceProvider
- Parameters:
valueSet
- the value setsystem
- the systemversion
- the versioncode
- the codedisplay
- the display- Returns:
- the outcome of validation
-
validateCode
public ValidationOutcome validateCode(ValueSet valueSet, Coding coding, ValidationParameters parameters)
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, Coding coding)
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)
Validate a codeable concept using the provided value set using the provided validation parameters- Specified by:
validateCode
in interfaceFHIRTermServiceProvider
- Parameters:
valueSet
- the value setcodeable
- concept the codeable conceptparameters
- the validation parameters- Returns:
- the outcome of validation
-
validateCode
public ValidationOutcome validateCode(ValueSet valueSet, CodeableConcept codeableConcept)
Validate a codeable concept using the provided value set- Specified by:
validateCode
in interfaceFHIRTermServiceProvider
- Parameters:
valueSet
- the value setcodeable
- concept the codeable concept- Returns:
- the outcome of validation
-
translate
public TranslationOutcome translate(ConceptMap conceptMap, Uri system, String version, Code code, TranslationParameters parameters)
Translate the given system, version and code using the provided concept map and translation parameters- Specified by:
translate
in interfaceFHIRTermServiceProvider
- Parameters:
conceptMap
- the concept mapsystem
- the systemversion
- the versioncode
- the codeparameters
- the translation parameters- Returns:
- the outcome of translation
-
translate
public TranslationOutcome translate(ConceptMap conceptMap, Uri system, String version, Code code)
Translate the given system, version and code using the provided concept map- Specified by:
translate
in interfaceFHIRTermServiceProvider
- Parameters:
conceptMap
- the concept mapsystem
- the systemversion
- the versioncode
- the code- Returns:
- the outcome of translation
-
translate
public TranslationOutcome translate(ConceptMap conceptMap, Coding coding, TranslationParameters parameters)
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, Coding coding)
Translate the given coding using the provided concept map- Specified by:
translate
in interfaceFHIRTermServiceProvider
- Parameters:
conceptMap
- the concept mapcoding
- the coding- Returns:
- the outcome of translation
-
translate
public TranslationOutcome translate(ConceptMap conceptMap, CodeableConcept codeableConcept, TranslationParameters parameters)
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
-
translate
public TranslationOutcome translate(ConceptMap conceptMap, CodeableConcept codeableConcept)
Translate the given coding using the provided concept map- Specified by:
translate
in interfaceFHIRTermServiceProvider
- Parameters:
conceptMap
- the concept mapcodeable
- concept the codeable concept- Returns:
- the outcome of translation
-
getInstance
public static FHIRTermService getInstance()
-
-