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 = { 'head': true, 'resp': true, 'doc': true, 'nur':true } export type InfraPositionCode = keyof typeof infraPositions export const servicePositioons: Record = { 'none': true, 'reg': true, 'scr': true, 'med': true, } export type ServicePositionCode = keyof typeof servicePositioons export const medicalRoles: Record = { '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 = { 'emp|reg': true, 'emp|scr': true, ...medicalRoles, } export type ServiceRoleCode = keyof typeof serviceRoles export const unitLevels: Record = { 'inst': true, // installation 'unit': true, // unit / poly 'spec': true, // specialist 'subspec': true, // subspecialist } export type UnitLevel = keyof typeof unitLevels