684 lines
25 KiB
Plaintext
684 lines
25 KiB
Plaintext
|
import { createBrowserRouter } from "react-router-dom";
|
||
|
import Root from "./components/pages/Root";
|
||
|
import ErrorPage from "./components/pages/ErrorPage";
|
||
|
// import Ohcs from "./components/pages/Ohcs";
|
||
|
// import Roles from "./components/pages/Roles";
|
||
|
import ProtectedRoute from "./utils/ProtectedRoute";
|
||
|
// import Login from "./components/pages/Login";
|
||
|
import Login from "./components/pages/Signup";
|
||
|
import PersistLogin from "./utils/PersistLogin";
|
||
|
import OhcList from "./components/pages/OhcList";
|
||
|
// import AdminHome from "./components/pages/AdminHome";
|
||
|
import UserList from "./components/pages/UserList";
|
||
|
// import UserForm from "./components/pages/UserForm";
|
||
|
// import OhcForm from "./components/pages/OhcForm";
|
||
|
// import MenuForm from "./components/pages/MenuForm";
|
||
|
import MenuList from "./components/pages/MenuList";
|
||
|
import RoleList from "./components/pages/RoleList";
|
||
|
import BussinessList from "./components/pages/BussinessList";
|
||
|
import DepartmentList from "./components/pages/DepartmentList";
|
||
|
import DesignationList from "./components/pages/DesignationList";
|
||
|
import AddFilterMasterList from "./components/pages/AddFilterMasterList";
|
||
|
// import DesignationList from "./DesignationList";
|
||
|
// import DesignationList from "designation/DesignationList";
|
||
|
|
||
|
import SectionList from "./components/pages/SectionList";
|
||
|
import EmployeeCadreList from "./components/pages/EmployeeCadreList";
|
||
|
import EmployeeContractorList from "./components/pages/EmployeeContractorList";
|
||
|
import MedTimingList from "./components/pages/MedTimingList";
|
||
|
import ComplaintList from "./components/pages/ComplaintList";
|
||
|
import RefferalPointList from "./components/pages/RefferalPointList";
|
||
|
import AilmentSystemList from "./components/pages/AilmentSystemList";
|
||
|
import DiagnosisList from "./components/pages/DiagnosisList";
|
||
|
import RefferedByList from "./components/pages/RefferedByList";
|
||
|
import AbnormalityList from "./components/pages/AbnormalityList";
|
||
|
import AddDocDetailList from "./components/pages/AddDocDetailList";
|
||
|
import DiagnosisBSMList from "./components/pages/DiagnosisBSMList";
|
||
|
import TaskFrequencyList from "./components/pages/TaskFrequencyList";
|
||
|
import ConfigList from "./components/pages/ConfigList";
|
||
|
import DisposalAgencyList from "./components/pages/DisposalAgencyList";
|
||
|
import ReportMasterList from "./components/pages/ReportMasteList";
|
||
|
import RouteAdminList from "./components/pages/RouteAdminList";
|
||
|
import FirstAidList from "./components/pages/FirstAidList";
|
||
|
import MedicalList from "./components/pages/MedicalList";
|
||
|
import BioMedicalWasteList from "./components/pages/BioMedicalWasteList";
|
||
|
import BusinessReportList from "./components/pages/BusinessReportList";
|
||
|
import GroupitemsList from "./components/pages/GroupitemsList";
|
||
|
import MedicalItemList from "./components/pages/MedicalItemList";
|
||
|
|
||
|
import InjuryClassificationList from "./components/pages/InjuryClassificationList";
|
||
|
import InjuryPartList from "./components/pages/InjuryPartList";
|
||
|
import InjuryTypeList from "./components/pages/InjuryTypeList";
|
||
|
import DiagnosisTreatmentList from "./components/pages/DiagnosisTreatmentList";
|
||
|
import DiagnosisCIMList from "./components/pages/DiagnosisCIMList";
|
||
|
import AppointmentSlotsList from "./components/pages/AppointmentSlotsList";
|
||
|
import SaltList from "./components/pages/SaltList";
|
||
|
import HabitList from "./components/pages/HabitList";
|
||
|
import DeviceList from "./components/pages/DeviceList";
|
||
|
import DeviceMappingList from "./components/pages/DeviceMappingList";
|
||
|
import PlantList from "./components/pages/PlantList";
|
||
|
import VaccineList from "./components/pages/VaccineList";
|
||
|
import RoleSelection from "./components/pages/RoleSelection";
|
||
|
// import OhcSelection from "./components/pages/OhcSelection";
|
||
|
import PatientList from "./components/pages/PatientList";
|
||
|
import Patient from "./components/pages/Patient";
|
||
|
import MedFreqList from "./components/pages/MedFreqList";
|
||
|
import ContactList from "./components/pages/ContactList";
|
||
|
import NutrientList from "./components/pages/NutrientList";
|
||
|
import FoodList from "./components/pages/FoodList";
|
||
|
import ExerciseMinuteList from "./components/pages/ExerciseMinuteList";
|
||
|
import BodyMeasurementList from "./components/pages/BodyMeasurementList";
|
||
|
// import LandingPageList from "./components/pages/LandingPageList";
|
||
|
import PatientAndContact from "./components/pages/PatientAndContact";
|
||
|
import AdminDashboard from "./components/pages/AdminDashboard";
|
||
|
import ExerciseList from "./components/pages/ExerciseList";
|
||
|
import FoodMasterList from "./components/pages/FoodMasterList";
|
||
|
import UnitList from "./components/pages/UnitList";
|
||
|
import NutrientUnitList from "./components/pages/NutrientUnitList";
|
||
|
import FoodNutritionMappingList from "./components/pages/FoodNutritionMappingList";
|
||
|
import DoctorDashboard from "./components/pages/DoctorDashboard";
|
||
|
import BodyParameterList from "./components/pages/BodyParameterList";
|
||
|
import DisplayPatientData from "./components/pages/DisplayPatientData";
|
||
|
import ConsultationForm from "./components/pages/ConsultationForm";
|
||
|
import PatientDashboard from "./components/pages/PatientDashboard";
|
||
|
import ApplicationAdminDashboard from "./components/pages/ApplicationAdminDashboard";
|
||
|
import MedicineCategoryList from "./components/pages/MedicineCategoryList";
|
||
|
import ManageCategoryList from "./components/pages/ManageCategoryList";
|
||
|
|
||
|
import AmbulanceCategoryList from "./components/pages/AmbulanceCategoryList";
|
||
|
import AmbulanceList from "./components/pages/AmbulanceList";
|
||
|
// import { Navigate } from "react-router-dom";
|
||
|
// import { useNavigate } from "react-router-dom";
|
||
|
// const Navigate
|
||
|
import CheckupParameterGroupList from "./components/pages/CheckupParameterGroupList";
|
||
|
import CheckupSectionMasterList from "./components/pages/CheckupSectionMasterList";
|
||
|
import CheckupParameterValuesList from "./components/pages/CheckupParameterValuesList";
|
||
|
import HealthAdviceList from "./components/pages/HealthAdviceList";
|
||
|
import HealthRiskList from "./components/pages/HealthRiskList";
|
||
|
import CovidWahMasterList from "./components/pages/CovidWahMasterList";
|
||
|
import QuestionaireMasterList from "./components/pages/QuestionaireMasterList";
|
||
|
import JobProfileList from "./components/pages/JobProfileList";
|
||
|
import CanteenLocationList from "./components/pages/CanteenLocationList";
|
||
|
import HealthReportableParameterList from "./components/pages/HealthReportableParameterList";
|
||
|
import ParameterUnitMasterList from "./components/pages/ParameterUnitMasterList";
|
||
|
import DeviceLinkList from "./components/pages/DeviceLinkList";
|
||
|
import CheckupTypeNameList from "./components/pages/CheckupTypeNameList";
|
||
|
import RulegenerationList from "./components/pages/RulegenerationList";
|
||
|
|
||
|
//inventory
|
||
|
import HomeOhcStore from "./components/pages/HomeOhcStore";
|
||
|
import ProcurementList from "./components/pages/ProcurementList";
|
||
|
import ProcurementForm from "./components/pages/ProcurementForm";
|
||
|
import ProcurementIndentForm from "./components/pages/ProcurementIndentForm";
|
||
|
import IndentList from "./components/pages/IndentList";
|
||
|
import ViewApprovedIndentsList from "./components/pages/ViewApprovedIndentsList";
|
||
|
import UploadExcelProcurement from "./components/pages/UploadExcelProcurement";
|
||
|
|
||
|
import StockList from "./components/pages/StockList";
|
||
|
import NearingExpiryList from "./components/pages/NearingExpiryList";
|
||
|
import ExpiryList from "./components/pages/ExpiryList";
|
||
|
|
||
|
import CheckupParameterList from "./components/pages/CheckupParameterList";
|
||
|
import DeviceParameterLinkList from "./components/pages/DeviceParameterLinkList";
|
||
|
// import { elements } from "chart.js";
|
||
|
|
||
|
import EditOpd from "./components/pages/EditOpd";
|
||
|
import EmpList from "./components/pages/EmpList";
|
||
|
import UploadExcelEmp from "./components/pages/UploadExcelEmp";
|
||
|
import AddEmployeeDetails from "./components/pages/AddEmployeeDetails";
|
||
|
import EditEmployeeDetails from "./components/pages/EditEmployeeDetails";
|
||
|
import AppointmentList from "./components/pages/AppointmentList";
|
||
|
import EditInjury from "./components/pages/EditInjury";
|
||
|
import DetentionList from "./components/pages/DetentionList";
|
||
|
import EditIpd from "./components/pages/EditIpd";
|
||
|
|
||
|
|
||
|
const router = createBrowserRouter([
|
||
|
{
|
||
|
path: "/",
|
||
|
element: <Login />,
|
||
|
index: true,
|
||
|
},
|
||
|
{
|
||
|
path: "/",
|
||
|
element: <PersistLogin />,
|
||
|
children: [
|
||
|
{
|
||
|
element: <ProtectedRoute />,
|
||
|
children: [
|
||
|
// {
|
||
|
// path: "/ohcSelection",
|
||
|
// element: <OhcSelection />,
|
||
|
// },
|
||
|
{
|
||
|
path: "/roleSelection",
|
||
|
element: <RoleSelection />,
|
||
|
},
|
||
|
// {
|
||
|
// path : "/Ohc",
|
||
|
// element : <OhcSelection />
|
||
|
// }
|
||
|
// {
|
||
|
// path : "/NemroleSelection",
|
||
|
// element : <RoleSelection />
|
||
|
// }
|
||
|
],
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
|
||
|
{
|
||
|
path: "/",
|
||
|
element: <Root />,
|
||
|
errorElement: <ErrorPage />,
|
||
|
children: [
|
||
|
{
|
||
|
element: <PersistLogin />,
|
||
|
children: [
|
||
|
{
|
||
|
element: <ProtectedRoute />,
|
||
|
children: [
|
||
|
{
|
||
|
path: "/AdminDashboard",
|
||
|
element: <AdminDashboard />,
|
||
|
},
|
||
|
{
|
||
|
path : "home-ohc-store",
|
||
|
element :<HomeOhcStore />
|
||
|
},
|
||
|
{
|
||
|
path: "data-setup",
|
||
|
children: [
|
||
|
{
|
||
|
path: "company-setup",
|
||
|
children: [
|
||
|
{
|
||
|
path: "ohcList",
|
||
|
element: <OhcList />,
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
{
|
||
|
path: "user-management",
|
||
|
children: [
|
||
|
{
|
||
|
path: "users",
|
||
|
element: <UserList />,
|
||
|
},
|
||
|
{
|
||
|
path: "roles",
|
||
|
element: <RoleList />,
|
||
|
},
|
||
|
{
|
||
|
path: "menus",
|
||
|
element: <MenuList />,
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
{
|
||
|
path: "masters",
|
||
|
children: [
|
||
|
{
|
||
|
path: "task-frequency",
|
||
|
element: <TaskFrequencyList />,
|
||
|
},
|
||
|
{
|
||
|
path: "appointment-slot",
|
||
|
element: <AppointmentSlotsList />,
|
||
|
},
|
||
|
{
|
||
|
path: "device",
|
||
|
element: <DeviceList />,
|
||
|
},
|
||
|
{
|
||
|
path: "device-mapping",
|
||
|
element: <DeviceMappingList />,
|
||
|
},
|
||
|
{
|
||
|
path: "salt",
|
||
|
element: <SaltList />,
|
||
|
},
|
||
|
{
|
||
|
path: "habit",
|
||
|
element: <HabitList />,
|
||
|
},
|
||
|
{
|
||
|
path: "plant",
|
||
|
element: <PlantList />,
|
||
|
},
|
||
|
{
|
||
|
path: "vaccine",
|
||
|
element: <VaccineList />,
|
||
|
},
|
||
|
{
|
||
|
path: "unit",
|
||
|
element: <UnitList />,
|
||
|
},
|
||
|
{
|
||
|
path: "config",
|
||
|
element: <ConfigList />,
|
||
|
},
|
||
|
{
|
||
|
path: "disposal-agency",
|
||
|
element: <DisposalAgencyList />,
|
||
|
},
|
||
|
{
|
||
|
path: "report",
|
||
|
element: <ReportMasterList />,
|
||
|
},
|
||
|
{
|
||
|
path: "add-filter",
|
||
|
element: <AddFilterMasterList />,
|
||
|
},
|
||
|
{
|
||
|
path: "route-administration",
|
||
|
element: <RouteAdminList />,
|
||
|
},
|
||
|
{
|
||
|
path: "first-aid-box",
|
||
|
element: <FirstAidList />,
|
||
|
},
|
||
|
{
|
||
|
path : "bio-wast-collectors",
|
||
|
element : <BioMedicalWasteList />
|
||
|
},
|
||
|
{
|
||
|
path : "ambulance",
|
||
|
element : <AmbulanceList />
|
||
|
},
|
||
|
{
|
||
|
path : "business-report-filter",
|
||
|
element : <BusinessReportList />
|
||
|
}
|
||
|
],
|
||
|
},
|
||
|
{
|
||
|
path: "medical",
|
||
|
children: [
|
||
|
{
|
||
|
path: "medicine-category",
|
||
|
element: <MedicineCategoryList />,
|
||
|
},
|
||
|
{
|
||
|
path: "manage-category",
|
||
|
element: <ManageCategoryList />,
|
||
|
},
|
||
|
{
|
||
|
path: "medical-form",
|
||
|
element: <MedicalList />,
|
||
|
},
|
||
|
{
|
||
|
path : "group-items",
|
||
|
element : <GroupitemsList />
|
||
|
},
|
||
|
{
|
||
|
path : "medical-item",
|
||
|
element : <MedicalItemList />
|
||
|
}
|
||
|
],
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
|
||
|
// {
|
||
|
// path : "patient-profile-setup",
|
||
|
// element: <Navigate to="division-list" replace />,
|
||
|
// children : [
|
||
|
{
|
||
|
path: "patient-profile-setup/division", // division list
|
||
|
element: <BussinessList />,
|
||
|
},
|
||
|
{
|
||
|
path: "patient-profile-setup/department",
|
||
|
element: <DepartmentList />,
|
||
|
},
|
||
|
{
|
||
|
path: "patient-profile-setup/designation",
|
||
|
element: <DesignationList />,
|
||
|
},
|
||
|
{
|
||
|
path: "patient-profile-setup/section",
|
||
|
element: <SectionList />,
|
||
|
},
|
||
|
{
|
||
|
path: "patient-profile-setup/employee-cadre",
|
||
|
element: <EmployeeCadreList />,
|
||
|
},
|
||
|
{
|
||
|
path: "patient-profile-setup/employer-contractor",
|
||
|
element: <EmployeeContractorList />,
|
||
|
},
|
||
|
|
||
|
{
|
||
|
path: "opd-setup-master",
|
||
|
children: [
|
||
|
{
|
||
|
path: "medicine-frequency",
|
||
|
element: <MedFreqList />,
|
||
|
},
|
||
|
|
||
|
{
|
||
|
path: "medicine-timing",
|
||
|
element: <MedTimingList />,
|
||
|
},
|
||
|
{
|
||
|
path: "refferal-point",
|
||
|
element: <RefferalPointList />,
|
||
|
},
|
||
|
{
|
||
|
path: "ailment-system",
|
||
|
element: <AilmentSystemList />,
|
||
|
},
|
||
|
{
|
||
|
path: "diagnosis",
|
||
|
element: <DiagnosisList />,
|
||
|
},
|
||
|
{
|
||
|
path: "reffered-by",
|
||
|
element: <RefferedByList />,
|
||
|
},
|
||
|
{
|
||
|
path: "abnormality",
|
||
|
element: <AbnormalityList />,
|
||
|
},
|
||
|
{
|
||
|
path: "add-doc-detail",
|
||
|
element: <AddDocDetailList />,
|
||
|
},
|
||
|
{
|
||
|
path: "complaint",
|
||
|
element: <ComplaintList />,
|
||
|
},
|
||
|
{
|
||
|
path: "diagnosis-body-system-mapping",
|
||
|
element: <DiagnosisBSMList />,
|
||
|
},
|
||
|
{
|
||
|
path: "diagnosis-treatment",
|
||
|
element: <DiagnosisTreatmentList />,
|
||
|
},
|
||
|
{
|
||
|
path: "diagnosis-chronic-illness",
|
||
|
element: <DiagnosisCIMList />,
|
||
|
},
|
||
|
{
|
||
|
path : "injury-ailment",
|
||
|
children : [
|
||
|
{
|
||
|
path : "injury-classes",
|
||
|
element : <InjuryClassificationList />
|
||
|
},
|
||
|
{
|
||
|
path: "injury-type",
|
||
|
element: <InjuryTypeList />,
|
||
|
},
|
||
|
{
|
||
|
path: "injury-part",
|
||
|
element: <InjuryPartList />,
|
||
|
}
|
||
|
]
|
||
|
|
||
|
}
|
||
|
],
|
||
|
|
||
|
},
|
||
|
{
|
||
|
path: "medical-checkup-master",
|
||
|
children: [
|
||
|
{
|
||
|
path:"checkup-parameter-group",
|
||
|
element:<CheckupParameterGroupList/>
|
||
|
},
|
||
|
{
|
||
|
path:"checkup-section-master",
|
||
|
element: <CheckupSectionMasterList/>
|
||
|
},
|
||
|
{
|
||
|
path:"checkup-parameter-value",
|
||
|
element: <CheckupParameterValuesList/>
|
||
|
},
|
||
|
{
|
||
|
path:"health-advice",
|
||
|
element: <HealthAdviceList/>
|
||
|
},
|
||
|
{
|
||
|
path:"health-risk",
|
||
|
element:<HealthRiskList/>
|
||
|
},
|
||
|
{
|
||
|
path: "covid-wah-master",
|
||
|
element: <CovidWahMasterList/>
|
||
|
},
|
||
|
{
|
||
|
path:"questionair-master",
|
||
|
element:<QuestionaireMasterList/>
|
||
|
},
|
||
|
{
|
||
|
path:"job-profile",
|
||
|
element:<JobProfileList/>
|
||
|
},
|
||
|
{
|
||
|
path:"food-canteen-location",
|
||
|
element:<CanteenLocationList/>
|
||
|
},
|
||
|
{
|
||
|
path:"health-reportable-parameter",
|
||
|
element:<HealthReportableParameterList/>
|
||
|
},
|
||
|
{
|
||
|
path:"parameter-unit-master",
|
||
|
element:<ParameterUnitMasterList/>
|
||
|
},
|
||
|
{
|
||
|
path:"device-link",
|
||
|
element:<DeviceLinkList/>
|
||
|
},
|
||
|
{
|
||
|
path:"checkup-type-name",
|
||
|
element:<CheckupTypeNameList/>
|
||
|
},
|
||
|
{
|
||
|
path:"rule-generation",
|
||
|
element:<RulegenerationList/>
|
||
|
},
|
||
|
{
|
||
|
path:"checkup-parameter",
|
||
|
element:<CheckupParameterList />
|
||
|
},
|
||
|
{
|
||
|
path : "device-parameter-link",
|
||
|
element : <DeviceParameterLinkList />
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
path : "inventory",
|
||
|
children :[
|
||
|
{
|
||
|
path : "ambulance-categories",
|
||
|
element : <AmbulanceCategoryList />
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
|
||
|
{
|
||
|
path : "inventory", // pharmacy or nursing
|
||
|
children :[
|
||
|
{
|
||
|
path : "procurement-list",
|
||
|
element : <ProcurementList />
|
||
|
},
|
||
|
{
|
||
|
path : "procurement",
|
||
|
element : <ProcurementForm />
|
||
|
},
|
||
|
{
|
||
|
path : "procurement-indent",
|
||
|
element : <ProcurementIndentForm />
|
||
|
},
|
||
|
{
|
||
|
path : 'indent-list',
|
||
|
element : <IndentList />
|
||
|
},
|
||
|
{
|
||
|
path : "view-approved-indents",
|
||
|
element : <ViewApprovedIndentsList />
|
||
|
},
|
||
|
{
|
||
|
path : "upload-excel-procurement",
|
||
|
element : <UploadExcelProcurement />
|
||
|
},
|
||
|
{
|
||
|
path: "store-stock",
|
||
|
element: <StockList />,
|
||
|
},
|
||
|
{
|
||
|
path: "nearing-expiry",
|
||
|
element: <NearingExpiryList />,
|
||
|
},
|
||
|
{
|
||
|
path: "expired",
|
||
|
element: <ExpiryList />,
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
path : "patient-management",
|
||
|
children :[
|
||
|
{
|
||
|
path : "emp-list",
|
||
|
element : <EmpList />
|
||
|
},
|
||
|
{
|
||
|
path : 'upload-excel-emp',
|
||
|
element :<UploadExcelEmp />
|
||
|
},
|
||
|
{
|
||
|
path : 'add-employee-details',
|
||
|
element :<AddEmployeeDetails />
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
path : "procurement",
|
||
|
element : <ProcurementForm />
|
||
|
},
|
||
|
{
|
||
|
path : "edit-employee-details",
|
||
|
element : <EditEmployeeDetails />
|
||
|
},
|
||
|
{
|
||
|
path: "/patients",
|
||
|
element: <PatientList />,
|
||
|
},
|
||
|
{
|
||
|
path: "/Patient/:id",
|
||
|
element: <Patient />,
|
||
|
},
|
||
|
|
||
|
{
|
||
|
path: "/ContactList",
|
||
|
element: <ContactList />,
|
||
|
},
|
||
|
{
|
||
|
path: "/NutrientList",
|
||
|
element: <NutrientList />,
|
||
|
},
|
||
|
{
|
||
|
path: "/food-item",
|
||
|
element: <FoodList />,
|
||
|
},
|
||
|
{
|
||
|
path: "/ExerciseMinuteList",
|
||
|
element: <ExerciseMinuteList />,
|
||
|
},
|
||
|
{
|
||
|
path: "/BodyMeasurementList",
|
||
|
element: <BodyMeasurementList />,
|
||
|
},
|
||
|
{
|
||
|
path: "/PatientAndContact/:id",
|
||
|
element: <PatientAndContact />,
|
||
|
},
|
||
|
{
|
||
|
path: "/exercise-master",
|
||
|
element: <ExerciseList />,
|
||
|
},
|
||
|
{
|
||
|
path: "/FoodMasterList", // not used
|
||
|
element: <FoodMasterList />,
|
||
|
},
|
||
|
{
|
||
|
path: "/unit-master",
|
||
|
element: <UnitList />,
|
||
|
},
|
||
|
{
|
||
|
path: "/nutrient-master",
|
||
|
element: <NutrientUnitList />,
|
||
|
},
|
||
|
{
|
||
|
path: "/food-nutrition",
|
||
|
element: <FoodNutritionMappingList />,
|
||
|
},
|
||
|
{
|
||
|
path: "/DoctorDashboard/:encodedId",
|
||
|
element: <DoctorDashboard />,
|
||
|
},
|
||
|
{
|
||
|
path: "/health-parameter",
|
||
|
element: <BodyParameterList />,
|
||
|
},
|
||
|
{
|
||
|
path: "/DisplayPatientData",
|
||
|
element: <DisplayPatientData />,
|
||
|
},
|
||
|
{
|
||
|
path: "/ConsultationForm/:patietnEncodeId",
|
||
|
element: <ConsultationForm />,
|
||
|
},
|
||
|
{
|
||
|
path: "PatientDashboard",
|
||
|
element: <PatientDashboard />,
|
||
|
},
|
||
|
{
|
||
|
path: "PatientDashboard",
|
||
|
element: <PatientDashboard />,
|
||
|
},
|
||
|
{
|
||
|
path: "/home",
|
||
|
element: <ApplicationAdminDashboard />,
|
||
|
},
|
||
|
{
|
||
|
path : 'edit-opd',
|
||
|
element :<EditOpd />
|
||
|
},
|
||
|
{
|
||
|
path : 'appointment-list',
|
||
|
element :<AppointmentList />
|
||
|
},
|
||
|
{
|
||
|
path : 'edit-Injury',
|
||
|
element : <EditInjury />
|
||
|
},
|
||
|
{
|
||
|
path : 'detention-list',
|
||
|
element : <DetentionList ></DetentionList>
|
||
|
},
|
||
|
{
|
||
|
path : 'edit-ipd',
|
||
|
element : <EditIpd />
|
||
|
}
|
||
|
],
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
{
|
||
|
path: "*",
|
||
|
element: <ErrorPage />,
|
||
|
},
|
||
|
]);
|
||
|
|
||
|
export default router;
|