PractitionerRole constructor
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,
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)),
}),
);