Package org.hl7.fhir.r5.context
Class TerminologyCache
- java.lang.Object
-
- org.hl7.fhir.r5.context.TerminologyCache
-
public class TerminologyCache extends Object
This implements a two level cache. - a temporary cache for remembering previous local operations - a persistent cache for remembering tx server operations the cache is a series of pairs: a map, and a list. the map is the loaded cache, the list is the persistent cache, carefully maintained in order for version control consistency- Author:
- graha
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classTerminologyCache.CacheToken
-
Constructor Summary
Constructors Constructor Description TerminologyCache(Object lock, String folder)
-
Method Summary
-
-
-
Field Detail
-
TRANSIENT
public static final boolean TRANSIENT
- See Also:
- Constant Field Values
-
PERMANENT
public static final boolean PERMANENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TerminologyCache
public TerminologyCache(Object lock, String folder) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException
- Throws:
FileNotFoundExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRException
-
-
Method Detail
-
hasCapabilityStatement
public boolean hasCapabilityStatement()
-
getCapabilityStatement
public CapabilityStatement getCapabilityStatement()
-
cacheCapabilityStatement
public void cacheCapabilityStatement(CapabilityStatement capabilityStatement)
-
hasTerminologyCapabilities
public boolean hasTerminologyCapabilities()
-
getTerminologyCapabilities
public TerminologyCapabilities getTerminologyCapabilities()
-
cacheTerminologyCapabilities
public void cacheTerminologyCapabilities(TerminologyCapabilities terminologyCapabilities)
-
clear
public void clear()
-
generateValidationToken
public TerminologyCache.CacheToken generateValidationToken(org.hl7.fhir.utilities.validation.ValidationOptions options, Coding code, ValueSet vs)
-
extracted
public String extracted(JsonParser json, ValueSet vsc) throws IOException
- Throws:
IOException
-
generateValidationToken
public TerminologyCache.CacheToken generateValidationToken(org.hl7.fhir.utilities.validation.ValidationOptions options, CodeableConcept code, ValueSet vs)
-
getVSEssense
public ValueSet getVSEssense(ValueSet vs)
-
generateExpandToken
public TerminologyCache.CacheToken generateExpandToken(ValueSet vs, boolean hierarchical)
-
nameCacheToken
public void nameCacheToken(ValueSet vs, TerminologyCache.CacheToken ct)
-
getNamedCache
public org.hl7.fhir.r5.context.TerminologyCache.NamedCache getNamedCache(TerminologyCache.CacheToken cacheToken)
-
getExpansion
public ValueSetExpander.ValueSetExpansionOutcome getExpansion(TerminologyCache.CacheToken cacheToken)
-
cacheExpansion
public void cacheExpansion(TerminologyCache.CacheToken cacheToken, ValueSetExpander.ValueSetExpansionOutcome res, boolean persistent)
-
store
public void store(TerminologyCache.CacheToken cacheToken, boolean persistent, org.hl7.fhir.r5.context.TerminologyCache.NamedCache nc, org.hl7.fhir.r5.context.TerminologyCache.CacheEntry e)
-
getValidation
public IWorkerContext.ValidationResult getValidation(TerminologyCache.CacheToken cacheToken)
-
cacheValidation
public void cacheValidation(TerminologyCache.CacheToken cacheToken, IWorkerContext.ValidationResult res, boolean persistent)
-
save
public void save()
-
copy
public TerminologyCache copy()
-
summary
public String summary(CodeableConcept code)
-
-