Skip to main content
Glama
FhirPathDisplay.stories.tsx963 B
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import { PropertyType } from '@medplum/core'; import { HomerServiceRequest, HomerSimpson } from '@medplum/mock'; import type { Meta } from '@storybook/react'; import type { JSX } from 'react'; import { FhirPathDisplay } from './FhirPathDisplay'; export default { component: FhirPathDisplay, title: 'Medplum/FhirPathDisplay', } as Meta; export const Id = (): JSX.Element => ( <FhirPathDisplay path="id" resource={HomerServiceRequest} propertyType={PropertyType.string} /> ); export const ArrayElement = (): JSX.Element => ( <FhirPathDisplay path="orderDetail[0].text" resource={HomerServiceRequest} propertyType={PropertyType.string} /> ); export const CompositeElement = (): JSX.Element => ( <FhirPathDisplay path="name[0].family&', '&name[0].given[0]" resource={HomerSimpson} propertyType={PropertyType.string} /> );

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