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
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
StructureDefinitionresource with canonical URLurlas an opaque node (handed back to resolveContextTypeDetails), or null. -
fetchValueSet(
String? url) → Future< FhirNode?> -
The
ValueSetresource forurlas an opaque node, or null. -
formatMessage(
String theMessage, List theMessageArguments) → String -
Formats the message-catalog entry
theMessagewiththeMessageArguments(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
resultthe types reachable by navigatingnamefromtype(static type analysis). -
getVersion(
) → String -
The FHIR publication version of the bound model (e.g.
'4.0.1'). -
isKnownType(
String typeName) → Future< bool> -
Whether
typeNamenames a known type of the bound model. -
isSubtypeOf(
String type, String superType) → Future< bool> -
Whether
typeissuperTypeor inherits from it (thebaseDefinitionwalk, 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
isoperator and theis()function: doesnodebelong to the type namednamein namespacens('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
contextwithin the StructureDefinition nodestructureDefinition(enginecheck()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 acode/string/uriprimitive) against theValueSetnodevalueSet.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited