cURL
curl --request PUT \ --url https://api.sandbox.metriport.com/medical/v1/patient/:id/hie-opt-out \ --header 'x-api-key: <api-key>'
import { MetriportMedicalApi } from "@metriport/api-sdk"; const metriport = new MetriportMedicalApi("YOUR_API_KEY"); const patientId = "018a80c4-292a-7486-a1234-9uiu76yhe234"; const hieOptOut = true; const { hieOptOut, message } = await metriport.updatePatientHieOptOut(patientId, hieOptOut);
Update a patient’s HIE (Health Information Exchange) opt-out status
true
false