Skip to main content
Glama
matching.ts1.59 kB
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 // start-block imports import type { List, RiskAssessment } from '@medplum/fhirtypes'; // end-block imports const dedupeAssessment: RiskAssessment = // start-block dupedPatientAssessment { resourceType: 'RiskAssessment', id: 'homer-simpson-match-risk-assessment', status: 'final', subject: { reference: 'Patient/homer-simpson', }, basis: [ { reference: 'Patient/homer-j-simpson', }, ], code: { coding: [ { system: 'http://example.org/risk-assessment-type', code: 'duplicate-patient', }, ], }, method: { coding: [ { system: 'http://example.org/deduplication-method', code: 'last-name', }, ], }, prediction: [ { probabilityDecimal: 50, qualitativeRisk: { text: 'Somewhat likely', }, }, ], }; // end-block dupedPatientAssessment const doNotMatchList: List = // start-block doNotMatch { resourceType: 'List', id: 'homer-simpson-do-not-match-list', status: 'current', mode: 'snapshot', subject: { reference: 'Patient/homer-simpson', }, entry: [ { item: { reference: 'Patient/marge-simpson', }, }, { item: { reference: 'Patient/lisa-simpson', }, }, ], }; // end-block doNotMatch console.log(dedupeAssessment, doNotMatchList);

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