{% extends "base.html" %} {% load static %} {% block title %}{{ object.consent_form.title }} - Patient Consent{% endblock %} {% block content %}

Patient Consent Details {{ object.consent_form.title }}

Consent Information

{% if object.status == 'PENDING' %} {% endif %}
Patient Information
Name: {{ object.patient.get_full_name }}
Patient ID: {{ object.patient.patient_id }}
Date of Birth: {{ object.patient.date_of_birth|date:"M d, Y" }}
Age: {{ object.patient.age }} years
Gender: {{ object.patient.get_gender_display }}
Contact:
{{ object.patient.phone_number }}
{{ object.patient.email }}
Consent Form Details
Form Title: {{ object.consent_form.title }}
Category: {{ object.consent_form.get_category_display }}
Version: v{{ object.consent_form.version }}
Required: {% if object.consent_form.is_required %} Required {% else %} Optional {% endif %}
Description: {{ object.consent_form.description }}
Request Information
Status: {{ object.get_status_display }} {% if object.is_urgent %} Urgent {% endif %}
Requested: {{ object.requested_at|date:"M d, Y H:i" }}
Requested By: {{ object.requested_by.get_full_name|default:"System" }}
Due Date: {% if object.due_date %} {{ object.due_date|date:"M d, Y" }} {% if object.is_overdue %} Overdue {% endif %} {% else %} No due date {% endif %}
Notes: {{ object.notes|default:"No notes" }}
Signature Information
Signed: {% if object.signed_at %} {{ object.signed_at|date:"M d, Y H:i" }} {% else %} Not signed {% endif %}
Signed By: {% if object.signed_by %}
{{ object.signed_by.get_full_name }}
{{ object.signed_by.relationship|default:"Patient" }}
{% else %} Not signed {% endif %}
Witness: {% if object.witness %}
{{ object.witness.get_full_name }}
{{ object.witness.title|default:"Witness" }}
{% else %} No witness {% endif %}
Expires: {% if object.expires_at %} {{ object.expires_at|date:"M d, Y" }} {% if object.is_expired %} Expired {% elif object.is_expiring_soon %} Expiring Soon {% endif %} {% else %} No expiration {% endif %}
IP Address: {{ object.ip_address|default:"Not recorded" }}
{% if object.status == 'SIGNED' %}
Digital Signature Details
Signature Method: {{ object.signature_method|default:"Electronic" }}
Device Used: {{ object.device_info|default:"Not recorded" }}
Browser: {{ object.browser_info|default:"Not recorded" }}
Signature Hash: {{ object.signature_hash|default:"Not available" }}
Verification Status: {% if object.is_signature_valid %} Valid {% else %} Invalid {% endif %}
Timestamp: {{ object.signed_at|date:"M d, Y H:i:s T" }}
{% if object.signature_image %}
Signature Image:
Signature
{% endif %}
{% endif %}
Consent Form Content
Activity Timeline
Consent Requested

Consent form "{{ object.consent_form.title }}" was requested for {{ object.patient.get_full_name }}.

{{ object.requested_at|date:"M d, Y H:i" }}
by {{ object.requested_by.get_full_name|default:"System" }}
{% if object.notification_sent_at %}
Notification Sent

Patient was notified about the consent request.

{{ object.notification_sent_at|date:"M d, Y H:i" }}
{% endif %} {% for reminder in object.reminders.all %}
Reminder Sent

Reminder notification was sent to the patient.

{{ reminder.sent_at|date:"M d, Y H:i" }}
by {{ reminder.sent_by.get_full_name }}
{% endfor %} {% if object.signed_at %}
Consent Signed

Consent form was digitally signed.

{{ object.signed_at|date:"M d, Y H:i" }}
by {{ object.signed_by.get_full_name }}
{% endif %} {% if object.status == 'REVOKED' %}
Consent Revoked

Consent was revoked.

{{ object.revoked_at|date:"M d, Y H:i" }}
by {{ object.revoked_by.get_full_name }}
{% endif %}

Quick Actions

{% if object.status == 'PENDING' %} {% endif %} {% if object.status == 'SIGNED' and object.expires_at %} {% endif %} {% if object.status in 'PENDING,SIGNED' %} {% endif %}

Consent Status

{% if object.status == 'SIGNED' %} {% elif object.status == 'PENDING' %} {% elif object.status == 'EXPIRED' %} {% elif object.status == 'REVOKED' %} {% else %} {% endif %}
{{ object.get_status_display }}
{% if object.status == 'PENDING' %}
Pending Signature

This consent is waiting for patient signature.

{% if object.due_date %}

Due: {{ object.due_date|date:"M d, Y" }} {% if object.is_overdue %} (Overdue) {% endif %}

{% endif %}
{% elif object.status == 'SIGNED' %}
Signed

This consent has been digitally signed.

{% if object.expires_at %}

Expires: {{ object.expires_at|date:"M d, Y" }} {% if object.is_expiring_soon %} (Expiring Soon) {% endif %}

{% endif %}
{% elif object.status == 'EXPIRED' %}
Expired

This consent has expired and needs to be renewed.

{% elif object.status == 'REVOKED' %}
Revoked

This consent has been revoked.

{% endif %}

Related Information

Patient
{{ object.patient.patient_id }}
Consent Form
{{ object.consent_form.get_category_display }}
{% if object.signed_by and object.signed_by != object.patient %}
Signed By
{{ object.signed_by.get_full_name }}
{{ object.signed_by.relationship|default:"Guardian" }}
{% endif %} {% if object.witness %}
Witness
{{ object.witness.get_full_name }}
{{ object.witness.title|default:"Witness" }}
{% endif %}
{% endblock %} {% block css %} {% endblock %} {% block js %} {% endblock %}