Skip to main content
Glama
ActionItem.tsx851 B
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import { Box, Title } from '@mantine/core'; import type { CarePlan } from '@medplum/fhirtypes'; import { ResourceTable, useMedplum } from '@medplum/react'; import type { JSX } from 'react'; import { useParams } from 'react-router'; import { InfoSection } from '../../components/InfoSection'; export function ActionItem(): JSX.Element { const medplum = useMedplum(); const { itemId } = useParams(); const resource: CarePlan = medplum.readResource('CarePlan', itemId as string).read(); return ( <Box p="xl"> <Title order={2} mb="md"> {resource.title} </Title> <InfoSection title="Action Item"> <ResourceTable value={resource} ignoreMissingValues /> </InfoSection> </Box> ); }

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