Get a drug request
curl --request GET \
--url https://api.clinikehr.com/v1/clinics/{clinic_id}/drug_requests/{request_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.clinikehr.com/v1/clinics/{clinic_id}/drug_requests/{request_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.clinikehr.com/v1/clinics/{clinic_id}/drug_requests/{request_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"clinic_patient_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "submitted",
"requester_reference": "<string>",
"authorization_reference": "<string>",
"needed_by": "2023-11-07T05:31:56Z",
"pharmacist_note": "<string>",
"decline_reason": "<string>",
"cancel_reason": "<string>",
"cancelled_by_actor": "<string>",
"decided_at": "2023-11-07T05:31:56Z",
"ready_at": "2023-11-07T05:31:56Z",
"dispensed_at": "2023-11-07T05:31:56Z",
"cancelled_at": "2023-11-07T05:31:56Z",
"expired_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"lines": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"line_no": 123,
"code_system": "gtin",
"code_value": "<string>",
"description": "<string>",
"quantity": "<string>",
"directions": "<string>",
"matched_inventory_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"matched_medicine_index_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"line_status": "<string>",
"substituted_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"substitution_reason": "<string>",
"decline_reason": "<string>"
}
]
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}Drug requests
Get a drug request
Permission: requests:read
Get one drug request by id, including its lines.
A request outside this key’s org (or clinic), or absent, answers not_found — identical, one message.
GET
/
v1
/
clinics
/
{clinic_id}
/
drug_requests
/
{request_id}
Get a drug request
curl --request GET \
--url https://api.clinikehr.com/v1/clinics/{clinic_id}/drug_requests/{request_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.clinikehr.com/v1/clinics/{clinic_id}/drug_requests/{request_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.clinikehr.com/v1/clinics/{clinic_id}/drug_requests/{request_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"clinic_patient_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "submitted",
"requester_reference": "<string>",
"authorization_reference": "<string>",
"needed_by": "2023-11-07T05:31:56Z",
"pharmacist_note": "<string>",
"decline_reason": "<string>",
"cancel_reason": "<string>",
"cancelled_by_actor": "<string>",
"decided_at": "2023-11-07T05:31:56Z",
"ready_at": "2023-11-07T05:31:56Z",
"dispensed_at": "2023-11-07T05:31:56Z",
"cancelled_at": "2023-11-07T05:31:56Z",
"expired_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"lines": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"line_no": 123,
"code_system": "gtin",
"code_value": "<string>",
"description": "<string>",
"quantity": "<string>",
"directions": "<string>",
"matched_inventory_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"matched_medicine_index_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"line_status": "<string>",
"substituted_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"substitution_reason": "<string>",
"decline_reason": "<string>"
}
]
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
OK.
Never carries a price/cost/amount field — a request is a commitment to fill medicine, never a billing document.
Show child attributes
Show child attributes