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 ) { clinic_id comment date_inactive date_written days_supply directions dispensable_drug_id dispense_unit_id display_name dosage dose_form drug_classification effective_date eligibility_id encounter error_ignored first_prescription_diagnosis formulary free_text_type id is_rx_renewal is_urgent last_fill_date medication_status ndc no_substitutions non_dose_spot_prescription_id normalized_status otc patient_medication_id pharmacy pharmacy_notes prescriber_agent_id prescriber_id prescriber_name product_name quantity refills route rx_reference_number rx_renewal_note rxcui schedule second_prescription_diagnosis status supervisor_id supply_id type unit }}