Skip to main content
Glama
v31.ts1.01 kB
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import type { PoolClient } from 'pg'; import { getSystemRepo } from '../../fhir/repo'; import { rebuildR4ValueSets } from '../../seeds/valuesets'; import { prepareCustomMigrationJobData, runCustomMigration } from '../../workers/post-deploy-migration'; import type { MigrationActionResult } from '../types'; import type { CustomPostDeployMigration } from './types'; export const migration: CustomPostDeployMigration = { type: 'custom', prepareJobData: (asyncJob) => prepareCustomMigrationJobData(asyncJob), run: async (repo, job, jobData) => runCustomMigration(repo, job, jobData, callback), }; // prettier-ignore async function callback(client: PoolClient, results: MigrationActionResult[]): Promise<void> { const repo = getSystemRepo(client); const start = Date.now(); await rebuildR4ValueSets(repo); results.push({ name: 'rebuildR4ValueSets', durationMs: Date.now() - start }); }

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