Skip to content

Commit 0780cca

Browse files
feat(medical-record): add initial MyRecord page for displaying patient medical records
1 parent cb9bd1e commit 0780cca

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

resources/js/components/navigation/nav-patient.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
SidebarMenuItem,
77
} from '@/components/ui/sidebar';
88
import appointments from '@/routes/appointments';
9+
import { myRecord } from '@/routes/medicalRecords';
910
import { NavItem, SharedData } from '@/types';
1011
import { Link, usePage } from '@inertiajs/react';
1112
import { ClipboardClockIcon, ClipboardListIcon, PillIcon } from 'lucide-react';
@@ -27,7 +28,7 @@ export function NavPatient() {
2728
},
2829
{
2930
title: 'My Medical Record',
30-
href: 'placeholder_for_medical_records_url',
31+
href: myRecord().url,
3132
icon: ClipboardListIcon,
3233
},
3334
{
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import Layout from '@/layouts/app-layout';
2+
import { myRecord } from '@/routes/medicalRecords';
3+
import { BreadcrumbItem } from '@/types';
4+
import { Head } from '@inertiajs/react';
5+
6+
const breadcrumbs: BreadcrumbItem[] = [
7+
{
8+
title: 'My Medical Record',
9+
href: myRecord().url,
10+
},
11+
];
12+
13+
export default function MyRecord({ medicalRecord }) {
14+
return (
15+
<Layout breadcrumbs={breadcrumbs}>
16+
<Head title="My Medical Record" />
17+
<pre>{JSON.stringify(medicalRecord, null, 2)}</pre>
18+
</Layout>
19+
);
20+
}

0 commit comments

Comments
 (0)