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
ifstatement. - Between the
iftag and theelsetag, put the text to show when the condition is true. - Between the
elsetag and theendiftag, put the text to show when the condition is not true.
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.PayClinicis 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.
| Record | The 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
| Name | Classic template system equivalent? | Function |
|---|---|---|
{{ claim.InsuranceNumber }} | No | Shows the insurance number of the claim. |
{{ claim.Total }} | No | Shows the total of the claim. |
{{ claim.PayClinic }} | No | True if the insurance supplier pays the veterinary practice directly. |
{{ claim.Animal }} | No | Shows 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 }} | No | Shows 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 }} | No | Shows 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 }} | No | Shows 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 }} | No | Shows 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 }} | No | Shows a list of the condition information that the veterinarian entered in the claim. Note: Use this variable in a Twig for loop. |
{{ claim.PatientConditions }} | No | Shows a list of the patient condition information of the claim. Note: Use this variable in a Twig for loop. |