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
Modifier and TypeClassDescriptionclass
class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheExpansion
(TerminologyCache.CacheToken cacheToken, ValueSetExpander.ValueSetExpansionOutcome res, boolean persistent) void
cacheValidation
(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.NamedCache
getNamedCache
(TerminologyCache.CacheToken cacheToken) protected TerminologyCache.SystemNameKeyGenerator
getValidation
(TerminologyCache.CacheToken cacheToken) getVSEssense
(ValueSet vs) void
save()
void
store
(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:
-
PERMANENT
- See Also:
-
-
Constructor Details
-
TerminologyCache
public TerminologyCache(Object lock, String folder) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
FileNotFoundException
IOException
org.hl7.fhir.exceptions.FHIRException
-
-
Method Details
-
getSystemNameKeyGenerator
-
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
-