ValueSetExpanderSimple class

Expands a ValueSet from its compose, using the CodeSystems the worker context can reach. The expansion is built as JSON and handed back as a node of the binding's model.

Implemented types

Constructors

ValueSetExpanderSimple(FhirWorkerContext context, [LoggingService? logger])
An expander.

Properties

context → FhirWorkerContext
The worker context.
final
hashCode → int
The hash code for this object.
no setterinherited
logger → LoggingService?
Optional logger.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addChildConcepts(FhirNode parent, String system, Map<String, dynamic> expansion, bool includeDefinition) → Map<String, dynamic>
Adds parent's nested concepts, recursively.
addCodeToExpansion(String system, String code, String? display, Map<String, dynamic> expansion, bool includeDefinition, {List<FhirNode> designation = const []}) → Map<String, dynamic>
Adds system#code to the expansion, once.
expand(FhirNode source, Map<String, dynamic>? parameters) → Future<ValueSetExpansionOutcome>
Expands source (a ValueSet node) with parameters (a Parameters resource as JSON, or null).
override
findConceptsMatchingFilter(List<FhirNode> concepts, String property, String op, String value) → List<FhirNode>
The concepts in concepts (and nested) that match the filter.
getAllErrors() → List<String>
Every error the last expansion met.
getParameterBool(Map<String, dynamic>? parameters, String name, bool defaultValue) → bool
The boolean parameter name of a Parameters resource (JSON).
isChildOf(FhirNode concept, String parentCode) → bool
Whether parentCode is a nested concept of concept.
isCodeInExpansion(String system, String code, Map<String, dynamic> expansion) → bool
Whether system#code is already in the expansion.
isServerSide(String? system) → Future<bool>
Whether system needs a server: not held, or not complete.
matchesFilter(FhirNode concept, String property, String op, String value) → bool
Whether concept matches the filter.
matchesPropertyValue(FhirNode? propValue, String op, String value) → bool
Whether a concept property's value matches the filter. A Coding is read by its code, a CodeableConcept by its first coding's code, any primitive by its value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processFilters(FhirNode component, String system, Map<String, dynamic> expansion, bool include, bool excludeNested, bool includeDefinition) → Future<Map<String, dynamic>>
Applies component's filters against the CodeSystem for system.
processIncludeExclude(FhirNode component, Map<String, dynamic> expansion, bool include, bool excludeNested, bool includeDefinition) → Future<Map<String, dynamic>>
Applies one include or exclude component to expansion (JSON).
processValueSetReference(String vsRef, Map<String, dynamic> expansion, bool include, bool excludeNested, bool includeDefinition) → Future<Map<String, dynamic>>
Applies a referenced value set, by its expansion or its compose.
removeChildConcepts(FhirNode parent, String system, Map<String, dynamic> expansion) → Map<String, dynamic>
Removes parent's nested concepts, recursively.
removeCodeFromExpansion(String system, String code, Map<String, dynamic> expansion) → Map<String, dynamic>
Removes system#code from the expansion, at any depth.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited