AdmissionRepository class
Repositorio de ingresos hospitalarios.
Proporciona acceso CRUD a los endpoints REST de ingresos (/admissions/*).
Las respuestas JSON son polimórficas: pueden llegar como List,
Map con clave 'data' o Map con clave 'content'.
Constructors
- AdmissionRepository(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
-
assignDoctor(
{required String admissionId, required String doctorId, required PatientPreviewResponse patient}) → Future< AdmissionResponse> -
Reasigna el médico responsable de un ingreso vía
PATCH /admissions/assign-doctor/{id}. -
clinicalUpdate(
{required String admissionId, required String principalDiagnosis, required String medicalHistory, required PatientPreviewResponse patient, String? allergies, String? chronicTreatment, int? basalBarthel}) → Future< AdmissionResponse> -
Actualiza los datos clínicos de un ingreso vía
PUT /admissions/clinical-update/{id}. -
createAdmission(
{required String patientId, required String serviceId, required String principalDiagnosis, required String medicalHistory, String? allergies, String? chronicTreatment, int? basalBarthel}) → Future< bool> -
Crea un nuevo ingreso hospitalario vía
POST /admissions/create. -
dischargeAdmission(
String admissionId) → Future< bool> -
Tramita el alta del ingreso
admissionIdvíaPATCH /admissions/discharge/{id}. -
getMyAdmissions(
{required String doctorId, int page = 0}) → Future< List< AdmissionResponse> > -
Obtiene los ingresos activos del médico identificado por
doctorId. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
searchBySurname(
{required String surname, int page = 0}) → Future< PaginatedAdmissionResult> - Busca ingresos por apellido del paciente con paginación.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited