Skip to main content
Glama
careteam.ts1.15 kB
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import type { CareTeam } from '@medplum/fhirtypes'; import { OID_CARE_TEAM_ORGANIZER_ENTRY } from '../../oids'; import type { CcdaEntry, CcdaId, CcdaOrganizerComponent } from '../../types'; import type { FhirToCcdaConverter } from '../convert'; import { mapIdentifiers } from '../utils'; export function createCareTeamEntry(_converter: FhirToCcdaConverter, careTeam: CareTeam): CcdaEntry { return { organizer: [ { '@_classCode': 'CLUSTER', '@_moodCode': 'EVN', templateId: [ { '@_root': OID_CARE_TEAM_ORGANIZER_ENTRY, '@_extension': '2022-07-01', }, { '@_root': OID_CARE_TEAM_ORGANIZER_ENTRY, '@_extension': '2022-06-01', }, ], id: mapIdentifiers(careTeam.id, careTeam.identifier) as CcdaId[], component: careTeam.participant?.map((participant) => ({ '@_typeCode': 'PRF', role: participant.role, })) as CcdaOrganizerComponent[], }, ], }; }

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