{% extends "base.html" %} {% load static %} {% block title %} {% if object %}Edit Patient - {{ object.get_full_name }}{% else %}Register New Patient{% endif %} - {{ block.super }} {% endblock %} {% block content %}

{% if object %}Edit Patient{% else %}Register New Patient{% endif %}

Back to List {% if object %} View Patient {% endif %}
{% csrf_token %}
Basic Information
{{ form.first_name }} {% if form.first_name.errors %}
{{ form.first_name.errors.0 }}
{% endif %}
{{ form.middle_name }} {% if form.middle_name.errors %}
{{ form.middle_name.errors.0 }}
{% endif %}
{{ form.last_name }} {% if form.last_name.errors %}
{{ form.last_name.errors.0 }}
{% endif %}
{{ form.preferred_name }} {% if form.preferred_name.errors %}
{{ form.preferred_name.errors.0 }}
{% endif %}
{{ form.suffix }} {% if form.suffix.errors %}
{{ form.suffix.errors.0 }}
{% endif %}
{{ form.mrn }} {% if form.mrn.errors %}
{{ form.mrn.errors.0 }}
{% endif %}
Demographics
{{ form.date_of_birth }} {% if form.date_of_birth.errors %}
{{ form.date_of_birth.errors.0 }}
{% endif %}
{{ form.gender }} {% if form.gender.errors %}
{{ form.gender.errors.0 }}
{% endif %}
{{ form.sex_assigned_at_birth }} {% if form.sex_assigned_at_birth.errors %}
{{ form.sex_assigned_at_birth.errors.0 }}
{% endif %}
{{ form.race }} {% if form.race.errors %}
{{ form.race.errors.0 }}
{% endif %}
{{ form.ethnicity }} {% if form.ethnicity.errors %}
{{ form.ethnicity.errors.0 }}
{% endif %}
{{ form.marital_status }} {% if form.marital_status.errors %}
{{ form.marital_status.errors.0 }}
{% endif %}
Contact Information
{{ form.email }} {% if form.email.errors %}
{{ form.email.errors.0 }}
{% endif %}
{{ form.phone_number }} {% if form.phone_number.errors %}
{{ form.phone_number.errors.0 }}
{% endif %}
{{ form.mobile_number }} {% if form.mobile_number.errors %}
{{ form.mobile_number.errors.0 }}
{% endif %}
{{ form.address_line_1 }} {% if form.address_line_1.errors %}
{{ form.address_line_1.errors.0 }}
{% endif %}
{{ form.address_line_2 }} {% if form.address_line_2.errors %}
{{ form.address_line_2.errors.0 }}
{% endif %}
{{ form.city }} {% if form.city.errors %}
{{ form.city.errors.0 }}
{% endif %}
{{ form.state }} {% if form.state.errors %}
{{ form.state.errors.0 }}
{% endif %}
{{ form.zip_code }} {% if form.zip_code.errors %}
{{ form.zip_code.errors.0 }}
{% endif %}
Medical Information
{{ form.primary_care_physician }} {% if form.primary_care_physician.errors %}
{{ form.primary_care_physician.errors.0 }}
{% endif %}
{{ form.referring_physician }} {% if form.referring_physician.errors %}
{{ form.referring_physician.errors.0 }}
{% endif %}
{{ form.allergies }} {% if form.allergies.errors %}
{{ form.allergies.errors.0 }}
{% endif %}
List any known allergies, medications, or substances
{{ form.medical_alerts }} {% if form.medical_alerts.errors %}
{{ form.medical_alerts.errors.0 }}
{% endif %}
Important medical warnings or alerts
Patient Photo
{% if object and object.photo %} Patient Photo {% else %}
{% endif %}
{{ form.photo }} {% if form.photo.errors %}
{{ form.photo.errors.0 }}
{% endif %}
Upload a patient photo (optional)
Recommended: 300x300px, JPG/PNG format
Language & Communication
{{ form.primary_language }} {% if form.primary_language.errors %}
{{ form.primary_language.errors.0 }}
{% endif %}
{{ form.communication_preference }} {% if form.communication_preference.errors %}
{{ form.communication_preference.errors.0 }}
{% endif %}
{{ form.interpreter_needed }}
Special Flags
{{ form.is_vip }}
{{ form.confidential_patient }}
{{ form.has_advance_directive }}
{% if form.advance_directive_type %} {% endif %}
Cancel
{% if object %}
Created: {{ object.created_at|date:"M d, Y H:i" }}
Last Updated: {{ object.updated_at|date:"M d, Y H:i" }}
{% endif %}
{% endblock %}