import type { Permission } from "~/models/role";

// Should we define the keys first?
// export type Keys = 'key1' | 'key2' | 'key3' | etc

export const permissions: Record<string, Record<string, Permission[]>> = {
  '/inpatient/request': {
    'emp|reg': ['C', 'R', 'U', 'D'],
  },
  '/inpatient/request/[id]/detail': {
    'emp|reg': ['C', 'R', 'U', 'D'],
  },
  '/inpatient/encounter': {
    'emp|reg': ['C', 'R', 'U', 'D'],
    'emp|doc': ['R'],
    'emp|nur': ['R'],
    'emp|thr': ['R'],
    'emp|miw': ['R'],
    'emp|nut': ['R'],
    'emp|pha': ['R'],
    'emp|lab': ['R'],
    'emp|rad': ['R'],
  },
  '/inpatient/encounter/add': {
    'emp|reg': ['C', 'R', 'U', 'D'],
  },
  '/inpatient/encounter/[id]': {
    'emp|reg': ['C', 'R', 'U', 'D'],
    'emp|doc': ['R'],
    'emp|nur': ['R'],
    'emp|thr': ['R'],
    'emp|miw': ['R'],
    'emp|nut': ['R'],
    'emp|pha': ['R'],
    'emp|lab': ['R'],
    'emp|rad': ['R'],
  },
  '/inpatient/encounter/[id]/edit': {
    'emp|reg': ['C', 'R', 'U', 'D'],
  },
  '/inpatient/encounter/[id]/process': {
    'emp|doc': ['R', 'U'],
    'emp|nur': ['R', 'U'],
    'emp|thr': ['R', 'U'],
    'emp|miw': ['R', 'U'],
    'emp|nut': ['R', 'U'],
    'emp|pha': ['R', 'U'],
    'emp|lab': ['R', 'U'],
    'emp|rad': ['R', 'U'],
  },
  '/inpatient/consulation': {
    'emp|doc': ['R'],
  },
  '/inpatient/consulation/[id]/process': {
    'emp|doc': ['R', 'U'],
  },
}
