You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

103 lines
6.4 KiB

{% extends "patient/card/card_base.html.twig" %}
{% block content %}
<ul class="nav nav-tabs mb-2">
{% for t in ins %}
<li class="nav-item" role="presentation">
<a href="#{{ t.type|attr }}-{{ t.id|attr }}" id="{{ t.type|attr }}-{{ t.id|attr }}-tab" data-toggle="tab" role="tab" aria-controls="{{ t.type|attr }}-{{ t.id|attr }}" aria-selected="{{ loop.first ? "true" : "false" }}" class="nav-link {{ loop.first ? "active" }}">
{{ t.type|capitalize|text }} {{ (t.isOld) ? "Old"|xlt : " " }}
</a>
</li>
{% endfor %}
<li class="nav-item" role="presentation">
<a id='eligibility-tab' class="nav-link" href='#eligibility' data-toggle="tab" aria-controls="eligibility" role="tab" aria-selected="false">{{ "Eligibility"|xlt }}</a>
</li>
</ul>
<div class="tab-content px-1">
{% for c in ins %}
<div class="tab-pane {{ loop.first ? "active" }}" id="{{ c.type|attr }}-{{ c.id|attr }}" role="tabpanel" aria-labelledby="{{ c.type|attr }}-{{ c.id|attr }}-tab">
<div class="text-primary pb-2 pt-1">
{{ (c.isOld) ? "Old"|xlt ~ " " ~ c.type|capitalize|text : c.type|capitalize|text }} {{ "Insurance"|xlt }}
{% if c.dispFromDate == true %}{{ "from"|xlt}} {{ c.date|shortDate|text }} {% endif %}
{{ "until"|xlt }} {{ "Present"|xlt }}
</div>
<div class="d-flex justify-content-between">
<div class="insurer">
{% if c.insco is defined %}
<em>{{ "Insurer"|xlt }}</em>
<address>
<strong>{{ c.insco.name|text }}</strong><br>
{{ c.insco.address.line1|text }}<br>
{{ (c.insco.address.line2 != "") ? c.insco.address.line2|text ~ "<br>"|raw }}
{{ c.insco.address.city|text }} {{ c.insco.address.state|text }}, {{ c.insco.address.postal|text }}
</address>
{% else %}
<span class="font-weight-bold text-danger">{{ "Unassigned"|xlt }}</span>
{% endif %}
</div>
<div class="subscriber">
{% set showState = (c.subscriber_state != "") ? true : false %}
{% set showCountry = (c.subscriber_country != "") ? true : false %}
{% set showPostal = (c.subscriber_postal_code != "") ? true : false %}
<em>{{ "Subscriber"|xlt }}</em>
<address class="mb-1">
<strong>{{ c.subscriber_full_name|text }}{{ c.subscriber_relationship != "" ? " (" ~ c.subscriber_relationship|capitalize|text ~ ")" : "" }}</strong><br>
{{ c.subscriber_street|text }}<br>
{{ c.subscriber_city|text }}{{ showState == true ? " " ~ c.subscriber_state|text : ""}}{{ showPostal == true ? ", " ~ c.subscriber_postal_code|text : "" }}
{{ showCountry == true ? " " ~ c.subscriber_country|text : ""}}
</address>
{% if c.subscriber_ss != "" %}
<strong>{{ "S.S."|xlt }}</strong>
<span class="">{{ c.subscriber_ss|text }}</span><br>
{% endif %}
{% if c.subscriber_DOB %}
<strong>{{ "D.O.B."|xlt }}</strong>
<span class="">{{ c.subscriber_DOB|shortDate|text }}</span><br>
{% endif %}
{% if c.subscriber_phone %}
<strong>{{ "Phone"|xlt }}</strong>
<span class="">{{ c.subscriber_phone|text }}</span><br>
{% endif %}
</div>
<div class="subscriber-employer">
{% set showState = (c.subscriber_employer_state != "") ? true : false %}
{% set showCountry = (c.subscriber_employer_country != "") ? true : false %}
{% set showPostal = (c.subscriber_employer_postal_code != "") ? true : false %}
<em>{{ "Subscriber Employer"|xlt }}</em>
<address class="mb-1">
<strong>{{ c.subscriber_employer|text }}</strong><br>
{{ c.subscriber_employer_street|text }}<br>
{{ c.subscriber_employer_city|text }}{{ showState == true ? " " ~ c.subscriber_employer_state|text : ""}}{{ showPostal == true ? ", " ~ c.subscriber_employer_postal_code|text : "" }}
{{ showCountry == true ? " " ~ c.subscriber_employer_country|text : ""}}
</address>
</div>
</div>
<div class="d-flex justify-content-between policy-details pt-2">
<div class="list-group list-group-flush flex-fill mr-4">
<div class="list-group-item d-flex justify-content-between p-1"><strong>{{ "Plan Name"|xlt }}:</strong> <span class="text-right">{{ c.plan_name|text }}</span></div>
<div class="list-group-item d-flex justify-content-between p-1"><strong>{{ "Policy Number"|xlt }}:</strong> <span class="text-right text-monospace">{{ c.policy_number|text }}</span></div>
<div class="list-group-item d-flex justify-content-between p-1"><strong>{{ "Group Number"|xlt }}:</strong> <span class="text-right text-monospace">{{ c.group_number|text }}</span></div>
</div>
<div class="list-group list-group-flush flex-fill">
<div class="list-group-item d-flex justify-content-between p-1"><strong>{{ "Copay"|xlt }}:</strong> <span class="text-right">{{ c.copay|text }}</span></div>
<div class="list-group-item d-flex justify-content-between p-1"><strong>{{ "Accepts Assignment"|xlt }}:</strong> <span class="text-right">{{ c.accept_assignment == 'TRUE' ? "Yes"|xlt : "No"|xlt }}</span></div>
{% if c.policy_type %}
<div class="list-group-item d-flex justify-content-between p-1"><strong class="flex-fill">{{ "Secondary Medicare Type"|xlt }}:</strong> <span class="text-right flex-fill">{{ c.policy_type|text }}</span></div>
{% endif %}
</div>
</div>
</div>
{% endfor %}
<div class="tab-pane" id="eligibility" role="tabpanel" aria-labelledby="eligibility-tab">
{% if enable_oa %}
<form action="./demographics.php" method="post">
<div>
<button class='btn btn-success btn-sm btn-transmit float-right' name='status_update' value='true'>{{ "Update Status"|xlt }}</button>
</div>
{{ eligibility }}
</form>
{% else %}
{{ eligibility }}
{% endif %}
</div>
{% endblock %}