Interface KonceptDefinitionSource
- All Known Implementing Classes:
CompositeKonceptDefinitionSource, YamlKonceptDefinitionSource
public interface KonceptDefinitionSource
Strategy interface for resolving Koncept definitions.
Implementations may source definitions from:
- YAML files on the classpath or filesystem
- OWL ontology files via OWL API
- IKE knowledge graph REST endpoints
- SNOMED CT terminology servers (FHIR or native)
-
Method Summary
Modifier and TypeMethodDescriptionstatic KonceptDefinitionSourcefromClasspath(String classpathResource) Create a source backed by a YAML file on the classpath.static KonceptDefinitionSourceCreate a source backed by a YAML file on the filesystem.Look up the definition for the given koncept identifier.
-
Method Details
-
lookup
Look up the definition for the given koncept identifier.- Parameters:
identifier- CamelCase koncept identifier (e.g., "HeartFailure")- Returns:
- the definition if found
-
fromClasspath
Create a source backed by a YAML file on the classpath.- Parameters:
classpathResource- resource path (e.g., "/koncepts.yml")- Returns:
- a YAML-backed definition source
-
fromFile
Create a source backed by a YAML file on the filesystem.- Parameters:
filePath- absolute or relative filesystem path- Returns:
- a YAML-backed definition source
-