Skip to main content
Glama
binary.test.ts556 B
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import { buildBinaryIds } from './binary'; describe('Binary utils', () => { test('buildBinaryIds', () => { const set1 = new Set<string>(); buildBinaryIds({ resourceType: 'Patient' }, set1); expect(set1.size).toBe(0); const set2 = new Set<string>(); buildBinaryIds({ resourceType: 'Patient', photo: [{ url: 'Binary/123' }] }, set2); expect(set2.size).toBe(1); expect(set2.has('123')).toBeTruthy(); }); });

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