Package org.hl7.fhir.r5.context
Class TerminologyCache
java.lang.Object
org.hl7.fhir.r5.context.TerminologyCache
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
Modifier and TypeClassDescriptionclass
class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheCapabilityStatement
(CapabilityStatement capabilityStatement) void
cacheExpansion
(TerminologyCache.CacheToken cacheToken, ValueSetExpansionOutcome res, boolean persistent) void
cacheTerminologyCapabilities
(TerminologyCapabilities terminologyCapabilities) void
cacheValidation
(TerminologyCache.CacheToken cacheToken, IWorkerContext.ValidationResult res, boolean persistent) void
clear()
extracted
(JsonParser json, ValueSet vsc) generateExpandToken
(ValueSet vs, boolean hierarchical) generateValidationToken
(org.hl7.fhir.utilities.validation.ValidationOptions options, CodeableConcept code, ValueSet vs, Parameters expParameters) generateValidationToken
(org.hl7.fhir.utilities.validation.ValidationOptions options, Coding code, String vsUrl, Parameters expParameters) generateValidationToken
(org.hl7.fhir.utilities.validation.ValidationOptions options, Coding code, ValueSet vs, Parameters expParameters) getExpansion
(TerminologyCache.CacheToken cacheToken) org.hl7.fhir.r5.context.TerminologyCache.NamedCache
getNamedCache
(TerminologyCache.CacheToken cacheToken) protected TerminologyCache.SystemNameKeyGenerator
getValidation
(TerminologyCache.CacheToken cacheToken) getVSEssense
(ValueSet vs) boolean
protected String
boolean
void
void
void
save()
void
store
(TerminologyCache.CacheToken cacheToken, boolean persistent, org.hl7.fhir.r5.context.TerminologyCache.NamedCache nc, org.hl7.fhir.r5.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
-
hasCapabilityStatement
-
getCapabilityStatement
-
cacheCapabilityStatement
-
hasTerminologyCapabilities
-
getTerminologyCapabilities
-
cacheTerminologyCapabilities
-
clear
-
generateValidationToken
public TerminologyCache.CacheToken generateValidationToken(org.hl7.fhir.utilities.validation.ValidationOptions options, Coding code, ValueSet vs, Parameters expParameters) -
generateValidationToken
public TerminologyCache.CacheToken generateValidationToken(org.hl7.fhir.utilities.validation.ValidationOptions options, Coding code, String vsUrl, Parameters expParameters) -
extracted
- Throws:
IOException
-
generateValidationToken
public TerminologyCache.CacheToken generateValidationToken(org.hl7.fhir.utilities.validation.ValidationOptions options, CodeableConcept code, ValueSet vs, Parameters expParameters) -
getVSEssense
-
generateExpandToken
-
nameCacheToken
-
getNamedCache
public org.hl7.fhir.r5.context.TerminologyCache.NamedCache getNamedCache(TerminologyCache.CacheToken cacheToken) -
getExpansion
-
cacheExpansion
public void cacheExpansion(TerminologyCache.CacheToken cacheToken, 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
-
cacheValidation
public void cacheValidation(TerminologyCache.CacheToken cacheToken, IWorkerContext.ValidationResult res, boolean persistent) -
save
-
hashJson
-
summary
-
summary
-
summary
-
removeCS
-
getFolder
-