Skip to content

medications

Fetch paginated medications collection

Arguments

active · Boolean · When true, only return active medications.
patient_id · ID · The patient ID to fetch medications for.
unreconciled_from_ccda_ingest · Boolean · When true, only unreconciled objects are returned. Otherwise, they are not included.
after · String · Returns the elements in the list that come after the specified cursor.
before · String · Returns the elements in the list that come before the specified cursor.
first · Int · Returns the first _n_ elements from the list.
last · Int · Returns the last _n_ elements from the list.

Returns

MedicationTypePaginationConnection

Example

query medications(
$active: Boolean
$patient_id: ID
$unreconciled_from_ccda_ingest: Boolean
$after: String
$before: String
$first: Int
$last: Int
) {
medications(
active: $active
patient_id: $patient_id
unreconciled_from_ccda_ingest: $unreconciled_from_ccda_ingest
after: $after
before: $before
first: $first
last: $last
) {
edges
nodes
page_info
total_count
}
}