Period constructor

const Period({
  1. @JsonKey(name: 'id') String? fhirId,
  2. @JsonKey(name: 'extension') List<FhirExtension>? extension_,
  3. FhirDateTime? start,
  4. @JsonKey(name: '_start') Element? startElement,
  5. FhirDateTime? end,
  6. @JsonKey(name: '_end') Element? endElement,
})

Period A time period defined by a start and end date and optionally 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.

start The start of the period. The boundary is inclusive.

startElement Extensions for start

end The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.

endElement Extensions for end

Implementation

const factory Period({
  /// [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_,

  /// [start] The start of the period. The boundary is inclusive.
  FhirDateTime? start,

  /// [startElement] Extensions for start
  @JsonKey(name: '_start') Element? startElement,

  /// [end] The end of the period. If the end of the period is missing, it
  /// means no end was known or planned at the time the instance was created.
  /// The start may be in the past, and the end date in the future, which means
  ///  that period is expected/planned to end at that time.
  FhirDateTime? end,

  /// [endElement] Extensions for end
  @JsonKey(name: '_end') Element? endElement,
}) = _Period;