EpisodeResponse class

DTO de respuesta de la API para un episodio clínico (evolución).

Mapea directamente el JSON del backend. Usa toDomain para obtener la entidad de dominio Episode libre de dependencias de la capa de datos.

Constructors

EpisodeResponse({required String episodeId, required String admissionId, required String doctorId, required String clinicalProgress, required String diagnosis, int? bradenScore, bool? camScore, int? chads2Score, required DateTime createdAt, required String createdBy, String? createdByName, DateTime? lastModifiedAt, String? lastModifiedBy})
EpisodeResponse.fromJson(Map<String, dynamic> json)
Parsea el JSON de la API incluyendo fechas ISO-8601 opcionales.
factory

Properties

admissionId String
final
bradenScore int?
final
camScore bool?
final
chads2Score int?
final
clinicalProgress String
final
createdAt DateTime
final
createdBy String
final
createdByName String?
final
diagnosis String
final
doctorId String
final
episodeId String
final
hashCode int
The hash code for this object.
no setterinherited
lastModifiedAt DateTime?
final
lastModifiedBy String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDomain() Episode
Convierte este DTO en la entidad de dominio Episode.
toString() String
A string representation of this object.
inherited

Operators

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