home

Browse documentation

ezyVet Knowledge Center

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

Twig template variables: Restricted veterinary medicine (RVM)

The restricted veterinary medicine (RVM) variables show data of medications and products (for example, the dose and the batches). Each variable starts with medication or product.

The product variables work on all product records, for example product, medication.MedicationProduct or invoiceline.Product.

Variables that check a condition

Some of these variables show if a condition is true. For example, product.IsRabiesVaccination is true if the product is a rabies vaccination.

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 product.IsRabiesVaccination %}
Keep this rabies vaccination certificate in a safe place.
{% else %}
Keep this vaccination record in a safe place.
{% endif %}

In this example:

  • product.IsRabiesVaccination is true if the product is a rabies vaccination.
  • When the condition is true, the document shows the text for a rabies vaccination.
  • When the condition is not true, the document shows the text for other vaccinations.
RecordThe document shows
A rabies vaccine for Ruby, the patient of Miss Kochanski, Kristine (200021). The condition is true.Keep this rabies vaccination certificate in a safe place.
A canine parvovirus vaccine for Ruby. The condition is not true.Keep this vaccination record in a safe place.

Variables

NameFunction
{{ medication.PrescribingUserName }}Shows the name of the person who prescribed the medication.
{{ medication.DispensingUserInitials }}Shows the initials of the person who dispensed the medication.
{{ medication.DispensingUserName }}Shows the name of the person who dispensed the medication.
{{ medication.Direction }}Shows the instructions of a restricted veterinary medicine.
{{ medication.CourseLength }}Shows the treatment period of a restricted veterinary medicine.
{{ medication.Dose }}Shows the dose information of a restricted veterinary medicine.
{{ medication.Administration }}Shows the route of administration of a restricted veterinary medicine.
{{ medication.TreatmentFrequency }}Shows the treatment interval of a restricted veterinary medicine.
{{ medication.NumberOfTreatments }}Shows the number of treatments of a restricted veterinary medicine.
{{ medication.WithholdingMilk }}Shows the milk withholding period of a restricted veterinary medicine.
{{ medication.WithholdingMeat }}Shows the meat withholding period of a restricted veterinary medicine.
{{ medication.MaxDispenseQuantity }}Shows the maximum dispense quantity of a restricted veterinary medicine.
{{ medication.MaxDispenseFrequencyDays }}Shows the maximum dispense interval of restricted veterinary medicine.
{{ medication.ActiveIngredient }}Shows the active ingredient of a restricted veterinary medicine.
{{ medication.StartDate }}Shows the start date of the medication.
Note: To show the date in a format that you select, use the date Twig filter. For example:
{{ medication.StartDate|date("jS F Y") }}

This example shows the date as 17th September 2026.

{{ medication.EndDate }}Shows the end date of the medication.
Note: To show the date in a format that you select, use the date Twig filter. For example:
{{ medication.EndDate|date("jS F Y") }}

This example shows the date as 17th September 2026.

{{ medication.MedicationProduct }}Shows the medication product.
{{ medication.Remaining }}Shows the remaining quantity to dispense of a restricted veterinary medicine.
{{ medication.Qty }}Shows the quantity of dispensed medications.
{{ medication.ReasonText }}Shows information about why the prescription was necessary.
{{ medication.BatchName }}Shows the batch name of the medication.
{{ medication.BatchExpiry }}Shows the batch expiration date of the medication.
{{ medication.PrescriptionNumber }}Shows the number of the prescription.
{{ medication.MedicationProduct.ProductIdentifier }}Shows the value of the Product Identifier box of a medication’s configuration.
{{ product.Warning }}Shows the warning text of a medication.
{{ medication.Instructions }}Shows the instructions of the medication.
{{ medication.Note }}Shows the note of the medication.
{{ medication.AllBatchesAndExpirations }}Shows each dispensed batch of the medication, with the expiration date of each batch.
Note: This variable shows a comma between each value. If the medication has no batches, this variable shows (Unknown).
{{ medication.BatchNames }}Shows the names of the dispensed batches of the medication, with a comma between each value.
{{ medication.BatchExpirations }}Shows a list of the expiration dates of the dispensed batches of the medication.
Tip: To show the dates with a comma between each value, enter {{ medication.BatchExpirations|join(", ") }}.
{{ medication.RvmPrescriptionReportBatchDisplay }}Shows each dispensed batch of the medication in the format batch name, quantity.
Note: This variable shows each batch on a new line.
{{ medication.AnimalName }}Shows the name of the patient of the medication.
{{ medication.ClientContact }}Shows the contact record of the client of the medication.
Tip: To show more information about the record, add one more variable after this variable, for example {{ medication.ClientContact.Name }}.
{{ medication.Prescription }}Shows the prescription record of the medication.
Tip: To show all medications of the prescription, enter {{ medication.Prescription.Medications }}.
{{ medication.Product }}Shows the product record of the medication.
Note: This variable shows the same record as {{ medication.MedicationProduct }}.
{{ product.Description }}Shows the description of the product.
{{ product.Instructions }}Shows the medication instructions that are configured on the product.
{{ product.Notes }}Shows the notes of the product.
{{ product.ScheduleClass }}Shows the drug schedule or class of the product.
{{ product.Price }}Shows the sell price of the product.
Tip: To include tax, enter {{ product.Price(true) }}.
{{ product.PriceGst }}Shows the tax of the sell price of the product.
{{ product.FinancialProductGroup }}Shows the product group record of the product.
Tip: To show more information about the record, add one more variable after this variable, for example {{ product.FinancialProductGroup.Name }}.
{{ product.IsMedication }}True if the product is a medication.
Note: Use this variable in a Twig if statement. Refer to Variables that check a condition.
{{ product.IsVaccination }}True if the product is a vaccination.
Note: Use this variable in a Twig if statement. Refer to Variables that check a condition.
{{ product.IsRabiesVaccination }}True if the product is a rabies vaccination.
Note: Use this variable in a Twig if statement. Refer to Variables that check a condition.