import type { RoleAccess } from '~/models/role'

export const PAGE_PERMISSIONS = {
  '/patient': {
    doctor: ['R'],
    nurse: ['R'],
    admisi: ['C', 'R', 'U', 'D'],
    pharmacy: ['R'],
    billing: ['R'],
    management: ['R'],
  },
  '/doctor': {
    doctor: ['C', 'R', 'U', 'D'],
    nurse: ['R'],
    admisi: ['R'],
    pharmacy: ['R'],
    billing: ['R'],
    management: ['R'],
  },
  '/satusehat': {
    doctor: ['R'],
    nurse: ['R'],
    admisi: ['C', 'R', 'U', 'D'],
    pharmacy: ['R'],
    billing: ['R'],
    management: ['R'],
  },
  '/rehab/encounter': {
    doctor: ['C', 'R', 'U', 'D'],
    nurse: ['R'],
    admisi: ['R'],
    pharmacy: ['R'],
    billing: ['R'],
    management: ['R'],
  },
  '/rehab/registration': {
    doctor: ['C', 'R', 'U', 'D'],
    nurse: ['R'],
    admisi: ['R'],
    pharmacy: ['R'],
    billing: ['R'],
    management: ['R'],
  },
} as const satisfies Record<string, RoleAccess>
