KpisRepository class
Repositorio de indicadores clave (KPIs) del servicio hospitalario.
Consulta los endpoints /kpis/* que proporcionan estadísticas agregadas:
ingresos por servicio, ingresos por médico, éxitus, estancia media global
y estancia media por médico. Todos los métodos aceptan filtros de año y mes.
Constructors
- KpisRepository(ApiClient _apiClient)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAdmissionsByDoctor(
int year, {int? month}) → Future< List< KpiDoctorData> > - Obtiene el número de ingresos agrupado por médico.
-
getAdmissionsByService(
int year, {int? month}) → Future< List< KpiMonthValue> > - Obtiene el número de ingresos del servicio, desglosado por mes.
-
getAvgStay(
int year, {int? month}) → Future< List< KpiMonthValue> > - Obtiene la estancia media (días) del servicio, desglosada por mes.
-
getAvgStayByDoctor(
int year, {int? month}) → Future< List< KpiDoctorData> > - Obtiene la estancia media (días) agrupada por médico.
-
getExitus(
int year, {int? month}) → Future< List< KpiMonthValue> > - Obtiene el número de éxitus (fallecimientos) del servicio, desglosado por mes.
-
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