2023-11-10 14:05:15 +08:00
|
|
|
const patientRoutes = [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
name: 'patients-listing',
|
2024-06-29 21:19:21 +08:00
|
|
|
component: () => import('@/views/patient/PatientListing.vue'),
|
2023-11-10 14:05:15 +08:00
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'register',
|
|
|
|
name: 'patients-register',
|
2024-06-29 21:19:21 +08:00
|
|
|
component: () => import('@/views/patient/AddPatient.vue'),
|
2023-11-10 14:05:15 +08:00
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'search',
|
|
|
|
name: 'patients-search',
|
2024-06-29 21:19:21 +08:00
|
|
|
component: () => import('@/views/patient/PatientListing.vue'),
|
2023-11-10 14:05:15 +08:00
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ':patientUid',
|
|
|
|
name: 'patient',
|
2024-06-29 21:19:21 +08:00
|
|
|
component: () => import('@/views/patient/_id/Patient.vue'),
|
2023-11-10 14:05:15 +08:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
name: 'patient-detail',
|
2024-06-29 21:19:21 +08:00
|
|
|
component: () => import('@/views/patient/_id/PatientDetail.vue'),
|
2023-11-10 14:05:15 +08:00
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'add-sample',
|
|
|
|
name: 'samples-add',
|
2024-06-29 21:19:21 +08:00
|
|
|
component: () => import('@/views/sample/SamplesAdd.vue'),
|
2023-11-10 14:05:15 +08:00
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'samples',
|
|
|
|
name: 'patient-samples',
|
2024-06-29 21:19:21 +08:00
|
|
|
component: () => import('@/views/sample/_id/Sample.vue'),
|
2023-11-10 14:05:15 +08:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: ':sampleUid',
|
|
|
|
name: 'sample-detail',
|
2024-06-29 21:19:21 +08:00
|
|
|
component: () => import('@/views/sample/_id/SampleDetail.vue'),
|
2023-11-10 14:05:15 +08:00
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
export default patientRoutes;
|