Treatment Queries

These queries allow you to interact with treatment data.

treatment

Returns: Treatment

Arguments

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

treatmentSheet

Arguments

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

treatmentSheetTemplate

Arguments

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

treatmentSheetTemplates

Arguments

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

treatmentSheets

Returns: [TreatmentSheet!]!

Arguments

ArgumentTypeDescription
isOpenBooleanIs open
isSignedBooleanIs signed
locationIdIDID of the location
patientIdIDID of the patient
Example Query
query(
$isOpen: Boolean,
$isSigned: Boolean,
$locationId: ID,
$patientId: ID
) {
treatmentSheets(
isOpen: $isOpen,
isSigned: $isSigned,
locationId: $locationId,
patientId: $patientId
) {
id
# Add other fields you need
}
}
Variables
{
"isOpen": true,
"isSigned": true,
"locationId": "1",
"patientId": "1"
}

treatmentSummary

Returns: String

Arguments

ArgumentTypeDescription
includeIncompleteTreatmentsBooleanInclude incomplete treatments
locationIdIDID of the location
summaryTypeTreatmentSheetSummaryTypeSummary type
treatmentSheetIdrequiredID!ID of the treatmentsheet
Example Query
query(
$includeIncompleteTreatments: Boolean,
$locationId: ID,
$summaryType: TreatmentSheetSummaryType,
$treatmentSheetId: ID!
) {
treatmentSummary(
includeIncompleteTreatments: $includeIncompleteTreatments,
locationId: $locationId,
summaryType: $summaryType,
treatmentSheetId: $treatmentSheetId
) {
id
# Add other fields you need
}
}
Variables
{
"includeIncompleteTreatments": true,
"locationId": "1",
"summaryType": {},
"treatmentSheetId": "1"
}