surescriptsReportedMedicationHistory
deprecated Use API version 2025-11-30 or later to return MedicationHistoryType connection
Fetch medication history from the Surescripts history (via Dosespot). Patient consent must be confirmed via the API before calling.
Arguments
patient_id
· ID start_date
· ISO8601DateTime · YYYY-MM-DD format end_date
· ISO8601DateTime · YYYY-MM-DD format page_number
· Int · The page of prescription history to start from. The query will automatically load more pages Returns
[Prescription!] Example
query surescriptsReportedMedicationHistory( $patient_id: ID $start_date: ISO8601DateTime $end_date: ISO8601DateTime $page_number: Int) { surescriptsReportedMedicationHistory( patient_id: $patient_id start_date: $start_date end_date: $end_date page_number: $page_number ) { comment date_inactive date_written days_supply directions dosage dose_form drug_classification effective_date encounter first_prescription_diagnosis id is_urgent last_fill_date ndc no_substitutions normalized_status otc pharmacy pharmacy_notes prescriber_name product_name quantity refills route rx_reference_number rxcui schedule second_prescription_diagnosis status unit }}