Prescriptions
Retrieve a prescription
Section titled “Retrieve a prescription”Retrieve the details of a prescription for the patient. You need supply the unique patient and prescription identifiers.
HTTP Request
Section titled “HTTP Request”GET {server_url}/api/v1/patients/{patient_id}/prescriptions/{prescription_id}
This request must include a valid User JWT token, please see our documentation.
Header Parameter
Section titled “Header Parameter”| Parameter | Default |
|---|---|
| Content-type | application/json |
| Authorization | Bearer {jwt_token} |
URL Parameters
Section titled “URL Parameters”The following parameters need to be included in the URL of the request:
| Attribute | Required | Description |
|---|---|---|
| patient_id | true | ID of the patient to be retrieved |
| prescription_id | true | ID of the prescription to be retrieved |
Example Request
Section titled “Example Request”curl {server_url}/api/v1/patients/{patient_id}/prescriptions/{prescription_id}-H "Content-type: application/json"-H "Authorization: Bearer 34a2sample-user-token"RestClient::Request.new( :method => :get, :url => "{server_url}/api/v1/patients/{patient_id}/prescriptions/{prescription_id}", :headers => { "Content-type" => "application/json", "Authorization" => "Bearer 34a2sample-user-token" }).executeExample Response
Section titled “Example Response”{ "prescription": { "id": 1, "patient_name": "Test Isle", "patient_id": 3, "provider_name": "Travis Stork", "provider_id": 4, "pharmacy_name": "CVS 17070 IN TARGET", "pharmacy_id": 94877, "medication_name": "Ibuprofen IB 200 mg tablet", "appointment_id": 43, "prescribed_at": "2018-06-23T02:33:13+00:00" }}