home

Browse documentation

ezyVet Knowledge Center

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

Twig template variables: Clinical records

The clinical record variables show data of a clinical record (for example, the date, the patient and the vaccinations). Each variable starts with consult.

Variables that show a list

Some of these variables show a list. For example, consult.Vaccinations shows a list of the vaccinations of the clinical record.

To use a variable of this type:

  • Put the variable in a Twig for loop.
  • Between the for tag and the endfor tag, put the text to show for each item.
  • After for, enter a name for each item in the list.
Note: Use the same name in the variables in the loop.

Example:

{% for vaccination in consult.Vaccinations %}
{{ vaccination.Description }}: invoice {{ vaccination.Invoice.Number }}
{% endfor %}

In this example:

  • consult.Vaccinations is the list of the vaccinations of the clinical record.
  • vaccination is the name for each item in the list.
  • vaccination.Description shows the description of each vaccination.
  • vaccination.Invoice.Number shows the number of the invoice of each vaccination.
  • The document shows the text between the tags one time for each item in the list.

Variables that show a date

Some of these variables show a date. To show the date in a format that is easy to read, use the dateformat Twig filter. The Function column of each variable of this type has a note about the dateformat filter.

After the variable name, enter a vertical bar and dateformat.

Example:

{{ consult.ConsultDate|dateformat }}

In this example:

  • consult.ConsultDate shows the date of the clinical record.
  • The dateformat filter shows the date in a format that is easy to read.

Variables

NameClassic template system equivalent?Function
{{ consult.TherapeuticOutcomes }}{ConsultTherapeuticOutcomes}Shows the content of the Outcome box of therapeutic records of the clinical record.
Note: This variable shows the information in plain text format.
{{ consult.Medications.ProductName }}NoShows the medication product name of the clinical record.
{{ consult.TherapeuticSpecifics }}NoShows the content of the Specifics box of therapeutic records of the clinical record.
{{ consult.Caseowner.Name }}{ConsultVet}Shows the name of the of the case owner of the clinical record.
{{ consult.Date|dateformat }}{ConsultDate}Shows the date of the clinical record.
{{ consult.Animal }}NoShows the patient record of the clinical record.
Tip: To show more information about the record, add one more variable after this variable, for example {{ consult.Animal.Name }}.
{{ consult.AnimalName }}NoShows the name of the patient of the clinical record.
{{ consult.ClientContact }}NoShows the contact record of the client of the clinical record.
Tip: To show more information about the record, add one more variable after this variable, for example {{ consult.ClientContact.Name }}.
{{ consult.ConsultDate }}NoShows the date of the clinical record.
Note: Use this variable with the dateformat Twig filter. Refer to Variables that show a date.
{{ consult.AnimalMasterProblems }}NoShows a list of the master problems that staff members added in the clinical record.
Note: Use this variable in a Twig for loop. For example:
{% for problem in consult.AnimalMasterProblems %}
  {{ problem.Name }}: {{ problem.Specifics }}
{% endfor %}
For more information, refer to Variables that show a list.
{{ consult.AnimalMasterProblemNotes }}NoShows a list of the notes of the master problems of the clinical record.
Note: Use this variable in a Twig for loop. Refer to Variables that show a list.
{{ consult.DiagnosticRequests }}NoShows a list of the diagnostic test requests of the clinical record.
Note: Use this variable in a Twig for loop. For example:
{% for request in consult.DiagnosticRequests %}
  {{ request.Specifics }}
{% endfor %}
For more information, refer to Variables that show a list.
{{ consult.PlanTherapeutics }}NoShows a list of the therapeutic plan records of the clinical record.
Note: Use this variable in a Twig for loop. For example:
{% for plan in consult.PlanTherapeutics %}
  {{ plan.Specifics }}
{% endfor %}
For more information, refer to Variables that show a list.
{{ consult.Vaccinations }}NoShows a list of the vaccinations of the clinical record.
Note: Use this variable in a Twig for loop. For example:
{% for vaccination in consult.Vaccinations %}
  {{ vaccination.Description }}
{% endfor %}
For more information, refer to Variables that show a list.