Skip to main content
Glama
CommunicationTab.tsx1.13 kB
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import type { Communication } from '@medplum/fhirtypes'; import type { JSX } from 'react'; import { ThreadInbox } from '../../components/messages/ThreadInbox'; import { useNavigate, useParams } from 'react-router'; export function CommunicationTab(): JSX.Element { const { patientId, messageId } = useParams(); const navigate = useNavigate(); const onSelectedItem = (topic: Communication): string => { return `/Patient/${patientId}/Communication/${topic.id}`; }; const handleNewThread = (message: Communication): void => { navigate(`/Patient/${patientId}/Communication/${message.id}`)?.catch(console.error); }; return ( <div style={{ height: `calc(100vh - 98px)` }}> <ThreadInbox threadId={messageId} query={`subject=${`Patient/${patientId}`}&_sort=-_lastUpdated`} subject={{ reference: `Patient/${patientId}` }} showPatientSummary={false} handleNewThread={handleNewThread} onSelectedItem={onSelectedItem} /> </div> ); }

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