Patient constructor

Patient({
  1. String? id,
  2. Meta? meta,
  3. Uri? implicitRules,
  4. Language? language,
  5. Narrative? text,
  6. FixedList<Resource>? contained,
  7. FixedList<Extension>? extension,
  8. FixedList<Extension>? modifierExtension,
  9. FixedList<Identifier>? identifier,
  10. bool? active,
  11. FixedList<HumanName>? name,
  12. FixedList<ContactPoint>? telecom,
  13. AdministrativeGender? gender,
  14. DateTime? birthDate,
  15. BooleanOrDateTimeChoice? deceased,
  16. FixedList<Address>? address,
  17. MaritalStatus? maritalStatus,
  18. BooleanOrIntegerChoice? multipleBirth,
  19. FixedList<Attachment>? photo,
  20. FixedList<BackboneElement>? contact,
  21. FixedList<BackboneElement>? communication,
  22. FixedList<Reference>? generalPractitioner,
  23. Reference? managingOrganization,
  24. FixedList<BackboneElement>? link,
})

Constructs a new Patient.

Implementation

Patient({
  String? id,
  Meta? meta,
  Uri? implicitRules,
  Language? language,
  Narrative? text,
  FixedList<Resource>? contained,
  FixedList<Extension>? extension,
  FixedList<Extension>? modifierExtension,
  FixedList<Identifier>? identifier,
  bool? active,
  FixedList<HumanName>? name,
  FixedList<ContactPoint>? telecom,
  AdministrativeGender? gender,
  DateTime? birthDate,
  BooleanOrDateTimeChoice? deceased,
  FixedList<Address>? address,
  MaritalStatus? maritalStatus,
  BooleanOrIntegerChoice? multipleBirth,
  FixedList<Attachment>? photo,
  FixedList<BackboneElement>? contact,
  FixedList<BackboneElement>? communication,
  FixedList<Reference>? generalPractitioner,
  Reference? managingOrganization,
  FixedList<BackboneElement>? link,
}) : super._internal(
        JsonObject({
          if (id != null) idField.name: JsonString(id),
          if (meta != null) metaField.name: meta.json,
          if (implicitRules != null)
            implicitRulesField.name: JsonString(implicitRules.toString()),
          if (language != null) languageField.name: language.json,
          if (text != null) textField.name: text.json,
          if (contained != null)
            containedField.name: JsonArray.unmodifiable(
              contained.map((e) => e.json),
            ),
          if (extension != null)
            extensionField.name: JsonArray.unmodifiable(
              extension.map((e) => e.json),
            ),
          if (modifierExtension != null)
            modifierExtensionField.name: JsonArray.unmodifiable(
              modifierExtension.map((e) => e.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 (gender != null) genderField.name: gender.json,
          if (birthDate != null)
            birthDateField.name: JsonString(birthDate.toIso8601String()),
          if (deceased != null) deceasedField.name: deceased.json,
          if (address != null)
            addressField.name: JsonArray.unmodifiable(
              address.map((e) => e.json),
            ),
          if (maritalStatus != null)
            maritalStatusField.name: maritalStatus.json,
          if (multipleBirth != null)
            multipleBirthField.name: multipleBirth.json,
          if (photo != null)
            photoField.name: JsonArray.unmodifiable(
              photo.map((e) => e.json),
            ),
          if (contact != null)
            contactField.name: JsonArray.unmodifiable(
              contact.map((e) => e.json),
            ),
          if (communication != null)
            communicationField.name: JsonArray.unmodifiable(
              communication.map((e) => e.json),
            ),
          if (generalPractitioner != null)
            generalPractitionerField.name: JsonArray.unmodifiable(
              generalPractitioner.map((e) => e.json),
            ),
          if (managingOrganization != null)
            managingOrganizationField.name: managingOrganization.json,
          if (link != null)
            linkField.name: JsonArray.unmodifiable(
              link.map((e) => e.json),
            ),
        }),
      );