Files
antrean-operasi/types/antrean.ts
2026-03-05 10:34:59 +07:00

64 lines
1.3 KiB
TypeScript

// Types for Antrean (Queue) related functionality
// Status constants
export const STATUS = {
BELUM: '1',
SELESAI: '2',
TUNDA: '3',
BATAL: '4'
} as const;
export const statusLabels = {
[STATUS.BELUM]: 'Belum',
[STATUS.SELESAI]: 'Selesai',
[STATUS.TUNDA]: 'Tunda',
[STATUS.BATAL]: 'Batal'
};
export const statusOptions = [
{ value: null, label: 'Semua Status' },
{ value: STATUS.BELUM, label: 'Belum' },
{ value: STATUS.SELESAI, label: 'Selesai' },
{ value: STATUS.TUNDA, label: 'Tunda' },
{ value: STATUS.BATAL, label: 'Batal' }
];
export interface AntreanOperasi {
id: number;
jenisKelamin: string;
namaPasien: string;
noKtp: string;
noRekamMedis: string;
kodeSpesialis?: string;
kodeSubSpesialis?: string;
idKategoriOperasi?: number;
StatusOperasi?: string;
}
export interface Spesialis {
id: number;
kode: string;
spesialis: string;
}
export interface SubSpesialis {
id: number;
kode: string;
kode_spesialis?: string;
spesialis?: string;
subspesialis?: string;
sub_spesialis?: string;
id_spesialis: number;
}
export interface KategoriOperasi {
id: number;
kategori: string;
}
export interface AntreanKategoriOperasi {
id_kategori: number;
kategori: string;
jumlah_antrean: number;
}