TerminologyCache class
A two-level cache for managing terminology operations.
Constructors
- TerminologyCache.new(Object lock, String? folder)
- Constructs a new terminology cache.
Properties
-
caches
→ Map<
String, NamedCache> -
The cache of named caches.
final
- folder → String?
-
The folder for the cache.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lock → Object
-
The lock for the cache.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cacheExpansion(
ValueSetCacheToken token, ValueSetExpansionOutcome outcome, int mode) → void - Cache an expansion
-
cacheValidation(
CacheToken cacheToken, ValidationResult result, bool persistent) → void - Gets the expansion outcome for the specified cache token.
-
clear(
) → void - Clears the cache.
-
generateExpandToken(
ValueSet vs, bool hierarchical) → ValueSetCacheToken - Generate a token for an expansion
-
generateValidationToken(
ValidationOptions options, Coding code, ValueSet? vs) → CacheToken - Generates a cache token for a validation operation.
-
generateValidationTokenForCodeableConcept(
ValidationOptions options, CodeableConcept code, ValueSet? vs) → CacheToken - Generates a cache token for a validation operation.
-
getExpansion(
ValueSetCacheToken token) → ValueSetExpansionOutcome? - Get a cached expansion
-
getValidation(
CacheToken cacheToken) → ValidationResult? - Gets the expansion outcome for the specified cache token.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
summaryForCodeableConcept(
CodeableConcept codeableConcept) → String -
Summarizes a
CodeableConcept
. -
summaryForCoding(
Coding coding) → String -
Summarizes a
Coding
. -
summaryForValueSet(
ValueSet? valueSet) → String -
Summarizes a
ValueSet
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- break_ → const String
- The break marker.
- entryMarker → const String
- The entry marker.
- nameForNoSystem → const String
- The name for the system when no system is provided.
- permanent → const bool
- Defines the cache as either transient or permanent.
- transient → const bool
- Defines the cache as either transient or permanent.