Package org.hl7.fhir.r4.context
Class TerminologyCache
java.lang.Object
org.hl7.fhir.r4.context.TerminologyCache
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 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcacheExpansion(TerminologyCache.CacheToken cacheToken, ValueSetExpander.ValueSetExpansionOutcome res, boolean persistent)voidcacheValidation(TerminologyCache.CacheToken cacheToken, IWorkerContext.ValidationResult res, boolean persistent)copy()generateExpandToken(ValueSet vs, boolean heirarchical)generateValidationToken(org.hl7.fhir.utilities.validation.ValidationOptions options, CodeableConcept code, ValueSet vs)generateValidationToken(org.hl7.fhir.utilities.validation.ValidationOptions options, Coding code, ValueSet vs)getExpansion(TerminologyCache.CacheToken cacheToken)org.hl7.fhir.r4.context.TerminologyCache.NamedCachegetNamedCache(TerminologyCache.CacheToken cacheToken)getValidation(TerminologyCache.CacheToken cacheToken)getVSEssense(ValueSet vs)voidsave()voidstore(TerminologyCache.CacheToken cacheToken, boolean persistent, org.hl7.fhir.r4.context.TerminologyCache.NamedCache nc, org.hl7.fhir.r4.context.TerminologyCache.CacheEntry e)summary(CodeableConcept code)
-
Field Details
-
TRANSIENT
- See Also:
- Constant Field Values
-
PERMANENT
- See Also:
- Constant Field Values
-
-
Constructor Details
-
TerminologyCache
public TerminologyCache(Object lock, String folder) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException- Throws:
FileNotFoundExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRException
-
-
Method Details
-
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
-
generateExpandToken
-
getNamedCache
public org.hl7.fhir.r4.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.r4.context.TerminologyCache.NamedCache nc, org.hl7.fhir.r4.context.TerminologyCache.CacheEntry e) -
getValidation
-
cacheValidation
public void cacheValidation(TerminologyCache.CacheToken cacheToken, IWorkerContext.ValidationResult res, boolean persistent) -
save
-
copy
-
summary
-
summary
-
summary
-