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 practice medication.
cURL
curl --request PUT \ --url https://sandbox.elationemr.com/api/2.0/practice_medications/{id}/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "active_ndcs": [ "<string>" ], "id": 123, "is_controlled": false, "market_end_date": "2023-11-07T05:31:56Z", "name": "<string>", "ndcs": [ "<string>" ], "obsolete_date": "2023-11-07T05:31:56Z", "practice": 123, "rxnorm_cuis": [ "<string>" ], "strength": "<string>", "type": "prescription" } '
import requests url = "https://sandbox.elationemr.com/api/2.0/practice_medications/{id}/" payload = { "active_ndcs": ["<string>"], "id": 123, "is_controlled": False, "market_end_date": "2023-11-07T05:31:56Z", "name": "<string>", "ndcs": ["<string>"], "obsolete_date": "2023-11-07T05:31:56Z", "practice": 123, "rxnorm_cuis": ["<string>"], "strength": "<string>", "type": "prescription" } 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_ndcs: ['<string>'], id: 123, is_controlled: false, market_end_date: '2023-11-07T05:31:56Z', name: '<string>', ndcs: ['<string>'], obsolete_date: '2023-11-07T05:31:56Z', practice: 123, rxnorm_cuis: ['<string>'], strength: '<string>', type: 'prescription' }) }; fetch('https://sandbox.elationemr.com/api/2.0/practice_medications/{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/practice_medications/{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_ndcs' => [ '<string>' ], 'id' => 123, 'is_controlled' => false, 'market_end_date' => '2023-11-07T05:31:56Z', 'name' => '<string>', 'ndcs' => [ '<string>' ], 'obsolete_date' => '2023-11-07T05:31:56Z', 'practice' => 123, 'rxnorm_cuis' => [ '<string>' ], 'strength' => '<string>', 'type' => 'prescription' ]), 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/practice_medications/{id}/" payload := strings.NewReader("{\n \"active_ndcs\": [\n \"<string>\"\n ],\n \"id\": 123,\n \"is_controlled\": false,\n \"market_end_date\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"ndcs\": [\n \"<string>\"\n ],\n \"obsolete_date\": \"2023-11-07T05:31:56Z\",\n \"practice\": 123,\n \"rxnorm_cuis\": [\n \"<string>\"\n ],\n \"strength\": \"<string>\",\n \"type\": \"prescription\"\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/practice_medications/{id}/") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"active_ndcs\": [\n \"<string>\"\n ],\n \"id\": 123,\n \"is_controlled\": false,\n \"market_end_date\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"ndcs\": [\n \"<string>\"\n ],\n \"obsolete_date\": \"2023-11-07T05:31:56Z\",\n \"practice\": 123,\n \"rxnorm_cuis\": [\n \"<string>\"\n ],\n \"strength\": \"<string>\",\n \"type\": \"prescription\"\n}") .asString();
require 'uri' require 'net/http' url = URI("https://sandbox.elationemr.com/api/2.0/practice_medications/{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_ndcs\": [\n \"<string>\"\n ],\n \"id\": 123,\n \"is_controlled\": false,\n \"market_end_date\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"ndcs\": [\n \"<string>\"\n ],\n \"obsolete_date\": \"2023-11-07T05:31:56Z\",\n \"practice\": 123,\n \"rxnorm_cuis\": [\n \"<string>\"\n ],\n \"strength\": \"<string>\",\n \"type\": \"prescription\"\n}" response = http.request(request) puts response.read_body
{ "active_ndcs": [ "<string>" ], "brand_name": "<string>", "created_date": "2023-11-07T05:31:56Z", "creation_type": "user", "form": "<string>", "generic_name": "<string>", "id": 123, "is_controlled": false, "market_end_date": "2023-11-07T05:31:56Z", "name": "<string>", "ndcs": [ "<string>" ], "obsolete_date": "2023-11-07T05:31:56Z", "practice": 123, "route": "<string>", "rxnorm_cuis": [ "<string>" ], "strength": "<string>", "type": "prescription" }
The access token received from the authorization server in the OAuth 2.0 flow.
The id of the medication.
Whether the drug is a controlled substance or not.
The name that will display for the medication in the search and when referenced by the prescription or documented med.
The NDCs of the medication (must contain only one ndc code when creating).
The date at which this practice medication became obsolete.
The practice that created the medication. null for medications from the standard formulary.
null
The Rxnorm.cui code of the medication (must contain only one cui code when creating).
The strength of the drug, e.g. 40mg.
255
Whether the practice medication is an OTC or Prescription drug.
otc
prescription
discontinued
user
medispan
ss
disp
Was this page helpful?