Skip to main content
Glama
PatientPage.tsx1.05 kB
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import { Grid, Loader } from '@mantine/core'; import type { Patient } from '@medplum/fhirtypes'; import { Document, PatientSummary, useResource } from '@medplum/react'; import type { JSX } from 'react'; import { useParams } from 'react-router'; import { PatientDetails } from '../components/PatientDetails'; import { PatientActions } from '../components/actions/PatientActions'; export function PatientPage(): JSX.Element { const { id } = useParams(); const patient = useResource<Patient>({ reference: `Patient/${id}` }); if (!patient) { return <Loader />; } return ( <Grid> <Grid.Col span={4}> <PatientSummary patient={patient} /> </Grid.Col> <Grid.Col span={5}> <PatientDetails patient={patient} /> </Grid.Col> <Grid.Col span={3}> <Document p="xs"> <PatientActions patient={patient} /> </Document> </Grid.Col> </Grid> ); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/medplum/medplum'

If you have feedback or need assistance with the MCP directory API, please join our Discord server