Merge field reference

Merge fields begin and end with 2 carats (^^) and are replaced with real values when a reminder is sent. How they work is covered in merge fields; this page lists every field.

Appointment

These fields take information from the appointment

FieldInformationExample
^^time^^The start time of the appointment14:30
^^date^^The date of the appointment12/07/2023
^^dayname^^The name of the dayThursday
^^monthname^^The name of the monthJuly
^^day^^The day of the month with an ordinal indicator12th
^^year^^The year2023

|^^procedure^^|The public name of the appointment type. Only the first if more than one.|Blood test| |^^resource^^|The public name of the resource. Only the first if more than one.|Room 1D| |^^datemade^^|The date the appointment was added to Diarybook|| |^^today^^|The date of the reminder||

Client

These fields take information from the client associated with the appointment and to whom the reminder is being sent

FieldInformationExample
^^first^^ or ^^name^^The first nameJohn
^^last^^The last nameSmyth
^^fullname^^The full nameJohn Smyth
^^hifirst^^If a first name exists will put Hi followed by the nameHi John
^^dearfirst^^If a first name exists will put Dear followed by the nameDear John
^^email^^The email addressjohn.smyth@Diarybook.net
^^address1^^The first line of address for letter templates
^^address2^^The second line of address
^^address3^^The third line of address
^^address4^^The fourth line of address
^^address5^^The fifth line of address
^^id^^The patient number or id
^^dob^^The patient’s date of birth

User

These fields take information from the service provider (Diarybook user) that is fulfilling the appointment

FieldInformationExample
^^user_first^^The first namePaul
^^user_last^^The last namePokealot
^^user_email^^The email addresspaul.pokealot@Diarybook.net
^^user_phone^^The phone number

Location

These fields take information from the location record that is assigned to the reminder setting

FieldInformationExample
^^loc_name^^The location nameBuilding A Wellstown
^^loc_contact^^The contact nameDr Paul Pokealot
^^loc_email^^The contact email address
^^loc_phone^^The contact phone number
^^loc_address1^^The location address
^^loc_address2^^
^^loc_address3^^
^^loc_address4^^
^^loc_address5^^
^^loc_directionsThe directions to the location
^^loc_map^^A rendering of the map and pinEmail reminders only

Waiting list letters

These fields are filled in from a waiting list entry. They are only available in letters sent for a waiting list entry, such as the discharge letter offered when a client is removed from a list. They are not offered when composing an SMS.

FieldInformation
^^wl_name^^The waiting list name
^^wl_joindate^^The date the patient was added to the list
^^wl_removeddate^^The date the patient was removed from the list
^^wl_removalreason^^The reason for removal, such as Discharged to GP
^^wl_evidence^^The reason / evidence recorded with the removal
^^gp_name^^The GP / referrer name, from the client’s most recent referral
^^gp_address1^^ to ^^gp_address5^^The GP / referrer address

In these letters, the Location fields come from the location set on the waiting list entry, because there is no appointment. A field with nothing to fill it, such as a referrer address when the client has no referral, is left blank.

These fields put a link to a DiaryPage into a text message, for example when sending a letter by SMS link.

FieldInformation
^^dplink:appt^^A link to the client’s appointment page. Needs a client and an appointment
^^dplink:client^^A link to the client’s documents page, which lists the client’s Public Files
^^dplink:doc^^A link to one document, such as a letter sent by SMS. Works when the recipient is a mobile number rather than a client

Clinic fields

For integrated accounts, clinic fields are additional information that can be set for each appointment based on the clinic code used to sync the appointment. They can contain any text relating to any other aspect of the appointment specific to the clinic code used.

Field
^^clinicfield1^^
^^clinicfield2^^
^^clinicfield3^^
^^clinicfield4^^
^^clinicfield5^^

Sync fields

For integrated accounts, sync fields are additional information that can be set for each appointment. They can contain any text relating to any other aspect of the appointment that is included in the syncing process.

Field
^^syncfield1^^
^^syncfield2^^
^^syncfield3^^
^^syncfield4^^
^^syncfield5^^
^^syncfield6^^
^^syncfield7^^
^^syncfield8^^
^^syncfield9^^
^^syncfield10^^

Sync fields map to fixed positions in the daily upload file — see the integration overview.