Interface ICodeSystemCache
-
public interface ICodeSystemCache
Abstraction of the cache service managing code systems
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
readOrAddCodeSystem(String codeSystem)
Reads the id associated with the name of the passed Parameter from the code_systems table.
-
-
-
Method Detail
-
readOrAddCodeSystem
int readOrAddCodeSystem(String codeSystem) throws FHIRPersistenceException
Reads the id associated with the name of the passed Parameter from the code_systems table. If the id for the passed name is not present in the database, an id is generated, persisted, and returned. This is done in a thread-safe way- Parameters:
codeSystem
- A valid FHIR search parameter name.- Returns:
- the id associated with the name of the passed Parameter.
- Throws:
FHIRPersistenceException
-
-