copyWith method
Observation
copyWith({
- String? id,
- Meta? meta,
- FixedList<
Identifier> ? identifier, - FixedList<
Reference> ? basedOn, - FixedList<
Reference> ? partOf, - String? status,
- FixedList<
CodeableConcept> ? category, - CodeableConcept? code,
- Reference? subject,
- Reference? encounter,
- DateTime? effectiveDateTime,
- Period? effectivePeriod,
- Timing? effectiveTiming,
- DateTime? effectiveInstant,
- DateTime? issued,
- Quantity? valueQuantity,
- CodeableConcept? valueCodeableConcept,
- String? valueString,
- bool? valueBoolean,
- int? valueInteger,
- Range? valueRange,
- Ratio? valueRatio,
- SampledData? valueSampledData,
- Time? valueTime,
- DateTime? valueDateTime,
- Period? valuePeriod,
- CodeableConcept? dataAbsentReason,
- FixedList<
CodeableConcept> ? interpretation, - FixedList<
Annotation> ? note, - CodeableConcept? bodySite,
- CodeableConcept? method,
- Reference? specimen,
- Reference? device,
- FixedList<
ObservationReferenceRange> ? referenceRange, - FixedList<
Reference> ? hasMember, - FixedList<
Reference> ? derivedFrom, - FixedList<
ObservationComponent> ? component, - FixedList<
CodeableReference> ? complicatedBy, - FixedList<
CodeableReference> ? contextOfUse,
Creates a copy of the Observation instance and allows for non-destructive mutation.
Implementation
Observation copyWith({
String? id,
Meta? meta,
FixedList<Identifier>? identifier,
FixedList<Reference>? basedOn,
FixedList<Reference>? partOf,
String? status,
FixedList<CodeableConcept>? category,
CodeableConcept? code,
Reference? subject,
Reference? encounter,
DateTime? effectiveDateTime,
Period? effectivePeriod,
Timing? effectiveTiming,
DateTime? effectiveInstant,
DateTime? issued,
Quantity? valueQuantity,
CodeableConcept? valueCodeableConcept,
String? valueString,
bool? valueBoolean,
int? valueInteger,
Range? valueRange,
Ratio? valueRatio,
SampledData? valueSampledData,
Time? valueTime,
DateTime? valueDateTime,
Period? valuePeriod,
CodeableConcept? dataAbsentReason,
FixedList<CodeableConcept>? interpretation,
FixedList<Annotation>? note,
CodeableConcept? bodySite,
CodeableConcept? method,
Reference? specimen,
Reference? device,
FixedList<ObservationReferenceRange>? referenceRange,
FixedList<Reference>? hasMember,
FixedList<Reference>? derivedFrom,
FixedList<ObservationComponent>? component,
FixedList<CodeableReference>? complicatedBy,
FixedList<CodeableReference>? contextOfUse,
}) =>
Observation(
id: id ?? this.id,
meta: meta ?? this.meta,
identifier: identifier ?? this.identifier,
basedOn: basedOn ?? this.basedOn,
partOf: partOf ?? this.partOf,
status: status ?? this.status,
category: category ?? this.category,
code: code ?? this.code,
subject: subject ?? this.subject,
encounter: encounter ?? this.encounter,
effectiveDateTime: effectiveDateTime ?? this.effectiveDateTime,
effectivePeriod: effectivePeriod ?? this.effectivePeriod,
effectiveTiming: effectiveTiming ?? this.effectiveTiming,
effectiveInstant: effectiveInstant ?? this.effectiveInstant,
issued: issued ?? this.issued,
valueQuantity: valueQuantity ?? this.valueQuantity,
valueCodeableConcept: valueCodeableConcept ?? this.valueCodeableConcept,
valueString: valueString ?? this.valueString,
valueBoolean: valueBoolean ?? this.valueBoolean,
valueInteger: valueInteger ?? this.valueInteger,
valueRange: valueRange ?? this.valueRange,
valueRatio: valueRatio ?? this.valueRatio,
valueSampledData: valueSampledData ?? this.valueSampledData,
valueTime: valueTime ?? this.valueTime,
valueDateTime: valueDateTime ?? this.valueDateTime,
valuePeriod: valuePeriod ?? this.valuePeriod,
dataAbsentReason: dataAbsentReason ?? this.dataAbsentReason,
interpretation: interpretation ?? this.interpretation,
note: note ?? this.note,
bodySite: bodySite ?? this.bodySite,
method: method ?? this.method,
specimen: specimen ?? this.specimen,
device: device ?? this.device,
referenceRange: referenceRange ?? this.referenceRange,
hasMember: hasMember ?? this.hasMember,
derivedFrom: derivedFrom ?? this.derivedFrom,
component: component ?? this.component,
complicatedBy: complicatedBy ?? this.complicatedBy,
contextOfUse: contextOfUse ?? this.contextOfUse,
);