PractitionerRole constructor

PractitionerRole({
  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,
})

Constructs a new PractitionerRole.

Implementation

PractitionerRole({
  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,
}) : super._internal(
        JsonObject({
          if (id != null) Resource.idField.name: JsonString(id),
          if (meta != null) Resource.metaField.name: meta.json,
          if (identifier != null)
            identifierField.name:
                JsonArray.unmodifiable(identifier.map((e) => e.json)),
          if (active != null) activeField.name: JsonBoolean(active),
          if (period != null) periodField.name: period.json,
          if (practitioner != null) practitionerField.name: practitioner.json,
          if (organization != null) organizationField.name: organization.json,
          if (code != null)
            codeField.name: JsonArray.unmodifiable(code.map((e) => e.json)),
          if (specialty != null)
            specialtyField.name:
                JsonArray.unmodifiable(specialty.map((e) => e.json)),
          if (location != null)
            locationField.name:
                JsonArray.unmodifiable(location.map((e) => e.json)),
          if (healthcareService != null)
            healthcareServiceField.name:
                JsonArray.unmodifiable(healthcareService.map((e) => e.json)),
          if (telecom != null)
            telecomField.name:
                JsonArray.unmodifiable(telecom.map((e) => e.json)),
          if (availableTime != null)
            availableTimeField.name:
                JsonArray.unmodifiable(availableTime.map((e) => e.json)),
          if (notAvailable != null)
            notAvailableField.name:
                JsonArray.unmodifiable(notAvailable.map((e) => e.json)),
          if (availabilityExceptions != null)
            availabilityExceptionsField.name:
                JsonString(availabilityExceptions),
          if (endpoint != null)
            endpointField.name:
                JsonArray.unmodifiable(endpoint.map((e) => e.json)),
        }),
      );