Lab Orders
List Lab Orders
Returns a list of lab orders
GET
/
api
/
2.0
/
lab_orders
/
List Lab Orders
curl --request GET \
--url https://sandbox.elationemr.com/api/2.0/lab_orders/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.elationemr.com/api/2.0/lab_orders/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.elationemr.com/api/2.0/lab_orders/', 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_orders/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.elationemr.com/api/2.0/lab_orders/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.elationemr.com/api/2.0/lab_orders/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.elationemr.com/api/2.0/lab_orders/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"results": [
{
"document_date": "2023-11-07T05:31:56Z",
"ordering_physician": 123,
"patient": 123,
"practice": 123,
"answers": [
{
"question": 123,
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"id": 123,
"test": 123,
"value": "<string>"
}
],
"ccs": [
123
],
"chart_date": "2023-11-07T05:31:56Z",
"confidential": false,
"content": {
"collection_datetime": "2023-11-07T05:31:56Z",
"icd10_codes": [
{
"code": "<string>",
"description": "<string>"
}
],
"id": 123,
"patient_instructions": "<string>",
"standing_order_end_date": "2023-12-25",
"standing_order_frequency": "<string>",
"test_center_notes": "<string>",
"tests": [
{
"icd10_codes": [
{
"code": "<string>",
"description": "<string>"
}
],
"name": "<string>",
"code": "<string>",
"compendium": 123,
"cpts": [
"<string>"
],
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"id": 123,
"lab_vendor": 123,
"practice_created": 123,
"procedure_class": "<string>",
"questions": [
{
"question": {
"choices": [
{
"code": "<string>",
"value": "<string>",
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"id": 123
}
],
"code": "<string>",
"value": "<string>",
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"example_format": "<string>",
"id": 123,
"max_length": 32767,
"secondary_code": "<string>"
},
"sequence": 32767,
"required": true,
"test": 123
}
],
"synonyms": [
"<string>"
]
}
]
},
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"facility": {
"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
},
"follow_up_method": "<string>",
"id": 123,
"printable_view": "<string>",
"requisition": 123,
"resolution": {
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"document": 123,
"id": 123,
"note": "<string>",
"resolving_document": 123
},
"signed_by": 123,
"signed_date": "2023-11-07T05:31:56Z",
"site": {
"name": "<string>",
"address": "<string>",
"city": "<string>",
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"fax": "<string>",
"id": 123,
"phone": "<string>",
"practice_created": 123,
"state": "<string>",
"suite": "<string>",
"vendor": {
"display_name": "<string>",
"id": 123,
"name": "<string>"
},
"zip": "<string>"
},
"special_insurance": {
"code": "<string>",
"name": "<string>"
},
"specimens": [
{
"body_site": {
"code": "<string>",
"text": "<string>",
"deleted_date": "2023-11-07T05:31:56Z"
},
"container_id": "<string>",
"modifiers": [
{
"modifier": {
"code": "<string>",
"text": "<string>",
"deleted_date": "2023-11-07T05:31:56Z"
},
"sequence": 32767,
"specimen": 123,
"deleted_date": "2023-11-07T05:31:56Z"
}
],
"test": 123,
"description": "<string>",
"id": 123,
"lab_order": 123
}
],
"submissions": [
{
"time_submitted": "2023-11-07T05:31:56Z",
"id": 123,
"lab_order": 123,
"state": "<string>",
"state_metadata": "<string>",
"time_acknowledged": "2023-11-07T05:31:56Z"
}
],
"tags": [
123
],
"test_date": "2023-12-25",
"vendor": 123
}
],
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100"
}Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Query Parameters
Number of results to return per page.
The initial index from which to return the results.
Which field to use when ordering the results.
Multiple values may be separated by commas.
Multiple values may be separated by commas.
Was this page helpful?
⌘I
List Lab Orders
curl --request GET \
--url https://sandbox.elationemr.com/api/2.0/lab_orders/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.elationemr.com/api/2.0/lab_orders/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.elationemr.com/api/2.0/lab_orders/', 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_orders/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.elationemr.com/api/2.0/lab_orders/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.elationemr.com/api/2.0/lab_orders/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.elationemr.com/api/2.0/lab_orders/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"results": [
{
"document_date": "2023-11-07T05:31:56Z",
"ordering_physician": 123,
"patient": 123,
"practice": 123,
"answers": [
{
"question": 123,
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"id": 123,
"test": 123,
"value": "<string>"
}
],
"ccs": [
123
],
"chart_date": "2023-11-07T05:31:56Z",
"confidential": false,
"content": {
"collection_datetime": "2023-11-07T05:31:56Z",
"icd10_codes": [
{
"code": "<string>",
"description": "<string>"
}
],
"id": 123,
"patient_instructions": "<string>",
"standing_order_end_date": "2023-12-25",
"standing_order_frequency": "<string>",
"test_center_notes": "<string>",
"tests": [
{
"icd10_codes": [
{
"code": "<string>",
"description": "<string>"
}
],
"name": "<string>",
"code": "<string>",
"compendium": 123,
"cpts": [
"<string>"
],
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"id": 123,
"lab_vendor": 123,
"practice_created": 123,
"procedure_class": "<string>",
"questions": [
{
"question": {
"choices": [
{
"code": "<string>",
"value": "<string>",
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"id": 123
}
],
"code": "<string>",
"value": "<string>",
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"example_format": "<string>",
"id": 123,
"max_length": 32767,
"secondary_code": "<string>"
},
"sequence": 32767,
"required": true,
"test": 123
}
],
"synonyms": [
"<string>"
]
}
]
},
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"facility": {
"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
},
"follow_up_method": "<string>",
"id": 123,
"printable_view": "<string>",
"requisition": 123,
"resolution": {
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"document": 123,
"id": 123,
"note": "<string>",
"resolving_document": 123
},
"signed_by": 123,
"signed_date": "2023-11-07T05:31:56Z",
"site": {
"name": "<string>",
"address": "<string>",
"city": "<string>",
"created_date": "2023-11-07T05:31:56Z",
"deleted_date": "2023-11-07T05:31:56Z",
"fax": "<string>",
"id": 123,
"phone": "<string>",
"practice_created": 123,
"state": "<string>",
"suite": "<string>",
"vendor": {
"display_name": "<string>",
"id": 123,
"name": "<string>"
},
"zip": "<string>"
},
"special_insurance": {
"code": "<string>",
"name": "<string>"
},
"specimens": [
{
"body_site": {
"code": "<string>",
"text": "<string>",
"deleted_date": "2023-11-07T05:31:56Z"
},
"container_id": "<string>",
"modifiers": [
{
"modifier": {
"code": "<string>",
"text": "<string>",
"deleted_date": "2023-11-07T05:31:56Z"
},
"sequence": 32767,
"specimen": 123,
"deleted_date": "2023-11-07T05:31:56Z"
}
],
"test": 123,
"description": "<string>",
"id": 123,
"lab_order": 123
}
],
"submissions": [
{
"time_submitted": "2023-11-07T05:31:56Z",
"id": 123,
"lab_order": 123,
"state": "<string>",
"state_metadata": "<string>",
"time_acknowledged": "2023-11-07T05:31:56Z"
}
],
"tags": [
123
],
"test_date": "2023-12-25",
"vendor": 123
}
],
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100"
}