Skip to content

surescriptsReportedMedicationHistory

Fetch medication history from the Surescripts history (via Dosespot). Patient consent must be confirmed via the API before calling.

Arguments

patient_id · ID! · required
start_date · ISO8601DateTime · Defaults to 6 months ago
end_date · ISO8601DateTime · Defaults to end of current day

Returns

MedicationHistoryTypePaginationConnection

Example

query surescriptsReportedMedicationHistory(
$patient_id: ID!
$start_date: ISO8601DateTime
$end_date: ISO8601DateTime
$after: Cursor
$before: Cursor
) {
surescriptsReportedMedicationHistory(
patient_id: $patient_id
start_date: $start_date
end_date: $end_date
after: $after
before: $before
) {
edges
nodes
page_info
total_count
}
}