721 lines
49 KiB
PHP
Executable File

<style type="text/css">
div.patient-view-card-container{margin-top:5px;}
.patient-view-card-icons{font-size:40px;}
.patient-view-card{transition: 0.4s;padding: 10px 0;box-shadow:;border:1px solid rgba(0,0,0,0.1);}
.patient-view-card:hover{box-shadow:5px 10px 10px rgba(0, 0, 0, 0.1);transition:0.4s;}
.fa-pencil{cursor:pointer;color:#2e9cf1;}
.fix-height-body{height: 550px;overflow: auto;}
.fstfdt6tsrt + :where(.col-sm-8,.col-sm-4){padding-top: 11px;}
.marg_top5{margin-top:5px}
@media (min-width: 576px){.width-larger{max-width: 1000px !important;}}
</style>
<input type="hidden" id="socsec" value="<?php echo $datas->soc_sec_no; ?>">
<div class="app-content content">
<div class="content-wrapper">
<div class="content-body">
<section id="block-examples">
<div class="row patient-view-card-container">
<div class="col-md-12 col-sm-12">
<div class="card patient-view-card bg-gradient-y-info">
<div class="card-header">
<h3>
<span class="font-weight-bold text-white">Basic Info</span>
</h3>
</div>
<div class="card-body">
<div class="row mb-0">
<div class="col-md-6 col-sm-12">
<div class="card py-1 mb-0">
<div class="card-header pb-0">
<h3>
<!-- <span class="float-right mx-2">
<i class="fa fa-pencil" id="card_1_edit" aria-hidden="true" data-toggle="modal" data-target="#updateModal" data-whatever="@mdo"></i>
</span> -->
</h3>
</div>
<div class="card-body">
<div class="row mb-0" >
<div class="col-md-4 col-sm-4">
<div class="card py-1 mb-0">
<div class="card-body center">
<label><b>Patient Id</b> <h5 class="text-center"><?php echo $datas->patient_id;?></h5></label>
</div>
</div>
</div>
<div class="col-md-8 col-sm-8">
<div class="card mb-0">
<div class="card-body">
<h6 class="text-capitalize">
<b>Name :</b> <span><?=$datas->first_name.' '.$datas->last_name?></span>
</h6>
<h6 class="">
<b>Birth :</b> <span><?=$datas->dob?></span>
</h6>
<h6 class="">
<b>Email :</b> <span> <?=$datas->patient_email?></span>
</h6>
<h6 class="text-capitalize">
<b>Soc Sec No :</b> <span id="sosec_no"><?=$datas->soc_sec_no?></span>
</h6>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-3 col-sm-12">
<div class="card py-1 mb-0">
<div class="card-header pb-0">
<h3>
<!-- <span class="float-right mx-2">
<i class="fa fa-pencil" id="card_2_edit" aria-hidden="true" data-toggle="modal" data-target="#updateModal" data-whatever="@mdo"></i>
</span> -->
</h3>
</div>
<div class="card-body">
<h6 class="text-capitalize">
<b>Gender :</b> <span><?=$datas->gender?></span>
</h6>
<h6 class="">
<b>Marital :</b> <span><?=$datas->marital_stat?></span>
</h6>
<h6 class="">
<b>Weight :</b> <span><?=$datas->weight?> lbs</span>
</h6>
<?php $HtFI = explode(',', $datas->height);$Htf = $HtFI[0];$Hti = $HtFI[1];?>
<h6 class="">
<b>Height :</b> <span><?=$Htf;?> feet <?=$Hti;?> inch</span>
</h6>
</div>
</div>
</div>
<div class="col-md-3 col-sm-12">
<div class="card py-1 mb-0">
<div class="card-header pb-0">
<h3>
<!-- <span class="float-right mx-2">
<i class="fa fa-pencil" id="card_3_edit" aria-hidden="true" data-toggle="modal" data-target="#updateModal" data-whatever="@mdo"></i>
</span> -->
</h3>
</div>
<div class="card-body">
<?php $pAdata = json_decode($datas->address); ?>
<h6 class="">
<b>Address :</b>
<span class="text-capitalize">
<?=$pAdata->address, $pAdata->Apartment.", ".$pAdata->City.", ".$pAdata->County.", ".$pAdata->State.", ".$pAdata->Zipcode?>
</span>
</h6>
<h6 class="">
<b>Direction :</b>
<span class="text-capitalize">
<?php if($datas->direction){echo $datas->direction;}else{echo "NA";}?>
</span>
</h6>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row patient-view-card-container">
<div class="col-md-12 col-sm-12">
<div class="card patient-view-card bg-gradient-y-info">
<div class="card-header">
<h3>
<span class="font-weight-bold text-white">Patient Info</span>
<!-- <span class="float-right mx-2">
<i class="fa fa-pencil text-white" id="card_4_edit" aria-hidden="true" data-toggle="modal" data-target="#updateModal" data-whatever="@mdo"></i>
</span> -->
</h3>
</div>
<div class="card-body">
<div class="row mb-0" >
<div class="col-md-6 col-sm-12">
<div class="card py-1 mb-0">
<div class="card-body">
<h6 class="">
<b>Designate First Name :</b>
<span class="text-capitalize">
<?php if($datas->designate_first_name){echo $datas->designate_first_name;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Designate Last Name :</b>
<span class="text-capitalize">
<?php if($datas->designate_last_name){echo $datas->designate_last_name;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Designate Telephone :</b>
<span>
<?php if($datas->designate_telephone){echo $datas->designate_telephone;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Designate Cell :</b>
<span>
<?php if($datas->designate_cell){echo $datas->designate_cell;}else{echo "NA";}?>
</span>
</h6>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12">
<div class="card py-1 mb-0">
<div class="card-body">
<h6 class="text-capitalize">
<b>Level of Care :</b>
<span>
<?php if($datas->level_of_care){echo $datas->level_of_care;}else{echo "NA";}?>
</span>
</h6>
<h6 class="text-capitalize">
<!-- <b>Referal Source :</b> <span><?=$datas->referral_source?></span> -->
<b>Referal Source :</b>
<span>
<?php if($datas->reference_information){echo $datas->reference_information;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>EVV Verification :</b>
<span>
<?php if($datas->evv_verification){echo $datas->evv_verification;}else{echo "NA";}?>
</span>
</h6>
<!-- <h6 class="">
<b>Coordinator :</b> <span><?=$datas->coordinator?></span>
</h6> -->
<h6 class="">
<b>Primary Nurse :</b>
<span>
<?php if($datas->primary_nurse){echo $datas->primary_nurse;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Intake Nurse :</b>
<span><?=$datas->intake_nurse?></span>
<span>
<?php if($datas->intake_nurse){echo $datas->intake_nurse;}else{echo "NA";}?>
</span>
</h6>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row patient-view-card-container">
<div class="col-md-12 col-sm-12">
<div class="card patient-view-card bg-gradient-y-info">
<div class="card-header">
<h3>
<span class="font-weight-bold text-white">Care Info</span>
<!-- <span class="float-right mx-2">
<i class="fa fa-pencil text-white" id="card_5_edit" aria-hidden="true" data-toggle="modal" data-target="#updateModal" data-whatever="@mdo"></i>
</span> -->
</h3>
</div>
<div class="card-body">
<div class="row mb-0" >
<div class="col-md-6 col-sm-12">
<div class="card py-1 mb-0">
<div class="card-body">
<h6 class="text-capitalize">
<b>Level of Service Need :</b>
<span>
<?php
if($datas->level_of_service){
if($datas->level_of_service==4){
echo "RN";
}if($datas->level_of_service==5){
echo "LPN";
}if($datas->level_of_service==6){
echo "HHA";
}if($datas->level_of_service==7){
echo "PCA";
}
}else{
echo "NA";
}
?>
</span>
</h6>
<h6 class="">
<b>New Order :</b>
<span>
<?php if($datas->new_order){echo $datas->new_order;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Service Activity Needed :</b>
<span>
<?php
if($datas->serviceName){
echo $datas->serviceName;
}
else{
echo "NA";
}
?>
</span>
</h6>
<!-- <h6 class="">
<b>Therapy Type :</b> <span><?=$datas->therapy_type?></span>
</h6> -->
<h6 class="">
<b>Type Of Access :</b>
<span>
<?php
if($datas->type_access){
// echo $datas->type_access;
echo $datas->type_of_accesss;
}else{
echo "NA";
}
?>
</span>
</h6>
<h6 class="">
<b>Patient Seen By Md :</b>
<span>
<?php if($datas->patient_seen_by_MD){echo $datas->patient_seen_by_MD;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Current Lab Work :</b>
<span>
<?php if($datas->current_lab_work){echo $datas->current_lab_work;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Lab Order :</b>
<span>
<?php if($datas->lab_order){echo $datas->lab_order;}else{echo "NA";}?>
</span>
</h6>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12">
<div class="card py-1 mb-0">
<div class="card-body">
<h6 class="text-capitalize">
<b>Additional Lab Order :</b>
<span>
<?php if($datas->other_lab_frequency){echo $datas->other_lab_frequency;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Lab Frequency :</b>
<span>
<?php if($datas->lab_frequency){echo $datas->lab_frequency;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Other Lab Frequency :</b>
<span>
<?php if($datas->other_lab_frequency){echo $datas->other_lab_frequency;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Tube :</b>
<span>
<?php if($datas->tube_type){echo $datas->tube_type;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Formula :</b>
<span>
<?php if($datas->formula){echo $datas->formula;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Schedule :</b>
<span>
<?php if($datas->schedule){echo $datas->schedule;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Flush With :</b>
<span>
<?php if($datas->flush_with){echo $datas->flush_with;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Daily Intake Requirment :</b>
<span>
<?php if($datas->daily_intake_requirment){echo $datas->daily_intake_requirment;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Flush Frequency :</b>
<span>
<?php if($datas->flush_frequency){echo $datas->flush_frequency;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Flush Restrictions :</b>
<span>
<?php if($datas->referral_source){echo $datas->referral_source;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Flush Restriction Amount :</b>
<span>
<?php if($datas->fluide_restric_amount){echo $datas->fluide_restric_amount;}else{echo "NA";}?>
</span>
</h6>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row patient-view-card-container">
<div class="col-md-12 col-sm-12">
<div class="card patient-view-card bg-gradient-y-info">
<div class="card-header">
<h3>
<span class="font-weight-bold text-white">Insurance Info</span>
<!-- <span class="float-right mx-2">
<i class="fa fa-pencil text-white" id="card_6_edit" aria-hidden="true" data-toggle="modal" data-target="#updateModal" data-whatever="@mdo"></i>
</span> -->
</h3>
</div>
<div class="card-body">
<div class="row mb-0" >
<div class="col-md-4 col-sm-12">
<div class="card py-1 mb-0">
<div class="card-body">
<h4 class="text-info font-weight-bold">Basic</h4>
<h6 class="text-capitalize">
<b>Insurance Type :</b>
<span>
<?php if($dataIns->insurance_type){echo $dataIns->insurance_type;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Insurance Plan :</b>
<span>
<?php if($dataIns->insurance_plan){echo $dataIns->insurance_plan;}else{echo "NA";}?>
</span>
</h6>
<?php
if($dataIns->insurance_type == 'Madicaid')
{
?>
<h6 class="">
<b>Medicaid Id :</b>
<span>
<?php if($dataIns->medicaid_id){echo $dataIns->medicaid_id;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Medicaid Pedriatic :</b>
<span>
<?php if($dataIns->medicaid_pedriatic){echo $dataIns->medicaid_pedriatic;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Medicaid Adult :</b>
<span>
<?php if($dataIns->medicaid_adult){echo $dataIns->medicaid_adult;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Type :</b>
<span>
<?php if($dataIns->primaryOrSecondary){echo $dataIns->primaryOrSecondary;}else{echo "NA";}?>
</span>
</h6>
<?php
}
else
{
?>
<h6 class="">
<b>Policy NO :</b>
<span>
<?php if($dataIns->Pvt_Ins_PlanId_Policy_no){echo $dataIns->Pvt_Ins_PlanId_Policy_no;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Claim No :</b>
<span>
<?php if($dataIns->claim_no){echo $dataIns->claim_no;}else{echo "NA";}?>
</span>
</h6>
<?php
}
?>
<hr>
<h4 class="text-info font-weight-bold">Emergency Contact</h4>
<h6 class="">
<b>Name :</b>
<span class="text-capitalize">
<?php if($dataIns->emgContactFirstName && $dataIns->emgContactLastName)
{echo $dataIns->emgContactFirstName." ".$dataIns->emgContactLastName;}else{echo "NA";}
?>
</span>
</h6>
<h6 class="">
<b>Relationship to the Patient :</b>
<span class="text-capitalize">
<?php
foreach($relationList as $relation)
{
if($relation->id==$dataIns->emgContactRelation){
echo $relation->name;
}
}
?>
</span>
</h6>
<?php $emgConAdd=json_decode($dataIns->emgContactAddress);?>
<h6 class="">
<b>Address :</b>
<span>
<ul>
<li><span class="text-info">House/Street</span> : <?=$emgConAdd->address;?></li>
<li><span class="text-info">Apartment</span> : <?=$emgConAdd->Apartment;?></li>
<li><span class="text-info">City</span> : <?=$emgConAdd->City;?></li>
<li><span class="text-info">State</span> : <?=$emgConAdd->State;?></li>
<li><span class="text-info">Zipcode</span> : <?=$emgConAdd->Zipcode;?></li>
<li><span class="text-info">County</span>: <?=$emgConAdd->County;?></li>
</ul>
</span>
</h6>
<h6 class="">
<b>Telephone :</b>
<span>
<?php if($dataIns->emgContactTelephone){echo $dataIns->emgContactTelephone;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Cellphone :</b>
<span>
<?php if($dataIns->emgContactCellNo){echo $dataIns->emgContactCellNo;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Other Number :</b>
<span>
<?php if($dataIns->emgContactOteNo){echo $dataIns->emgContactOteNo;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Email :</b>
<span>
<?php if($dataIns->emgContactEmail){echo $dataIns->emgContactEmail;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Lives with Patient :</b>
<span>
<?php if($dataIns->emgContactLiveswithPatient){echo $dataIns->emgContactLiveswithPatient;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Home access :</b>
<span>
<?php if($dataIns->emgContactAccessToHome){echo $dataIns->emgContactAccessToHome;}else{echo "NA";}?>
</span>
</h6>
</div>
</div>
</div>
<div class="col-md-4 col-sm-12">
<div class="card py-1 mb-0">
<div class="card-body">
<h4 class="text-info font-weight-bold">Emergency Preparedness</h4>
<h6 class="text-capitalize">
<b>Evacutaion zone :</b>
<span>
<?php if($dataIns->EmgPrepdEvacZone){echo $dataIns->EmgPrepdEvacZone;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Mobility Status :</b>
<span>
<?php if($dataIns->EmgPrepdMobilityStat){echo $dataIns->EmgPrepdMobilityStat;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Evacuation Location :</b>
<span>
<?php if($dataIns->EmgPrepdLocation){echo $dataIns->EmgPrepdLocation;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Electrical Equipment Dependency :</b>
<span>
<?php if($dataIns->EmgPrepdEleDependency){echo $dataIns->EmgPrepdEleDependency;}else{echo "NA";}?>
</span>
</h6>
<hr>
<h4 class="text-info font-weight-bold">Diaganosis</h4>
<h6 class="">
<b>ICD :</b>
<span>
<?php if($dataIns->diagonosisICD){echo $dataIns->diagonosisICD;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Date :</b>
<span>
<?php if($dataIns->diagonosisHistoricalDate){echo $dataIns->diagonosisHistoricalDate;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Historical data Diaganosis :</b>
<span>
<?php if($dataIns->diagonosisData){echo $dataIns->diagonosisData;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Type :</b>
<span>
<?php if($dataIns->diagonosisPrimary){echo $dataIns->diagonosisPrimary;}else{echo "NA";}?>
</span>
</h6>
</div>
</div>
</div>
<div class="col-md-4 col-sm-12">
<div class="card py-1 mb-0">
<div class="card-body">
<h4 class="text-info font-weight-bold">Clinical Information</h4>
<h6 class="text-capitalize">
<b>Start Of Care :</b>
<span>
<?php if($dataIns->ClinicalStartOfCare){echo $dataIns->ClinicalStartOfCare;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Allergies :</b>
<span>
<?php if($dataIns->ClinicalAllergies){echo $dataIns->ClinicalAllergies;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Allergic Reaction :</b>
<span>
<?php if($dataIns->ClinicalAllergiesReaction){echo $dataIns->ClinicalAllergiesReaction;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Notes :</b>
<span>
<?php if($dataIns->ClinicalNotes){echo $dataIns->ClinicalNotes;}else{echo "NA";}?>
</span>
</h6>
<hr>
<h4 class="text-info font-weight-bold">Physican and MD information</h4>
<h6 class="">
<b>Name :</b>
<span>
<?php if($dataIns->PhysicanName){echo $dataIns->PhysicanName;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Address :</b>
<span>
<?php if($dataIns->PhysicanAddress){echo $dataIns->PhysicanAddress;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Telephone :</b>
<span>
<?php if($dataIns->PhysicanTelephone){echo $dataIns->PhysicanTelephone;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Email :</b>
<span><?=$dataIns->PhysicanEmail?></span>
<span>
<?php if($dataIns->PhysicanEmail){echo $dataIns->PhysicanEmail;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Affiliation :</b>
<span>
<?php if($dataIns->PhysicanAffiliation){echo $dataIns->PhysicanAffiliation;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>FAX :</b>
<span>
<?php if($dataIns->PhysicanFax){echo $dataIns->PhysicanFax;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>NPI :</b>
<span>
<?php if($dataIns->PhysicanNPI){echo $$dataIns->PhysicanNPI;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Lisence :</b>
<span>
<?php if($dataIns->PhysicanLisence){echo $dataIns->PhysicanLisence;}else{echo "NA";}?>
</span>
</h6>
<h6 class="">
<b>Note :</b>
<span>
<?php if($dataIns->PhysicanNote){echo $dataIns->PhysicanNote;}else{echo "NA";}?>
</span>
</h6>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
maskingSocNo();
});
function maskingSocNo(){
var soc=$("#socsec").val();
var len=soc.length;
var xxx_soc_no="";
if(len==9){
for(i=0;i<len;i++){
var n=soc.charAt(i);
if(i<5){
xxx_soc_no+="X";
if(i==2 || i==4){
xxx_soc_no+="-";
}
}
if(i>=5){
xxx_soc_no+=n;
}
}
}
$("#socsec_outer").val(xxx_soc_no);
$("#sosec_no").html(xxx_soc_no);
}
</script>