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
-
-
Constructor Summary
Constructors Constructor Description DefaultTermServiceProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CodeSystem.Concept
findConcept(CodeSystem codeSystem, CodeSystem.Concept concept, Code code)
Find the concept in tree rooted by the provided concept that matches the specified code.CodeSystem.Concept
findConcept(CodeSystem codeSystem, Code code)
Find the concept in the provided code system that matches the specified code.Set<CodeSystem.Concept>
getConcepts(CodeSystem codeSystem)
Get a set containingCodeSystem.Concept
instances where all structural hierarchies have been flattened.Set<CodeSystem.Concept>
getConcepts(CodeSystem codeSystem, CodeSystem.Concept concept)
Get a set containingCodeSystem.Concept
instances where all structural hierarchies have been flattened.boolean
isSupported(CodeSystem codeSystem)
Indicates whether the given code system is supported
-
-
-
Method Detail
-
isSupported
public boolean isSupported(CodeSystem codeSystem)
Description copied from interface:FHIRTermServiceProvider
Indicates whether the given code system is supported- Specified by:
isSupported
in interfaceFHIRTermServiceProvider
- Parameters:
codeSystem
- the code system- Returns:
- true if the given code system is supported, false otherwise
-
findConcept
public CodeSystem.Concept findConcept(CodeSystem codeSystem, Code code)
Description copied from interface:FHIRTermServiceProvider
Find the concept in the provided code system that matches the specified code.- Specified by:
findConcept
in interfaceFHIRTermServiceProvider
- Parameters:
codeSystem
- the code system to searchcode
- the code to match- Returns:
- the code system concept that matches the specified code, or null if no such concept exists
-
findConcept
public CodeSystem.Concept findConcept(CodeSystem codeSystem, CodeSystem.Concept concept, Code code)
Description copied from interface:FHIRTermServiceProvider
Find the concept in tree rooted by the provided concept that matches the specified code.- Specified by:
findConcept
in interfaceFHIRTermServiceProvider
- Parameters:
codeSystem
- the code systemconcept
- the root of the hierarchy to searchcode
- the code to match- Returns:
- the code system concept that matches the specified code, or null if not such concept exists
-
getConcepts
public Set<CodeSystem.Concept> getConcepts(CodeSystem codeSystem, CodeSystem.Concept concept)
Description copied from interface:FHIRTermServiceProvider
Get a set containingCodeSystem.Concept
instances where all structural hierarchies have been flattened.- Specified by:
getConcepts
in interfaceFHIRTermServiceProvider
- Parameters:
codeSystem
- the code systemconcept
- the root of the hierarchy containing the Concept instances to be flattened- Returns:
- flattened set of Concept instances for the given tree
-
getConcepts
public Set<CodeSystem.Concept> getConcepts(CodeSystem codeSystem)
Description copied from interface:FHIRTermServiceProvider
Get a set containingCodeSystem.Concept
instances where all structural hierarchies have been flattened.- Specified by:
getConcepts
in interfaceFHIRTermServiceProvider
- Parameters:
codeSystem
- the code system- Returns:
- flattened list of Concept instances for the given code system
-
-