Practitioner constructor

Practitioner({
  1. String? id,
  2. Meta? meta,
  3. FixedList<Identifier>? identifier,
  4. bool? active,
  5. FixedList<HumanName>? name,
  6. FixedList<ContactPoint>? telecom,
  7. FixedList<Address>? address,
  8. AdministrativeGender? gender,
  9. DateTime? birthDate,
  10. List<Attachment>? photo,
  11. List<CodeableConcept>? qualification,
  12. 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)),
        }),
      );