PatientResponse class

DTO completo de paciente devuelto por GET /patients/search.

Incluye datos de contacto, dirección y estado del paciente.

Constructors

PatientResponse({required String patientId, required String name, required String surname, required DateTime birthdate, required String sex, String? address, String? contactNumber, String? relativeContactNumber, required String status})
PatientResponse.fromJson(Map<String, dynamic> json)
Crea una instancia a partir del JSON devuelto por el backend.
factory

Properties

address String?
final
age int
Calcula la edad actual del paciente a partir de birthdate, ajustando si aún no ha cumplido años en el año en curso.
no setter
birthdate DateTime
final
contactNumber String?
final
hashCode int
The hash code for this object.
no setterinherited
name String
final
patientId String
final
relativeContactNumber String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sex String
final
status String
final
surname String
final

Methods

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

Operators

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