FhirDuration constructor

const FhirDuration({
  1. @JsonKey(name: 'id') String? fhirId,
  2. @JsonKey(name: 'extension') List<FhirExtension>? extension_,
  3. FhirDecimal? value,
  4. @JsonKey(name: '_value') Element? valueElement,
  5. @JsonKey(unknownEnumValue: DurationComparator.unknown) DurationComparator? 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,
})

Duration A length of time.

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

valueElement 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 Extensions for comparator

unit A human-readable form of the unit.

unitElement Extensions for unit

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

systemElement Extensions for system

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

codeElement Extensions for code

Implementation

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

  /// [valueElement] Extensions for value
  @JsonKey(name: '_value') Element? valueElement,
  @JsonKey(unknownEnumValue: DurationComparator.unknown)

  /// [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.
  DurationComparator? comparator,

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

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

  /// [unitElement] 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] Extensions for system
  @JsonKey(name: '_system') Element? systemElement,

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

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