{% extends "base.html" %} {% block title %}Appointment Details - Vera Medical CRM{% endblock %} {% block content %}
Case #{{ appointment['file_case_id'] or 'N/A' }}
Appointment Date
{{ appointment['appointment_date']|format_date }}
Time
{{ appointment['appointment_time'] or 'Not set' }}
Claimant Name
{{ appointment['claimant_first_name'] }} {{ appointment['claimant_last_name'] }}
Client
{{ appointment['client_company_name'] }}
Doctor/Specialist
{{ appointment['doctor_name'] or 'Not assigned' }}
Specialist Number
{{ appointment['specialist_number'] or 'N/A' }}
Location
{{ appointment['location'] }}
Service Code
{{ appointment['service_code'] or 'N/A' }}
Assessment Type
{{ appointment['assessment_type'] or 'N/A' }}
Description
{{ appointment['description'] }}
Status
{% if appointment['status'] == 'scheduled' %} Scheduled {% elif appointment['status'] == 'completed' %} Completed {% elif appointment['status'] == 'cancelled' %} Cancelled {% elif appointment['status'] == 'no-show' %} No-Show {% endif %}Invoiced
{% if appointment['invoiced'] == 1 %} Yes {% else %} No {% endif %}Reference Number
{{ appointment['reference'] }}
Date Confirmed
{{ appointment['date_confirmed']|format_date }}
Date Received
{{ appointment['date_received']|format_date }}
Date Released
{{ appointment['date_released']|format_date }}
PIL Instructions Received
{{ 'Yes' if appointment['pil_instructions_received'] == 1 else 'No' }}
PIL Instruction Type
{{ appointment['pil_instruction_type'] }}
LOI Received
{{ 'Yes' if appointment['loi_received'] == 1 else 'No' }}
LOI Received Date
{{ appointment['loi_received_date']|format_date }}
Date: {{ letter['report_date']|format_date }}
{% endif %} {% if letter['notes'] %}Notes: {{ letter['notes'] }}
{% endif %}Uploaded by {{ letter['uploaded_by'] or 'System' }} on {{ letter['uploaded_at'][:10] if letter['uploaded_at'] else '' }}
No confirmation letters uploaded yet
Report Deadline Date
{{ appointment['report_deadline_date']|format_date }}
Report Due Date
{{ appointment['report_due_date']|format_date }}
Confirmation Deposit Letter to Client
{{ 'Yes' if appointment['confirmation_deposit_letter_sent'] == 1 else 'No' }}
{% if appointment.get('confirmation_deposit_letter_date') %}{{ appointment['confirmation_deposit_letter_date']|format_date }}
{% endif %}Confirmation Sent to Doctor
{{ 'Yes' if appointment['confirmation_sent_to_doctor'] == 1 else 'No' }}
{% if appointment.get('confirmation_sent_to_doctor_date') %}{{ appointment['confirmation_sent_to_doctor_date']|format_date }}
{% endif %}In Calendar
{{ 'Yes' if appointment['in_calendar'] == 1 else 'No' }}
Retainer Required
{{ 'Yes' if appointment['retainer_required'] == 1 else 'No' }}
Retainer Requested On
{{ appointment['retainer_requested_on']|format_date }}
Retainer Received On
{{ appointment['retainer_received_on']|format_date }}
Retainer Amount
${{ "%.2f"|format(appointment['retainer_amount']) }} CAD
ATP Requested On
{{ appointment['atp_requested_on']|format_date }}
ATP Received On
{{ appointment['atp_received_on']|format_date }}
Name: {{ service['name'] }}
{% endif %} {% if service['company'] %}Company: {{ service['company'] }}
{% endif %} {% if service['language'] %}Language: {{ service['language'] }}
{% endif %} {% if service['travel_details'] %}No additional services added
{% endif %}{{ med.get('notes') or med.get('description') }}
{% endif %}{{ med['uploaded_at'][:10] if med['uploaded_at'] else '' }}
No meds documentation uploaded
{{ appointment['notes'] }}
{{ letter['description'] }}
{% endif %}{{ letter['uploaded_at'][:10] if letter['uploaded_at'] else '' }}
No letters attached
{% endif %}Received: {{ doc['receipt_method']|title }}
{% endif %} {% if doc['documents_received_date'] %}Date: {{ doc['documents_received_date']|format_date }}
{% endif %}{{ doc['uploaded_at'][:10] if doc['uploaded_at'] else '' }}