49 lines
1.3 KiB
TypeScript
49 lines
1.3 KiB
TypeScript
export const systemCode = 'system'
|
|
|
|
export const rehabInstCode = 'rehab'
|
|
export const rehabUnitCode = 'rehab'
|
|
export const chemoUnitCode = 'chemo'
|
|
|
|
// Object keys are faster than array
|
|
export const infraPositions: Record<string, boolean> = {
|
|
'head': true,
|
|
'resp': true,
|
|
'doc': true,
|
|
'nur':true
|
|
}
|
|
export type InfraPositionCode = keyof typeof infraPositions
|
|
|
|
export const servicePositioons: Record<string, boolean> = {
|
|
'none': true,
|
|
'reg': true,
|
|
'scr': true,
|
|
'med': true,
|
|
}
|
|
export type ServicePositionCode = keyof typeof servicePositioons
|
|
|
|
export const medicalRoles: Record<string, boolean> = {
|
|
'emp|doc': true, // doctor
|
|
'emp|nur': true, // nurse
|
|
'emp|miw': true, // midwife
|
|
'emp|thr': true, // therapist
|
|
'emp|nut': true, // nutritionist
|
|
'emp|pha': true, // pharmacy
|
|
'emp|lab': true // laborant
|
|
}
|
|
export type MedicalRoleCode = keyof typeof medicalRoles
|
|
|
|
export const serviceRoles: Record<string, boolean> = {
|
|
'emp|reg': true,
|
|
'emp|scr': true,
|
|
...medicalRoles,
|
|
}
|
|
export type ServiceRoleCode = keyof typeof serviceRoles
|
|
|
|
export const unitLevels: Record<string, boolean> = {
|
|
'inst': true, // installation
|
|
'unit': true, // unit / poly
|
|
'spec': true, // specialist
|
|
'subspec': true, // subspecialist
|
|
}
|
|
export type UnitLevel = keyof typeof unitLevels
|