643 lines
34 KiB
PHP
Executable File

<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class initial_assessment extends MX_Controller {
function __construct() {
parent::__construct();
// $this->load->model('Patient_model');
// if (!$this->ion_auth->in_group('admin')) {
// redirect('home/permission');
// }
}
public function index() {
//$data['nurses'] = $this->nurse_model->getNurse();
// echo 'test';die;
$this->load->model('Assessment_model');
$data['therapyType'] = $this->Assessment_model->getTherapyType();
$this->load->view('home/dashboard'); // just the header file
$this->load->view('home/new_assessment',$data);
$this->load->view('home/footer'); // just the header file
}
public function saveAssessment()
{
// $_GET['pid'] = rand(1111,9999);
$data = array(
'assessment_type' => $this->input->post('AssessmentType'),
'schedule_id' => $this->input->post('scheduleId'),
'date' => $this->input->post('pvrDate'),
'day' => $this->input->post('pvrDay'),
'timeIn' => $this->input->post('pvrTimeIn'),
'timeOut' => $this->input->post('pvrTimeOut'),
'patientName' => $this->input->post('patientName'),
'dob' => $this->input->post('dob'),
'diagonosis' => $this->input->post('pvrDiagnosis'),
'allergy' => $this->input->post('pvrAllergy'),
'md_name' => $this->input->post('pvrMd'),
'md_contactInfo' => $this->input->post('pvrMdcntInfo'),
'id_confirmed' => $this->input->post('ID_confirmed'),
'Reason' => $this->input->post('pvrReason'),
'type_of_therapy' => $this->input->post('therapy_type'),
'type_of_therapy_value' => $this->input->post('therapy_type'),
'visit_activity' => $this->input->post('pvrVisitActivity'),
'types_of_device_access' => $this->input->post('PVRtypesOfDeviceAccess'),
'accessAssessment' => $this->input->post('accessAssessmentDD'),
'action' => $this->input->post('action')
);
$data['patient_id'] = $_GET['id'];
$data2 = array(
'pump_bettery_change' => $this->input->post('pumpBetteryCharge'),
'pump_res_volume' => $this->input->post('pumpRexVolume'),
'pump_infusion_volume' => $this->input->post('pumpInfusionVolume'),
'pump_rate' => $this->input->post('pumpRate'),
'bolus' => $this->input->post('pvrBolus'),
'KVO' => $this->input->post('pvrKVO'),
'taper' => $this->input->post('pvrTaper'),
'program_verified_with' => $this->input->post('Program_Verified_With'),
//PHYSICAL ASSESSMENT
'vital_signs' => $this->input->post('phyAssVitalSign'),
'vital_signs_measurment' => $this->input->post('vital_Sign_measurement'),
'cardiovascular' => $this->input->post('cardiovascular'),
'cardiovacularNotes' => $this->input->post('cvacNotes'),
'RESPIRATORY' => $this->input->post('respiratory'),
'respiratory_notes' => $this->input->post('respNotes'),
'foods' => $this->input->post('foodDiet'),
'fluid' => $this->input->post('fluidDiet'),
'fluid_intake' => $this->input->post('fluidIntake'),
'weight' => $this->input->post('WeightAmount'),
'WeightGainType' => $this->input->post('WeightGainType'),
'fl_comments' => $this->input->post('WeightComments'),
//ENDOCRINE
'diabetes' => $this->input->post('Diabetes'),
'blood_suger' => $this->input->post('bloodSugarMeasure'),
'musculosketal' => $this->input->post('Musculosketal'),
'mus_activity' => $this->input->post('MusculosketalActivity'),
'ambulatory' => $this->input->post('ambulatoryAr'),
'dependent' => $this->input->post('DependentAR'),
'wheelChair' => $this->input->post('wheelChairAR'),
'arComment' => $this->input->post('CommentsAR'),
//pain
'pain_level_assessed' => $this->input->post('painLevelAssessed'),
'pla_type' => $this->input->post('painType'),
'relief_from' => $this->input->post('ReliefFrom'),
//Skin
'skin' => $this->input->post('skin'),
'sk_describe' => $this->input->post('skinDescribe'),
'bruises_location' => $this->input->post('skinBruisesLocation'),
'surgikal_site' => $this->input->post('skinsurgicalsite'),
'wound' => $this->input->post('skinWonds'),
'woundcomment' => $this->input->post('skinComments')
);
$data3 = array(
//CIRCULATION
'circulation' => $this->input->post('circCheastPain'),
'edema' => $this->input->post('circEdema'),
'edema_location' => $this->input->post('circLocation'),
'peripheral_capilary_refil' => $this->input->post('peripheralCapilaryRefill'),
'circulation_status' => $this->input->post('CirculationStatus'),
'circulationStat_comment' => $this->input->post('Circulation_Comments'),
//VENTILATION
'ventilator_type' => $this->input->post('ventilatorType'),
'breathSound' => $this->input->post('BreathSounds'),
'sob' => $this->input->post('ventilator_sob'),
'color ' => $this->input->post('ventilatorColor'),
'ventilator_setting' => $this->input->post('ventilatorSetting'),
'ventilator_mode' => $this->input->post('ventilatorMode'),
'ventilatortv' => $this->input->post('ventilatorTv'),
'ventilatorPressure' => $this->input->post('ventilatorPressure'),
'ventilatorBR' => $this->input->post('ventilatorBR'),
'ventilatorOxygenMeasure' => $this->input->post('ventilatorOxygenMeasure'),
'inspiratory_time' => $this->input->post('ventilatorInspiratoryTime'),
'oxymeterFrequencyNote' => $this->input->post('OximeterFrequency'),
'oxymeterParameterNotes' => $this->input->post('oximeterParameter'),
'oxOtherNotes' => $this->input->post('ventilatorOtherNote'),
'ventDependent' => $this->input->post('ventDependent'),
'ventComment' => $this->input->post('ventilatorComments'),
//TRACHEOTOMY CARE
'tracheotomy_care_required' => $this->input->post('TracheotomyCareRequired'),
//MD Orders
'mdOrders' => $this->input->post('MdOrderNotes'),
'trachExcorition' => $this->input->post('MDTrachExcoriation'),
'teNotes' => $this->input->post('MDTrachExcoriationNotes'),
'TrachDrainage' => $this->input->post('MDTrachDrainage'),
'TrachDrainageNotes' => $this->input->post('MDTrachDrainageNotes'),
'rednessAtTrachSite' => $this->input->post('MDTrachDrainageNotes'),
'ratsNotes' => $this->input->post('MDTrachDrainageNotes'),
'trachInnerCannualChange' => $this->input->post('MDTrachInnerCannulaChanged'),
'ticcNotes' => $this->input->post('MDTrachInnerCannulaChangedMdOrderNotes'),
'trachConnectorSize' => $this->input->post('MDtrachConnectorSize'),
'trachConnectorlength' => $this->input->post('MDtrachConnectorLength'),
'trachSuction' => $this->input->post('MDtrachSuction'),
'tsNotes' => $this->input->post('MDTrachSuctionnotes'),
'trachSuctionType' => $this->input->post('MDtrachSuctionType'),
'trachSuctionCatheterKit' => $this->input->post('MDtrachSuctionCatherKit'),
'trachSuctionCatheterKitsize' => $this->input->post('MDtrachCAthertarKitSize'),
'trachSuctionNotes' => $this->input->post('CateterKitNotes'),
//GASTROINTESTINAL
'gastrointestinal' => $this->input->post('GASTROINTESTINAL'),
'dateOflastBowelMoment' => $this->input->post('DateLastBowelMovement'),
'dlsbowComments' => $this->input->post('DateLastBowelMovementComment'),
//GENITOURINARY
'genitourinary' => $this->input->post('GENITOURINARY'),
'genitourinaryColor' => $this->input->post('GENITOURINARYColor'),
'catheter' => $this->input->post('Cathertar')
);
$data4 = array(
'ifindwellingComments' => $this->input->post('GENITOURINARYNotes'),
//HYGINENE),
'hygineneComment' => $this->input->post('HYGINENE'),
//INTEGUMENTARY
'integumentary' => $this->input->post('INTEGUMENTARY'),
'ColorVairables' => $this->input->post('INTEGUMENTARYColorVairables'),
'TemperatureVariables' => $this->input->post('INTEGUMENTARYTemperatureVariables'),
'TurgorVariables' => $this->input->post('INTEGUMENTARYTurgorVariables'),
'TurgorVariablesComment' => $this->input->post('INTEGUMENTARYNotes'),
//NERUOLOGICAL
'neuroComment' => $this->input->post('NEUROLOGICALnotes'),
// PSYCHOLOGICAL / EMOTIONAL REACTION
// 'neuroComment' => $this->input->post('phycholEmotionalSocialSupportSystem'),
'CopesEffectivelywithTherapy' => $this->input->post('phyEmocopesEffWithTherapy'),
'CopesEffectivelywithDieases' => $this->input->post('phyEmocopesEffWithDieases'),
'physicalEmotionalComments' => $this->input->post('NEUROLOGICALnotes'),
//SKILLS - KNOWLEDGE ASSESSMENT
'skillKnowTeaching' => $this->input->post('skillKnowIncludeTeaching'),
'skillKnowComments' => $this->input->post('skillKnowIncludeTeachingnotes'),
'skillKnowLearning' => $this->input->post('skillKnowIncludeLearning'),
'skillKnowLearningComment' => $this->input->post('skillKnowIncludeLearningNotes'),
//RESPONSE TO THERAPY
'adverseMedicationSideEffects' => $this->input->post('adverseMedicationSideEffects'),
'PatientComplainwithMedicationThearpy' => $this->input->post('PatientComplainwithMedicationThearpy'),
'responseTherapyComment' => $this->input->post('RESPONSETOTHERAPYnotes'),
'responseTherapyCaregiver' => $this->input->post('respTotherapyCaregiver'),
'Copes_Effectively_with_Therapy_or_Disease_process' => $this->input->post('CopesEffectivelywithTherapyorDiseaseprocess'),
//MEDICATION
'MedicationChanges' => $this->input->post('MedicationChanges'),
'ReviewMedicationProfileIncludeOtc' => $this->input->post('ReviewMedicationProfileIncludeOtc'),
'NewMeds' => $this->input->post('medicationNewMeds'),
'ChangesEffectsReviewedwith' => $this->input->post('ChangesEffectsReviewedwith '),
'medicationCaregiver' => $this->input->post('medicationCaregiver'),
'useOfpump' => $this->input->post('medicationUseOfPump'),
'JobTitle' => $this->input->post('medicationJobTitle'),
'PatientIndependentInMedicationAdministration' => $this->input->post('PatientIndependentInMedicationAdministration'),
'lot' => $this->input->post('MEDICATIONlot'),
'expirationDate' => $this->input->post('MEDICATIONexpirationDate'),
//EQUIPMENT
'equipment' => $this->input->post('equipment'),
'EnviornmentalSafety' => $this->input->post('equipmentEnvSafty'),
'SafetyConcerns' => $this->input->post('equipSafetyConcerns'),
'woundCare ' => $this->input->post('equipWondscare'),
//MD Orders
'woundmdOrders' => $this->input->post('MDOrdersNotes'),
'WoundDate' => $this->input->post('MDOrdersWounddate'),
'siteLocationNotes' => $this->input->post('MDOrdersWoundType')
);
$data5 = array(
// 'woundCare' => $this->input->post('MDOrdersSiteLocation'),
'WoundDescription' => $this->input->post('MDOrdersWoundDesc'),
'WoundMeasurement' => $this->input->post('MDOrdersWoundMeasurment'),
'WoundLenghts' => $this->input->post('MDOrdersWoundLength'),
'WoundWidth' => $this->input->post('MDOrdersWoundWidth'),
'WoundDiameter' => $this->input->post('MDOrdersWoundDiameter'),
'WoundUndermining' => $this->input->post('MDOrdersWoundUndermining'),
'WoundUnderminingClockPosition' => $this->input->post('MDOrdersWoundClockPosition'),
'WoundCleanseWith' => $this->input->post('mdOrdersWondsCleasnswith'),
'WoundApplications' => $this->input->post('mdOrdersWoundApplication'),
'AppliedOther' => $this->input->post('MDOrdersAppliedOther'),
'WoundCoveredWith' => $this->input->post('mdOrdersWoundCoverdWith'),
'CoveredwithOther' => $this->input->post('MDOrdersCoverOther'),
'WoundSecuredWith' => $this->input->post('mdOrdersWoundSecureWith'),
'PackedWoundBedWith' => $this->input->post('MDOrdersPackkedWoundsWithBed'),
'WoundStatus' => $this->input->post('mdOrdersWoundStatus'),
'WoundGranulating' => $this->input->post('MDOrdersWoundsGranulating'),
'ExcroticTissuePresent' => $this->input->post('MDOrdersExcroticTissuePresent'),
'WoundEschar' => $this->input->post('MDOrdersWoundEschar'),
'NecroticTissuePresent' => $this->input->post('MDOrdersNercroticTissuePresent'),
'NecroticTissueColor' => $this->input->post('MDorderNecroticTissueColor'),
'WoundDrainage' => $this->input->post('MDOrdersWoundDrainage'),
'WoundDrainageRate' => $this->input->post('MDOrdersWoundDrainageRate'),
'WoundDrainageAmount' => $this->input->post('MDORDERWoundDrainageAmount'),
'woundBedapperance' => $this->input->post('woundBedapperance'),
'woundTunnelling' => $this->input->post('woundTunnelling'),
'woundTunnelingComment' => $this->input->post('woundTunnelingComment'),
'WoundRednessAtSite' => $this->input->post('MDOrdersWoundRednessAtSite'),
'WoundRedComments' => $this->input->post('MDOrdersWoundRednessAtSiteComment'),
'WoundOdor' => $this->input->post('MDOrdersWoundOdor'),
'WoundSwelling' => $this->input->post('MDOrdersWoundSwelling'),
'WoundSwellingComments' => $this->input->post('MDOrdersWoundSwellingComment'),
'WoundPain' => $this->input->post('MDOrdersWoundPain'),
'PatientIndependentInWoundCare' => $this->input->post('MDOrdersPatientIndependentInWoundCare'),
'PatientIsWillingToLearn' => $this->input->post('MDOrdersPatientIsWillingToLearn'),
'CaregiverIsWillingToLearn' => $this->input->post('MDOrdersCaregiverIsWillingToLearn'),
'CaregiverIsWillingToLearnComment' => $this->input->post('MDOrdersCaregiverIsWillingToLearnComment'),
'Caregiver' => $this->input->post('MdOrdersCaregiver'),
//PROGRESS TOWARDS GOALS
'CarePlanDetails' => $this->input->post('PogToGoalCarePlanDetails'),
'FallPrecautions' => $this->input->post('PogToGoalFallPrecautions'),
'WeightGain' => $this->input->post('PogToGoalweightGainAmount'),
'PressureUlserRisk' => $this->input->post('PogToGoalPressureUlserRisk'),
'Constipation' => $this->input->post('PogToGoalConstipation'),
);
$data6 = array(
//Skilled Nursing Interventions Summary/Follow-UP Plan
'OtherCurrentServices' => $this->input->post('otherCurrentServices'),
'ReviewOfEmergencyPlan' => $this->input->post('reviewEmergencyPlan'),
'ReviewUpdateCarePlan' => $this->input->post('reviewOrupdateCarePlan'),
'FallPreventionHomeSafety' => $this->input->post('FallPreventionAndHomeSafety'),
'SeizurePrecautionsObserved' => $this->input->post('SeizurePrecautionsObserved'),
'StandardPrecautionsObserved' => $this->input->post('StandardPrecautionsObserved'),
'MaintainAspirationPrecaution' => $this->input->post('MaintainAspirationPrecaution'),
'EquipmentChecked' => $this->input->post('EquipmentCheckedNotes'),
'SuppliesInventoryChecked' => $this->input->post('SuppliesInventoryChecked'),
'SuppliesInventoryNeeded' => $this->input->post('SuppliesInventoryNeededNotes'),
'PrepourMedication' => $this->input->post('PrepourMedication'),
'OxygenSafety' => $this->input->post('OxygenSafety'),
'Supervise' => $this->input->post('SuperviseCaregiverName'),
'CareGiverTitle' => $this->input->post('CaregiverTitle'),
'cgtNotes' => $this->input->post('CaregiverTitleNotes'),
'RevisitDate' => $this->input->post('RevisitDateFlowupPlan'),
//Authorities
'printName' => $this->input->post('caregiverPrintName'),
'Cltitle' => $this->input->post('caregiverPrintTitle'),
'clinicalSignature' => $this->input->post('clinicalSignature'),
'DateEntry' => $this->input->post('clinicalSignatureDate')
);
if(isset($_POST['therapy_type_value'])){
$data['type_of_therapy_value'] = $this->input->post('therapy_type_value');
}
if(isset($_POST['type_device_value'])){
$data['types_of_device_access_value'] = $this->input->post('type_device_value');
}
if(isset($_POST['type_accAssment_value'])){
$data['accessAssessmentValue'] = $this->input->post('type_accAssment_value');
}
if(isset($_POST['type_action_value'])){
$data['action_value'] = $this->input->post('type_action_value');
}
if(isset($_POST['pump_rate_value'])){
$data2['pumpRateValue'] = $this->input->post('pump_rate_value');
}
if(isset($_POST['CvacRhythm'])){
$data2['cardiovascular_rhythm'] = $this->input->post('CvacRhythm');
}
if(isset($_POST['respBreathSound'])){
$data2['respiratory_value'] = $this->input->post('respBreathSound');
}
if(isset($_POST['ENDOCRINE'])){
$data2['endoCrine'] = $this->input->post('ENDOCRINE');
}
if(isset($_POST['ARprom'])){
$data2['encourage_p_rom_exa_extrimist'] = $this->input->post('ARprom');
}
if(isset($_POST['painDeflict'])){
$data2['pain'] = $this->input->post('painDeflict');
}
if(isset($_POST['painQuality'])){
$data2['pla_quality'] = $this->input->post('painQuality');
}
if(isset($_POST['ventilationDeficit'])){
$data3['ventilation'] = $this->input->post('ventilationDeficit');
}
if(isset($_POST['HYGINENEnoDeficit'])){
$data4['hyginene'] = $this->input->post('HYGINENEnoDeficit');
}
if(isset($_POST['NERUOLOGICALnoDeficit'])){
$data4['neurological'] = $this->input->post('NERUOLOGICALnoDeficit');
}
if(isset($_POST['neuroStatus'])){
$data4['neuroStatus'] = $this->input->post('neuroStatus');
}
if(isset($_POST['NERUOLOGICALactivity'])){
$data4['neuroActivity'] = $this->input->post('NERUOLOGICALactivity');
}
if(isset($_POST['phycholEmotionalSocialSupportSystem'])){
$data4['phychologicalEmotionalReaction'] = $this->input->post('phycholEmotionalSocialSupportSystem');
}
if(isset($_POST['PogToGoalCArePlanReviewDisclouser'])){
$data5['carePlanReviewDisclouser'] = $this->input->post('PogToGoalCArePlanReviewDisclousers');
}
$data['patient_id'] = $_GET['id'];
$data2['patient_id'] = $_GET['id'];
$data3['patient_id'] = $_GET['id'];
$data4['patient_id'] = $_GET['id'];
$data5['patient_id'] = $_GET['id'];
$data6['patient_id'] = $_GET['id'];
$this->load->model('Assessment_model');
$this->Assessment_model->saveInitialAssessment($data,$data2,$data3,$data4,$data5,$data6);
$this->db->last_query();
redirect('initial_assessment');
}
public function ajax_type_therapy(){
$type = $_POST['val'];
switch ($type) {
case "Other type therapy":
echo "<label for='exampleInputEmail1' class='required'>Notes</label>";
echo "<textarea class='form-control' name='therapy_type_value'></textarea>";
break;
case "Type of therapy drugs":
echo "<label for='exampleInputEmail1' class='required'>Types of therapy drug</label>";
echo "<select class='form-control' name='therapy_type_value' id='inputGroupSelect01'>
<option selected value='1'>1</option>
<option value='2 weeks'>2</option>
</select>";
break;
case "Type of therapy cycle":
echo "<label for='exampleInputEmail1' class='required'>Types of therapy cycle</label>";
echo "<select class='form-control' name='therapy_type_value' id='inputGroupSelect01'>
<option selected value='1'>1</option>
<option value='2 weeks'>2</option>
</select>";
break;
case "Type of therapy formula":
echo "<label for='exampleInputEmail1' class='required'>Types of therapy formula</label>";
echo "<select class='form-control' name='therapy_type_value' id='inputGroupSelect01'>
<option selected value='1'>1</option>
<option value='2 weeks'>2</option>
</select>";
break;
case "Reason For Visit":
echo "<label for='exampleInputEmail1' class='required'>Reason For Visit</label>";
echo "<select class='form-control' name='therapy_type_value' id='inputGroupSelect01'>
<option value='Initial Home Visit (First visit to patient's residence)'>Initial Home Visit (First visit to patient's residence)</option>
<option value='Skilled Nursing Visit (Treatment)'>Skilled Nursing Visit (Treatment)</option>
<option value='Compliance (Visit to evaluate independence/compliance)'>Compliance (Visit to evaluate independence/compliance)</option>
<option value='Scheduled Visit'>Scheduled Visit</option>
<option value='Unscheduled Visit (Unplanned visit made at any time'>Unscheduled Visit (Unplanned visit made at any time</option>
<option value='during regular hrs or on-call)'>during regular hrs or on-call)</option>
</select>";
break;
}
}
public function ajax_type_device_access()
{
$type = $_POST['val'];
switch ($type)
{
case "Enteral Type":
echo "<label for='exampleInputEmail1'>Enteral Type</label>";
echo "<select class='form-control' name='type_device_value' id=''>
<option selected value='G tube'>G tube</option>
<option value='J tube'>J tube</option>
<option value='other'>Other</option>
</select>";
break;
case "PICC Exposed Length":
echo "<label for='exampleInputEmail1'>PICC Exposed Length</label>";
echo "<input type='number' class='form-control' name='type_device_value' value=''>";
break;
case "Number Of Lumens":
echo "<label for='exampleInputEmail1'>Number Of Lumens</label>";
echo "<input type='text' class='form-control' name='type_device_value' value=''>";
break;
}
}
public function ajax_type_access_assessment()
{
$type = $_POST['val'];
switch ($type)
{
case "Comments":
echo "<label for='exampleInputEmail1'>Comments</label>";
echo "<textarea class='form-control' name='type_accAssment_value' id=''></textarea>";
break;
case "CARE DID NOT OCCUR":
echo "<label for='exampleInputEmail1'>CARE DID NOT OCCUR</label>";
echo "<select class='form-control' name='type_accAssment_value' id=''>
<option value='Dual Visit'>Dual Visit</option>
<option value='Patient Refused Service'>Patient Refused Service</option>
<option value='Patient Not Home'>Patient Not Home</option>
<option value='Visit Not In Contract'>Visit Not In Contract</option>
</select>";
break;
case "NON-BILLABLE VISIT":
echo "<label for='exampleInputEmail1'>NON-BILLABLE VISIT</label>";
echo "<select class='form-control' name='type_accAssment_value' id=''>
<option value='Dual Visit'>Dual Visit</option>
<option value='Patient Refused Service'>Patient Refused Service</option>
<option value='Patient Not Home'>Patient Not Home</option>
<option value='Visit Not In Contract'>Visit Not In Contract</option>
<option value='Pre-Discharge Visit'>Pre-Discharge Visit</option>
<option value='Level 2 or 4 Nursing Visit'>Level 2 or 4 Nursing Visit</option>
<option value='Deliver/Pick-Up Visit'>Deliver/Pick-Up Visit</option>
</select>";
break;
}
}
public function ajax_action_box()
{
$type = $_POST['val'];
$this->load->model('Assessment_model');
$accessType = $this->Assessment_model->getAccessType();
switch ($type)
{
// case "N/A":
// case "Injection Cap Device Change":
case "Huber Device Accessed":
case "Huber Device Deaccessed":
case "Huber Device Flushed without Reistance":
// case "Access To Vein":
// case "Device Name":
// case "Device Size":
case "Subcutaneous Site Change":
case "Subcutaneous Location":
case "Subcutaneous Name":
case "Subcutaneous Site":
case "Pump Function Model Number":
echo "<label for='exampleInputEmail1'>{$type}</label>";
echo "<input type='text' class='form-control' name='type_action_value' id=''>";
break;
case "Lab Work Obtained":
case "Peripheral Site":
case "Via Central Line":
echo "<label for='exampleInputEmail1'>{$type}</label>";
echo "<div class='form-check'>
<input class='form-check-input' type='radio' name='type_action_value' id='radio' value='option1' checked>
<label class='form-check-label' for='YES'>
YES
</label>
</div>
<div class='form-check'>
<input class='form-check-input' type='radio' name='type_action_value' id='radio' value='option2'>
<label class='form-check-label' for='NO'>
NO
</label>
</div>";
break;
case "Dressing Change":
echo "<label for='exampleInputEmail1'>{$type}</label>";
echo "<select class='form-control' name='type_action_value' id=''>
<option value='Sterile'>Sterile</option>
<option value='Gauze'>Gauze</option>
<option value='Transparent'>Transparent</option>
</select>";
break;
case "Blood Return":
echo "<label for='exampleInputEmail1'>{$type}</label>";
echo "<select class='form-control' name='type_action_value' id=''>
<option value='N/A'>N/A</option>
<option value='Yes'>Yes</option>
<option value='No'>No</option>
</select>";
break;
case "Pump Function":
echo "<label for='exampleInputEmail1'>{$type}</label>";
echo "<select class='form-control' name='type_action_value' id=''>
<option value='Flogard'>Flogard</option>
<option value='Curlin'>Curlin</option>
<option value='Cadd'>Cadd</option>
</select>";
break;
case "Pump Function Model Number":
echo "<label for='exampleInputEmail1'>{$type}</label>";
echo "<input type='text' class='form-control' name='type_action_value' id=''>";
break;
case "Lab Sheet Tracking Sticker":
case "Huber Device Type":
echo "<label for='exampleInputEmail1'>{$type}</label>";
echo "<textarea class='form-control' name='type_action_value' id=''></textarea>";
break;
case "Access Type":
echo "<label for='exampleInputEmail1'>{$type}</label>";
echo "<select class='form-control' name='type_action_value' id=''>";
foreach ($accessType as $value) {
echo "<option value='<?php echo $value->name; ?>'>{$value->name}</option>";
}
echo "</select>";
break;
case "Flushed With 0.9% Nacl":
case "Flushed With Heparin":
echo "<div class='col-lg-4'>
<label for='exampleInputEmail1' >Unit</label>
<input type='text' class='form-control' name='type_action_value[]'>
<label for='exampleInputEmail1' >ML</label>
<input type='text' class='form-control' name='type_action_value[]'>
<label for='exampleInputEmail1' >Times Daily</label>
<input type='text' class='form-control' name='type_action_value[]'>
</div>";
break;
}
}
public function ajax_pump_rate()
{
$type = $_POST['val'];
switch ($type)
{
case "Mg":
echo "<label for='exampleInputEmail1'>{$type}</label>";
echo "<input type='text' class='form-control' name='pump_rate_value' id=''>";
break;
case "ml":
echo "<label for='exampleInputEmail1'>{$type}</label>";
echo "<input type='text' class='form-control' name='pump_rate_value' id=''>";
break;
case "times per hour":
echo "<label for='exampleInputEmail1'>{$type}</label>";
echo "<input type='text' class='form-control' name='pump_rate_value' id=''>";
break;
case "times daily":
echo "<label for='exampleInputEmail1'>{$type}</label>";
echo "<input type='text' class='form-control' name='pump_rate_value' id=''>";
break;
}
}
public function getPatientAssessment()
{
$pid = $_GET['pid'];
// echo "hello";
$this->load->model('Assessment_model');
$datas = $this->Assessment_model->getWhereAssessment($pid)[0];
$mdata['data'] = $datas;
$this->load->view('home/dashboard'); // just the header file
$this->load->view('patientView',$mdata);
// $this->load->view('home/master_assets');
$this->load->view('home/footer'); // just the header file
}
}
/* End of file nurse.php */
/* Location: ./application/modules/nurse/controllers/nurse.php */