Skip to main content
Glama
binary.ts597 B
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import type { Resource } from '@medplum/fhirtypes'; /** * Builds a set of Binary IDs from a resource. * @param resource - The resource to search for Binary references. * @param output - The output set where Binary IDs will be added. */ export function buildBinaryIds(resource: Resource, output: Set<string>): void { const resourceObj = JSON.stringify(resource); for (const match of resourceObj.matchAll(/"url":"Binary\/([a-f0-9-]+)"/g)) { output.add(match[1]); } }

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