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 remmbering previous local operations - a persistent cache for rembering 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 persiistent cache, carefully maintained in order for version control consistency- Author:
- graha
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
TerminologyCache.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:
FileNotFoundException
IOException
org.hl7.fhir.exceptions.FHIRException
-
-
Method Detail
-
generateValidationToken
public TerminologyCache.CacheToken generateValidationToken(org.hl7.fhir.utilities.validation.ValidationOptions options, Coding code, ValueSet vs)
-
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 heirarchical)
-
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)
-
isNoCaching
public static boolean isNoCaching()
-
setNoCaching
public static void setNoCaching(boolean noCaching)
-
-