Skip to content

Instantly share code, notes, and snippets.

@iaditya
Created January 19, 2017 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaditya/dc65f66527c5348293b0a98913004fed to your computer and use it in GitHub Desktop.
Save iaditya/dc65f66527c5348293b0a98913004fed to your computer and use it in GitHub Desktop.
<?php
/** System Mail Notification **/
$notificationManager->addTemplate('messageNotificationToPatient', [
'title' => 'New Message from :from_user.',
'body' => 'Hello :to_user, :from_user has sent you a message. Please check your mailbox on your talkaDoc Account.',
'smsbody' => 'Hello :to_user, :from_user has sent you a message. Please check your mailbox on your talkaDoc Account.'
]);
$notificationManager->addTemplate('messageNotificationToFAdmin', [
'title' => 'New Message from :from_user.',
'body' => 'Hello :to_user, Your :role :from_user has sent you a message. Please check your mailbox on your talkaDoc Account.',
'smsbody' => 'Hello :to_user, Your :role :from_user has sent you a message. Please check your mailbox on your talkaDoc Account.'
]);
$notificationManager->addTemplate('messageNotificationToProvider', [
'title' => 'New Message from :from_user.',
'body' => 'Hello :to_user, Your :role :from_user has sent you a message. Please check your mailbox on your talkaDoc Account.',
'smsbody' => 'Hello :to_user, Your :role :from_user has sent you a message. Please check your mailbox on your talkaDoc Account.'
]);
/** Patient add CareGiver **/
$notificationManager->addTemplate('patientAddCareGiver', [
'title' => 'You are appointed as a Care Giver.',
'body' => 'Hello :caregiver_name, welcome to talkadoc.com. Patient :name has added you as their CareGiver. Click this :hyperlink to activate your account.',
'smsbody' => 'Hello :caregiver_name, welcome to talkadoc.com. Patient name has added you as their CareGiver. Click this :hyperlink to activate your account.',
]);
//$notificationManager->addTemplate('patientAddCareGiverNew', [
// 'title' => 'You are appointed as a Care Giver.',
//'body' => ':patient_name has added you as a Caregiver on talkaDoc, please click/copy the following link in your browser :hyperlink to finish your registration.',
//'smsbody' => ':patient_name has added you as a Caregiver on talkaDoc, please click/copy the following link in your browser :hyperlink to finish your registration.',
//]);
/** Patient, FAdmin add Provider Registration **/
$notificationManager->addTemplate('toPatient', [
'title' => 'You have been registered with Facility: :facility_name',
'body' => 'Welcome to talkadoc.com and stay in control of your Health. You have been registered by Facility: :facility_name. Your login id and password are your email id and mobile number. Please follow your email to activate you account.',
'smsbody' => 'Welcome to talkadoc.com. You have been registered by Facility: :facility_name. Your login id and password are your email id and mobile number.',
]);
$notificationManager->addTemplate('toPatientNoEmail', [
'title' => 'You have been registered with Facility: :facility_name',
'body' => 'Welcome to talkadoc.com and stay in control of your Health. You have been registered by Facility: :facility_name. Your login id and password are your Patient Id: :username and mobile number.',
'smsbody' => 'Welcome to talkaDoc. You have been registered by Facility: :facility_name. Your User id and Password are :username and mobile number.',
]);
$notificationManager->addTemplate('self_patient', [
'title' => 'Hello :name .',
'body' => 'Hello :name . Welcome to talkadoc.com and stay in control of your Health. You login id is the email id provided. Please follow your email to confirm your account.',
'smsbody' => 'Hello :name. Welcome to talkadoc.com. Your login id is the email id provided. Please follow your email to confirm your account.',
]);
$notificationManager->addTemplate('self_patientNoEmail', [
'title' => 'Hello :name .',
'body' => 'Hello :name . Welcome to talkadoc.com and stay in control of your Health. You login id is your Patient Id: :username provided.',
'smsbody' => 'Hello :name. Welcome to talkadoc.com. Your login id is :username.',
]);
$notificationManager->addTemplate('self_provider', [
'title' => 'Hello :name .',
'body' => 'Hello :name . Welcome to talkadoc.com. You login id is the email id provided. Please follow your email to confirm your account.',
'smsbody' => 'Hello :name. Welcome to talkadoc.com. Your login id is the email id provided. Please follow your email to confirm your account.',
]);
$notificationManager->addTemplate('toProvider', [
'title' => 'You have been registered with Facility: :facility_name',
'body' => 'Welcome to talkadoc.com. You have been registered by Facility: :facility_name. Your login id and password are your email id and mobile number. Please follow your email to activate you account.',
'smsbody' => 'Welcome to talkadoc.com. You have been registered by Facility: :facility_name. Your login id and password are your email id and mobile number.',
]);
$notificationManager->addTemplate('toFacilityAdmin', [
'title' => 'You have been registered with Facility: :facility_name',
'body' => 'Welcome to talkadoc.com. You have been registered by Facility: :facility_name. Your login id and password are your email id and mobile number. Please follow your email to activate you account.',
'smsbody' => 'Welcome to talkadoc.com. You have been registered by Facility: :facility_name. Your login id and password are your email id and mobile number.',
]);
$notificationManager->addTemplate('addPrescription', [
'title' => 'Prescription Available',
'body' => 'Hello :patient_name, a prescription has been created by Dr. :provider_name and saved against your profile.',
'smsbody' => 'Hello :patient_name, a prescription has been created by Dr. :provider_name and saved against your profile.',
]);
$notificationManager->addTemplate('addPrescriptionToCaregiver', [
'title' => 'Prescription Available For your patient: :patient_name',
'body' => 'Hello :caregiver_name, a prescription has been created for your patient: :patient_name by Dr. :provider_name and saved against his profile.',
'smsbody' => 'Hello :caregiver_name, a prescription has been created for your patient: :patient_name by Dr. :provider_name.',
]);
/** Add Appointment By Provider **/
$notificationManager->addTemplate('providerAddAppointmentToPatient', [
'title' => 'Appointment scheduled by Dr. :name',
'body' => ' :event_type : Appointment scheduled by :name at Facility: :facility_name on Date: :start_date at Time: :start_time.',
'smsbody' => ':event_type : Appointment Scheduled by Dr. :name at Facility: :facility_name on Date: :start_date at Time: :start_time.',
]);
$notificationManager->addTemplate('providerAddAppointmentToFacilityAdmins', [
'title' => 'Appointment scheduled by Dr. :name for Patient: :patient_name .',
'body' => ':event_type : Appointment scheduled by Dr. :name for Patient: :patient_name on Date: :start_date at Time: :start_time .',
'smsbody' => ':event_type : Appointment scheduled by Dr. :name for Patient: :patient_name for Date: :start_date at Time: :start_time.',
]);
$notificationManager->addTemplate('providerAddAppointmentToSelf', [
'title' => 'Appointment Scheduled with Patient :patient_name .',
'body' => ':event_type : Appointment scheduled with Patient: :patient_name at Facility: :facility_name on Date: :start_date at Time: :start_time.',
'smsbody' => ':event_type : Appointment scheduled with Patient: :patient_name at Facility: :facility_name for Date: :start_date at Time: :start_time.',
]);
$notificationManager->addTemplate('providerAddAppointmentToCaregiver', [
'title' => 'Appointment Scheduled with Patient :patient_name .',
'body' => ':event_type : Appointment scheduled with Patient: :patient_name by :name at Facility: :facility_name for Date: :start_date at Time: :start_time.',
'smsbody' => ':event_type : Appointment scheduled with Patient: :patient_name by :name at Facility: :facility_name for Date: :start_date at Time: :start_time.',
]);
/** Add Appointment By Patient **/
$notificationManager->addTemplate('patientAddAppointmentToProvider', [
'title' => 'Appointment Scheduled by Patient :name.',
'body' => ':event_type : An appointment has been scheduled by Patient: :name at Facility: :facility_name on Date: :start_date at Time: :start_time. To modify or cancel appointment, click on: :hyperlink',
'smsbody' => ':event_type : Appt. req by Patient: :name at Facility: :facility_name on Date: :start_date at Time: :start_time.',
]);
$notificationManager->addTemplate('patientAddAppointmentToFacilityAdmins', [
'title' => 'Appointment Scheduled by Patient :name to Dr. :provider_name',
'body' => ':event_type : An appointment has been scheduled by Patient: :name for Dr. :provider_name on Date: :start_date at Time: start_time. To modify or cancel appointment, click on: :hyperlink',
'smsbody' => ':event_type : Appt. Req. by Patient: :name for Dr. :provider_name on Date: :start_date at Time: :start_time.',
]);
$notificationManager->addTemplate('patientAddAppointmentToSelf', [
'title' => 'Appointment Scheduled with Dr. :provider_name',
'body' => ':event_type : Appointment scheduled with Dr. :provider_name at Facility: :facility_name on Date: :start_date at Time: :start_time.',
'smsbody' => ':event_type : Appt. made with Dr. :provider_name at Facility: :facility_name on Date: :start_date at Time: :start_time.',
]);
$notificationManager->addTemplate('patientAddAppointmentToCaregiver', [
'title' => 'Appointment Scheduled with Dr. :provider_name',
'body' => ':event_type : Appointment scheduled with :name at Facility: :facility_name on Date: :start_date at Time: :start_time.',
'smsbody' => ':event_type : Appt. scheduled with :name at Facility: :facility_name on Date: :start_date at Time: :start_time.',
]);
/** Add Appointment By FacilityAdmin **/
$notificationManager->addTemplate('facilityAdminAddAppointmentToPatient', [
'title' => 'Appointment Scheduled with Dr. :provider_name at Facility: :facility_name.',
'body' => ':event_type : Appointment scheduled with :provider_name at Facility: :facility_name on Date: :start_date at Time: :start_time.',
'smsbody' => ':event_type : Appt. made with Dr. :provider_name at Facility: :facility_name on Date: :start_date at Time: :start_time.',
]);
$notificationManager->addTemplate('facilityAdminAddAppointmentToProvider', [
'title' => 'Appointment Scheduled with Patient: :patient_name at Facility: :facility_name.',
'body' => ':event_type : Appointment scheduled with Patient: :patient_name at Facility: :facility_name on Date: :start_date at Time: :start_time. To modify or cancel appointment, click on: :hyperlink',
'smsbody' => ':event_type : Appt made for Patient: :patient_name at Facility: :facility_name on Date: :start_date at Time: :start_time.',
]);
$notificationManager->addTemplate('facilityAdminAddAppointmentToSelf', [
'title' => 'Appointment Scheduled with Patient :patient_name .',
'body' => ':event_type : Appointment scheduled with Patient: :patient_name on Date: :start_date at Time: :start_time. To modify or cancel appointment, click on: :hyperlink',
'smsbody' => ':event_type : Appointment scheduled with Patient: :patient_name on Date: :start_date at Time: :start_time.',
]);
$notificationManager->addTemplate('facilityAdminAddAppointmentToCaregiver', [
'title' => 'Appointment Scheduled with Dr. :provider_name',
'body' => ':event_type : Appointment scheduled with :patient_name at Facility: :facility_name on Date: :start_date at Time: :start_time.',
'smsbody' => ':event_type : Appt. scheduled with :patient_name at Facility: :facility_name on Date: :start_date at Time: :start_time.',
]);
/** Update Appointment By Provider **/
$notificationManager->addTemplate('providerUpdateAppointmentToPatient', [
'title' => 'Appointment Confirmed by Dr. :name',
'body' => ':event_type : Appointment Confirmed by Dr. :name at Facility: :facility_name on Date: :start_date at Time: :start_time.',
'smsbody' => ':event_type : Appt. updated by Dr. :name at Facility: :facility_name to Date: :start_date at Time: :start_time.
',
]);
$notificationManager->addTemplate('providerUpdateAppointmentToFacilityAdmins', [
'title' => 'Appointment Confirmed by Dr. :name for Patient: :patient_name',
'body' => ':event_type : Appointment Confirmed by Dr. :name for Patient: :patient_name on Date: :start_date at Time: :start_time.',
'smsbody' => ':event_type : Appt. updated by Dr. :name for Patient: :patient_name to Date: :start_date at Time: :start_time.',
]);
$notificationManager->addTemplate('providerUpdateAppointmentToSelf', [
'title' => 'Appointment Confirmed with Patient :patient_name .',
'body' => ':event_type : Appointment Confirmed for Patient: :patient_name at Facility: :facility_name on Date: :start_date at Time: :start_time.',
'smsbody' => ':event_type : Appt. Confirmed for Patient: :patient_name at Facility: :facility_name on Date: :start_date at Time: :start_time.',
]);
$notificationManager->addTemplate('providerUpdateAppointmentToCaregiver', [
'title' => 'Appointment Modified with Patient :patient_name .',
'body' => ':event_type : Appointment Modified with Patient: :patient_name by :name at Facility: :facility_name for Date: :start_date at Time: :start_time.',
'smsbody' => ':event_type : Appointment Modified with Patient: :patient_name by :name at Facility: :facility_name for Date: :start_date at Time: :start_time.',
]);
/** Update Appointment By Patient **/
/*
$notificationManager->addTemplate('patientUpdateAppointmentToProvider', [
'title' => 'Appointment Modified by Patient :name .',
'body' => ':event_type : Appointment Modified by Patient: :name at Facility: :facility_name to Date: :start_date at Time: :start_time. To Confirm or modify or Cancel appointment, click this: ' . '<a href=":hyperlink">Link</a>',
'smsbody' => ':event_type : Appointment Modified by Patient: :name at Facility: :facility_name to Date: :start_date at Time: :start_time. To Confirm or modify or Cancel appointment, click this: :hyperlink.',
]);
$notificationManager->addTemplate('patientUpdateAppointmentToFacilityAdmins', [
'title' => 'Appointment Modified by Patient :name to Dr. :provider_name',
'body' => ':event_type : Appointment Modified by Patient: :name for Dr. :provider_name to Date: :start_date at Time: :start_time. To Confirm or modify or Cancel appointment, click this: '. '<a href=":hyperlink">Link</a>',
'smsbody' => ':event_type : Appointment Modified by Patient: :name for Dr. :provider_name to Date: :start_date at Time: :start_time. To Confirm or modify or Cancel appointment, click this: :hyperlink.',
]);
$notificationManager->addTemplate('patientUpdateAppointmentToSelf', [
'title' => 'Appointment Modified with Dr. :provider_name .',
'body' => ':event_type : Appointment Modified with Dr. :provider_name at Facility: :facility_name to Date: :start_date at Time: :start_time.',
'smsbody' => ':event_type : Appointment Modified with Dr. :provider_name at Facility: :facility_name to Date: :start_date at Time: :start_time.',
]);
*/
/** Update Appointment By FacilityAdmin **/
$notificationManager->addTemplate('facilityAdminUpdateAppointmentToPatient', [
'title' => 'Appointment Modified with Dr. :provider_name at Facility: :facility_name.',
'body' => ':event_type : Appointment Modified with Dr. :provider_name at Facility: :facility_name to Date: :start_date at Time: :start_time. To modify or cancel appointment, click on: :hyperlink',
'smsbody' => ':event_type : Appt Updated with Dr. :provider_name at Facility: :facility_name to Date: :start_date at Time: :start_time.',
]);
$notificationManager->addTemplate('facilityAdminUpdateAppointmentToProvider', [
'title' => 'Appointment Modified with Patient :patient_name at Facility: :facility_name.',
'body' => ':event_type : Appointment Modified with Patient: :patient_name at Facility: :facility_name to Date: :start_date at Time: :start_time. To modify or cancel appointment, click on: :hyperlink',
'smsbody' => ':event_type : App Mod for Patient: :patient_name at Facility: :facility_name to Date: :start_date at Time: :start_time.',
]);
$notificationManager->addTemplate('facilityAdminUpdateAppointmentToSelf', [
'title' => 'Appointment Modified with Patient :patient_name .',
'body' => ':event_type : Appointment Modified with Patient :patient_name to Date: :start_date at Time: :start_time.',
'smsbody' => ':event_type : Appointment Modified with Patient :patient_name to Date: :start_date at Time: :start_time.',
]);
$notificationManager->addTemplate('facilityAdminUpdateAppointmentToCaregiver', [
'title' => 'Appointment Modified with Dr. :provider_name',
'body' => ':event_type : Modified scheduled with :patient_name at Facility: :facility_name on Date: :start_date at Time: :start_time.',
'smsbody' => ':event_type : Appt. Modified with :patient_name at Facility: :facility_name on Date: :start_date at Time: :start_time.',
]);
/** Appointment Alert - Cron Jobs **/
$notificationManager->addTemplate('sendAppointmentAlert', [
'title' => 'Appointment Alert',
'body' => 'Your appointment is scheduled with :provider_name at Facility: :facility_name On :date at :time.',
'smsbody' => 'Your appointment is scheduled with :provider_name at Facility: :facility_name On :date at :time.',
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment