Skip to main content
Glama
metadata.ts812 B
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import type { CompositionEvent } from '@medplum/fhirtypes'; import { mapCodeableConceptToCcdaCode } from '../systems'; import type { CcdaDocumentationOf } from '../types'; import { mapEffectiveDate } from './utils'; export function mapDocumentationOf(events: CompositionEvent[] | undefined): CcdaDocumentationOf | undefined { if (!events || events.length === 0) { return undefined; } const event = events[0]; if (!event || (!event.code && !event.period)) { return undefined; } return { serviceEvent: { '@_classCode': 'PCPR', code: mapCodeableConceptToCcdaCode(event.code?.[0]), effectiveTime: mapEffectiveDate(undefined, event.period), }, }; }

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