Skip to content

surescriptsReportedMedicationHistory

Fetch an array of medications from the Surescripts history (via Dosespot). Note patient consent needs to be confirmed via the API prior.

Arguments

page_number · Int · The page of prescription history to start from. The query will automatically load more pages
start_date · ISO8601DateTime · YYYY-MM-DD format
end_date · ISO8601DateTime · YYYY-MM-DD format

Returns

[Prescription!]

Example

query surescriptsReportedMedicationHistory(
$patient_id: ID
$page_number: Int
$start_date: ISO8601DateTime
$end_date: ISO8601DateTime
) {
surescriptsReportedMedicationHistory(
patient_id: $patient_id
page_number: $page_number
start_date: $start_date
end_date: $end_date
) {
comment
date_inactive
date_written
days_supply
directions
dosage
dose_form
drug_classification
effective_date
encounter
id
is_urgent
last_fill_date
ndc
no_substitutions
otc
pharmacy
pharmacy_notes
prescriber_name
product_name
quantity
refills
route
rx_reference_number
rxcui
schedule
status
unit
}
}