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