Prescription
Prescription API
GET /patients/{id}/prescriptions
returns all medication prescriptions for a patient.
URI Parameters
- patient_id: Patient's identifier.
Query Parameters
- start_date: represents the starting date from which you want to retrieve prescriptions (formatted as "yyyy-mm-dd").
- end_date: represents the ending date until which you want to retrieve prescriptions (formatted as "yyyy-mm-dd").
Response:
Code 200
{
"prescriptions": [
{
"id": "d2a4d4d0-7cb0-4203-b5f5-ebb8285e0d06",
"pdf_url": "https://www.osana.com/prescription3.pdf",
"medications": ["Lisinopril", "Metoprolol"],
"diagnosis": "Hypertension",
"practicioner_id": "8a7c3e1f-449b-4aa7-b2e3-6d987d0b52f1",
"prescription_date": "2023-08-10",
"expiration_date": "2023-08-20"
},
{
"id": "d2a4d4d0-7cb0-4203-b5f5-ebb8285e0d07",
"pdf_url": "https://www.osana.com/prescription4.pdf",
"medications": ["Levothyroxine", "Lansoprazole"],
"diagnosis": "Thyroid Disorder",
"practicioner_id": "8a7c3e1f-449b-4aa7-b2e3-6d987d0b52f1",
"prescription_date": "2023-08-12",
"expiration_date": "2023-08-22"
}
]
}