Money constructor
const
Money({
- @JsonKey(name: 'id') String? fhirId,
- @JsonKey(name: 'extension') List<
FhirExtension> ? extension_, - FhirDecimal? value,
- @JsonKey(name: '_value') Element? valueElement,
- FhirCode? currency,
- @JsonKey(name: '_currency') Element? currencyElement,
Money An amount of economic utility in some recognized currency.
id Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
extension
May be used to represent additional information that is not
part of the basic definition of the element. To make the use of extensions
safe and manageable, there is a strict set of governance applied to the
definition and use of extensions. Though any implementer can define an
extension, there is a set of requirements that SHALL be met as part of the
definition of the extension.
value
Numerical value (with implicit precision).
valueElement
Extensions for value
currency
ISO 4217 Currency Code.
currencyElement
Extensions for currency
Implementation
const factory Money({
/// [id] Unique id for the element within a resource (for internal
/// references). This may be any string value that does not contain spaces.
@JsonKey(name: 'id') String? fhirId,
/// [extension] May be used to represent additional information that is not
/// part of the basic definition of the element. To make the use of extensions
/// safe and manageable, there is a strict set of governance applied to the
/// definition and use of extensions. Though any implementer can define an
/// extension, there is a set of requirements that SHALL be met as part of the
/// definition of the extension.
@JsonKey(name: 'extension') List<FhirExtension>? extension_,
/// [value] Numerical value (with implicit precision).
FhirDecimal? value,
/// [valueElement] Extensions for value
@JsonKey(name: '_value') Element? valueElement,
/// [currency] ISO 4217 Currency Code.
FhirCode? currency,
/// [currencyElement] Extensions for currency
@JsonKey(name: '_currency') Element? currencyElement,
}) = _Money;