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 ""; echo ""; break; case "Type of therapy drugs": echo ""; echo ""; break; case "Type of therapy cycle": echo ""; echo ""; break; case "Type of therapy formula": echo ""; echo ""; break; case "Reason For Visit": echo ""; echo ""; break; } } public function ajax_type_device_access() { $type = $_POST['val']; switch ($type) { case "Enteral Type": echo ""; echo ""; break; case "PICC Exposed Length": echo ""; echo ""; break; case "Number Of Lumens": echo ""; echo ""; break; } } public function ajax_type_access_assessment() { $type = $_POST['val']; switch ($type) { case "Comments": echo ""; echo ""; break; case "CARE DID NOT OCCUR": echo ""; echo ""; break; case "NON-BILLABLE VISIT": echo ""; echo ""; 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 ""; echo ""; break; case "Lab Work Obtained": case "Peripheral Site": case "Via Central Line": echo ""; echo "