Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

<div *ngIf="patient.data.details?.err; then detailsErrorContent else detailsDataContent"></div>
<ng-template #detailsDataContent>
<div class="row">
<h1 class="sr-only">Patient Information</h1>
<div class="col-sm-1">
<img style="width:100%;padding:0%;" src="assets/img/dummy_profile_picture.jpg">
</div>
<div class="col-sm-2" style="padding:0%;">
<span class="data-value">{{ patient.data.identity.fullName }}</span>
<br />
<span class="data-label">SSN: </span>
<span class="data-value">{{ patient.data.identity.ssn }}</span>
<br />
<span class="data-label">DOB: </span>
<span class="data-value">{{ patient.data.identity.dob | date: 'MM/dd/yyyy' }} ({{ calculateAge() }})
</span>
<br />
<span class="data-label">Gender: </span>
<span class="data-value">{{ patient.data.identity.gender }}</span>
<br />
</div>
<div class="col-sm-3">
<span *ngIf="!patient.data?.encounterSummary
|| (patient.data.encounterSummary.inpatient?.data?.encounterEndDateTime)">
<span class="data-label">Last Clinic: </span>
<span class="data-value">
{{ patient.data?.encounterSummary?.outpatient
? patient.data.encounterSummary.outpatient.data?.patientLocation : '' }}
</span>
</span>
<span *ngIf="patient.data?.encounterSummary && !patient.data.encounterSummary.inpatient?.data?.encounterEndDateTime">
<span class="data-label">Ward/Room-Bed: </span>
<span class="data-value">
{{ patient.data?.encounterSummary?.inpatient?.data?.wardLocation
? patient.data.encounterSummary.inpatient.data.wardLocation
+ (patient.data?.encounterSummary?.inpatient?.data?.roomAndBed
? ' (' + patient.data.encounterSummary.inpatient.data.roomAndBed + ')' : '')
: '' }}
</span>
</span>
<br />
<span *ngIf="!patient.data?.encounterSummary
|| (patient.data?.encounterSummary?.inpatient?.data?.encounterEndDateTime)">
<span class="data-label">Last Discharged: </span>
<span class="data-value">
{{ patient.data?.encounterSummary?.inpatient?.data?.encounterEndDateTime | date: 'MM/dd/yyyy HH:mm' }}
</span>
</span>
<span *ngIf="patient.data?.encounterSummary && !patient.data.encounterSummary.inpatient?.data?.encounterEndDateTime">
<span class="data-label">Dx: </span>
<span class="data-value">{{ patient.data?.encounterSummary?.inpatient?.data?.provisionalDiagnosis }}</span>
</span>
<br />
<span *ngIf="!patient.data?.encounterSummary
|| (patient.data?.encounterSummary?.inpatient?.data?.encounterEndDateTime)">
<span class="data-label">Rx Patient Status: </span>
<span class="data-value">{{ patient.data.details?.data?.eligibility?.rxPatientStatus }}</span>
</span>
<span *ngIf="patient.data?.encounterSummary && !patient.data?.encounterSummary?.inpatient?.data?.encounterEndDateTime">
<span class="data-label">Admitted: </span>
<span class="data-value">
{{ patient.data?.encounterSummary?.inpatient?.data?.clinicallyIndicatedDate | date: 'MM/dd/yyyy HH:mm' }}
</span>
</span>
<br />
<span *ngIf="(!patient.data?.encounterSummary
|| patient.data.encounterSummary.inpatient?.data?.encounterEndDateTime)
&& patient.data.identity.dateOfDeath">
<span class="data-label">Date of Death: </span>
<span class="data-value">{{ patient.data.identity.dateOfDeath | date: 'MM/dd/yyyy HH:mm' }}</span>
</span>
<span *ngIf="patient.data?.encounterSummary && !patient.data.encounterSummary?.inpatient?.data?.encounterEndDateTime">
<span class="data-label">Last Transferred: </span>
<span class="data-value">
{{ patient.data?.encounterSummary?.inpatient?.data?.requestDate | date: 'MM/dd/yyyy HH:mm' }}
</span>
</span>
<br />
</div>
<div class="col-sm-4" style="padding:0%;">
<div *ngIf="patient.data.details?.data?.patientCareTeams" (click)="viewPrimaryCareDetails(patient)" ngbTooltip="Click to view details"
class="pointerHover">
<span class="data-value">{{ patient.data.details?.data?.site?.siteName }} | </span>
<span class="data-value">{{ patient.data.details?.data?.patientCareTeams[0]?.name }} |</span>
<span class="data-label">&nbsp;PCP: </span>
<span class="data-value">{{ patient.data.details?.data?.patientCareTeams[0]?.primaryCareProvider?.name }}</span>
<br />
<span class="data-label">Mental Health Treatment Coordinator: </span>
<span class="data-value">{{ patient.data.details?.data?.patientCareTeams[0]?.mentalHealthTeamCoordinator?.name
}} | </span>
<span class="data-value">{{ patient.data.details?.data?.patientCareTeams[0]?.mentalHealthTeamName }}</span>
</div>
<div *ngIf="!patient.data.details?.data?.patientCareTeams">
<span class="data-value">No PACT assigned at any VA Location</span>
<br />
<span class="data-value"></span>
<br />
</div>
<div *ngIf="!patient.data?.encounterSummary
|| (patient.data?.encounterSummary?.inpatient?.data?.encounterEndDateTime)">
<span class="data-label">Eligibility: </span>
<span class="data-value">{{ patient.data.details?.data?.eligibility?.code }}</span>
<span class="data-label" style="margin-left:10px;">SC%: </span>
<span class="data-value">{{ patient.data.details?.data?.eligibility?.serviceConnectedPercentage }}</span>
</div>
<div *ngIf="patient.data?.encounterSummary && !patient.data?.encounterSummary?.inpatient?.data?.encounterEndDateTime"
class="pointerHover" (click)="viewPrimaryCareDetails(patient)" ngbTooltip="Click to view details">
<span class="data-label">Inpatient Attending: </span>
<span class="data-value">{{ patient.data?.encounterSummary?.inpatient?.data?.personResponsibleForActivity?.name
}}</span>
</div>
<div *ngIf="!patient.data?.encounterSummary
|| (patient.data?.encounterSummary?.inpatient?.data?.encounterEndDateTime)">
<span class="data-label">Disabilities: </span>
<span *ngIf="patient.data.details?.data?.disabilities">
<span *ngFor="let disability of patient.data.details?.data?.disabilities; let i = index">
<span *ngIf="i > 0">, </span>{{ disability.ratedDisability }}
{{ (disability.disabilityPercentage) ? ' - ' + disability.disabilityPercentage + '%' : '' }}
{{ (disability.isServiceConnected) ? ' (SC)' : ' (NSC)' }}
</span>
</span>
</div>
<div *ngIf="patient.data?.encounterSummary && !patient.data?.encounterSummary?.inpatient?.data?.encounterEndDateTime"
class="pointerHover" (click)="viewPrimaryCareDetails(patient)" ngbTooltip="Click to view details">
<span class="data-label">Inpatient Provider: </span>
<span class="data-value">{{ patient.data?.encounterSummary?.inpatient?.data?.requestingProvider?.name }}</span>
</div>
</div>
<div class="col-sm-2">
<button class="btn btn-block btn-sm btn-outline-dark btn-postings" (click)="viewCWADModal()">
<span *ngIf="!patient.data?.cwad?.data || patient.data.cwad.data.length===0">No </span>Postings
<div style="height:25px;"><span style="color:#990000;font-weight:bold;font-size:1.2em">{{ getPostings() }}</span></div>
</button>
<button class="btn btn-block btn-sm btn-outline-dark btn-postings" (click)="viewAppointmentsModal()">
Appointments
</button>
</div>
</div>
<div class="row vitalRow">
<div class="col-sm-1">
<div class="more-demographics" role="button" (click)="showFullDemographics = !showFullDemographics" accesskey="x">
<span *ngIf="showFullDemographics">
<span class="sr-only">Press Enter to Collapse Demographics or Alt + x to close at any time</span>
<i class="fas fa-caret-up"></i>Less
</span>
<span *ngIf="!showFullDemographics" ngbTooltip="Click to Display More Demographic Information" placement="right">
<span class="sr-only">Press Enter to Expand Demographics or Alt + x at any time</span>
<i class="fas fa-caret-down"></i> More
</span>
</div>
</div>
<div class="col-sm-11" style="padding-left:0px;">
<span class="data-label">CrCL: </span>
<span class="data-value">{{ calculateCrCl() }}</span>
<span class="data-value" style="margin-left:20px;">(</span>
<span class="data-label">CREAT: </span>
<span class="data-value">
{{ (patient.data?.labSummary?.creatinine?.data?.metric?.value)
? patient.data.labSummary.creatinine.data.metric.value
+ ((patient.data?.labSummary?.creatinine?.data?.metric?.unit)
? ' ' + patient.data.labSummary.creatinine.data.metric.unit : ' mg/dL')
+ ((patient.data?.labSummary?.creatinine?.data?.timeTaken)
? ' ' + (patient.data.labSummary.creatinine.data.timeTaken | date: 'MM/dd/yyyy') + ')' : ')')
: '&lt;Not Found&gt;)' }}
</span>
<span class="data-label" style="margin-left:20px;">BSA (m2): </span>
<span class="data-value">{{ calculateBsa() }}</span>
<span class="data-label" style="margin-left:20px;">Ht (cm): </span>
<span class="data-value">
{{ (patient.data?.vitalSummary?.height?.data?.metric?.value)
? patient.data.vitalSummary.height.data.metric.value
+ ((patient.data?.vitalSummary?.height?.data?.timeTaken)
? ' (' + (patient.data.vitalSummary.height.data.timeTaken | date: 'MM/dd/yyyy') + ')' : '')
: '&lt;Not Found&gt;' }}
</span>
<span class="data-label" style="margin-left:20px;">Wt (kg): </span>
<span class="data-value">
{{ (patient.data?.vitalSummary?.weight?.data?.metric?.value)
? patient.data.vitalSummary.weight.data.metric.value
+ ((patient.data?.vitalSummary?.weight?.data?.timeTaken)
? ' (' + (patient.data.vitalSummary.weight.data.timeTaken | date: 'MM/dd/yyyy') + ')' : '')
: '&lt;Not Found&gt;' }}
</span>
<span class="data-label" style="margin-left:20px;">BMI (kg/m<sup>2</sup>): </span>
<span class="data-value">{{ calculateBmi() }}</span>
</div>
</div>
<div class="demographics-overlay" *ngIf="showFullDemographics">
<h2 class="sr-only">Full Patient Demographics Tab Navigation</h2>
<div class="demographics-inner">
<ngb-tabset id="demographic-info">
<ngb-tab>
<ng-template ngbTabTitle>Contact Info</ng-template>
<ng-template ngbTabContent>
<div class="row vitalRow data-value" style="margin-top:20px;">

<div class="col-sm-4 indent-content">
<h3 class="data-label">Permanent Mailing Address: </h3>

<span class="indent">{{ patient.data.details?.data?.permanentAddress?.address?.street }}</span><br />
<span class="indent" *ngIf="patient.data.details?.data?.permanentAddress?.address?.streetLine2">
{{ patient.data.details?.data?.permanentAddress?.address?.streetLine2 }}<br /></span>
<span class="indent" *ngIf="patient.data.details?.data?.permanentAddress?.address?.streetLine3">
{{ patient.data.details?.data?.permanentAddress?.address?.streetLine3 }}<br /></span>
<span class="indent" *ngIf="patient.data.details?.data?.permanentAddress?.address?.city">
{{ patient.data.details?.data?.permanentAddress?.address?.city }},
{{ patient.data.details?.data?.permanentAddress?.address?.state }}
{{ patient.data.details?.data?.permanentAddress?.address?.zip }}<br />
</span>
<span class="indent">{{ patient.data.details?.data?.permanentAddress?.address?.country }}</span><br />
<span>County: {{ patient.data.details?.data?.permanentAddress?.address?.county }}</span><br />
<span>Phone: {{ patient.data.details?.data?.contactDetails?.home
? patient.data.details?.data?.contactDetails?.home : 'None' }}</span><br />
<span>Office: {{ patient.data.details?.data?.contactDetails?.phone
? patient.data.details?.data?.contactDetails?.phone : 'None' }}</span><br />
<span>Cell: {{ patient.data.details?.data?.contactDetails?.mobile
? patient.data.details?.data?.contactDetails?.mobile : 'None' }}</span><br />
<span>E-mail: {{ patient.data.details?.data?.contactDetails?.email
? patient.data.details?.data?.contactDetails?.email : 'None' }}</span><br />
<span>Bad Addr: {{ patient.data.details?.data?.permanentAddress?.badAddressIndicator
? patient.data.details?.data?.permanentAddress?.badAddressIndicator : 'None' }}</span><br />
</div>
<div class="col-sm-4">
<h3 class="data-label">Temporary Mailing Address: </h3>

<span class="indent" *ngIf="!patient.data.details?.data?.temporaryAddress
|| !patient.data.details?.data?.temporaryAddress?.active">No
Record Found</span>
<span *ngIf="patient.data.details?.data?.temporaryAddress && patient.data.details?.data?.temporaryAddress?.active">
<span class="indent">{{ patient.data.details?.data?.temporaryAddress?.address?.street }}</span><br />
<span class="indent" *ngIf="patient.data.details?.data?.temporaryAddress?.address?.streetLine2">
{{ patient.data.details?.data?.temporaryAddress?.address?.streetLine2 }}<br /></span>
<span class="indent" *ngIf="patient.data.details?.data?.temporaryAddress?.address?.streetLine3">
{{ patient.data.details?.data?.temporaryAddress?.address?.streetLine3 }}<br /></span>
<span class="indent" *ngIf="patient.data.details?.data?.temporaryAddress?.address?.city">
{{ patient.data.details?.data?.temporaryAddress?.address?.city }},
{{ patient.data.details?.data?.temporaryAddress?.address?.state }}
{{ patient.data.details?.data?.temporaryAddress?.address?.zip }}<br />
</span>
<span class="indent">{{ patient.data.details?.data?.temporaryAddress?.address?.country }}</span><br />
<span>County: {{ patient.data.details?.data?.temporaryAddress?.address?.county }}</span><br />
<span>From/To: {{ patient.data.details?.data?.temporaryAddress?.fromDate | date: 'MM/dd/yyyy' }}&nbsp;-
{{ patient.data.details?.data?.temporaryAddress?.toDate | date: 'MM/dd/yyyy' }}</span><br />
<span>Phone: {{ patient.data.details?.data?.contactDetails?.temporary
? patient.data.details?.data?.contactDetails?.temporary : 'None' }}</span><br />
</span>
</div>
</div>
<div class="row data-value" style="margin-top:20px;">
<div class="col-sm-4 indent-content">
<h3 class="data-label">Confidential Address: </h3>

<span class="indent" *ngIf="!patient.data.details?.data?.confidentialAddress
|| (!patient.data.details?.data?.confidentialAddress?.active
&& !patient.data.details?.data?.confidentialAddress?.activeConfidentialCategory)">No
Record Found</span>
<span *ngIf="patient.data.details?.data?.confidentialAddress
&& (patient.data.details?.data?.confidentialAddress?.active
|| patient.data.details?.data?.confidentialAddress?.activeConfidentialCategory)">
<span class="indent">{{ patient.data.details?.data?.confidentialAddress?.address?.street }}</span><br />
<span class="indent" *ngIf="patient.data.details?.data?.confidentialAddress?.address?.streetLine2">
{{ patient.data.details?.data?.confidentialAddress?.address?.streetLine2 }}<br /></span>
<span class="indent" *ngIf="patient.data.details?.data?.confidentialAddress?.address?.streetLine3">
{{ patient.data.details?.data?.confidentialAddress?.address?.streetLine3 }}<br /></span>
<span class="indent" *ngIf="patient.data.details?.data?.confidentialAddress?.address?.city">
{{ patient.data.details?.data?.confidentialAddress?.address?.city }},
{{ patient.data.details?.data?.confidentialAddress?.address?.state }}
{{ patient.data.details?.data?.confidentialAddress?.address?.zip }}<br />
</span>
<span class="indent">{{ patient.data.details?.data?.confidentialAddress?.address?.country }}</span><br />
<span>County: {{ patient.data.details?.data?.confidentialAddress?.address?.county }}</span><br />
<span>From/To: {{ patient.data.details?.data?.confidentialAddress?.fromDate | date: 'MM/dd/yyyy' }}&nbsp;-
{{ patient.data.details?.data?.confidentialAddress?.toDate | date: 'MM/dd/yyyy' }}</span><br />
</span>
</div>
<div class="col-sm-4">
<span *ngIf="patient.data.details?.data?.confidentialAddress?.confidentialAddressCategories">
<h3 class="data-label">Confidential Address Categories: </h3>
<span *ngFor="let category of patient.data.details?.data?.confidentialAddress?.confidentialAddressCategories">
{{ category }}{{ (category ==
patient.data.details?.data?.confidentialAddress?.activeConfidentialCategory) ? ' (Active)' : '' }}<br />
</span>
</span>
</div>
</div>
<div class="row" style="margin-top:20px;" *ngIf="patient.data.details?.data?.emergencyResponse">

<div class="col-sm-8 indent-content">
<h3 class="data-label">Emergency Response: </h3>
<span class="data-value">{{ patient.data.details?.data?.emergencyResponse }}</span><br />
</div>
</div>
<div class="row data-value" style="margin-top:20px;">

<div class="col-sm-4 indent-content">
<h3 class="data-label">Emergency Contact Information: </h3>
<span class="indent" *ngIf="!patient.data.details?.data?.emergencyContactPrimary">No Record
Found</span>
<span *ngIf="patient.data.details?.data?.emergencyContactPrimary">
<span>Name: {{ patient.data.details?.data?.emergencyContactPrimary?.name }}</span><br />
<span>Relationship: {{ patient.data.details?.data?.emergencyContactPrimary?.relationship
? patient.data.details?.data?.emergencyContactPrimary?.relationship : 'None' }}</span><br />
<span class="indent">{{
patient.data.details?.data?.emergencyContactPrimary?.address?.street }}</span><br />
<span class="indent" *ngIf="patient.data.details?.data?.emergencyContactPrimary?.address?.streetLine2">
{{ patient.data.details?.data?.emergencyContactPrimary?.address?.streetLine2 }}<br /></span>
<span class="indent" *ngIf="patient.data.details?.data?.emergencyContactPrimary?.address?.streetLine3">
{{ patient.data.details?.data?.emergencyContactPrimary?.address?.streetLine3 }}<br /></span>
<span class="indent">
{{ patient.data.details?.data?.emergencyContactPrimary?.address?.city }},
{{ patient.data.details?.data?.emergencyContactPrimary?.address?.state }}
{{ patient.data.details?.data?.emergencyContactPrimary?.address?.zip }}
</span><br />
<span>Phone: {{ patient.data.details?.data?.emergencyContactPrimary?.contactDetails?.home
? patient.data.details?.data?.emergencyContactPrimary?.contactDetails?.home : 'None'}}</span><br />
<span>Work Phone: {{ patient.data.details?.data?.emergencyContactPrimary?.contactDetails?.phone
? patient.data.details?.data?.emergencyContactPrimary?.contactDetails?.phone : 'None' }}</span><br />
</span>
</div>
<div class="col-sm-4">
<span *ngIf="patient.data.details?.data?.emergencyContactSecondary">
<br />
<span>Name: {{ patient.data.details?.data?.emergencyContactSecondary?.name }}</span><br />
<span>Relationship: {{ patient.data.details?.data?.emergencyContactSecondary?.relationship
? patient.data.details?.data?.emergencyContactSecondary?.relationship : 'None' }}</span><br />
<span class="indent">{{
patient.data.details?.data?.emergencyContactSecondary?.address?.street }}</span><br />
<span class="indent" *ngIf="patient.data.details?.data?.emergencyContactSecondary?.address?.streetLine2">
{{ patient.data.details?.data?.emergencyContactSecondary?.address?.streetLine2 }}<br /></span>
<span class="indent" *ngIf="patient.data.details?.data?.emergencyContactSecondary?.address?.streetLine3">
{{ patient.data.details?.data?.emergencyContactSecondary?.address?.streetLine3 }}<br /></span>
<span class="indent">
{{ patient.data.details?.data?.emergencyContactSecondary?.address?.city }},
{{ patient.data.details?.data?.emergencyContactSecondary?.address?.state }}
{{ patient.data.details?.data?.emergencyContactSecondary?.address?.zip }}
</span><br />
<span>Phone: {{ patient.data.details?.data?.emergencyContactSecondary?.contactDetails?.home
? patient.data.details?.data?.emergencyContactSecondary?.contactDetails?.home : 'None' }}</span><br />
<span>Work Phone: {{ patient.data.details?.data?.emergencyContactSecondary?.contactDetails?.phone
? patient.data.details?.data?.emergencyContactSecondary?.contactDetails?.phone : 'None' }}</span><br />
</span>
</div>
</div>
<div class="row data-value" style="margin-top:20px;">

<div class="col-sm-4 indent-content">
<h3 class="data-label">Next of Kin Information: </h3>
<span class="indent" *ngIf="!patient.data.details?.data?.nextOfKinPrimary">No Record Found</span>
<span *ngIf="patient.data.details?.data?.nextOfKinPrimary">
<span>Name: </span>
<span>
{{ patient.data.details?.data?.nextOfKinPrimary?.name }}
{{ patient.data.details?.data?.nextOfKinPrimary?.relationship ? ' (' +
patient.data.details?.data?.nextOfKinPrimary?.relationship + ')' : '' }}
</span><br />
<span class="indent">{{ patient.data.details?.data?.nextOfKinPrimary?.address?.street }}</span><br />
<span class="indent" *ngIf="patient.data.details?.data?.nextOfKinPrimary?.address?.streetLine2">
{{ patient.data.details?.data?.nextOfKinPrimary?.address?.streetLine2 }}<br /></span>
<span class="indent" *ngIf="patient.data.details?.data?.nextOfKinPrimary?.address?.streetLine3">
{{ patient.data.details?.data?.nextOfKinPrimary?.address?.streetLine3 }}<br /></span>
<span class="indent">
{{ patient.data.details?.data?.nextOfKinPrimary?.address?.city }},
{{ patient.data.details?.data?.nextOfKinPrimary?.address?.state }}
{{ patient.data.details?.data?.nextOfKinPrimary?.address?.zip }}
</span><br />
<span>Phone: {{ patient.data.details?.data?.nextOfKinPrimary?.contactDetails?.home
? patient.data.details?.data?.nextOfKinPrimary?.contactDetails?.home : 'None' }}</span><br />
<span>Work Phone: {{ patient.data.details?.data?.nextOfKinPrimary?.contactDetails?.phone
? patient.data.details?.data?.nextOfKinPrimary?.contactDetails?.phone : 'None' }}</span><br />
</span>
</div>
<div class="col-sm-4">
<span *ngIf="patient.data.details?.data?.nextOfKinSecondary">
<h3 class="data-label">Secondary Next of Kin Information: </h3>
<span>Name: </span>
<span>
{{ patient.data.details?.data?.nextOfKinSecondary?.name }}
{{ patient.data.details?.data?.nextOfKinSecondary?.relationship ? ' (' +
patient.data.details?.data?.nextOfKinSecondary?.relationship + ')' : '' }}
</span><br />
<span class="indent">{{ patient.data.details?.data?.nextOfKinSecondary?.address?.street }}</span><br />
<span class="indent" *ngIf="patient.data.details?.data?.nextOfKinSecondary?.address?.streetLine2">
{{ patient.data.details?.data?.nextOfKinSecondary?.address?.streetLine2 }}<br /></span>
<span class="indent" *ngIf="patient.data.details?.data?.nextOfKinSecondary?.address?.streetLine3">
{{ patient.data.details?.data?.nextOfKinSecondary?.address?.streetLine3 }}<br /></span>
<span class="indent">
{{ patient.data.details?.data?.nextOfKinSecondary?.address?.city }},
{{ patient.data.details?.data?.nextOfKinSecondary?.address?.state }}
{{ patient.data.details?.data?.nextOfKinSecondary?.address?.zip }}
</span><br />
<span>Phone: {{ patient.data.details?.data?.nextOfKinSecondary?.contactDetails?.home
? patient.data.details?.data?.nextOfKinSecondary?.contactDetails?.home : 'None' }}</span><br />
<span>Work Phone: {{ patient.data.details?.data?.nextOfKinSecondary?.contactDetails?.phone
? patient.data.details?.data?.nextOfKinSecondary?.contactDetails?.phone : 'None' }}</span><br />
</span>
</div>
</div>

<div *ngIf="patient.data.details?.data?.languages" class="row data-value" style="margin-top:20px;">
<div *ngFor="let lang of patient.data.details?.data?.languages; let i = index" [ngClass]="{'col-sm-4': i%2===0, 'col-sm-8': i%2!==0}" style="margin-bottom: 20px;padding-left:60px">
<span class="data-label">Language Date/Time: </span>
<span>{{ lang.languageDate | date: 'MM/dd/yyyy HH:mm' }}</span><br />
<span class="data-label">Preferred Language: </span>
<span>{{ lang.languagePref }}</span>
</div>
</div>

</ng-template>
</ngb-tab>
<ngb-tab>
<ng-template ngbTabTitle>Military Service</ng-template>
<ng-template ngbTabContent>
<div class="indent-content">
<div class="row vitalRow" style="margin-top:20px;">
<h3 class="data-label indent">Military Service Information: </h3>
</div>
<div class="row">
<div class="col-sm-10 data-value">
<table class="table table-striped table-bordered table-military">
<thead>
<tr>
<th>Service Branch / Component</th>
<th>Service #</th>
<th>Entered</th>
<th>Separated</th>
<th>Discharge</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let service of patient.data.details?.data?.militaryService?.serviceInformation">
<td><span class="sr-only">Service Branch / Component</span>{{ service.branch + '/' + service.component }}</td>
<td><span class="sr-only">Service #</span>{{ service.number }}</td>
<td><span class="sr-only">Entered</span>{{ service.entryDate | date: 'MM/dd/yyyy' }}</td>
<td><span class="sr-only">Separated</span>{{ service.separationDate | date: 'MM/dd/yyyy' }}</td>
<td><span class="sr-only">Discharge</span>{{ service.dischargeType }}</td>
</tr>
<tr *ngIf="!patient.data.details?.data?.militaryService?.serviceInformation">
<td colspan="6">No Record Found</td>
</tr>
</tbody>
</table>
</div>
<div class="col-sm-2"></div>
</div>
<br />
<div class="row my-1">
<div class="col-sm-2" style="padding-right:0%;">Conflict Locations: </div>
<div class="col-sm-5" style="padding-left:0%" *ngIf="patient.data.details?.data?.militaryService?.conflictLocations
&& getIndicated(patient.data.details?.data?.militaryService?.conflictLocations)">
<span *ngFor="let loc of patient.data.details?.data?.militaryService?.conflictLocations">
<span *ngIf="loc.serviceIndicated">
{{ loc.location }}
<span *ngIf="loc.fromDate || loc.toDate">
{{ loc.fromDate ? ' (' + (loc.fromDate | date: 'MM/dd/yyyy') : '(UNKNOWN' }}
{{ loc.toDate ? ' - ' + (loc.toDate | date: 'MM/dd/yyyy') + ')' : ' - UNKNOWN)' }}
</span><br />
</span>
</span>
</div>
<div class="col-sm-5" style="padding-left:0%" *ngIf="!patient.data.details?.data?.militaryService?.conflictLocations
|| !getIndicated(patient.data.details?.data?.militaryService?.conflictLocations)">
No Record Found
</div>
</div><br />
<div class="row my-1">
<div class="col-sm-2" style="padding-right:0%;">Environmental Factors: </div>
<div class="col-sm-5" style="padding-left:0%" *ngIf="patient.data.details?.data?.militaryService?.environmentalExposures
&& getIndicated(patient.data.details?.data?.militaryService?.environmentalExposures)">
<span *ngFor="let env of patient.data.details?.data?.militaryService?.environmentalExposures">
<span *ngIf="env.exposureIndicated">
<span *ngIf="!(env.typeOfExposure == 'N/T Radium')">
<span *ngIf="env.typeOfExposure == 'Radiation'">
{{ (!env.registrationDate || !env.examDate) ? 'Ionizing Radiation (Incomplete)' : 'Ionizing
Radiation' }}<br />
</span>
<span *ngIf="!(env.typeOfExposure == 'Radiation')">
{{ (!env.registrationDate || !env.exposureMethod) ? env.typeOfExposure + ' (Incomplete)' :
env.typeOfExposure }}<br />
</span>
</span>
<span *ngIf="env.typeOfExposure == 'N/T Radium'">
{{ (env.screeningStatus == '4' || env.screeningStatus == '5') ? env.typeOfExposure + ' (Verified)'
: (env.screeningStatus == '3' ? env.typeOfExposure + ' (Pending Diagnosis)' : env.typeOfExposure) }}<br />
</span>
</span>
</span>
</div>
<div class="col-sm-5" style="padding-left:0%" *ngIf="!patient.data.details?.data?.militaryService?.environmentalExposures
|| !getIndicated(patient.data.details?.data?.militaryService?.environmentalExposures)">
No Record Found
</div>
</div><br />
<div class="row my-1">
<div class="col-sm-2" style="padding-right:0%;">
POW: {{ patient.data.details?.data?.militaryService?.powInformation
? (patient.data.details?.data?.militaryService?.powInformation?.serviceIndicated ? 'Yes' : 'No')
: 'No Record Found' }}
</div>
<div class="col-sm-3" style="padding-left:0%">
<span *ngIf="patient.data.details?.data?.militaryService?.powInformation?.serviceIndicated">
From/To:
<span *ngIf="patient.data.details?.data?.militaryService?.powInformation?.fromDate
|| patient.data.details?.data?.militaryService?.powInformation?.toDate">
{{ patient.data.details?.data?.militaryService?.powInformation?.fromDate
? (patient.data.details?.data?.militaryService?.powInformation?.fromDate | date: 'MM/dd/yyyy')
: 'UNKNOWN' }}
{{ patient.data.details?.data?.militaryService?.powInformation?.toDate
? ' - ' + (patient.data.details?.data?.militaryService?.powInformation?.toDate | date: 'MM/dd/yyyy')
: ' - UNKNOWN' }}
</span>
<span *ngIf="!patient.data.details?.data?.militaryService?.powInformation?.fromDate
&& !patient.data.details?.data?.militaryService?.powInformation?.toDate">
None</span>
</span>
</div>
<div class="col-sm-3">
<span *ngIf="patient.data.details?.data?.militaryService?.powInformation?.serviceIndicated">
War: {{ patient.data.details?.data?.militaryService?.powInformation?.location
? patient.data.details?.data?.militaryService?.powInformation?.location : 'None' }}
</span>
</div>
</div>
<div class="row my-1">
<div class="col-sm-2" style="padding-right:0%;">
Combat: {{ patient.data.details?.data?.militaryService?.combatInformation
? (patient.data.details?.data?.militaryService?.combatInformation?.serviceIndicated ? 'Yes' : 'No')
: 'No Record Found' }}
</div>
<div class="col-sm-3" style="padding-left:0%">
<span *ngIf="patient.data.details?.data?.militaryService?.combatInformation?.serviceIndicated">
From/To:
<span *ngIf="patient.data.details?.data?.militaryService?.combatInformation?.fromDate
|| patient.data.details?.data?.militaryService?.combatInformation?.toDate">
{{ patient.data.details?.data?.militaryService?.combatInformation?.fromDate
? (patient.data.details?.data?.militaryService?.combatInformation?.fromDate | date: 'MM/dd/yyyy')
: 'UNKNOWN' }}
{{ patient.data.details?.data?.militaryService?.combatInformation?.toDate
? ' - ' + (patient.data.details?.data?.militaryService?.combatInformation?.toDate | date: 'MM/dd/yyyy')
: ' - UNKNOWN' }}
</span>
<span *ngIf="!patient.data.details?.data?.militaryService?.combatInformation?.fromDate
&& !patient.data.details?.data?.militaryService?.combatInformation?.toDate">
None</span>
</span>
</div>
<div class="col-sm-3">
<span *ngIf="patient.data.details?.data?.militaryService?.combatInformation?.serviceIndicated">
Loc: {{ patient.data.details?.data?.militaryService?.combatInformation?.location
? patient.data.details?.data?.militaryService?.combatInformation?.location : 'None' }}
</span>
</div>
</div><br />
<div class="row my-1">
<div class="col-sm-3">
Military Disability Retirement: {{ patient.data.details?.data?.militaryService?.disabilityRetirement
? patient.data.details?.data?.militaryService?.disabilityRetirement : 'None' }}
</div>
<div class="col-sm-4">
Discharge Due to Disability: {{ patient.data.details?.data?.militaryService?.disabilityDischarge
? patient.data.details?.data?.militaryService?.disabilityDischarge : 'None' }}
</div>
</div>
<div class="row my-1">
<div class="col-sm-3">
Dental Injury: {{ patient.data.details?.data?.militaryService?.dentalInjury
? patient.data.details?.data?.militaryService?.dentalInjury : 'None' }}
</div>
<div class="col-sm-4">
Teeth Extracted: {{ patient.data.details?.data?.militaryService?.dentalExtraction
? patient.data.details?.data?.militaryService?.dentalExtraction : 'None' }}
</div>
</div>
<div class="row my-1">
<div class="col-sm-3">
Purple Heart: {{ patient.data.details?.data?.militaryService?.purpleHeartIndicator
? patient.data.details?.data?.militaryService?.purpleHeartIndicator : 'None' }}
</div>
<div class="col-sm-4">
Purple Heart Status: {{ patient.data.details?.data?.militaryService?.purpleHeartStatus
? patient.data.details?.data?.militaryService?.purpleHeartStatus : 'None' }}
</div>
</div><br />
</div>
</ng-template>
</ngb-tab>
<ngb-tab>
<ng-template ngbTabTitle>Eligibility</ng-template>
<ng-template ngbTabContent>
<div class="row vitalRow" style="margin-top:20px;">
<h3 class="col-sm-10 indent-content data-label">Eligibility Information: </h3>
</div>
<div class="row" style="margin-top:5px;">
<div class="col-sm-3 indent-content">
Combat Vet Status: {{ getCombatVetStatus() }}
</div>
<div class="col-sm-4">
End Date: {{ patient.data.details?.data?.eligibility?.combatVetEndDate
? (patient.data.details?.data?.eligibility?.combatVetEndDate | date: 'MM/dd/yyyy')
: 'None' }}
</div>
</div>
<div class="row data-value">
<div class="col-sm-10 indent-content">
<span style="margin-top:-5px;">
Unemployable: {{ patient.data.details?.data?.eligibility?.unemployable
? patient.data.details?.data?.eligibility?.unemployable : 'None' }}
</span><br />
<span>
Permanent & Total Disabled: {{ patient.data.details?.data?.eligibility?.permanentTotalDisabled
? patient.data.details?.data?.eligibility?.permanentTotalDisabled : 'None' }}
</span><br /><br />
<span>Current Means Test Status: {{ patient.data.details?.data?.eligibility?.currentMeansTestStatus }}</span><br />
<span>Medication Copayment Exemption Status: {{
patient.data.details?.data?.eligibility?.medCopayExemptionStatus }}</span><br /><br />
<span>Rx Patient Status: {{ patient.data.details?.data?.eligibility?.rxPatientStatus }}</span><br />
<span>
Primary Eligibility:
{{ patient.data.details?.data?.eligibility?.code
? (patient.data.details?.data?.eligibility?.code
+ (patient.data.details?.data?.eligibility?.status ? ' (' +
patient.data.details?.data?.eligibility?.status + ')' : '')) : '' }}
</span><br />
<span *ngIf="patient.data.details?.data?.eligibility?.serviceConnected">
SC Percent:
{{ patient.data.details?.data?.eligibility?.serviceConnectedPercentage
? patient.data.details?.data?.eligibility?.serviceConnectedPercentage + '%'
: '' }}<br />
</span><br />
<div class="row my-1">
<div class="col-sm-2" style="padding-right:0%;">Rated Disabilities: </div>
<div class="col-sm-5" style="padding-left:0%;" *ngIf="patient.data.details?.data?.disabilities">
<span *ngFor="let disability of patient.data.details?.data?.disabilities">
{{ disability.ratedDisability }}
{{ (disability.disabilityPercentage && disability.isServiceConnected)
? ' (' + disability.disabilityPercentage + '%'
+ (disability.isServiceConnected ? ' - SC' : ' - NSC') + ')'
: '(unspecified)' }}<br />
</span>
</div>
<div class="col-sm-5" style="padding-left:0%;" *ngIf="!patient.data.details?.data?.disabilities">
None
</div>
</div><br />
</div>
</div>
</ng-template>
</ngb-tab>
<ngb-tab>
<ng-template ngbTabTitle>Health Plans/Insurance</ng-template>
<ng-template ngbTabContent>
<div class="row vitalRow data-value" style="margin-top:20px;">
<div class="col-sm-10 indent-content">
<h3 class="data-label">Health Benefit Plans Currently Assigned to Veteran: </h3>
<span *ngIf="patient.data.details?.data?.healthBenefits?.plans">
<span class="indent" *ngFor="let plan of patient.data.details?.data?.healthBenefits?.plans">
{{ plan }}<br />
</span>
</span>
<span *ngIf="!patient.data.details?.data?.healthBenefits?.plans" class="indent">None</span>
</div>
</div><br />
<div class="row">
<div class="col-sm-10 data-value indent-content">
<h3 class="data-label">Health Insurance Information: </h3>
<table class="table table-striped table-bordered table-military">
<thead>
<tr>
<th>Insurance</th>
<th>COB Subscriber ID</th>
<th>Group</th>
<th>Holder</th>
<th>Effective</th>
<th>Expires</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let ins of patient.data.details?.data?.healthBenefits?.insurance">
<td><span class="sr-only">>Insurance</span>{{ ins.insuranceType }}</td>
<td><span class="sr-only">COB Subscriber ID</span>{{ ins.subscriberId }}</td>
<td><span class="sr-only">Group</span>{{ ins.groupNumber }}</td>
<td><span class="sr-only">Holder</span>{{ ins.holder }}</td>
<td><span class="sr-only">Effective</span>{{ ins.effectiveDate | date: 'MM/dd/yyyy' }}</td>
<td><span class="sr-only">Expires</span>{{ ins.expiryDate | date: 'MM/dd/yyyy' }}</td>
</tr>
<tr *ngIf="!patient.data.details?.data?.healthBenefits?.insurance">
<td colspan="6">No Record Found</td>
</tr>
</tbody>
</table>
</div>
<div class="col-sm-2"></div>
</div>
<br />
</ng-template>
</ngb-tab>
<ngb-tab>
<ng-template ngbTabTitle>Social, Primary Care, Clinic Info</ng-template>
<ng-template ngbTabContent>
<div class="row vitalRow" style="margin-top:20px;">
<h3 class="col-sm-10 indent-content data-label">Social History: </h3>
</div>
<div class="row my-1" style="margin-top:5px;">
<div class="col-sm-3 indent-content">
Marital Status: {{ patient.data.details?.data?.socialHistory?.maritalStatus
? patient.data.details?.data?.socialHistory?.maritalStatus : 'None' }}
</div>
<div class="col-sm-4">
Religious Preference: {{ patient.data.details?.data?.socialHistory?.religion
? patient.data.details?.data?.socialHistory?.religion : 'None' }}
</div>
</div>
<div class="row my-1">
<div class="col-sm-3 indent-content">
Race: {{ patient.data.details?.data?.socialHistory?.race
? patient.data.details?.data?.socialHistory?.race : 'None' }}
</div>
<div class="col-sm-4">
Method of Collection: {{ patient.data.details?.data?.socialHistory?.raceSource
? patient.data.details?.data?.socialHistory?.raceSource : 'None' }}
</div>
</div>
<div class="row my-1">
<div class="col-sm-3 indent-content">
Ethnicity: {{ patient.data.details?.data?.socialHistory?.ethnicity
? patient.data.details?.data?.socialHistory?.ethnicity : 'None' }}
</div>
<div class="col-sm-4">
Method of Collection: {{ patient.data.details?.data?.socialHistory?.ethnicitySource
? patient.data.details?.data?.socialHistory?.ethnicitySource : 'None' }}
</div>
</div><br />
<div class="row my-1 vitalRow">
<h3 class="col-sm-10 indent-content data-label">Primary Care Information: </h3>
</div>
<div class="row my-1">
<div class="col-sm-10">
<div class="ppc" *ngIf="patient.data.details?.data?.patientCareTeams">
<app-patient-primary-care [patient]="patient.data"></app-patient-primary-care>
</div>
<div class="data-value indent-content" *ngIf="!patient.data.details?.data?.patientCareTeams">
No PACT assigned at any VA Location<br /><br />
</div>
</div><br />
</div>
<div class="row">
<div class="col-sm-10 data-value indent-content">
<span class="data-label">Currently enrolled in clinics: </span>
<span *ngIf="patient.data.details?.data?.clinicInformation?.clinicsEnrolledIn">
<span *ngFor="let clinic of patient.data.details?.data?.clinicInformation?.clinicsEnrolledIn; let i = index">
<span *ngIf="i > 0">, </span>{{ clinic }}
</span>
</span>
<span *ngIf="!patient.data.details?.data?.clinicInformation?.clinicsEnrolledIn">None</span>
</div>
</div><br />
<div class="row">
<div class="col-sm-6 data-value indent-content">
<span class="data-label">Future Appointments: </span>
<span *ngIf="patient.data.details?.data?.clinicInformation?.futureAppointments">
<br />
<table class="table table-striped table-bordered table-military">
<thead>
<tr>
<th style="width:30%;">Date/Time</th>
<th>Clinic</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let appt of patient.data.details?.data?.clinicInformation?.futureAppointments">
<td>{{ appt.appointmentDate | date: 'MM/dd/yyyy HH:mm' }}</td>
<td>{{ appt.clinic }}</td>
</tr>
</tbody>
</table>
</span>
<span *ngIf="!patient.data.details?.data?.clinicInformation?.futureAppointments">None</span>
</div>
<div class="col-sm-2"></div>
</div><br />
<div class="row my-1 data-value" *ngIf="patient.data.identity.dateOfDeath
|| patient.data.details?.data?.deathInformation?.source
|| patient.data.details?.data?.deathInformation?.updatedDate
|| patient.data.details?.data?.deathInformation?.lastEditedBy">
<div class="col-sm-10 indent-content">
<span class="data-label">Date of Death Information: </span><br />
<span class="indent">Date of Death: {{ patient.data.identity.dateOfDeath | date: 'MM/dd/yyyy' }}</span><br />
<span class="indent">Source of Notification: {{ patient.data.details?.data?.deathInformation?.source }}</span><br />
<span class="indent">Updated Date/Time: {{ patient.data.details?.data?.deathInformation?.updatedDate | date: 'MM/dd/yyyy HH:mm' }}</span><br />
<span class="indent">Last Edited By: {{ patient.data.details?.data?.deathInformation?.lastEditedBy }}</span><br />
</div>
</div><br />
</ng-template>
</ngb-tab>
<ngb-tab>
<ng-template ngbTabTitle>Pharmacy Info</ng-template>
<ng-template ngbTabContent>
<div class="row vitalRow data-value" style="margin-top:20px;">
<h3 class="col-sm-10 indent-content data-label">Pharmacy Information: </h3>
</div>
<div class="row my-1 vitalRow" style="margin-top:5px;">
<div class="col-sm-3 indent-content">
CAP: {{ patient.data.details?.data?.pharmacyInformation?.capInformation
? patient.data.details?.data?.pharmacyInformation?.capInformation : 'None' }}
</div>
<div class="col-sm-4">
Fee Hospital I.D.: {{ patient.data.details?.data?.pharmacyInformation?.feeHospitalId
? patient.data.details?.data?.pharmacyInformation?.feeHospitalId : 'None' }}
</div>
</div>
<div class="row my-1 vitalRow">
<div class="col-sm-3 indent-content">
Mail: {{ patient.data.details?.data?.pharmacyInformation?.mailInformation
? patient.data.details?.data?.pharmacyInformation?.mailInformation : 'None' }}
</div>
<div class="col-sm-4">
Mail Status Expiration Date: {{ patient.data.details?.data?.pharmacyInformation?.mailStatusExpDate
? (patient.data.details?.data?.pharmacyInformation?.mailStatusExpDate | date: 'MM/dd/yyyy') : 'None' }}
</div>
</div>
<div class="row my-1 vitalRow">
<div class="col-sm-3 indent-content">
Dialysis Patient: {{ patient.data.details?.data?.pharmacyInformation?.dialysisPatient
? patient.data.details?.data?.pharmacyInformation?.dialysisPatient : 'None' }}
</div>
<div class="col-sm-4">
Patient Status: {{ patient.data.details?.data?.eligibility?.rxPatientStatus
? patient.data.details?.data?.eligibility?.rxPatientStatus : 'None' }}
</div>
</div>
<div class="row my-1 vitalRow">
<div class="col-sm-3 indent-content">
CNH Current: {{ patient.data.details?.data?.pharmacyInformation?.cnhCurrent
? patient.data.details?.data?.pharmacyInformation?.cnhCurrent : 'None' }}
</div>
<div class="col-sm-4">
Community Nursing Home: {{ patient.data.details?.data?.pharmacyInformation?.nursingHome
? patient.data.details?.data?.pharmacyInformation?.nursingHome : 'None' }}
</div>
</div>
<div class="row my-1 vitalRow">
<div class="col-sm-3 indent-content">
Nursing Home Contract: {{ patient.data.details?.data?.pharmacyInformation?.nursingHomeContract
? patient.data.details?.data?.pharmacyInformation?.nursingHomeContract : 'None' }}
</div>
<div class="col-sm-4">
Last Date of Contract: {{ patient.data.details?.data?.pharmacyInformation?.lastDateOfContract
? (patient.data.details?.data?.pharmacyInformation?.lastDateOfContract | date: 'MM/dd/yyyy') : 'None' }}
</div>
</div>
<div class="row my-1 vitalRow">
<div class="col-sm-3 indent-content">
Respite Patient Start Date: {{ patient.data.details?.data?.pharmacyInformation?.respiteStartDate
? (patient.data.details?.data?.pharmacyInformation?.respiteStartDate | date: 'MM/dd/yyyy') : 'None' }}
</div>
<div class="col-sm-4">
Respite Patient End Date: {{ patient.data.details?.data?.pharmacyInformation?.respiteEndDate
? (patient.data.details?.data?.pharmacyInformation?.respiteEndDate | date: 'MM/dd/yyyy') : 'None' }}
</div>
</div>
<div class="row my-1 vitalRow">
<div class="col-sm-3 indent-content">
Other Language Preference: {{ patient.data.details?.data?.pharmacyInformation?.otherLanguagePref
? patient.data.details?.data?.pharmacyInformation?.otherLanguagePref : 'None' }}
</div>
<div class="col-sm-4">
PMI Language Preference: {{ patient.data.details?.data?.pharmacyInformation?.pmiLanguagePref
? patient.data.details?.data?.pharmacyInformation?.pmiLanguagePref : 'None' }}
</div>
</div>
<div class="row my-1 vitalRow">
<div class="col-sm-8 indent-content" style="margin-top:10px;">
Remarks: {{ patient.data.details?.data.pharmacyInformation?.remarks
? patient.data.details?.data.pharmacyInformation?.remarks : 'None' }}
</div>
</div>
<div class="row my-1 vitalRow">
<div class="col-sm-8 indent-content" style="margin-top:10px;">
Outpatient Narrative: {{ patient.data.details?.data.pharmacyInformation?.opNarrative
? patient.data.details?.data.pharmacyInformation?.opNarrative : 'None' }}
</div>
</div>
<div class="row my-1 vitalRow">
<div class="col-sm-8 indent-content" style="margin-top:10px;">
Inpatient Narrative: {{ patient.data.details?.data.pharmacyInformation?.ipNarrative
? patient.data.details?.data.pharmacyInformation?.ipNarrative : 'None' }}
</div>
</div><br />
</ng-template>
</ngb-tab>
</ngb-tabset>
</div>
</div>
</ng-template>
<ng-template #detailsErrorContent>
<div class="row">
<div class="col error-text">
Patient Details Unavailable: {{ patient.data.details?.err}}
</div>
</div>
</ng-template>