Skip to main content
Glama
v11.ts851 B
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import type { WithId } from '@medplum/core'; import type { AsyncJob } from '@medplum/fhirtypes'; import type { ReindexPostDeployMigration } from '../../workers/reindex'; import { prepareReindexJobData, ReindexJob } from '../../workers/reindex'; // Repository.VERSION was bumped to 7 for this migration const maxResourceVersion = 7 - 1; export const migration: ReindexPostDeployMigration = { type: 'reindex', prepareJobData(asyncJob: WithId<AsyncJob>) { return prepareReindexJobData( ['AllergyIntolerance', 'Immunization', 'ProjectMembership'], asyncJob.id, undefined, maxResourceVersion ); }, run: async (repo, job, jobData) => { return new ReindexJob(repo).execute(job, jobData); }, };

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