Skip to main content
Glama
utils.ts821 B
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import type { Resource } from '@medplum/fhirtypes'; /** * Cleans a resource of unwanted meta values. * For most users, this will not matter, because meta values are set by the server. * However, some administrative users are allowed to specify some meta values. * The admin use case is special though, and unwanted here on the resource page. * @param resource - The input resource. * @returns The cleaned output resource. */ export function cleanResource(resource: Resource): Resource { let meta = resource.meta; if (meta) { meta = { ...meta, lastUpdated: undefined, versionId: undefined, author: undefined, }; } return { ...resource, meta, }; }

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