copyWith method

PractitionerRole copyWith({
  1. String? id,
  2. Meta? meta,
  3. FixedList<Identifier>? identifier,
  4. bool? active,
  5. Period? period,
  6. Reference? practitioner,
  7. Reference? organization,
  8. List<CodeableConcept>? code,
  9. List<CodeableConcept>? specialty,
  10. List<Reference>? location,
  11. List<Reference>? healthcareService,
  12. List<ContactPoint>? telecom,
  13. List<AvailableTime>? availableTime,
  14. List<NotAvailable>? notAvailable,
  15. String? availabilityExceptions,
  16. 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,
    );