1174 lines
82 KiB
PHP
Executable File

<!--sidebar end-->
<!--main content start-->
<style>
.required-field:before {content: "*";color: red;}
</style>
<div class="app-content content">
<section class="content-wrapper">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<div class="row">
<div class="col-12">
<h3 class="font-weight-bold">
<?php
// print_r($patient);exit;
if (!empty($discharge->id))
echo lang('edit').' '.lang('patient discharge');
else
echo lang('add').' '.lang('patient discharge');
?>
</h3>
</div>
</div>
</div>
<hr class="mt-0 mb-0" />
<div class="card-body">
<div class="row">
<div class="col-md-12">
<form role="form" id="patientDischargeForm" action="<?php echo base_url(); ?>patient_discharge/addNew" method="post" enctype="multipart/form-data" onsubmit="return validateForm()">
<input type="hidden" name="patient_id" value='<?php if (!empty($patient->id)) { echo $patient->id; } ?>'>
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name();?>" value="<?php echo $this->security->get_csrf_hash();?>">
<div class="row">
<div class="form-group col-md-4">
<label ><?php echo lang('name'); ?></label>
<?php $name = $patient->first_name.' '.$patient->last_name; ?>
<input type="text" class="form-control" name="name" id="exampleInputEmail1" value='<?php
if (!empty($name)) {
echo $name;
}
?>' placeholder="" disabled>
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('gender'); ?></label>
<input type="gender" class="form-control" name="gender" id="exampleInputEmail1" value='<?php
if (!empty($patient->gender)) {
echo $patient->gender;
}
?>' placeholder="" disabled>
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('Dob'); ?></label>
<input type="date" class="form-control futDateNonAccept" name="dob"id="ptdob" value='<?php
if (!empty($setval)) {
echo set_value('dob');
}
if (!empty($patient->dob)) {
echo $patient->dob;
}
?>' placeholder="" disabled>
</div>
<?php
$HtFI = explode(',', $patient->height);
$Htf = $HtFI[0];
$Hti = $HtFI[1];
$height= $Htf."'".$Hti."'' ";
?>
<div class="form-group col-md-4">
<label ><?php echo lang('height'); ?></label>
<input class="form-control" name="height" value=<?=$height?> placeholder="" disabled>
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('weight'); ?></label>
<input type="text" class="form-control" name="weight" value='<?php
if (!empty($setval)) {
echo set_value('weight');
}
if (!empty($patient->weight)) {
echo $patient->weight;
}
?>' placeholder="" disabled>
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('allergies'); ?></label>
<input type="text" class="form-control" name="allergy" value='<?php
if (!empty($assessment->allergy)) {
echo $assessment->allergy;
}
?>' placeholder="" disabled>
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('Marital status'); ?></label>
<input type="text" class="form-control" name="marital_stat" value='<?php
if (!empty($patient->marital_stat)) {
echo $patient->marital_stat;
}
?>' placeholder="" disabled>
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('Language'); ?></label>
<input type="text" class="form-control" name=" primary_language" value='<?php
if (!empty($patient->primary_language)) {
echo $patient->language_name;
}
?>' placeholder="" disabled>
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('Address'); ?></label>
<input type="text" class="form-control" name="address" value='<?php
$address = json_decode($patient->address);
if (!empty($address)) {
echo($address->address.",".$address->Apartment.",".$address->City.",".$address->State.",".$address->Zipcode.",".$address->County);
}
?>' placeholder="" disabled>
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('Admitted Date'); ?></label>
<input type="date" class="form-control futDateNonAccept" name="entry_date" value='<?php
if (!empty($patient->entry_date)) {
echo $patient->entry_date;
}
?>' placeholder="" disabled>
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('CHCS Discharge Date'); ?></label>
<input type="date" class="form-control futDateNonAccept" name="chcs_discharge_date" value="<?php
if (!empty($setval)) {
echo set_value('chcs_discharge_date');
}
if (!empty($discharge->chcs_discharge_date)) {
echo $discharge->chcs_discharge_date;
}
?>" placeholder="">
<section class="col-md-12 chcs_discharge_date">
</section>
</div>
<div class="form-group col-md-4">
<label class="required-field"><?php echo lang('Primary Diagnosis'); ?></label>
<input type="text" class="form-control" name="primary_diagnosis" value="<?php
if (!empty($setval)) {
echo set_value('primary_diagnosis');
}
if (!empty($discharge->primary_diagnosis)) {
echo $discharge->primary_diagnosis;
}
?>" placeholder="" required>
<section class="col-md-12 primary_diagnosis">
</section>
</div>
</div>
<div class="row">
<div class="form-group col-md-4">
<label ><?php echo lang('Secondary Diagnosis'); ?></label>
<input type="text" class="form-control" name="secondary_diagnosis" value="<?php
if (!empty($discharge->secondary_diagnosis)) {
echo $discharge->secondary_diagnosis;
}
?>" placeholder="">
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('Service provided'); ?></label>
<select id="service_provided" class="form-control" name="service_provided" value="<?= $discharge->service_provided ?>">
<option value="1" <?php if (!empty($discharge->service_provided)) {
if($discharge->service_provided == 1) {
echo "selected";
}
}
?> >Nursing Assessment</option>
<option value="2"<?php if (!empty($discharge->service_provided)) {
if($discharge->service_provided == 2) {
echo "selected";
}
}
?>>Patient Education</option>
<option value="3" <?php if (!empty($discharge->service_provided)) {
if($discharge->service_provided == 3) {
echo "selected";
}
}
?>>Infusion Therapy</option>
</select>
</div>
<div class="form-group col-md-4" id="infusion_therapy" style="<?php if($discharge->service_provided == 3){
echo "display: block";
}else{
echo "display: none";
} ?>"
>
<label ><?php echo lang('Infusion Therapy Method'); ?></label>
<select class="form-control" name="infusion_therapy">
Dropdown with Midline Cath, S/L PICC
<option value="1" <?php if (!empty($discharge->infusion_therapy)) {
if($discharge->service_provided == 1) {
echo "selected";
}
}
?>>Midline Cath</option>
<option value="2" <?php if (!empty($discharge->infusion_therapy)) {
if($discharge->service_provided == 2) {
echo "selected";
}
}
?>>S/L PICC</option>
</select>
</div>
</div>
<div class="row">
<div class="form-group col-md-4">
<label ><?php echo lang('Comments'); ?></label>
<input type="text" class="form-control" name="comments" value="<?php
if (!empty($discharge->comments)) {
echo $discharge->comments;
}
?>
" placeholder="">
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('Other'); ?></label>
<input type="text" class="form-control" name="other" value="<?php
if (!empty($discharge->other)) {
echo $discharge->other;
}
?>" placeholder="">
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('Level Of Care'); ?></label>
<select class="form-control" name="level_of_care">
<?php foreach($services as $service) {?>
<option value="<?= $service->id?>" <?php if (!empty($discharge->level_of_care)) {
if($discharge->level_of_care == $service->id) {
echo "selected";
}
}
?>><?= $service->name?></option>
<?php } ?>
</select>
</div>
<div class="form-group col-md-4">
<label class="required-field"><?php echo lang('Specify'); ?></label>
<input type="text" class="form-control" name="specify" value="<?php
if (!empty($setval)) {
echo set_value('specify');
}
if (!empty($discharge->specify)) {
echo $discharge->specify;
}
?>" placeholder="" required>
<section class="col-md-12 specify"></section>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label><?php echo lang('Patient will have more knowledge about disease ?'); ?></label>
<div class="row col-md-6">
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="about_disease" id="radio" value="1" <?php if (!empty($discharge->about_disease)) {
if($discharge->about_disease == 1) {
echo "checked";
}
}
?>>
<label class="form-check-label" for="YES">
YES
</label>
</div>
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="about_disease" id="radio" value="0" <?php
if($discharge->about_disease == 0) {
echo "checked";
}
?>>
<label class="form-check-label" for="NO">
NO
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label ><?php echo lang('Patient will be knowledgeable about health behaviors needed to manage condition ?'); ?></label>
<div class="row col-md-6">
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="about_health_behaviors" id="radio" value="1" <?php if (!empty($discharge->about_health_behaviors)) {
if($discharge->about_health_behaviors == 1) {
echo "checked";
}
}
?>>
<label class="form-check-label" for="YES">
YES
</label>
</div>
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="about_health_behaviors" id="radio" value="0" <?php
if($discharge->about_health_behaviors == 0) {
echo "checked";
}
?>>
<label class="form-check-label" for="NO">
NO
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label ><?php echo lang('Patient will be knowledgeable about signs and symptoms of complicaitons of therapy ?'); ?></label>
<div class="row col-md-6">
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="patient_about_signs" id="radio" value="1" <?php if (!empty($discharge->patient_about_signs)) {
if($discharge->patient_about_signs == 1) {
echo "checked";
}
}
?>>
<label class="form-check-label" for="YES">
YES
</label>
</div>
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="patient_about_signs" id="radio" value="0" <?php
if($discharge->patient_about_signs == 0) {
echo "checked";
}
?>>
<label class="form-check-label" for="NO">
NO
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label ><?php echo lang('Patient will identify action to take if signs and symptoms of complications occur ?'); ?></label>
<div class="row col-md-6">
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="patient_identify_action" id="radio" value="1" <?php if (!empty($discharge->patient_identify_action)) {
if($discharge->patient_identify_action == 1) {
echo "checked";
}
}
?>>
<label class="form-check-label" for="YES">
YES
</label>
</div>
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="patient_identify_action" id="radio" value="0" <?php
if($discharge->patient_identify_action == 0) {
echo "checked";
}
?>>
<label class="form-check-label" for="NO">
NO
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label ><?php echo lang('Patient will denonstrate correct techniques and schedule fo adminsrtation of medications ?'); ?></label>
<div class="row col-md-6">
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="patient_adminstration_of_medication" id="radio" value="1" <?php if (!empty($discharge->patient_adminstration_of_medication)) {
if($discharge->patient_adminstration_of_medication == 1) {
echo "checked";
}
}
?>>
<label class="form-check-label" for="YES">
YES
</label>
</div>
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="patient_adminstration_of_medication" id="radio" value="0" <?php
if($discharge->patient_adminstration_of_medication == 0) {
echo "checked";
}
?>>
<label class="form-check-label" for="NO">
NO
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label ><?php echo lang('Patient will be aware of complete and recorded list of medication ?'); ?></label>
<div class="row col-md-6">
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="patient_list_of_medications" id="radio" value="1" <?php if (!empty($discharge->patient_list_of_medications)) {
if($discharge->patient_list_of_medications == 1) {
echo "checked";
}
}
?>>
<label class="form-check-label" for="YES">
YES
</label>
</div>
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="patient_list_of_medications" id="radio" value="0" <?php
if($discharge->patient_list_of_medications == 0) {
echo "checked";
}
?>>
<label class="form-check-label" for="NO">
NO
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label ><?php echo lang('Patient wound will heal without incident of infection ?'); ?></label>
<div class="row col-md-6">
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="patient_infection" id="radio" value="1" <?php if (!empty($discharge->patient_infection)) {
if($discharge->patient_infection == 1) {
echo "checked";
}
}
?>>
<label class="form-check-label" for="YES">
YES
</label>
</div>
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="patient_infection" id="radio" value="0" <?php
if($discharge->patient_infection == 0) {
echo "checked";
}
?>>
<label class="form-check-label" for="NO">
NO
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label ><?php echo lang('Patient willl maintain optimal level fo Assisted Daily Living (ADL) ?'); ?></label>
<div class="row col-md-6">
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="patient_adl" id="radio" value="1" <?php if (!empty($discharge->patient_adl)) {
if($discharge->patient_adl == 1) {
echo "checked";
}
}
?>>
<label class="form-check-label" for="YES">
YES
</label>
</div>
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="patient_adl" id="radio" value="0" <?php
if($discharge->patient_adl == 0) {
echo "checked";
}
?>>
<label class="form-check-label" for="NO">
NO
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label ><?php echo lang("Patient's safety will be mainatined ?"); ?></label>
<div class="row col-md-6">
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="patient_safety" id="radio" value="1" <?php if (!empty($discharge->patient_safety)) {
if($discharge->patient_safety == 1) {
echo "checked";
}
}
?>>
<label class="form-check-label" for="YES">
YES
</label>
</div>
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="patient_safety" id="radio" value="0" <?php
if($discharge->patient_safety == 0) {
echo "checked";
}
?>>
<label class="form-check-label" for="NO">
NO
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label ><?php echo lang("Caregiver will have more knowledge about disease ?"); ?></label>
<div class="row col-md-6">
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="caregiver_about_disease" id="radio" value="1" <?php if (!empty($discharge->caregiver_about_disease)) {
if($discharge->caregiver_about_disease == 1) {
echo "checked";
}
}
?>>
<label class="form-check-label" for="YES">
YES
</label>
</div>
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="caregiver_about_disease" id="radio" value="0" <?php
if($discharge->caregiver_about_disease == 0) {
echo "checked";
}
?>>
<label class="form-check-label" for="NO">
NO
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label ><?php echo lang("Caregiver will be knowledge about health behaviors needed to manage condition ?"); ?></label>
<div class="row col-md-6">
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="caregiver_about_health_behaviors" id="radio" value="1" <?php if (!empty($discharge->caregiver_about_health_behaviors)) {
if($discharge->caregiver_about_health_behaviors == 1) {
echo "checked";
}
}
?>>
<label class="form-check-label" for="YES">
YES
</label>
</div>
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="caregiver_about_health_behaviors" id="radio" value="0" <?php
if($discharge->caregiver_about_health_behaviors == 0) {
echo "checked";
}
?>>
<label class="form-check-label" for="NO">
NO
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label ><?php echo lang("Caregiver will be knowledgeable about signs and symptoms of complicaitons of therapy ?"); ?></label>
<div class="row col-md-6">
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="caregiver_about_signs" id="radio" value="1" <?php if (!empty($discharge->caregiver_about_signs)) {
if($discharge->caregiver_about_signs == 1) {
echo "checked";
}
}
?>>
<label class="form-check-label" for="YES">
YES
</label>
</div>
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="caregiver_about_signs" id="radio" value="0" <?php
if($discharge->caregiver_about_signs == 0) {
echo "checked";
}
?>>
<label class="form-check-label" for="NO">
NO
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label ><?php echo lang("Caregiver will identify action to take if signs and symptoms of complications occur ?"); ?></label>
<div class="row col-md-6">
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="caregiver_identify_action" id="radio" value="1" <?php if (!empty($discharge->caregiver_identify_action)) {
if($discharge->caregiver_identify_action == 1) {
echo "checked";
}
}
?>>
<label class="form-check-label" for="YES">
YES
</label>
</div>
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="caregiver_identify_action" id="radio" value="0" <?php
if($discharge->caregiver_identify_action == 0) {
echo "checked";
}
?>>
<label class="form-check-label" for="NO">
NO
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label ><?php echo lang("Caregiver will denonstrate correct techniques and schedule fo adminsrtation of medications ?"); ?></label>
<div class="row col-md-6">
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="caregiver_adminstration_of_medication" id="radio" value="1" <?php if (!empty($discharge->caregiver_adminstration_of_medication)) {
if($discharge->caregiver_adminstration_of_medication == 1) {
echo "checked";
}
}
?>>
<label class="form-check-label" for="YES">
YES
</label>
</div>
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="caregiver_adminstration_of_medication" id="radio" value="0" <?php
if($discharge->caregiver_adminstration_of_medication == 0) {
echo "checked";
}
?>>
<label class="form-check-label" for="NO">
NO
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label ><?php echo lang("Caregiver will be aware of complete and recorded list of medication ?"); ?></label>
<div class="row col-md-6">
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="caregiver_list_of_medications" id="radio" value="1" <?php if (!empty($discharge->caregiver_adminstration_of_medication)) {
if($discharge->caregiver_list_of_medications == 1) {
echo "checked";
}
}
?>>
<label class="form-check-label" for="YES">
YES
</label>
</div>
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="caregiver_list_of_medications" id="radio" value="0" <?php
if($discharge->caregiver_list_of_medications == 0) {
echo "checked";
}
?>>
<label class="form-check-label" for="NO">
NO
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-md-4">
<label ><?php echo lang('Reasons For Discharge'); ?></label>
<select class="form-control" name="reasons_for_discharge">
<option value="1"<?php if (!empty($discharge->reasons_for_discharge)) {
if($discharge->reasons_for_discharge == 1) {
echo "selected";
}
}
?>>Complete Course Of Prescribe Care</option>
<option value="2" <?php if (!empty($discharge->reasons_for_discharge)) {
if($discharge->reasons_for_discharge == 2) {
echo "selected";
}
}
?>>Wound Healed</option>
<option value="3" <?php if (!empty($discharge->reasons_for_discharge)) {
if($discharge->reasons_for_discharge == 3) {
echo "selected";
}
}
?>>Transferred</option>
<option value="4" <?php if (!empty($discharge->reasons_for_discharge)) {
if($discharge->reasons_for_discharge == 4) {
echo "selected";
}
}
?>>Hospitalized</option>
<option value="5" <?php if (!empty($discharge->reasons_for_discharge)) {
if($discharge->reasons_for_discharge == 5) {
echo "selected";
}
}
?>>Moved</option>
<option value="6" <?php if (!empty($discharge->reasons_for_discharge)) {
if($discharge->reasons_for_discharge == 6) {
echo "selected";
}
}
?>>Expired</option>
<option value="7" <?php if (!empty($discharge->reasons_for_discharge)) {
if($discharge->reasons_for_discharge == 7) {
echo "selected";
}
}
?>>Unable To Complete Course of Therapy</option>
<option value="8" <?php if (!empty($discharge->reasons_for_discharge)) {
if($discharge->reasons_for_discharge == 8) {
echo "selected";
}
}
?>>Stabilized</option>
</select>
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('Skilled Care Provided'); ?></label>
<select class="form-control" name="skilled_care">
<option value="1" <?php if (!empty($discharge->skilled_care)) {
if($discharge->skilled_care == 1) {
echo "selected";
}
}
?>>Final Visit</option>
<option value="2" <?php if (!empty($discharge->skilled_care)) {
if($discharge->skilled_care == 2) {
echo "selected";
}
}
?>>No Visit Made</option>
<option value="3" <?php if (!empty($discharge->skilled_care)) {
if($discharge->skilled_care == 3) {
echo "selected";
}
}
?>>Telephone Contact</option>
</select>
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('Summary of progress To Date'); ?></label>
<input type="text" class="form-control" name="summary_of_progress" value="<?php if (!empty($discharge->summary_of_progress)) {
if($discharge->summary_of_progress == 1) {
echo $discharge->summary_of_progress;
}
}
?>" placeholder="">
</div>
</div>
<div class="row">
<div class="form-group col-md-4">
<label ><?php echo lang('Incident'); ?></label>
<div class="row col-md-6">
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="incident" id="radio" value="1" <?php if (!empty($discharge->incident)) {
if($discharge->incident == 1) {
echo "checked";
}
}
?>>
<label class="form-check-label" for="YES">
YES
</label>
</div>
<div class="form-check col-md-6">
<input class="form-check-input" type="radio" name="incident" id="radio" value="0" <?php
if($discharge->incident == 0) {
echo "checked";
}
?>>
<label class="form-check-label" for="NO">
NO
</label>
</div>
</div>
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('Pressure Ulcer Location'); ?></label>
<input type="text" class="form-control" name="pressure_ulcer_location" value="<?php if (!empty($discharge->summary_of_progress)) {
if($discharge->pressure_ulcer_location == 1) {
echo $discharge->pressure_ulcer_location;
}
}
?>" placeholder="" >
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('Pressure Ulcer Stage'); ?></label>
<input type="text" class="form-control" name="pressure_ulcer_stage" value="<?php if (!empty($discharge->summary_of_progress)) {
if($discharge->pressure_ulcer_stage == 1) {
echo $discharge->pressure_ulcer_stage;
}
}
?>" placeholder="" >
</div>
</div>
<div class="row">
<div class="form-group col-md-4">
<label ><?php echo lang('Disscharge Status'); ?></label>
<select class="form-control" name="disscharge_status">
<option value="1" <?php if (!empty($discharge->disscharge_status)) {
if($discharge->disscharge_status == 1) {
echo "selected";
}
}
?>>Stable</option>
<option value="2" <?php if (!empty($discharge->disscharge_status)) {
if($discharge->disscharge_status == 2) {
echo "selected";
}
}
?>>Improved Noted</option>
<option value="3" <?php if (!empty($discharge->disscharge_status)) {
if($discharge->disscharge_status == 3) {
echo "selected";
}
}
?>>Expired</option>
<option value="4" <?php if (!empty($discharge->disscharge_status)) {
if($discharge->disscharge_status == 4) {
echo "selected";
}
}
?>>Oriented</option>
<option value="5" <?php if (!empty($discharge->disscharge_status)) {
if($discharge->disscharge_status == 5) {
echo "selected";
}
}
?>>Agitated</option>
<option value="6" <?php if (!empty($discharge->disscharge_status)) {
if($discharge->disscharge_status == 6) {
echo "selected";
}
}
?>>Disoriented</option>
<option value="7" <?php if (!empty($discharge->disscharge_status)) {
if($discharge->disscharge_status == 7) {
echo "selected";
}
}
?>>Forgetful</option>
<option value="8" <?php if (!empty($discharge->disscharge_status)) {
if($discharge->disscharge_status == 8) {
echo "selected";
}
}
?>>Lethargic</option>
</select>
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('Functional Status - ADL'); ?></label>
<select class="form-control" name="functional_status">
<option value="1" <?php if (!empty($discharge->functional_status)) {
if($discharge->functional_status == 1) {
echo "selected";
}
}
?>>Independent</option>
<option value="2" <?php if (!empty($discharge->functional_status)) {
if($discharge->functional_status == 2) {
echo "selected";
}
}
?>>Assistance</option>
<option value="3" <?php if (!empty($discharge->functional_status)) {
if($discharge->functional_status == 3) {
echo "selected";
}
}
?>>Supervision</option>
<option value="4" <?php if (!empty($discharge->functional_status)) {
if($discharge->functional_status == 4) {
echo "selected";
}
}
?>>Dependent</option>
</select>
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('Mobility'); ?></label>
<select class="form-control" name="mobility">
<option value="1" <?php if (!empty($discharge->mobility)) {
if($discharge->mobility == 1) {
echo "selected";
}
}
?>>Independent</option>
<option value="2" <?php if (!empty($discharge->mobility)) {
if($discharge->mobility == 2) {
echo "selected";
}
}
?>>Assistance</option>
<option value="3" <?php if (!empty($discharge->mobility)) {
if($discharge->mobility == 3) {
echo "selected";
}
}
?>>Supervision</option>
<option value="4" <?php if (!empty($discharge->mobility)) {
if($discharge->mobility == 4) {
echo "selected";
}
}
?>>Dependent</option>
</select>
</div>
</div>
<div class="row">
<div class="form-group col-md-6">
<label ><?php echo lang('Medication List'); ?></label>
<select class="form-control" name="medication_list">
<option value="1" <?php if (!empty($discharge->medication_list)) {
if($discharge->medication_list == 1) {
echo "selected";
}
}
?>>Patient</option>
<option value="2" <?php if (!empty($discharge->medication_list)) {
if($discharge->medication_list == 2) {
echo "selected";
}
}
?>>Caregiver</option>
<option value="3" <?php if (!empty($discharge->medication_list)) {
if($discharge->medication_list == 3) {
echo "selected";
}
}
?>>Next Provider</option>
</select>
</div>
<div class="form-group col-md-6">
<label ><?php echo lang('Instrucitions To Patient/Family'); ?></label>
<select class="form-control" name="instrucitions_to_patient_family">
<option value="1" <?php if (!empty($discharge->instrucitions_to_patient_family)) {
if($discharge->instrucitions_to_patient_family == 1) {
echo "selected";
}
}
?>>Follow Up Visit With Physician</option>
<option value="2" <?php if (!empty($discharge->instrucitions_to_patient_family)) {
if($discharge->instrucitions_to_patient_family == 2) {
echo "selected";
}
}
?>>Discard Old Medication List and Update Other Providers Of Current Medication List</option>
<option value="3" <?php if (!empty($discharge->instrucitions_to_patient_family)) {
if($discharge->instrucitions_to_patient_family == 3) {
echo "selected";
}
}
?>>Appropiate Disposal Of Medical Waste</option>
</select>
</div>
</div>
<div class="row">
<div class="form-group col-md-6">
<label ><?php echo lang('Community'); ?></label>
<input type="text" name="instrucitions_to_patient_community" class="form-control" value="<?php if (!empty($discharge->instrucitions_to_patient_community)) {
if($discharge->instrucitions_to_patient_community) {
echo $discharge->instrucitions_to_patient_community;
}
}
?>">
</div>
<div class="form-group col-md-6">
<label ><?php echo lang('Other'); ?></label>
<input type="text" name="instrucitions_to_patient_other" class="form-control" value="<?php if (!empty($discharge->instrucitions_to_patient_other)) {
if($discharge->instrucitions_to_patient_other) {
echo $discharge->instrucitions_to_patient_other;
}
}
?>">
</div>
</div>
<div class="row">
<div class="form-group col-md-6">
<label ><?php echo lang('Notification Of Discharge'); ?></label>
<select class="form-control" name="notification_of_discharge">
<option value="1" <?php if (!empty($discharge->notification_of_discharge)) {
if($discharge->notification_of_discharge == 1) {
echo "selected";
}
}
?>>MD</option>
<option value="2" <?php if (!empty($discharge->notification_of_discharge)) {
if($discharge->notification_of_discharge == 2) {
echo "selected";
}
}
?>>Patient</option>
<option value="3" <?php if (!empty($discharge->notification_of_discharge)) {
if($discharge->notification_of_discharge == 3) {
echo "selected";
}
}
?>>Caregiver</option>
<option value="4" <?php if (!empty($discharge->notification_of_discharge)) {
if($discharge->notification_of_discharge == 4) {
echo "selected";
}
}
?>>Referral Sources</option>
</select>
</div>
<div class="form-group col-md-6">
<label ><?php echo lang('Other'); ?></label>
<input type="text" name="notification_of_discharge_other" class="form-control" value="<?php if (!empty($discharge->notification_of_discharge_other)) {
if($discharge->notification_of_discharge_other) {
echo $discharge->notification_of_discharge_other;
}
}
?>">
</div>
</div>
<div class="row">
<div class="form-group col-md-4">
<label ><?php echo lang('name'); ?></label>
<?php $name = $patient->first_name.' '.$patient->last_name; ?>
<input type="text" class="form-control" name="name" id="exampleInputEmail1" value='<?php
if (!empty($name)) {
echo $name;
}
?>' placeholder="" disabled>
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('Title'); ?></label>
<select class="form-control" name="title">
<?php foreach($services as $service) {?>
<option value="<?= $service->id?>" <?php if (!empty($discharge->level_of_care)) {
if($discharge->title == $service->id) {
echo "selected";
}
}
?>><?= $service->name?></option>
<?php } ?>
</select>
</div>
<div class="form-group col-md-4">
<label ><?php echo lang('date'); ?></label>
<input type="date" class="form-control futDateNonAccept" name="date"id="ptdob" value='<?php
if (!empty($discharge->date)) {
echo $discharge->date;
}
?>' placeholder="">
</div>
</div>
</div>
<div class="btn-group">
<a class="btn btn-info btn-min-width" title="<?php echo lang('Back'); ?>" href="<?php echo base_url(); ?>patient">
<i class="fa fa-undo" aria-hidden="true"></i> <?php echo lang('Back'); ?>
</a>
</div>
<div class="btn-group">
<button type="submit" name="save" value="save" class="btn btn-default"><?php echo lang('Save as draft'); ?></button>
</div>
<div class="btn-group">
<button type="submit" name="submit" value="submit" class="btn btn-default"><?php echo lang('submit'); ?></button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript"> /* future date dob not accept */
function validateForm() {
//var chcs_discharge_date = document.forms["patientDischargeForm"]["chcs_discharge_date"].value;
var primary_diagnosis = document.forms["patientDischargeForm"]["primary_diagnosis"].value;
var specify = document.forms["patientDischargeForm"]["specify"].value;
if (primary_diagnosis == "" || specify == "") {
// if (chcs_discharge_date == "") {
// $(".chcs_discharge_date").html("<div class='alert alert-danger' role='alert'> Please enter a value</div>");
// }
// if (primary_diagnosis == "") {
// $(".primary_diagnosis").html("<div class='alert alert-danger' role='alert'> Please enter a value</div>");
// //return false;
// }
// if (specify == "") {
// $(".specify").html("<div class='alert alert-danger' role='alert'> Please enter a value</div>");
// }
return false;
}
else{
return true;
}
}
$("#service_provided").on("change", function () {
var service_provided = this.value;
if (service_provided == 3) {
$('#infusion_therapy').show();
} else {
$("#infusion_therapy").hide();
}
//alert(jobRole);
})
$(document).ready(function () {
// alert("dateSec");
var todaysDate = new Date(); // Gets today's date
// Max date attribute is in "YYYY-MM-DD". Need to format today's date accordingly
var year = todaysDate.getFullYear(); // YYYY
var month = ("0" + (todaysDate.getMonth() + 1)).slice(-2); // MM
var day = ("0" + todaysDate.getDate()).slice(-2); // DD
var maxDate = (year +"-"+ month +"-"+ day); // Results in "YYYY-MM-DD" for today's date
// Now to set the max date value for the calendar to be today's date
$('.futDateNonAccept').attr('max',maxDate);
});
function isNumberKey(evt){
var charCode = (evt.which) ? evt.which : evt.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;
return true;
}
</script>
<script>
function formatPhoneNumber(phoneNumberString,_this) {
var cleaned = ('' + phoneNumberString).replace(/\D/g, '')
if(cleaned.length > 10){
cleaned = cleaned.substr(0, 10);
}
var match = cleaned.match(/^(1|)?(\d{3})(\d{3})(\d{4})$/)
if (cleaned.length == 10 && match) {
var intlCode = (match[1] ? '+1 ' : '')
var fres = [intlCode, '(', match[2], ') ', match[3], '-', match[4]].join('')
_this.value = fres;
}else{
_this.value = cleaned
}
return null
}
</script>
<!--main content end-->
<!--footer start-->