update status waiting dan update post data pasien

This commit is contained in:
bagus-arie05
2026-02-02 11:04:28 +07:00
parent 7ba1c5b7dd
commit 53a510f23d
14 changed files with 140 additions and 404 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ export interface Patient {
klinik: string;
fastTrack: string;
pembayaran: string;
status: 'waiting' | 'pending' | 'di-loket' | 'di-klinik' | 'selesai' | 'terlambat';
status: 'anjungan' | 'pending' | 'di-loket' | 'di-klinik' | 'selesai' | 'terlambat';
processStage: 'loket' | 'klinik' | 'penunjang';
createdAt: string;
registrationType?: 'online' | 'onsite';
@@ -127,7 +127,7 @@ export const useQueueAPI = () => {
idOrBarcode: string,
updates: { status?: string; processStage?: string }
): Promise<Patient> => {
return updatePatient(idOrBarcode, updates);
return updatePatient(idOrBarcode, updates as Partial<Patient>);
};
/**