Skip to main content
Glama
creating-data.ts1.03 kB
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 // start-block imports import { MedplumClient } from '@medplum/core'; import type { Practitioner } from '@medplum/fhirtypes'; // end-block imports const medplum = new MedplumClient(); // start-block createTs const practitioner: Practitioner = await medplum.createResource({ resourceType: 'Practitioner', name: [{ family: 'Smith', given: ['Alice'], prefix: ['Dr.'] }], }); // end-block createTs /* // start-block createCli medplum post Practitioner '{"resourceType":"Practitioner","name":[{"family":"Smith","given":["Alice"],"prefix":["Dr."]}]}' // end-block createCli // start-block createCurl curl -X POST 'https://api.medplum.com/fhir/R4/Practitioner' \ -H 'authorization: Bearer $ACCESS_TOKEN' \ -H 'content-type: application/fhir+json' \ -d {"resourceType":"Practitioner","name":[{"family":"Smith","given":["Alice"],"prefix":["Dr."]}]} // end-block createCurl */ console.log(practitioner);

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