Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Replace an existing lab facility identifier.
cURL
curl --request PUT \ --url https://sandbox.elationemr.com/api/2.0/lab_facility_identifiers/{id}/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "active": true, "lab_facility": "<string>", "practice": 123, "practice_facility": "<string>", "vendor": { "display_name": "<string>", "id": 123, "name": "<string>" }, "compendium": 123, "description": "<string>", "lab_connection": 123, "practice_secondary_id": "<string>", "user_facing": true } '
import requests url = "https://sandbox.elationemr.com/api/2.0/lab_facility_identifiers/{id}/" payload = { "active": True, "lab_facility": "<string>", "practice": 123, "practice_facility": "<string>", "vendor": { "display_name": "<string>", "id": 123, "name": "<string>" }, "compendium": 123, "description": "<string>", "lab_connection": 123, "practice_secondary_id": "<string>", "user_facing": True } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" } response = requests.put(url, json=payload, headers=headers) print(response.text)
const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: JSON.stringify({ active: true, lab_facility: '<string>', practice: 123, practice_facility: '<string>', vendor: {display_name: '<string>', id: 123, name: '<string>'}, compendium: 123, description: '<string>', lab_connection: 123, practice_secondary_id: '<string>', user_facing: true }) }; fetch('https://sandbox.elationemr.com/api/2.0/lab_facility_identifiers/{id}/', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://sandbox.elationemr.com/api/2.0/lab_facility_identifiers/{id}/", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "PUT", CURLOPT_POSTFIELDS => json_encode([ 'active' => true, 'lab_facility' => '<string>', 'practice' => 123, 'practice_facility' => '<string>', 'vendor' => [ 'display_name' => '<string>', 'id' => 123, 'name' => '<string>' ], 'compendium' => 123, 'description' => '<string>', 'lab_connection' => 123, 'practice_secondary_id' => '<string>', 'user_facing' => true ]), CURLOPT_HTTPHEADER => [ "Authorization: Bearer <token>", "Content-Type: application/json" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://sandbox.elationemr.com/api/2.0/lab_facility_identifiers/{id}/" payload := strings.NewReader("{\n \"active\": true,\n \"lab_facility\": \"<string>\",\n \"practice\": 123,\n \"practice_facility\": \"<string>\",\n \"vendor\": {\n \"display_name\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\"\n },\n \"compendium\": 123,\n \"description\": \"<string>\",\n \"lab_connection\": 123,\n \"practice_secondary_id\": \"<string>\",\n \"user_facing\": true\n}") req, _ := http.NewRequest("PUT", url, payload) req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) }
HttpResponse<String> response = Unirest.put("https://sandbox.elationemr.com/api/2.0/lab_facility_identifiers/{id}/") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"active\": true,\n \"lab_facility\": \"<string>\",\n \"practice\": 123,\n \"practice_facility\": \"<string>\",\n \"vendor\": {\n \"display_name\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\"\n },\n \"compendium\": 123,\n \"description\": \"<string>\",\n \"lab_connection\": 123,\n \"practice_secondary_id\": \"<string>\",\n \"user_facing\": true\n}") .asString();
require 'uri' require 'net/http' url = URI("https://sandbox.elationemr.com/api/2.0/lab_facility_identifiers/{id}/") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Put.new(url) request["Authorization"] = 'Bearer <token>' request["Content-Type"] = 'application/json' request.body = "{\n \"active\": true,\n \"lab_facility\": \"<string>\",\n \"practice\": 123,\n \"practice_facility\": \"<string>\",\n \"vendor\": {\n \"display_name\": \"<string>\",\n \"id\": 123,\n \"name\": \"<string>\"\n },\n \"compendium\": 123,\n \"description\": \"<string>\",\n \"lab_connection\": 123,\n \"practice_secondary_id\": \"<string>\",\n \"user_facing\": true\n}" response = http.request(request) puts response.read_body
{ "active": true, "lab_facility": "<string>", "practice": 123, "practice_facility": "<string>", "vendor": { "display_name": "<string>", "id": 123, "name": "<string>" }, "bidi_connection": { "alias": "<string>", "enabled": true, "id": 123, "priority": 32767, "protocol": "<string>" }, "compendium": 123, "created_date": "2023-11-07T05:31:56Z", "deleted_date": "2023-11-07T05:31:56Z", "description": "<string>", "id": 123, "lab_connection": 123, "practice_secondary_id": "<string>", "user_facing": true }
The access token received from the authorization server in the OAuth 2.0 flow.
Whether the facility identifier should be used. Should be true in most cases.
The id that represents the lab.
50
The id that represents the practice; often an account number provided by the lab vendor.
Show child attributes
The id of the compendium that will be used when the user selects this facility identifier.
The text that will displayed to users in the lab order dialog.
255
Whether this facility identifier will be visible in the lab order dialog. Should be true for most cases.
Was this page helpful?