Skip to main content
Glama
PatientPage.tsx1.02 kB
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import type { JSX } from 'react'; import { Container, Stack, Title } from '@mantine/core'; import type { Practitioner } from '@medplum/fhirtypes'; import { Document, ResourceName, SearchControl, useMedplumNavigate, useMedplumProfile, } from '@medplum/react'; export function PatientPage(): JSX.Element { const profile = useMedplumProfile() as Practitioner; const navigate = useMedplumNavigate(); return ( <Document mt="xl"> <Container size="xl" py="xl"> <Stack gap="lg"> <Title order={2} fw={500}> Welcome, <ResourceName value={profile} link /> </Title> <SearchControl search={{ resourceType: 'Patient', fields: ['name', 'birthDate', 'gender'] }} onClick={(e) => navigate(`/Patient/${e.resource.id}`)} hideToolbar /> </Stack> </Container> </Document> ); }

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