% if ( getModel().isSubmitted() || getModel().hasDetailCode() || ( getModel().isCancelled() && !getModel().hasDetailCode() ) ){ %>
<% if ( !getModel().isNotBooked() || !getModel().isSecondRequestSubmitted() ){ %>
Status changed to <%- status %>.
<% } %>
<% if ( getModel().isSubmitted() ){ %>
This appointment request has been submitted. After review by the clinic, updated information will be available here.
<% } else if ( getModel().hasDetailCode() ) { %>
<%- showLatestDetailCodeVetMessage() %>
<% if ( getModel().isBooked() ){ %>
Facility: <%- facility.name %>
Provider: <%- providerName + (providerPersonClass == '' ? '' : ' (' + providerPersonClass + ')') %>
Booked Appointment Date: <%- getBookedApptDateTime() %>
Request Appointment Date: <%- appointmentDate %> <%- appointmentTime %>
Click here to view booked appointments
Appointments
<% } %>
<% } else { %>
Your request to cancel this appointment has been sent.
<% } %>
<% } %>