felicity-lims/webapp/models/setup.ts

86 lines
1.8 KiB
TypeScript
Raw Normal View History

2023-04-10 09:29:10 +08:00
import { IAnalysisService } from './analysis';
import { IUser } from './auth';
import { IGenericLocation } from './location';
2022-03-03 07:13:52 +08:00
export interface ILaboratory extends IGenericLocation {
2023-04-10 09:29:10 +08:00
labName?: string;
labManagerUid?: string;
labManager?: IUser;
logo?: string;
address?: string;
2022-03-03 07:13:52 +08:00
}
export interface ILaboratorySetting {
2023-04-10 09:29:10 +08:00
uid?: string;
laboratoryUid?: string;
laboratory?: ILaboratory;
allowSelfVerification: boolean;
allowPatientRegistration: boolean;
allowSampleRegistration: boolean;
allowWorksheetCreation: boolean;
defaultRoute?: string;
passwordLifetime?: number;
inactivityLogOut?: number;
defaultTheme?: string;
autoReceiveSamples: boolean;
stickerCopies?: number;
2022-03-03 07:13:52 +08:00
}
export interface ISupplier {
2023-04-10 09:29:10 +08:00
uid?: string;
name?: string;
description?: string;
}
export interface IManufacturer {
2023-04-10 09:29:10 +08:00
uid?: string;
name?: string;
description?: string;
}
export interface IDepartment {
2023-04-10 09:29:10 +08:00
uid?: string;
name?: string;
description?: string;
}
export interface IInstrumentType {
2023-04-10 09:29:10 +08:00
uid?: string;
name?: string;
description?: string;
}
2021-11-12 05:30:10 +08:00
export interface IInstrument {
2023-04-10 09:29:10 +08:00
uid?: string;
name?: string;
keyword?: string;
description?: string;
supplierUid?: string;
supplier?: ISupplier;
manufacturerUid?: string;
manufacturer?: IManufacturer;
instrumentTypeUid?: string;
instrumentType?: IInstrumentType;
}
2023-04-10 09:29:10 +08:00
export interface IMethod {
2023-04-10 09:29:10 +08:00
uid?: string;
name?: string;
keyword?: string;
description?: string;
instruments?: number[] | IInstrument[];
analyses?: number[] | IAnalysisService[];
}
export interface IDepartment {
2023-04-10 09:29:10 +08:00
uid?: string;
name?: string;
description?: string;
}
export interface IUnit {
2023-04-10 09:29:10 +08:00
uid?: string;
name?: string;
isSiUnit?: boolean;
}