IWorkerContext class abstract

The FHIRPath engine's contract for FHIR-version knowledge — type metadata, terminology, and message formatting. Mirrors the Java reference's IWorkerContext seam: the engine reaches runtime values only through the FhirNode contract, and reads ALL type metadata through these neutral queries, so one engine serves any FHIR version whose binding supplies an implementation (the R4 binding's WorkerContext is one). No member of this interface names a FHIR model type: resources travel as opaque FhirNodes and structure knowledge travels as data (names, URLs, ancestry pairs).

Constructors

IWorkerContext()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ucumService → UcumService
The UCUM service used for Quantity arithmetic/comparison canonicals.
no setter
valueFactory IFhirValueFactory
The binding's value factory — how the engine constructs the FHIR-typed values it yields as results.
no setter

Methods

fetchTypeDefinitionByUrl(String url) Future<FhirNode?>
The StructureDefinition resource with canonical URL url as an opaque node (handed back to resolveContextTypeDetails), or null.
fetchValueSet(String? url) Future<FhirNode?>
The ValueSet resource for url as an opaque node, or null.
formatMessage(String theMessage, List theMessageArguments) String
Formats the message-catalog entry theMessage with theMessageArguments (engine error texts).
formatMessagePlural(int pl, String theMessage, List theMessageArguments) String
As formatMessage, with a plural count.
getChildTypesByName(String? type, String name, TypeDetails result, ExpressionNode expr, {required bool allowPolymorphicNames}) Future<void>
Accumulates into result the types reachable by navigating name from type (static type analysis).
getVersion() String
The FHIR publication version of the bound model (e.g. '4.0.1').
isKnownType(String typeName) Future<bool>
Whether typeName names a known type of the bound model.
isSubtypeOf(String type, String superType) Future<bool>
Whether type is superType or inherits from it (the baseDefinition walk, WITHOUT a primitive-kind stop — see the type operators' walk asymmetry).
isValueOfType(FhirNode node, String ns, String name) Future<bool>
The FHIRPath type-membership test shared by the is operator and the is() function: does node belong to the type named name in namespace ns ('System' or 'FHIR')?
matchesOfType(FhirNode node, String tn) Future<bool>
The ofType() type test (its subtype walk STOPS at primitive kinds, unlike isValueOfType's).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
primitiveTypeNames() Future<Set<String>>
Names of the model's primitive types.
resolveContextTypeDetails(FhirNode structureDefinition, String context, String abstractTypePrefix, ExpressionNode expr) Future<TypeDetails?>
Resolves the type details of element context within the StructureDefinition node structureDefinition (engine check() API).
specializedTypeNames() Future<List<String>>
Names of every specialization (non-logical) type of the bound model.
toString() String
A string representation of this object.
inherited
typeAncestry(String uri) Future<List<(String, String)>>
The canonical-URL ancestry chain of the type at uri: this type, then each successive base, as (url, typeName) pairs.
typeCanonicalUrl(String type) Future<String?>
The canonical URL of the type named type, or null when unknown.
validateCodeForCodeableConceptValue(ValidationOptions options, FhirNode node, FhirNode valueSet) Future<IValidationOutcome>
As validateCodeForCodingValue, for a CodeableConcept-typed value.
validateCodeForCodingValue(ValidationOptions options, FhirNode node, FhirNode? valueSet) Future<IValidationOutcome>
Validates a code-carrying value (a Coding, or a code/string/ uri primitive) against the ValueSet node valueSet.

Operators

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