Below is how to generate query batches for multiple different kinds of queries including user-defined queries.
Generate a Batch using a User-Defined Query
- Go to Debtors and Marketing > Queries tab
- Type: Select the relevant query
- Batch Name: Enter the name of the batch
- Provider: Select a Provider or All Providers
- Exclude the following categories: Ensure all patient categories to be excluded are selected
- Excl. patients not seen in: Only enter a number to exclude patients not seen in as many months
- ... and mailed this letter within: Only enter a number to exclude patients who have received this exact query in as many months
- ... and have appts over next: Only enter a number to exclude patients who have upcoming appointments in as many days
- Items: Only enter item(s) if the batch should only include patients who have had these items performed in the Period entered (below)
- Period: If item(s) are present, this field relates to when the items were performed, if no items are entered, this field relates to the patients First Seen date
- Click Retrieve

- The filter associated with this User-Defined Query will appear, editing is possible, otherwise, click OK to proceed

- Highlight: All Rows, or manually select those to include
- Click Create Batch

- Print/Send
- Select Recall Letters
- Click SMS
- Click Select Ready
- Click Send

- Select all patients with nothing entered in the Printed column (unsent)
- Select Recall Letters
- Click E-mail
- When using MSWord, go to Add-ins tab > Click Send

- Select all patients with nothing entered in the Printed column (unsent)
- Select Recall Letters
- Click Print
- When using MSWord, go to Add-ins tab > Click Print
Generate a Batch using Simple Query Wizard
Queries can be generated to view and/or communicate with a list of patients that meet a filter. The below instructions will find all patients whose last visit was before a set date.
Ensure the template(s) associated with Simple Query are updated to suit this campaign before sending.
- Go to Debtors and Marketing > Queries tab
- Type: Simple Query Wizard
- Batch Name: Enter the name of the batch
- Provider: Select a Provider or All Providers
- Exclude the following categories: Ensure all patient categories to be excluded are selected
- Excl. patients not seen in: Only enter a number to exclude patients not seen in as many months
- ... and mailed this letter within: Only enter a number to exclude patients who have received this exact query in as many months
- ... and have appts over next: Only enter a number to exclude patients who have upcoming appointments in as many days
- Click Retrieve

- Column: Select the field, e.g. Last Visit
- Operator: Select from the list, e.g. > Than or Equal To
- Value: Enter the value, e.g. 01/01/2017
- Logical: Choose And to define a finish date of the search, or more filters such as Age (optional)
- Treat NULL and Blank equivalently (recommended): This is ticked by default. If data is never entered in a field, it is considered a NULL field. If data was entered but deleted later, the field is considered Blank. Box ticked, the system will treat NULL fields and Blank fields equivalently.
- Click OK

- Highlight: All Rows, or manually select those to include
- Click Create Batch

- Select Query Letters
- Click SMS
- Click Select Ready
- Click Send

- Select all patients with nothing entered in the Printed column (unsent)
- Select Query Letters
- Click E-mail
- Enter Email Subject

- When using MSWord, go to Add-ins tab > Click Send

- Select all patients with nothing entered in the Printed column (unsent)
- Select Query Letters
- Click Print
- When using MSWord, go to Add-ins tab > Click Print
Generate a Batch using Extended Query Filter
Queries can be generated to view and/or communicate with a list of patients that meet a filter. The below instructions will find all patients whose Date of Birth is Today.
Ensure the template(s) associated with Extended Query Wizard are updated to suit this campaign before sending.
- Go to Debtors and Marketing > Queries tab
- Type: Extended Query Wizard
- Batch Name: Enter the name of the batch
- Provider: Select a Provider or All Providers
- Exclude the following categories: Ensure all patient categories to be excluded are selected
- Excl. patients not seen in: Only enter a number to exclude patients not seen in as many months
- ... and mailed this letter within: Only enter a number to exclude patients who have received this exact query in as many months
- ... and have appts over next: Only enter a number to exclude patients who have upcoming appointments in as many days
- Click Retrieve

- Either paste a filter, click here for common filters, or use the Functions, Columns, Operators and Values to build one
- Click OK

- Highlight: All Rows, or manually select those to include
- Click Create Batch
- Print/Send
- Select Recall Letters
- Click SMS
- Click Select Ready
- Click Send

- Select all patients with nothing entered in the Printed column (unsent)
- Select Recall Letters
- Click E-mail
- When using MSWord, go to Add-ins tab > Click Send

- Select all patients with nothing entered in the Printed column (unsent)
- Select Recall Letters
- Click Print
- When using MSWord, go to Add-ins tab > Click Print
Generate a Treatment Plan Incomplete Query
The Treatment Plan Incomplete Query generates a list of patients who have an active (or inactive) Treatment Plan which has outstanding items on it over a period.
Ensure the template(s) associated with Treatment Plan Incomplete are updated to suit this campaign before sending.
- Go to Debtors and Marketing > Queries tab
- Type: Treatment Plan Incomplete
- Batch Name: Enter the name of the batch, e.g. November 2019
- Plan Status: Select from either active or inactive
- Provider: Select a Provider or All Providers
- Exclude the following categories: Ensure all patient categories to be excluded are selected
- Excl. patients not seen in: Only enter a number to exclude patients not seen in as many months
- ... and mailed this letter within: Only enter a number to exclude patients who have received this exact query in as many months
- ... and have appts over next: Only enter a number to exclude patients who have upcoming appointments in as many days
- Period: The period refers to the date the Treatment Plan was created
- Items: Enter item to only show patients with those specific items outstanding
- Click Retrieve

- Highlight: All Rows, or manually select those to include
- Click Create Batch

- Print/Send
- Select Recall Letters
- Click SMS
- Click Select Ready
- Click Send

- Select all patients with nothing entered in the Printed column (unsent)
- Select Recall Letters
- Click E-mail
- When using MSWord, go to Add-ins tab > Click Send

- Select all patients with nothing entered in the Printed column (unsent)
- Select Recall Letters
- Click Print
- When using MSWord, go to Add-ins tab > Click Print
Generate a Query by Date and Procedures
The Query by Date and Procedures generates a list of patients who have had specific treatment in a period of time.
Ensure the template(s) associated with Query by Date and Procedures are updated to suit this campaign before sending.
- Go to Debtors and Marketing > Queries tab
- Type: Query by Date and Procedures
- Batch Name: Enter the name of the batch, e.g. Crowns in 2019
- Provider: Select a Provider or All Providers
- Exclude the following categories: Ensure all patient categories to be excluded are selected
- Excl. patients not seen in: Only enter a number to exclude patients not seen in as many months
- ... and mailed this letter within: Only enter a number to exclude patients who have received this exact query in as many months
- ... and have appts over next: Only enter a number to exclude patients who have upcoming appointments in as many days
- Period: The period refers to the date the treatment was completed (entered in Treatment tab)
- Items: Enter item(s) to base the query on, e.g. 611-634
- Click Retrieve

- Highlight: All Rows, or manually select those to include
- Click Create Batch

- Print/Send
- Select Recall Letters
- Click SMS
- Click Select Ready
- Click Send

- Select all patients with nothing entered in the Printed column (unsent)
- Select Recall Letters
- Click E-mail
- When using MSWord, go to Add-ins tab > Click Send
- Select all patients with nothing entered in the Printed column (unsent)
- Select Recall Letters
- Click Print
- When using MSWord, go to Add-ins tab > Click Print
Send Holiday/Christmas Greetings to Patients
Towards the end of each year, an SMS/E-mail/Letter can be sent to patients wishing them a safe and happy holiday period. The following instructions are for those not using D4W Marketing.
Patients will only receive communication based on their Send To preferences, if sending via e-mail and they do not have this selected, they will not receive it. It is advised to use multiple communication channels where possible.
Create a Holiday Greeting Query Template
As Holiday Greetings are sent every year, its best to create a User-Defined Query which will save the settings for the next time its to be used. To update an existing User-Defined Query filter see below section.
- Go to Debtors and Marketing > Queries tab
- Queries menu > Create User-Defined Query
- Name: Enter the name of the query, e.g. Holiday Greeting
- Click Change Using Simple Query Wizard

- Column: Last Visit
- Operator: > Than or Equal To
- Value: Enter the first date to include patients from, e.g. 01/01/2019
- Click OK

- Click Exit

Create Letter, E-mail and/or SMS Holiday Greeting Templates
Create the Letter, E-mail and/or SMS template(s) to be sent to patients.
Create the Batch
The below example will generate a batch of all patients treated this year and will send via SMS, e-mail and Print.
- Go to Debtors and Marketing > Queries tab
- Type: Select the query created for Holiday Greetings
- Batch Name: Enter the name of the batch, e.g. 2019 Greetings
- Provider: Select a Provider or All Providers
- Exclude the following categories: Ensure all patient categories to be excluded are selected
- Excl. patients not seen in: Leave blank
- ... and mailed this letter within: Leave blank
- ... and have appts over next: It's not recommended to exclude upcoming appointed patients
- Period: This refers to the patients First Seen Date, enter the furthest date to include all patients, e.g. 01/01/1990
- Click Retrieve

- Highlight: All Rows, or manually select those to include
- Click Create Batch

- Print/Send
- Select Recall Letters
- Click SMS
- Click Select Ready
- Click Send

- Select all patients with nothing entered in the Printed column (unsent)
- Select Recall Letters
- Click E-mail
- When using MSWord, go to Add-ins tab > Click Send

- Select all patients with nothing entered in the Printed column (unsent)
- Select Recall Letters
- Click Print
- When using MSWord, go to Add-ins tab > Click Print
User-Defined Query - Capture first year expenditures for patients
User-Defined Queries allow for multiple templates and filters to be created specifically for a topic.
This is in place of working off the one template for Simple or Extended Queries, which require the user to overwrite previous templates in Mail Merge.
Create Query
- Go to Debtors and Marketing > Queries tab
- Queries menu > Create User-Defined Query
- Name: Enter the name of the query.
- Select the filter to be used

- Change using Simple Wizard
- Enter the New Filter Criteria.
- Click OK

- Click Exit

- Next, setup the Letter/E-mail/SMS Template(s) for this query
- Generate a Batch using the User-Defined Query (see above section)
- Right-click on patients Card No. > Go To > Receipts

Receipt History
Once the above query has been run, check the receipt history for each patient in the list.
- Go to Patient Records > Receipts tab
- Reports menu > Receipts History
- Date: Select the period to base this report on
- Header of: Select the Provider whose page header you would like to use
- Show inactive providers as well: Tick to include inactive Providers


Edit a User-Defined Query Filter
The filter used when creating a User-Defined Query will remain for all other batches created using the query. For example, if the filter looked at all patients who visited the practice after 01/01/2019, it may need to be updated to 01/01/2020 the following year.
- Go to Debtors and Marketing > Queries tab
- Type: Select the query from the list
- Queries menu > Modify User-Defined Query
- Select the filter to use to edit
- Change using Simple Wizard

- Change using Extended Wizard

- Set the new filter and click OK