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
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors
// SPDX-License-Identifier: Apache-2.0
/*
* This is a generated file
* Do not edit manually.
*/
import type { PoolClient } from 'pg';
import * as fns from '../migrate-functions';
// prettier-ignore
export async function run(client: PoolClient): Promise<void> {
const results: { name: string; durationMs: number }[] = []
await fns.query(client, results, `ALTER TABLE IF EXISTS "Patient" ADD COLUMN IF NOT EXISTS "__familySort" TEXT`);
await fns.query(client, results, `ALTER TABLE IF EXISTS "Patient" ADD COLUMN IF NOT EXISTS "__givenSort" TEXT`);
await fns.query(client, results, `ALTER TABLE IF EXISTS "Patient" ADD COLUMN IF NOT EXISTS "__nameSort" TEXT`);
await fns.query(client, results, `ALTER TABLE IF EXISTS "Person" ADD COLUMN IF NOT EXISTS "__nameSort" TEXT`);
await fns.query(client, results, `ALTER TABLE IF EXISTS "Practitioner" ADD COLUMN IF NOT EXISTS "__familySort" TEXT`);
await fns.query(client, results, `ALTER TABLE IF EXISTS "Practitioner" ADD COLUMN IF NOT EXISTS "__givenSort" TEXT`);
await fns.query(client, results, `ALTER TABLE IF EXISTS "Practitioner" ADD COLUMN IF NOT EXISTS "__nameSort" TEXT`);
await fns.query(client, results, `ALTER TABLE IF EXISTS "RelatedPerson" ADD COLUMN IF NOT EXISTS "__nameSort" TEXT`);
}