mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-21 15:32:58 +08:00
72 lines
2 KiB
TypeScript
72 lines
2 KiB
TypeScript
const patientRoutes = [
|
|
{
|
|
path: '',
|
|
name: 'patients-listing',
|
|
component: () => import('@/views/patient/PatientListing.vue'),
|
|
meta: {
|
|
requiresAuth: true,
|
|
},
|
|
},
|
|
{
|
|
path: 'register',
|
|
name: 'patients-register',
|
|
component: () => import('@/views/patient/AddPatient.vue'),
|
|
meta: {
|
|
requiresAuth: true,
|
|
},
|
|
},
|
|
{
|
|
path: 'search',
|
|
name: 'patients-search',
|
|
component: () => import('@/views/patient/PatientListing.vue'),
|
|
meta: {
|
|
requiresAuth: true,
|
|
},
|
|
},
|
|
{
|
|
path: ':patientUid',
|
|
name: 'patient',
|
|
component: () => import('@/views/patient/_id/Patient.vue'),
|
|
children: [
|
|
{
|
|
path: '',
|
|
name: 'patient-detail',
|
|
component: () => import('@/views/patient/_id/PatientDetail.vue'),
|
|
meta: {
|
|
requiresAuth: true,
|
|
},
|
|
},
|
|
{
|
|
path: 'add-sample',
|
|
name: 'samples-add',
|
|
component: () => import('@/views/sample/SamplesAdd.vue'),
|
|
meta: {
|
|
requiresAuth: true,
|
|
},
|
|
},
|
|
{
|
|
path: 'samples',
|
|
name: 'patient-samples',
|
|
component: () => import('@/views/sample/_id/Sample.vue'),
|
|
children: [
|
|
{
|
|
path: ':sampleUid',
|
|
name: 'sample-detail',
|
|
component: () => import('@/views/sample/_id/SampleDetail.vue'),
|
|
meta: {
|
|
requiresAuth: true,
|
|
},
|
|
},
|
|
],
|
|
meta: {
|
|
requiresAuth: true,
|
|
},
|
|
},
|
|
],
|
|
meta: {
|
|
requiresAuth: true,
|
|
},
|
|
},
|
|
];
|
|
|
|
export default patientRoutes;
|