home

Browse documentation

ezyVet Knowledge Center

Get access to documentation, training, and other high-quality resources.

Twig template variables: Insurance claims

The insurance claim variables show data of an insurance claim (for example, the insurance number, the patient and the policyholder). Use these variables in insurance claim form templates.

Variables that check a condition

Some of these variables show if a condition is true. For example, claim.PayClinic is true if the insurance supplier pays the veterinary practice directly.

To use a variable of this type:

  • Put the variable in a Twig if statement.
  • Between the if tag and the else tag, put the text to show when the condition is true.
  • Between the else tag and the endif tag, put the text to show when the condition is not true.
Note: When you use the variable without an if statement, the variable shows 1 when the condition is true. When the condition is not true, the variable shows no value.

Example:

{% if claim.PayClinic %}
Your insurance supplier pays Callisto Vets directly.
{% else %}
Your insurance supplier pays you. Please pay Callisto Vets in full.
{% endif %}

In this example:

  • claim.PayClinic is true if the insurance supplier pays the veterinary practice directly.
  • When the condition is true, the claim form tells the client that the insurance supplier pays the veterinary practice.
  • When the condition is not true, the claim form tells the client to pay the veterinary practice in full.
RecordThe document shows
A claim for Ruby, the patient of Miss Kochanski, Kristine (200021). The insurance supplier pays the veterinary practice. The condition is true.Your insurance supplier pays Callisto Vets directly.
A claim for Newsflash, the patient of Mr Riker, Will (200019). The insurance supplier pays the client. The condition is not true.Your insurance supplier pays you. Please pay Callisto Vets in full.

Variables

NameClassic template system equivalent?Function
{{ claim.InsuranceNumber }}NoShows the insurance number of the claim.
{{ claim.Total }}NoShows the total of the claim.
{{ claim.PayClinic }}NoTrue if the insurance supplier pays the veterinary practice directly.
Note: Use this variable in a Twig if statement. Refer to Variables that check a condition.
{{ claim.Animal }}NoShows the patient record of the claim.
Tip: To show more information about the record, add one more variable after this variable, for example {{ claim.Animal.Name }}.
{{ claim.Policyholder }}NoShows the contact record of the policyholder of the claim.
Tip: To show more information about the record, add one more variable after this variable, for example {{ claim.Policyholder.Name }}.
{{ claim.Vet }}NoShows the record of the veterinarian of the claim.
Tip: To show more information about the record, add one more variable after this variable, for example {{ claim.Vet.Name }}.
{{ claim.Practice }}NoShows the contact record of the veterinary practice of the claim.
Tip: To show more information about the record, add one more variable after this variable, for example {{ claim.Practice.Name }}.
{{ claim.SupplierContact }}NoShows the contact record of the insurance supplier of the claim.
Tip: To show more information about the record, add one more variable after this variable, for example {{ claim.SupplierContact.Name }}.
{{ claim.VetConditions }}NoShows a list of the condition information that the veterinarian entered in the claim.
Note: Use this variable in a Twig for loop.
{{ claim.PatientConditions }}NoShows a list of the patient condition information of the claim.
Note: Use this variable in a Twig for loop.