Package com.ibm.fhir.term.spi
Interface FHIRTermServiceProvider
-
- All Known Implementing Classes:
DefaultTermServiceProvider
public interface FHIRTermServiceProvider
-
-
Method Summary
All Methods Instance Methods Abstract 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
boolean isSupported(CodeSystem codeSystem)
Indicates whether the given code system is supported- Parameters:
codeSystem
- the code system- Returns:
- true if the given code system is supported, false otherwise
-
findConcept
CodeSystem.Concept findConcept(CodeSystem codeSystem, Code code)
Find the concept in the provided code system that matches the specified code.- 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
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.- 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
Set<CodeSystem.Concept> getConcepts(CodeSystem codeSystem)
Get a set containingCodeSystem.Concept
instances where all structural hierarchies have been flattened.- Parameters:
codeSystem
- the code system- Returns:
- flattened list of Concept instances for the given code system
-
getConcepts
Set<CodeSystem.Concept> getConcepts(CodeSystem codeSystem, CodeSystem.Concept concept)
Get a set containingCodeSystem.Concept
instances where all structural hierarchies have been flattened.- 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
-
-