Practitioner constructor
Practitioner({
- String? id,
- Meta? meta,
- FixedList<
Identifier> ? identifier, - bool? active,
- FixedList<
HumanName> ? name, - FixedList<
ContactPoint> ? telecom, - FixedList<
Address> ? address, - AdministrativeGender? gender,
- DateTime? birthDate,
- List<
Attachment> ? photo, - List<
CodeableConcept> ? qualification, - List<
CodeableConcept> ? communication,
Constructs a new Practitioner.
Implementation
Practitioner({
String? id,
Meta? meta,
FixedList<Identifier>? identifier,
bool? active,
FixedList<HumanName>? name,
FixedList<ContactPoint>? telecom,
FixedList<Address>? address,
AdministrativeGender? gender,
DateTime? birthDate,
List<Attachment>? photo,
List<CodeableConcept>? qualification,
List<CodeableConcept>? communication,
}) : 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 (name != null)
nameField.name: JsonArray.unmodifiable(name.map((e) => e.json)),
if (telecom != null)
telecomField.name:
JsonArray.unmodifiable(telecom.map((e) => e.json)),
if (address != null)
addressField.name:
JsonArray.unmodifiable(address.map((e) => e.json)),
if (gender != null) genderField.name: JsonString(gender.code),
if (birthDate != null)
birthDateField.name: JsonString(birthDate.toIso8601String()),
if (photo != null)
photoField.name: JsonArray.unmodifiable(photo.map((e) => e.json)),
if (qualification != null)
qualificationField.name:
JsonArray.unmodifiable(qualification.map((e) => e.json)),
if (communication != null)
communicationField.name:
JsonArray.unmodifiable(communication.map((e) => e.json)),
}),
);