1. Link
  2. Remove Link
DELETE

/medical/v1/patient/{id}/link/{linkSource}

x-api-key*
curl --request DELETE \
     --url https://api.metriport.com/medical/v1/patient/{id}/link/{linkSource} \
     --header 'x-api-key: AUTH_VALUE'

Path Params

idRequired
string

The ID of the Patient that will be unlinked from the HIE.

linkSourceRequired
string

The HIE for which the link will be removed - currently COMMONWELL is supported.

Query Params

facilityIdRequired
string

The ID of the Facility that is currently providing the Patient care.

Response

204 on success.

import { Metriport } from "@metriport/api";

const metriportClient = new MetriportMedicalApi("YOUR_API_KEY");

await metriportClient.removeLink(
  "2.16.840.1.113883.3.666.777",
  "2.16.840.1.113883.3.666.123",
  "COMMONWELL"
);