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
forloop. - Between the
fortag and theendfortag, put the text to show for each item. - After
for, enter a name for each item in the list.
Example:
{% for vaccination in consult.Vaccinations %}
{{ vaccination.Description }}: invoice {{ vaccination.Invoice.Number }}
{% endfor %}In this example:
consult.Vaccinationsis the list of the vaccinations of the clinical record.vaccinationis the name for each item in the list.vaccination.Descriptionshows the description of each vaccination.vaccination.Invoice.Numbershows 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.ConsultDateshows the date of the clinical record.- The
dateformatfilter shows the date in a format that is easy to read.
Variables
| Name | Classic 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 }} | No | Shows the medication product name of the clinical record. |
{{ consult.TherapeuticSpecifics }} | No | Shows 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 }} | No | Shows 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 }} | No | Shows the name of the patient of the clinical record. |
{{ consult.ClientContact }} | No | Shows 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 }} | No | Shows the date of the clinical record. |
{{ consult.AnimalMasterProblems }} | No | Shows 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 more information, refer to Variables that show a list. |
{{ consult.AnimalMasterProblemNotes }} | No | Shows a list of the notes of the master problems of the clinical record. |
{{ consult.DiagnosticRequests }} | No | Shows a list of the diagnostic test requests of the clinical record. Note: Use this variable in a Twig for loop. For example:For more information, refer to Variables that show a list. |
{{ consult.PlanTherapeutics }} | No | Shows a list of the therapeutic plan records of the clinical record. Note: Use this variable in a Twig for loop. For example:For more information, refer to Variables that show a list. |
{{ consult.Vaccinations }} | No | Shows a list of the vaccinations of the clinical record. Note: Use this variable in a Twig for loop. For example:For more information, refer to Variables that show a list. |