Clinical Queries

These queries allow you to interact with clinical data.

allergies

Returns: [Allergy]

Arguments

ArgumentTypeDescription
patientIdrequiredID!ID of the patient
Example Query
query($patientId: ID!) {
allergies(patientId: $patientId) {
id
# Add other fields you need
}
}
Variables
{
"patientId": "1"
}

complication

Returns: Complication

Arguments

ArgumentTypeDescription
idrequiredID!ID of resource to lookup
Example Query
query($id: ID!) {
complication(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

complications

Returns: [Complication!]!

Arguments

ArgumentTypeDescription
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
complications(
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"updatedAtEnd": {},
"updatedAtStart": {}
}

dashboard

Returns: Dashboard
Example Query
query {
dashboard {
id
# Add other fields you need
}
}

diagnostics

Returns: [Diagnostic]

Arguments

ArgumentTypeDescription
clientIdIDID of the client (pet owner)
patientIdIDID of the patient
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$clientId: ID,
$patientId: ID,
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
diagnostics(
clientId: $clientId,
patientId: $patientId,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"clientId": "1",
"patientId": "1",
"updatedAtEnd": {},
"updatedAtStart": {}
}

encounter

Returns: Encounter

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
Example Query
query($id: ID!) {
encounter(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

encounterCareTeamMembers

Get encounter care team members

Arguments

ArgumentTypeDescription
encounterIdrequiredID!ID of the clinical encounter
Example Query
query($encounterId: ID!) {
encounterCareTeamMembers(encounterId: $encounterId) {
id
# Add other fields you need
}
}
Variables
{
"encounterId": "1"
}

encounterProducts

Returns: [EncounterProduct]

Arguments

ArgumentTypeDescription
clientIdIDID of the client (pet owner)
limitIntMaximum number of results to return
locationIdIDID of the location
offsetIntNumber of results to skip for pagination
patientIdIDID of the patient
providerIdIDID of the provider
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$clientId: ID,
$limit: Int,
$locationId: ID,
$offset: Int,
$patientId: ID,
$providerId: ID,
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
encounterProducts(
clientId: $clientId,
limit: $limit,
locationId: $locationId,
offset: $offset,
patientId: $patientId,
providerId: $providerId,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"clientId": "1",
"limit": 1,
"locationId": "1",
"offset": 1,
"patientId": "1",
"providerId": "1",
"updatedAtEnd": {},
"updatedAtStart": {}
}

encounterSummary

Returns: String

Arguments

ArgumentTypeDescription
attachmentIds[ID]List of attachment IDs
documentTypeEncounterSummaryDocumentTypeType of document
encounterIdrequiredID!ID of the clinical encounter
extras[String]Extras
locationIdIDID of the location
only[String]Only
onlySections[String]Only sections
Example Query
query(
$attachmentIds: [ID],
$documentType: EncounterSummaryDocumentType,
$encounterId: ID!,
$extras: [String],
$locationId: ID,
$only: [String],
$onlySections: [String]
) {
encounterSummary(
attachmentIds: $attachmentIds,
documentType: $documentType,
encounterId: $encounterId,
extras: $extras,
locationId: $locationId,
only: $only,
onlySections: $onlySections
) {
id
# Add other fields you need
}
}
Variables
{
"attachmentIds": "1",
"documentType": {},
"encounterId": "1",
"extras": "example",
"locationId": "1",
"only": "example",
"onlySections": "example"
}

encounterTypes

Returns: [EncounterType]

Arguments

ArgumentTypeDescription
isEmbeddableBooleanIs embeddable
locationIdIDID of the location
onlyEnabledBooleanReturn only enabled items
Example Query
query(
$isEmbeddable: Boolean,
$locationId: ID,
$onlyEnabled: Boolean
) {
encounterTypes(
isEmbeddable: $isEmbeddable,
locationId: $locationId,
onlyEnabled: $onlyEnabled
) {
id
# Add other fields you need
}
}
Variables
{
"isEmbeddable": true,
"locationId": "1",
"onlyEnabled": true
}

encounters

Returns: [Encounter]

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

Arguments

ArgumentTypeDescription
additionalProviderOnlyBooleanAdditional provider only
clientIdIDID of the client (pet owner)
historicalIdStringID of the historical
limitIntMaximum number of results to return
locationIdIDID of the location
offsetIntNumber of results to skip for pagination
patientIdIDID of the patient
providerIdIDID of the provider
signedBooleanSigned
startAfterNaiveDateTimeStart after
startBeforeNaiveDateTimeStart before
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
viewerOnlyBooleanViewer only
Example Query
query(
$additionalProviderOnly: Boolean,
$clientId: ID,
$historicalId: String,
$limit: Int,
$locationId: ID,
$offset: Int,
$patientId: ID,
$providerId: ID,
$signed: Boolean,
$startAfter: NaiveDateTime,
$startBefore: NaiveDateTime,
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime,
$viewerOnly: Boolean
) {
encounters(
additionalProviderOnly: $additionalProviderOnly,
clientId: $clientId,
historicalId: $historicalId,
limit: $limit,
locationId: $locationId,
offset: $offset,
patientId: $patientId,
providerId: $providerId,
signed: $signed,
startAfter: $startAfter,
startBefore: $startBefore,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart,
viewerOnly: $viewerOnly
) {
id
# Add other fields you need
}
}
Variables
{
"additionalProviderOnly": true,
"clientId": "1",
"historicalId": "example",
"limit": 1,
"locationId": "1",
"offset": 1,
"patientId": "1",
"providerId": "1",
"signed": true,
"startAfter": {},
"startBefore": {},
"updatedAtEnd": {},
"updatedAtStart": {},
"viewerOnly": true
}

encountersUpdatedSince

Returns: [Encounter]

Poll for a list of encounters updated since a specific datetime

Arguments

ArgumentTypeDescription
updatedAtrequiredDateTime!Updated at
Example Query
query($updatedAt: DateTime!) {
encountersUpdatedSince(updatedAt: $updatedAt) {
id
# Add other fields you need
}
}
Variables
{
"updatedAt": {}
}

immunization

Returns: Immunization

Arguments

ArgumentTypeDescription
idrequiredID!ID of resource to lookup
Example Query
query($id: ID!) {
immunization(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

immunizationPdf

Returns: String

Get immunizations PDF

Arguments

ArgumentTypeDescription
ids[ID]List of IDs
isLatestBooleanIs latest
locationIdrequiredID!ID of the location
patientIdrequiredID!ID of the patient
Example Query
query(
$ids: [ID],
$isLatest: Boolean,
$locationId: ID!,
$patientId: ID!
) {
immunizationPdf(
ids: $ids,
isLatest: $isLatest,
locationId: $locationId,
patientId: $patientId
) {
id
# Add other fields you need
}
}
Variables
{
"ids": "1",
"isLatest": true,
"locationId": "1",
"patientId": "1"
}

immunizations

Returns: [Immunization]

Get immunizations

Arguments

ArgumentTypeDescription
clientIdIDID of the client (pet owner)
ids[ID]List of IDs
ignoreHistoricalBooleanIgnore historical
isLatestBooleanIs latest
isRabiesBooleanIs rabies
limitIntMaximum number of results to return
locationIdIDID of the location
offsetIntNumber of results to skip for pagination
patientIdIDID of the patient
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$clientId: ID,
$ids: [ID],
$ignoreHistorical: Boolean,
$isLatest: Boolean,
$isRabies: Boolean,
$limit: Int,
$locationId: ID,
$offset: Int,
$patientId: ID,
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
immunizations(
clientId: $clientId,
ids: $ids,
ignoreHistorical: $ignoreHistorical,
isLatest: $isLatest,
isRabies: $isRabies,
limit: $limit,
locationId: $locationId,
offset: $offset,
patientId: $patientId,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"clientId": "1",
"ids": "1",
"ignoreHistorical": true,
"isLatest": true,
"isRabies": true,
"limit": 1,
"locationId": "1",
"offset": 1,
"patientId": "1",
"updatedAtEnd": {},
"updatedAtStart": {}
}

immunizationsDue

Returns: [Immunization]

Arguments

ArgumentTypeDescription
limitIntMaximum number of results to return
locationIdrequiredID!ID of the location
offsetIntNumber of results to skip for pagination
showSilencedBooleanShow silenced
withinDaysIntWithin days
Example Query
query(
$limit: Int,
$locationId: ID!,
$offset: Int,
$showSilenced: Boolean,
$withinDays: Int
) {
immunizationsDue(
limit: $limit,
locationId: $locationId,
offset: $offset,
showSilenced: $showSilenced,
withinDays: $withinDays
) {
id
# Add other fields you need
}
}
Variables
{
"limit": 1,
"locationId": "1",
"offset": 1,
"showSilenced": true,
"withinDays": 1
}

lapsingPatients

Returns: [Patient]

Arguments

ArgumentTypeDescription
limitIntMaximum number of results to return
locationIdrequiredID!ID of the location
offsetIntNumber of results to skip for pagination
Example Query
query(
$limit: Int,
$locationId: ID!,
$offset: Int
) {
lapsingPatients(
limit: $limit,
locationId: $locationId,
offset: $offset
) {
id
# Add other fields you need
}
}
Variables
{
"limit": 1,
"locationId": "1",
"offset": 1
}

listEncounters

Arguments

ArgumentTypeDescription
afterStringCursor for forward pagination
beforeStringCursor for backward pagination
filtersEncounterFiltersFilters
firstIntFirst
lastIntLast
orderBy[EncounterOrderBy]Order by
Example Query
query(
$filters: EncounterFilters,
$first: Int,
$orderBy: [EncounterOrderBy]
) {
listEncounters(
filters: $filters,
first: $first,
orderBy: $orderBy
) {
edges {
node {
id
# Add other fields you need
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
Variables
{
"filters": {},
"first": 1,
"orderBy": {}
}

macro

Returns: Macro

Arguments

ArgumentTypeDescription
idrequiredID!ID of resource to lookup
Example Query
query($id: ID!) {
macro(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

macros

Returns: [Macro]!

Arguments

ArgumentTypeDescription
limitIntMaximum number of results to return
locationIds[ID]List of location IDs
nameStringName of the resource
offsetIntNumber of results to skip for pagination
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$limit: Int,
$locationIds: [ID],
$name: String,
$offset: Int,
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
macros(
limit: $limit,
locationIds: $locationIds,
name: $name,
offset: $offset,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"limit": 1,
"locationIds": "1",
"name": "example",
"offset": 1,
"updatedAtEnd": {},
"updatedAtStart": {}
}

macrosCount

Returns: Int

Arguments

ArgumentTypeDescription
locationIds[ID]List of location IDs
nameStringName of the resource
Example Query
query(
$locationIds: [ID],
$name: String
) {
macrosCount(
locationIds: $locationIds,
name: $name
) {
id
# Add other fields you need
}
}
Variables
{
"locationIds": "1",
"name": "example"
}

mandatoryConsentForms

Returns: [String]

Arguments

ArgumentTypeDescription
encounterIdrequiredID!ID of the clinical encounter
Example Query
query($encounterId: ID!) {
mandatoryConsentForms(encounterId: $encounterId) {
id
# Add other fields you need
}
}
Variables
{
"encounterId": "1"
}

medication

Returns: Medication

Arguments

ArgumentTypeDescription
idrequiredID!ID of resource to lookup
Example Query
query($id: ID!) {
medication(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

medications

Returns: [Medication]

Lookup a patient's medication by status

Arguments

ArgumentTypeDescription
clientIdIDID of the client (pet owner)
hasRefillsBooleanHas refills
limitIntMaximum number of results to return
locationIdIDID of the location
offsetIntNumber of results to skip for pagination
patientIdIDID of the patient
statusMedicationStatusCurrent status
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$clientId: ID,
$hasRefills: Boolean,
$limit: Int,
$locationId: ID,
$offset: Int,
$patientId: ID,
$status: MedicationStatus,
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
medications(
clientId: $clientId,
hasRefills: $hasRefills,
limit: $limit,
locationId: $locationId,
offset: $offset,
patientId: $patientId,
status: $status,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"clientId": "1",
"hasRefills": true,
"limit": 1,
"locationId": "1",
"offset": 1,
"patientId": "1",
"status": {},
"updatedAtEnd": {},
"updatedAtStart": {}
}

ordersPendingApprovalCounts

Returns: OrdersCounts

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

Arguments

ArgumentTypeDescription
locationIdrequiredID!ID of the location
patientIdrequiredID!ID of the patient
Example Query
query(
$locationId: ID!,
$patientId: ID!
) {
ordersPendingApprovalCounts(
locationId: $locationId,
patientId: $patientId
) {
id
# Add other fields you need
}
}
Variables
{
"locationId": "1",
"patientId": "1"
}

patient

Returns: Patient

Arguments

ArgumentTypeDescription
idrequiredID!ID of resource to lookup
Example Query
query($id: ID!) {
patient(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

patientComplication

Arguments

ArgumentTypeDescription
idrequiredID!ID of resource to lookup
Example Query
query($id: ID!) {
patientComplication(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

patientConsentForms

Returns: [ClientConsent]

Arguments

ArgumentTypeDescription
clientIdIDID of the client (pet owner)
patientIdrequiredID!ID of the patient
Example Query
query(
$clientId: ID,
$patientId: ID!
) {
patientConsentForms(
clientId: $clientId,
patientId: $patientId
) {
id
# Add other fields you need
}
}
Variables
{
"clientId": "1",
"patientId": "1"
}

patientDiagnostics

Get diagnostics for a specific patient

Arguments

ArgumentTypeDescription
afterStringCursor for forward pagination
beforeStringCursor for backward pagination
firstIntFirst
lastIntLast
locationIdrequiredID!ID of the location
patientIdrequiredID!ID of the patient
status[DiagnosticStatus]Current status
Example Query
query(
$first: Int,
$locationId: ID!,
$patientId: ID!,
$status: [DiagnosticStatus]
) {
patientDiagnostics(
first: $first,
locationId: $locationId,
patientId: $patientId,
status: $status
) {
edges {
node {
id
# Add other fields you need
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
Variables
{
"first": 1,
"locationId": "1",
"patientId": "1",
"status": {}
}

patientDocument

Arguments

ArgumentTypeDescription
idrequiredID!ID of resource to lookup
Example Query
query($id: ID!) {
patientDocument(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

patientEncounterProducts

Get encounter products for a specific patient

Arguments

ArgumentTypeDescription
afterStringCursor for forward pagination
beforeStringCursor for backward pagination
firstIntFirst
lastIntLast
locationIdrequiredID!ID of the location
patientIdrequiredID!ID of the patient
status[EncounterProductStatus]Current status
Example Query
query(
$first: Int,
$locationId: ID!,
$patientId: ID!,
$status: [EncounterProductStatus]
) {
patientEncounterProducts(
first: $first,
locationId: $locationId,
patientId: $patientId,
status: $status
) {
edges {
node {
id
# Add other fields you need
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
Variables
{
"first": 1,
"locationId": "1",
"patientId": "1",
"status": {}
}

patientLabel

Returns: String

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
locationIdrequiredID!ID of the location
typeStringType or classification
Example Query
query(
$id: ID!,
$locationId: ID!,
$type: String
) {
patientLabel(
id: $id,
locationId: $locationId,
type: $type
) {
id
# Add other fields you need
}
}
Variables
{
"id": "1",
"locationId": "1",
"type": "example"
}

patientProtocols

Returns: [PatientProtocol]

Arguments

ArgumentTypeDescription
endDateDateEnd of date range
endDueDateDateFinal due date for the item
limitIntMaximum number of results to return
locationIds[ID]List of location IDs
offsetIntNumber of results to skip for pagination
orderByTriggeredProtocolsSortFieldEnumOrder by
startDateDateStart of date range
startDueDateDateStart due date
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$endDate: Date,
$endDueDate: Date,
$limit: Int,
$locationIds: [ID],
$offset: Int,
$orderBy: TriggeredProtocolsSortFieldEnum,
$startDate: Date,
$startDueDate: Date,
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
patientProtocols(
endDate: $endDate,
endDueDate: $endDueDate,
limit: $limit,
locationIds: $locationIds,
offset: $offset,
orderBy: $orderBy,
startDate: $startDate,
startDueDate: $startDueDate,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"endDate": {},
"endDueDate": {},
"limit": 1,
"locationIds": "1",
"offset": 1,
"orderBy": {},
"startDate": {},
"startDueDate": {},
"updatedAtEnd": {},
"updatedAtStart": {}
}

patientQrCode

Returns: String

Arguments

ArgumentTypeDescription
idrequiredID!Unique identifier
Example Query
query($id: ID!) {
patientQrCode(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

patientTag

Returns: PatientTag

Arguments

ArgumentTypeDescription
idrequiredID!ID of resource to lookup
Example Query
query($id: ID!) {
patientTag(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

patientTags

Returns: [PatientTag!]!

Arguments

ArgumentTypeDescription
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
patientTags(
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"updatedAtEnd": {},
"updatedAtStart": {}
}

patientTreatments

Get treatments for a specific patient

Arguments

ArgumentTypeDescription
afterStringCursor for forward pagination
beforeStringCursor for backward pagination
firstIntFirst
lastIntLast
locationIdrequiredID!ID of the location
patientIdrequiredID!ID of the patient
status[TreatmentStatus]Current status
Example Query
query(
$first: Int,
$locationId: ID!,
$patientId: ID!,
$status: [TreatmentStatus]
) {
patientTreatments(
first: $first,
locationId: $locationId,
patientId: $patientId,
status: $status
) {
edges {
node {
id
# Add other fields you need
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
Variables
{
"first": 1,
"locationId": "1",
"patientId": "1",
"status": {}
}

patients

Returns: [Patient!]!

Retrieve a list of all patients at your org

Arguments

ArgumentTypeDescription
filtersPatientFiltersFilter the patients return by field
limitIntLimit the number of results (defaults to nil)
offsetIntFor pagination, offset the return values by a number (defaults to 0 / no offset)
orderByPatientOrderByEnumField to order the results by (e.g., 'name', 'created_at'). Default is 'id'.
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$filters: PatientFilters,
$limit: Int,
$offset: Int,
$orderBy: PatientOrderByEnum,
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
patients(
filters: $filters,
limit: $limit,
offset: $offset,
orderBy: $orderBy,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"filters": {},
"limit": 1,
"offset": 1,
"orderBy": {},
"updatedAtEnd": {},
"updatedAtStart": {}
}

pharmacyMedications

Retrieve paginated medications with pharmacy statuses

Arguments

ArgumentTypeDescription
afterStringCursor for forward pagination
beforeStringCursor for backward pagination
firstIntFirst
lastIntLast
orderBy[PharmacyMedicationsOrderBy]Order by
pharmacyStatus[PharmacyStatus]Filter by specific pharmacy statuses
searchTermStringSearch by patient name, client name, drug name, drug code, or RX number
status[MedicationStatus]Filter by specific pharmacy statuses
Example Query
query(
$first: Int,
$orderBy: [PharmacyMedicationsOrderBy],
$pharmacyStatus: [PharmacyStatus],
$searchTerm: String,
$status: [MedicationStatus]
) {
pharmacyMedications(
first: $first,
orderBy: $orderBy,
pharmacyStatus: $pharmacyStatus,
searchTerm: $searchTerm,
status: $status
) {
edges {
node {
id
# Add other fields you need
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
Variables
{
"first": 1,
"orderBy": {},
"pharmacyStatus": {},
"searchTerm": "example",
"status": {}
}

pharmacyMedicationsCount

Get count of medications grouped by pharmacy status

Example Query
query {
pharmacyMedicationsCount {
id
# Add other fields you need
}
}

problems

Returns: [Problem]

Arguments

ArgumentTypeDescription
limitIntMaximum number of results to return
offsetIntNumber of results to skip for pagination
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$limit: Int,
$offset: Int,
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
problems(
limit: $limit,
offset: $offset,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"limit": 1,
"offset": 1,
"updatedAtEnd": {},
"updatedAtStart": {}
}

rabiesCertificate

Returns: String

Arguments

ArgumentTypeDescription
ignoreHistoricalBooleanIgnore historical
locationIdIDID of the location
patientIdrequiredID!ID of the patient
Example Query
query(
$ignoreHistorical: Boolean,
$locationId: ID,
$patientId: ID!
) {
rabiesCertificate(
ignoreHistorical: $ignoreHistorical,
locationId: $locationId,
patientId: $patientId
) {
id
# Add other fields you need
}
}
Variables
{
"ignoreHistorical": true,
"locationId": "1",
"patientId": "1"
}

rabiesCertificates

Returns: [String]

Arguments

ArgumentTypeDescription
ids[ID!]List of IDs
locationIdIDID of the location
patientIdrequiredID!ID of the patient
Example Query
query(
$ids: [ID!],
$locationId: ID,
$patientId: ID!
) {
rabiesCertificates(
ids: $ids,
locationId: $locationId,
patientId: $patientId
) {
id
# Add other fields you need
}
}
Variables
{
"ids": {},
"locationId": "1",
"patientId": "1"
}

searchDiagnoses

Returns: [Diagnosis]

Search diagnoses by term

Arguments

ArgumentTypeDescription
limitrequiredInt!Maximum number of results to return
termrequiredString!Term
Example Query
query(
$limit: Int!,
$term: String!
) {
searchDiagnoses(
limit: $limit,
term: $term
) {
id
# Add other fields you need
}
}
Variables
{
"limit": 1,
"term": "example"
}

searchMacros

Returns: [Macro]

Arguments

ArgumentTypeDescription
limitIntMaximum number of results to return
locationIdIDID of the location
termrequiredString!Term
Example Query
query(
$limit: Int,
$locationId: ID,
$term: String!
) {
searchMacros(
limit: $limit,
locationId: $locationId,
term: $term
) {
id
# Add other fields you need
}
}
Variables
{
"limit": 1,
"locationId": "1",
"term": "example"
}

totalPatients

Returns: Int
Example Query
query {
totalPatients {
id
# Add other fields you need
}
}

treatments

Returns: [Treatment]

Arguments

ArgumentTypeDescription
clientIdIDID of the client (pet owner)
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$clientId: ID,
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
treatments(
clientId: $clientId,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"clientId": "1",
"updatedAtEnd": {},
"updatedAtStart": {}
}

visit

Returns: Visit

Arguments

ArgumentTypeDescription
idrequiredID!ID of resource to lookup
Example Query
query($id: ID!) {
visit(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

vitals

Returns: [Vitals]

Historical vitals

Arguments

ArgumentTypeDescription
appointmentIdIDID of the appointment
encounterIdIDID of the clinical encounter
fromDateTimeFrom
limitIntMaximum number of results to return
offsetIntNumber of results to skip for pagination
patientIdIDID of the patient
updatedAtEndNaiveDateTimeUpdated at end
updatedAtStartNaiveDateTimeUpdated at start
Example Query
query(
$appointmentId: ID,
$encounterId: ID,
$from: DateTime,
$limit: Int,
$offset: Int,
$patientId: ID,
$updatedAtEnd: NaiveDateTime,
$updatedAtStart: NaiveDateTime
) {
vitals(
appointmentId: $appointmentId,
encounterId: $encounterId,
from: $from,
limit: $limit,
offset: $offset,
patientId: $patientId,
updatedAtEnd: $updatedAtEnd,
updatedAtStart: $updatedAtStart
) {
id
# Add other fields you need
}
}
Variables
{
"appointmentId": "1",
"encounterId": "1",
"from": {},
"limit": 1,
"offset": 1,
"patientId": "1",
"updatedAtEnd": {},
"updatedAtStart": {}
}

vitalsTemplate

Returns: [VitalDatum]

Format for vitals

Arguments

ArgumentTypeDescription
appointmentIdIDID of the appointment
Example Query
query($appointmentId: ID) {
vitalsTemplate(appointmentId: $appointmentId) {
id
# Add other fields you need
}
}
Variables
{
"appointmentId": "1"
}