copyWith method
Encounter
copyWith({
- FixedList<
Identifier> ? identifier, - EncounterStatus? status,
- CodeableConcept? classCode,
- FixedList<
CodeableConcept> ? type, - CodeableConcept? serviceType,
- CodeableConcept? priority,
- Reference? subject,
- FixedList<
Participant> ? participant, - Period? period,
- Length? length,
- FixedList<
CodeableConcept> ? reasonCode, - Hospitalization? hospitalization,
- FixedList<
Reference> ? location,
Creates a copy of the Encounter instance and allows for non-destructive mutation.
Implementation
Encounter copyWith({
FixedList<Identifier>? identifier,
EncounterStatus? status,
CodeableConcept? classCode,
FixedList<CodeableConcept>? type,
CodeableConcept? serviceType,
CodeableConcept? priority,
Reference? subject,
FixedList<Participant>? participant,
Period? period,
Length? length,
FixedList<CodeableConcept>? reasonCode,
Hospitalization? hospitalization,
FixedList<Reference>? location,
}) =>
Encounter(
id: id,
meta: meta,
identifier: identifier ?? this.identifier,
status: status ?? this.status,
classCode: classCode ?? this.classCode,
type: type ?? this.type,
serviceType: serviceType ?? this.serviceType,
priority: priority ?? this.priority,
subject: subject ?? this.subject,
participant: participant ?? this.participant,
period: period ?? this.period,
length: length ?? this.length,
reasonCode: reasonCode ?? this.reasonCode,
hospitalization: hospitalization ?? this.hospitalization,
location: location ?? this.location,
);