copyWith method

ObservationReferenceRange copyWith({
  1. Quantity? low,
  2. Quantity? high,
  3. CodeableConcept? type,
  4. FixedList<CodeableConcept>? appliesTo,
  5. Range? age,
  6. String? text,
})

Creates a copy of this ObservationReferenceRange but with the given fields updated.

Implementation

ObservationReferenceRange copyWith({
  Quantity? low,
  Quantity? high,
  CodeableConcept? type,
  FixedList<CodeableConcept>? appliesTo,
  Range? age,
  String? text,
}) =>
    ObservationReferenceRange(
      low: low ?? this.low,
      high: high ?? this.high,
      type: type ?? this.type,
      appliesTo: appliesTo ?? this.appliesTo,
      age: age ?? this.age,
      text: text ?? this.text,
    );