export const PATIENT_CATEGORIES = {
  ALL: 'all',
  EMERGENCY: 'emergency',
  INPATIENT: 'inpatient',
  OUTPATIENT: 'outpatient',
};

export const PATIENT_CATEGORY_LABELS = {
  [PATIENT_CATEGORIES.ALL]: 'All Patients',
  [PATIENT_CATEGORIES.EMERGENCY]: 'Emergency Patients',
  [PATIENT_CATEGORIES.OUTPATIENT]: 'Outpatients',
  [PATIENT_CATEGORIES.INPATIENT]: 'Inpatients',
};

const CATEGORY_PATH = `/patients/:category`;
const PATIENT_PATH = `${CATEGORY_PATH}/:patientId`;
const ENCOUNTER_PATH = `${PATIENT_PATH}/encounter/:encounterId`;
const SUMMARY_PATH = `${ENCOUNTER_PATH}/summary`;
const MAR_PATH = `${ENCOUNTER_PATH}/mar`;
const LAB_REQUEST_PATH = `${ENCOUNTER_PATH}/lab-request/:labRequestId`;
const IMAGING_REQUEST_PATH = `${ENCOUNTER_PATH}/imaging-request/:imagingRequestId`;
const PROGRAM_REGISTRY_PATH = `${PATIENT_PATH}/program-registry/:programRegistryId`;
const PROGRAM_REGISTRY_SURVEY_PATH = `${PATIENT_PATH}/program-registry/:programRegistryId/survey/:surveyId`;

export const PATIENT_PATHS = {
  CATEGORY: CATEGORY_PATH,
  PATIENT: PATIENT_PATH,
  ENCOUNTER: ENCOUNTER_PATH,
  SUMMARY: SUMMARY_PATH,
  MAR: MAR_PATH,
  LAB_REQUEST: LAB_REQUEST_PATH,
  IMAGING_REQUEST: IMAGING_REQUEST_PATH,
  PROGRAM_REGISTRY: PROGRAM_REGISTRY_PATH,
  PROGRAM_REGISTRY_SURVEY: PROGRAM_REGISTRY_SURVEY_PATH,
};

export const PATIENT_TABS = {
  SUMMARY: 'summary',
  DETAILS: 'details',
  RESULTS: 'results',
  REFERRALS: 'referrals',
  PROGRAMS: 'programs',
  DOCUMENTS: 'documents',
  VACCINES: 'vaccines',
  MEDICATION: 'medication',
  INVOICES: 'invoices',
};
