IFhirValueFactory class abstract
The engine's contract for constructing the FHIR-typed values it yields
as evaluation results. The engine logic never names concrete FHIR value
classes (FhirBoolean, FhirString, …); every literal/result it
constructs goes through this factory, whose implementation lives in the
FHIR binding (reached via IWorkerContext.valueFactory).
Results stay FHIR-typed (the value model is behavior-preserving).
disallowExtensions mirrors the engine's historical .noExtensions()
usage: FHIRPath results are System values that disallow extensions, but
a handful of call sites constructed bare primitives, and that per-site
behavior is preserved exactly.
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
Methods
-
boolean(
bool? value, {bool disallowExtensions = true}) → FhirNode -
Builds a
booleanresult. -
classTypeInfo(
FhirNode instance) → FhirNode -
Builds the
type()reflection value forinstance(the System-vs-FHIR namespace decision needs the binding's System-value marker). -
dateTimeOfType(
String fhirType, String value, {bool disallowExtensions = false}) → FhirNode -
Builds a date/dateTime/instant result from a canonical FHIRPath
date-time
valuestring, of the concrete FHIR type named byfhirType. -
decimal(
num? value, {bool disallowExtensions = true}) → FhirNode -
Builds a
decimalresult. -
decimalFromString(
String? value, {bool disallowExtensions = true}) → FhirNode -
Builds a
decimalfrom its STRING form, preserving the exact representation (trailing zeros included). -
integer(
num? value, {bool disallowExtensions = true}) → FhirNode -
Builds an
integerresult. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
nowFrom(
DateTime instant) → FhirNode -
The
now()value — adateTimeforinstant. -
numericAbs(
FhirNode number) → FhirNode -
Returns
abs(number)preserving the FHIR numeric subtype exactly. -
quantity(
{num? value, String? unit, String? system, String? code, bool disallowExtensions = false}) → FhirNode -
Builds a
Quantityresult from model-independent scalar parts. -
quantityLiteral(
{String? value, String? unit, String? ucumCode}) → FhirNode -
Builds the
Quantityfor a parsed quantity LITERAL (5 'mg',4 days), value string preserved exactly. -
quantityWithValue(
FhirNode quantity, num? value) → FhirNode -
Returns a copy of the
Quantitynodequantitywith itsvaluereplaced byvalue, preserving every other field. -
quantityWithValueString(
FhirNode quantity, String? value) → FhirNode - quantityWithValue, but from the value's exact STRING form.
-
string(
String? value, {bool disallowExtensions = true}) → FhirNode -
Builds a
stringresult. -
time(
String? value, {bool disallowExtensions = true}) → FhirNode -
Builds a
timeresult. -
timeOfDayFrom(
DateTime instant) → FhirNode -
The
timeOfDay()value — atimefor the time-of-day ofinstant. -
todayFrom(
DateTime instant) → FhirNode -
The
today()value — adatefor the calendar day ofinstant. -
toString(
) → String -
A string representation of this object.
inherited
-
tryDate(
String? value) → FhirNode? -
Parses
valueas adateSystem value, or null when invalid. -
tryDateTime(
String? value) → FhirNode? -
Parses
valueas adateTimeSystem value, or null when invalid. -
tryTime(
String? value) → FhirNode? -
Parses
valueas atimeSystem value, or null when invalid.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited