copyWith method
PractitionerRole
copyWith({
- String? id,
- Meta? meta,
- FixedList<
Identifier> ? identifier, - bool? active,
- Period? period,
- Reference? practitioner,
- Reference? organization,
- List<
CodeableConcept> ? code, - List<
CodeableConcept> ? specialty, - List<
Reference> ? location, - List<
Reference> ? healthcareService, - List<
ContactPoint> ? telecom, - List<
AvailableTime> ? availableTime, - List<
NotAvailable> ? notAvailable, - String? availabilityExceptions,
- List<
Reference> ? endpoint,
Creates a copy of the PractitionerRole instance and allows for non-destructive mutation.
Implementation
PractitionerRole copyWith({
String? id,
Meta? meta,
FixedList<Identifier>? identifier,
bool? active,
Period? period,
Reference? practitioner,
Reference? organization,
List<CodeableConcept>? code,
List<CodeableConcept>? specialty,
List<Reference>? location,
List<Reference>? healthcareService,
List<ContactPoint>? telecom,
List<AvailableTime>? availableTime,
List<NotAvailable>? notAvailable,
String? availabilityExceptions,
List<Reference>? endpoint,
}) =>
PractitionerRole(
id: id ?? this.id,
meta: meta ?? this.meta,
identifier: identifier ?? this.identifier,
active: active ?? this.active,
period: period ?? this.period,
practitioner: practitioner ?? this.practitioner,
organization: organization ?? this.organization,
code: code ?? this.code,
specialty: specialty ?? this.specialty,
location: location ?? this.location,
healthcareService: healthcareService ?? this.healthcareService,
telecom: telecom ?? this.telecom,
availableTime: availableTime ?? this.availableTime,
notAvailable: notAvailable ?? this.notAvailable,
availabilityExceptions:
availabilityExceptions ?? this.availabilityExceptions,
endpoint: endpoint ?? this.endpoint,
);