Patient class

FHIRPatient definition: demographics and other administrative information about an individual or animal receiving care or other health-related services.

Annotations
  • @freezed

Constructors

Patient({@JsonKey(name: 'ID') String? id, @JsonKey(name: 'Text') Narrative? text, @JsonKey(name: 'Identifier') List<Identifier?>? identifier, @JsonKey(name: 'Active') bool? active, @JsonKey(name: 'Name') List<HumanName?>? name, @JsonKey(name: 'Telecom') List<ContactPoint?>? telecom, @JsonKey(name: 'Gender', unknownEnumValue: PatientGenderEnum.unknown) PatientGenderEnum? gender, @JsonKey(name: 'BirthDate') String? birthDate, @JsonKey(name: 'DeceasedBoolean') bool? deceasedBool, @JsonKey(name: 'DeceasedDateTime') String? deceasedDateTime, @JsonKey(name: 'MultipleBirthBoolean') bool? multipleBirthBoolean, @JsonKey(name: 'MultipleBirthInteger') int? multipleBirthInteger, @JsonKey(name: 'Address') Address? address, @JsonKey(name: 'MaritalStatus') CodeableConcept? maritalStatus, @JsonKey(name: 'Photo') List<Attachment>? photo, @JsonKey(name: 'Contact') PatientContact? contact, @JsonKey(name: 'Communication') List<Communication?>? communication, @JsonKey(name: 'GeneralPractitioner') List<Reference?>? generalPractitioner, @JsonKey(name: 'ManagingOrganization') Reference? managingOrganization, @JsonKey(name: 'Link') List<PatientLink?>? link})
factory
Patient.fromJson(Map<String, dynamic> json)
factory

Properties

active bool?
no setterinherited
address Address?
no setterinherited
birthDate String?
no setterinherited
communication List<Communication?>?
A language which may be used to communicate with the patient about his or her health.
no setterinherited
contact PatientContact?
A contact party (e.g. guardian, partner, friend) for the patient.
no setterinherited
copyWith → $PatientCopyWith<Patient>
no setterinherited
deceasedBool bool?
no setterinherited
deceasedDateTime String?
no setterinherited
gender PatientGenderEnum?
no setterinherited
generalPractitioner List<Reference?>?
Patient's nominated care provider.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String?
no setterinherited
identifier List<Identifier?>?
An identifier for this patient.
no setterinherited
Link to another patient resource that concerns the same actual patient.
no setterinherited
managingOrganization Reference?
Organization that is the custodian of the patient record.
no setterinherited
maritalStatus CodeableConcept?
This field contains a patient's most recent marital (civil) status.
no setterinherited
multipleBirthBoolean bool?
Indicates whether the patient is part of a multiple (boolean) or indicates the actual birth order (integer).
no setterinherited
multipleBirthInteger int?
no setterinherited
name List<HumanName?>?
no setterinherited
photo List<Attachment>?
Image of the patient.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
telecom List<ContactPoint?>?
A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.
no setterinherited
text Narrative?
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited