Age constructor

const Age({
  1. @JsonKey(name: 'id') String? fhirId,
  2. @JsonKey(name: 'extension') List<FhirExtension>? extension_,
  3. FhirDecimal? value,
  4. @JsonKey(name: '_value') Element? valueElement,
  5. AgeComparator? comparator,
  6. @JsonKey(name: '_comparator') Element? comparatorElement,
  7. String? unit,
  8. @JsonKey(name: '_unit') Element? unitElement,
  9. FhirUri? system,
  10. @JsonKey(name: '_system') Element? systemElement,
  11. FhirCode? code,
  12. @JsonKey(name: '_code') Element? codeElement,
})

Age A duration of time during which an organism (or a process) has existed.

id Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

extension_ ("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 managable, 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 The value of the measured amount. The value includes an implicit precision in the presentation of the value.

valueElement ("_value") Extensions for value

comparator How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is "<" , then the real value is < stated value.

comparatorElement ("_comparator") Extensions for comparator

unit A human-readable form of the unit.

unitElement ("_unit") Extensions for unit

system The identification of the system that provides the coded form of the unit.

systemElement ("_system") Extensions for system

code A computer processable form of the unit in some unit representation system.

codeElement ("_code") Extensions for code

Implementation

const factory Age({
  /// [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_] ("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 managable, 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] The value of the measured amount. The value includes an
  ///  implicit precision in the presentation of the value.
  FhirDecimal? value,

  /// [valueElement] ("_value") Extensions for value
  @JsonKey(name: '_value') Element? valueElement,

  /// [comparator] How the value should be understood and represented -
  ///  whether the actual value is greater or less than the stated value due
  ///  to measurement issues; e.g. if the comparator is "<" , then the real
  ///  value is < stated value.
  AgeComparator? comparator,

  /// [comparatorElement] ("_comparator") Extensions for comparator
  @JsonKey(name: '_comparator') Element? comparatorElement,

  /// [unit] A human-readable form of the unit.
  String? unit,

  /// [unitElement] ("_unit") Extensions for unit
  @JsonKey(name: '_unit') Element? unitElement,

  /// [system] The identification of the system that provides the coded form
  ///  of the unit.
  FhirUri? system,

  /// [systemElement] ("_system") Extensions for system
  @JsonKey(name: '_system') Element? systemElement,

  /// [code] A computer processable form of the unit in some unit
  ///  representation system.
  FhirCode? code,

  /// [codeElement] ("_code") Extensions for code
  @JsonKey(name: '_code') Element? codeElement,
}) = _Age;