Object

RootQueryType

Usage Example
query {
# Use this type in your queries
someQuery {
accountCreditHistory
accountCreditsVoidedWithoutPaymentVoided
accounts
accountsCount
accountsReceivableBalance
}
}

Fields

accountCreditHistoryAccountCreditHistoryResponse
+
accountCreditsVoidedWithoutPaymentVoided[Payment!]!required
+

Lists account credits voided without corresponding payment voided

accountsCountInt
+
accountsReceivableBalanceAccountsReceivableBalance
+

Returns a client's accounts receivable balance.

activeBoardRows[BoardRow]
+
activeSubscriptionForOrgVetspireSubscription
activeVoiceCalls[VoiceCall]
+

Search for active calls filtering by location phone number

addresses[Address]
+
agedAccountsReceivable[AgedAccountsReceivable]
+

Lists aged accounts receivable records

agedAccountsReceivableTotalsAgedAccountsReceivableTotals
+

Returns aged accounts receivable totals

alertAlert
+
alerts[Alert!]!required
+
allergies[Allergy]
+
DEPRECATED: Only use 'allergies' when querying inside of 'patient'. Field will be removed soon.
analytics[AnalyticsData]
+
apiKeys[ApiKey!]!required

Lookup API keys for your org

appointmentAppointment
+
appointmentReminders[AppointmentReminder]
+
appointmentTypeTagAppointmentTypeTag
+
appointmentTypeTags[AppointmentTypeTag!]!required
+
appointmentTypes[AppointmentType!]!required
+
appointments[Appointment]
+

Get a list of appointments either by location id or provider id

appointmentsReportJSON
+

Runs the appointments report and returns results inline. This report supports the following breakdowns: - LOCATION_ID - PROVIDER_ID - APPOINTMENT_TYPE_ID - IS_NEW_CLIENT - IS_NEW_OF_TYPE_CLIENT - IS_MEMBER - BOOKING_METHOD - BOOKING_PLACE - STATUS - APPOINTMENT_TYPE_REVENUE_CENTER_ID - CLIENT_ID - PATIENT_ID If results time out, please fetch smaller date ranges, otherwise please use the alternative `emailAppointmentsReport` query.

arReconciliationIssues[ArReconciliation!]!required
+

Lists logged client AR reconciliation issues

asyncMedicalRecordAsyncMedicalRecord
+
autoMessageAutoMessage!required
+
autoMessages[AutoMessage!]!required
+
availableCages[BoardingCage!]!required
+
availableTimes[AvailableTimeSlot]
+
bills[Bill]
+
boardCellBoardCell
+
boardGroups[BoardGroup]
+
boardRowBoardRow
+
boardingCages[BoardingCage!]!required
+
boardingWards[BoardingWard!]!required
+
bookedDays[Date!]
+
cadenceCadence
+
cadences[Cadence]
+
cages[Cage]
+
callLogCallLog
+
callLogs[CallLog]
+

Get a list of call logs

callLogsCountInt
+
callLogsReportJSON
+

Runs the callLogs report and returns results inline. This report supports the following breakdowns: - LOCATION_ID - CAME_IN - CONSULTED_BY_DOCTOR_ID If results time out, please fetch smaller date ranges, otherwise please use the alternative `emailCalllogsReport` query.

callsReportJSON
+

Runs the calls report and returns results inline. This report supports the following breakdowns: - LOCATION_ID If results time out, please fetch smaller date ranges, otherwise please use the alternative `emailCallsReport` query.

cardconnectVerifyCredentialsCardconnectVerifyCredentialsResult
+
careTeamRoles[CareTeamRole]
+
ccTerminals[String]
+
checkDuplicatePhoneNumberBoolean
+
clientClient
+

Lookup a specific client by id

clientAccountCreditsByLocation[LocationClientAccountCredits!]!required
+

Lists sum of client account credits by location

clientConsentClientConsent
+
clientReferralSourceClientReferralSource
+
clientReferralSources[ClientReferralSource!]!required
+
clientTagClientTag
+
clientTags[ClientTag]
clients[Client]
+

Get a list of clients within your organization's database. Depending on how many providers your organization has, you may need to page through your data with filters.

clientsCountInt
+
complicationComplication
+
complications[Complication!]!required
+
consentFormConsentForm
+

The `should_convert_urls_to_a_tags` is a boolean flag that determines whether URLs should be converted into clickable links by adding an <a> tag with the CSS class `vespire-consent-form-link`.

consentForms[ConsentForm]
+
contacts[RdvmContact!]!required
+

Lookup an rdvms contacts

conversationConversation
+
conversations[Conversation]
+
conversationsPaginatedConversationPage!required
+
coowners[Coowner]
+
countAppointmentProviders[ApptCountProviders]
+

Count the number of appointments in a range from start to end segmented into days, weeks, months, years.

countAppointments[DateCount]
+

Count the number of appointments in a range from start to end segmented into days, weeks, months, years.

countNewClients[DateCount]
+

Count new clients based on filters between a range and segment

countViewerAppointments[DateCount]
+

Count the number of appointments by a certain provider id

couponCoupon
+
coupons[Coupon]
+
creditMemos[CreditMemo]
+
creditMemosTotalsCreditMemoTotals
+
creditMigrationsVoided[Payment!]!required
+

Lists credit migrations voided

customAppointmentFieldValues[CustomAppointmentFieldValue]
+

Get custom appointment field values

customAppointmentFields[CustomAppointmentField]
+

Get all custom appointment fields at the viewer's org

customClientFieldValues[CustomClientFieldValue]
+

Get custom client field values

customClientFields[CustomClientField]
+

Get all custom client fields at the viewer's org

customPatientFieldValues[CustomPatientFieldValue]
+

Get custom patient field values

customPatientFields[CustomPatientField]
+

Get all custom patient fields at the viewer's org

dashboardDashboard
departments[Department]
+
detailedCreditsCountInt
+
detailedCreditsReportDetailedCreditItemConnection
+
detailedSalesRevenueCountInt
+
detailedSalesRevenueReportDetailedSalesRevenueItemConnection
+
diagnosticDiagnostic
+
diagnostics[Diagnostic]
+
dialpadOffices[DialpadOffice]
discountReasons[DiscountReason]
emailAppointmentsReportBoolean
+

Runs the appointments report and emails the results as an excel file to the given email address. This report supports the following breakdowns: - LOCATION_ID - PROVIDER_ID - APPOINTMENT_TYPE_ID - IS_NEW_CLIENT - IS_NEW_OF_TYPE_CLIENT - IS_MEMBER - BOOKING_METHOD - BOOKING_PLACE - STATUS - APPOINTMENT_TYPE_REVENUE_CENTER_ID - CLIENT_ID - PATIENT_ID If results are requested inline, please use the provided `appointmentsReport` query.

emailCallLogsReportBoolean
+

Runs the callLogs report and emails the results as an excel file to the given email address. This report supports the following breakdowns: - LOCATION_ID - CAME_IN - CONSULTED_BY_DOCTOR_ID If results are requested inline, please use the provided `callLogsReport` query.

emailCallsReportBoolean
+

Runs the calls report and emails the results as an excel file to the given email address. This report supports the following breakdowns: - LOCATION_ID If results are requested inline, please use the provided `callsReport` query.

emailProtocolRemindersReportBoolean
+

Runs the protocolReminders report and emails the results as an excel file to the given email address. This report supports the following breakdowns: - LOCATION_ID - UNSENDABLE_REASON - DUPLICATE_COUNT - SENT - CADENCE - CONTACT_METHOD - CONVERSIONS - CLIENT_ID - CLIENT_NAME - PATIENT_ID - PATIENT_NAME - CONTAINS_LEGACY_REMINDERS - RECIPIENT_ADDRESS - PROTOCOL_ID If results are requested inline, please use the provided `protocolRemindersReport` query.

emailSalesReportBoolean
+

Runs the sales report and emails the results as an excel file to the given email address. This report supports the following breakdowns: - LOCATION_ID - PROVIDER_ID - REVENUE_CENTER_ID - PRODUCT_TYPE_ID - PRODUCT_CATEGORY_ID - PRODUCT_ID - DEPARTMENT_ID - CLIENT_ID - PAYROLL_ID - RDVM_ID If results are requested inline, please use the provided `salesReport` query.

encounterEncounter
+
encounterCareTeamMembers[EncounterCareTeamMember]
+

Get encounter care team members

encounterProducts[EncounterProduct]
+
encounterSummaryString
+
encounterTypeEncounterType
+
encounterTypes[EncounterType]
+
encounters[Encounter]
+

Search for encounters by patient id, org id, and status

encountersUpdatedSince[Encounter]
+

Poll for a list of encounters updated since a specific datetime

entityValidations[EntityValidation!]!required
+
estimateEstimate
+
estimateItems[EstimateItem]
+
estimatePdfString
+
estimates[Estimate]
+
estimatesTotalsEstimatesTotals
+
events[Event!]
+
eventsPaginatedEventConnection
+
externalCommPreferencesClientExternalCommPreferencesValue
+
externalSearch[ExternalSearchResult]
+
featureFlagFeatureFlag
+
featureFlags[FeatureFlag]
+
fileFolders[String!]!required
filesFileResults!required
+
fulfillmentSourceFulfillmentSource
+
fulfillmentSources[FulfillmentSource!]!required
+
getCardconnectBaseUrlBySlugString!required
+
getCardconnectCardInfoCardconnectCardInfo!required
+
getInhouseDevices[LabDevice]
+
getLatestLocationKpis[LocationKpi]
+
getRdvmRecentPatients[RdvmRecentPatients!]!required
+
hasBalanceDueBoolean
+

if the client has an open, due balance

hospitalizations[Hospitalization]
+
immunizationImmunization
+
immunizationPdfString
+

Get immunizations PDF

immunizations[Immunization]
+

Get immunizations

immunizationsDue[Immunization]
+
inCollectionsBoolean
+
inventoryAdjustmentInventoryAdjustment
+
inventoryAdjustments[InventoryAdjustment]
+
invoicePdfString
+
isDaycareOpenBoolean
+
labOrderLabOrder
+
labOrders[LabOrder]
+
labResultLabResult
+
labResults[LabResult]
+
labTests[LabTest!]!required
+
lapsingPatients[Patient]
+
latestDatasyncLogs[DatasyncLog]
+
latestDeletionLogs[DeletionLog]
+
ledgerEntries[LedgerEntry]
+
ledgerEntryTotalsLedgerEntryTotals
+
legalEntities[LegalEntity]
listEncountersEncounterConnection
+
+
locationLocation
+

Lookup a location by id (defaults to latest added)

locationAppointmentTypes[AppointmentType]
+

Get a list of appointments types which are either enabled globally, or enabled for the given location

locationChatMessages[LocationChatMessage]
+
locationSchedules[LocationSchedule]
+
locationTagLocationTag
+
locationTags[LocationTag!]!required
+
locations[Location!]
+
locationsDepartments[Department]
+
macroMacro
+
macros[Macro]!required
+
macrosCountInt
+
mandatoryConsentForms[String]
+
masterProducts[MasterProduct]
medicalRecordsSummaryString
+
medicationMedication
+
medications[Medication]
+

Lookup a patient's medication by status

medicationsReportMedicationsReportResult
+
modalities[Modality]
+
monographMonograph
+
monographs[Monograph!]
newsletterNewsletter
+
newsletters[Newsletter!]!required
+
notifications[Notification]
+
novaBoardNovaBoard
+
openConversationsCountInt
+
orderOrder
+

Gets an order by id

orderFlagOrderFlag
+
orderFlags[OrderFlag!]!required
+
orderItems[OrderItem]
+
orderItemsTotalsOrderItemsTotals
+
orderLineItemsOrderItemConnection
+
orderPaymentMismatches[OrderPaymentMismatch!]!required
+

Lists order payment mismatches for client

orders[Order]
+

Lists all orders based on the query

ordersPendingApprovalCountsOrdersCounts
+

Retrieve the number of pending approval items in a patient’s orders

ordersTotalsOrdersTotals
+

Returns a count of all orders based on a query, excludes datasync imported orders.

orgOrg

Lookup an org (defaults to viewer's)

orgDepartments[OrgDepartment]
orgLabOrgLab
+
orgLabOrders[LabOrder!]!required
+
orgLabResults[LabResult!]!required
+
orgLabs[OrgLab!]!required
+
+

Returns a list of orphan transactions. Should only be used when the Cubex Two-Way integration is enabled

orphanTransactionsCountInt
+

Returns the count of orphan transactions for a location

orphanedLabs[LabResult]
+
overdueTasksCountInt
packs[Pack]
+
patientPatient
+
patientCompliances[PatientCompliance]
+
patientCompliancesCountInt
+
patientCompliancesCsvUrlString
+
patientComplicationPatientComplication
+
patientConsentForms[ClientConsent]
+
patientDiagnosticsDiagnosticConnection
+

Get diagnostics for a specific patient

patientDocumentPatientDocument
+
patientEncounterProductsEncounterProductConnection
+

Get encounter products for a specific patient

patientLabelString
+
patientPlanPatientPlan
+
patientPlans[PatientPlan]
+

Retrieve a list of prevention plans at your org

patientPlansCountInt
+

Count prevention plans at your org

patientProtocols[PatientProtocol]
+
patientQrCodeString
+
patientTagPatientTag
+
patientTags[PatientTag!]!required
+
patientTreatmentsTreatmentConnection
+

Get treatments for a specific patient

patients[Patient!]!required
+

Retrieve a list of all patients at your org

paymentPayment
+
paymentProviders[Provider]
+
payments[Payment]
+
paymentsTotalsPaymentsTotals
+
paymentsVoidedWithoutAccountCreditVoided[Payment!]!required
+

Lists payments voided without corresponding account credit voided

permissions[Permission!]!required
+
pharmacyMedicationsMedicationConnection
+

Retrieve paginated medications with pharmacy statuses

pharmacyMedicationsCount[MedicationStatusCount]!required

Get count of medications grouped by pharmacy status

phoneNumbers[PhoneNumber]
+
plumbsHandouts[PlumbsHandout]
+
preventionPlanPreventionPlan
+
preventionPlans[PreventionPlan!]!required
+
previewCadenceCadence
+
priceChangePriceChange
+

Gets a price change by id

priceChanges[PriceChange]

Lists price changes

problems[Problem]
+
processorPayments[ProcessorPayment]
+
productProduct
+
productCategories[ProductCategory!]!required
+
productCategoryProductCategory
+
productHistory[InventoryLog]
+
productManufacturerProductManufacturer
+
productManufacturers[ProductManufacturer]!required
+
productManufacturersPaginatedProductManufacturerPage!required
+
productPackageProductPackage
+
productPackages[ProductPackage]
+
productTypeProductType
+
productTypes[ProductType!]!required
+
products[Product]
+
productsCountInt
+
productsInStockCountDecimal
+
protocolProtocol
+
protocolReminders[ProtocolReminder]
+
protocolRemindersCountInt
protocolRemindersReportJSON
+

Runs the protocolReminders report and returns results inline. This report supports the following breakdowns: - LOCATION_ID - UNSENDABLE_REASON - DUPLICATE_COUNT - SENT - CADENCE - CONTACT_METHOD - CONVERSIONS - CLIENT_ID - CLIENT_NAME - PATIENT_ID - PATIENT_NAME - CONTAINS_LEGACY_REMINDERS - RECIPIENT_ADDRESS - PROTOCOL_ID If results time out, please fetch smaller date ranges, otherwise please use the alternative `emailProtocolremindersReport` query.

protocols[Protocol!]!required
+
providerProvider
+

Lookup a specific provider by id. All users in Vetspire are listed as a provider and have an id.

providerAuthTokenString
+
providerDepartments[Department]
+
providerRoleProviderRole
+
providerRoles[ProviderRole!]!required
+
providers[Provider]
+
purchaseOrderPurchaseOrder
+
purchaseOrders[PurchaseOrder]
+
rabiesCertificateString
+
rabiesCertificates[String]
+
rdvmRdvm
+
rdvmContactRdvmContact
+
rdvmDocumentRdvmDocument
+
rdvms[Rdvm!]!required
+
rdvmsCountInt
+
recentVoiceCalls[VoiceCall]
+

Search for recent calls filtering by location phone number

recentVoiceCallsCountInt
+
reconciliationNotes[ReconciliationNote!]!required
+
refundedOrderItems[OrderItem]
+
regeneratePatientProtocols[PatientProtocol]
+
relationships[Relationship]
reminders[Reminder]
+
reservationReservation
+
reservationKennelPdfString!required
+
reservations[Reservation!]
+
returnedOrderItems[ReturnedOrderItem]
+
revenueCenterRevenueCenter
+
revenueCenterBudgets[RevenueCenterBudget]
+
revenueCenters[RevenueCenter!]!required
+
salesReportJSON
+

Runs the sales report and returns results inline. This report supports the following breakdowns: - LOCATION_ID - PROVIDER_ID - REVENUE_CENTER_ID - PRODUCT_TYPE_ID - PRODUCT_CATEGORY_ID - PRODUCT_ID - DEPARTMENT_ID - CLIENT_ID - PAYROLL_ID - RDVM_ID If results time out, please fetch smaller date ranges, otherwise please use the alternative `emailSalesReport` query.

scheduleTemplateScheduleTemplate
+
scheduleTemplates[ScheduleTemplate!]
+
searchAccounts[ClientResult]
+

Full-text search for clients or patients at a org

searchCoupons[Coupon]
+
searchDiagnoses[Diagnosis]
+

Search diagnoses by term

searchInventoryBuckets[InventoryBucket]
+
searchLocationTags[String]
+
searchMacros[Macro]
+
searchPackages[ProductPackage]
+
searchPrintnodeComputers[PrintnodeComputersField]

Search for the computers associated with PrintNode account

searchPrintnodePrinters[PrintnodePrintersField!]
+

Search for the printers associated with PrintNode account

searchProductCategories[ProductCategory]
+
searchProductTypes[ProductType]
+
searchProductables[Orderable]
+
searchProducts[Product]
+
searchRdvms[Rdvm!]!required
+
searchTagGroups[EntityTagGroup!]
+
searchVendors[Vendor]
+
sentAutoMessages[SentAutoMessage!]!required
+
sentReminders[SentReminder]
+
stockLocationStockLocation
+
stockLocations[StockLocation]
+
stockTransferStockTransfer
+
stockTransfers[StockTransfer]
+
storedLabTests[LabTest]
+
stripeConnectionTokenString
+
stripeGetClientSecretStripeClientSecret!required
stripeGetCustomerStripeCustomer
stripePaymentIntentStripePaymentIntent
+
stripePublishableKeyString
+
stripeReaderStripeReader
+
stripeReaders[StripeReader]
+
taskTask
+
taskCategories[TaskCategory]
taskGroups[TaskGroup]
+
tasks[Task]
+

Query for a list of tasks

tasksCountInt
+
totalClientsInt
totalPatientsInt
treatmentTreatment
+
treatmentSheetTreatmentSheet
+
treatmentSheetProviderTransfers[ProviderTransfer]
+
treatmentSheetTemplateTreatmentSheetTemplate
+
treatmentSheetTemplates[TreatmentSheetTemplate]
+
treatmentSheets[TreatmentSheet!]!required
+
treatmentSummaryString
+
treatments[Treatment]
+
triggerTrigger
+
triggers[Trigger]
unreadConversations[Conversation]
+
unreadConversationsCountInt
unreadNotificationsCountInt
upennLabTests[Product]
+
usageReportUsageReport
+
vendorVendor
+
vendors[Vendor]
videoRoomTokenString
+
viewerViewer

Lookup the viewer

viewerSubscriptionViewer

Lookup the viewer

visitVisit
+
visits[RdvmVisit!]!required
+
visitsCountInt
+

Counts total visits for this rDVM

vitals[Vitals]
+

Historical vitals

vitalsTemplate[VitalDatum]
+

Format for vitals

voidablePaymentMethods[PaymentMethod]