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 · Healthie user id of patient to retrieve medication history for.
start_date · ISO8601DateTime · Start of date range filter. Defaults to 6 months ago. YYYY-MM-DD format.
end_date · ISO8601DateTime · End of date range filter. Defaults to end of today. YYYY-MM-DD format.
after · Cursor · Cursor to fetch results after.
before · Cursor · Cursor to fetch results before.

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
}
}