case '1': $full_en = ($pn + $GLOBAL_CONFIG['patient_inpatient_nr_adder']); break; case '2': $full_en = ($pn + $GLOBAL_CONFIG['patient_outpatient_nr_adder']); break; default: $full_en = ($pn + $GLOBAL_CONFIG['patient_inpatient_nr_adder']); } */ $full_en = $pn; if ($enc_obj->is_loaded) { $result =& $enc_obj->encounter; $rows = $enc_obj->record_count; /* Create charts object */ include_once $root_path . 'include/care_api_classes/class_charts.php'; $charts_obj = new Charts(); // get Allergy notes type = 22 $allergy =& $charts_obj->getChartNotes($pn, 22); // get Diagnosis notes type = 12 $diagnosis =& $charts_obj->getChartNotes($pn, 12); // get extra diagnosis notes type = 14 $x_diagnosis =& $charts_obj->getChartNotes($pn, 14); // get anticoag notes type = 10 $anticoag_notes =& $charts_obj->getChartNotes($pn, 10); // get additional notes type = 11 $lot_mat =& $charts_obj->getChartNotes($pn, 11); // get daily Diet plans $diet =& $charts_obj->getChartDailyDietPlans($pn, $date_start, $date_end); // get daily main notes (diag/therapy) $main_notes = $charts_obj->getChartDailyMainNotes($pn, $date_start, $date_end); // get daily etc notes (pt-atg-etc) $daily_etc = $charts_obj->getChartDailyEtcNotes($pn, $date_start, $date_end); // get daily anticoag notes (diag/therapy)
case "kg_atg_etc": $title = $LDPtAtgEtcTxt; //$element="kg_atg_etc"; $notes_type_nr = 8; break; } if ($mode == 'save' && trim($notes) != '') { $_POST['encounter_nr'] = $pn; $_POST['personell_name'] = $_SESSION['sess_user_name']; if ($charts_obj->saveChartNotesFromArray($_POST, $notes_type_nr)) { header("location:{$thisfile}?sid={$sid}&lang={$lang}&edit={$edit}&saved=1&pn={$pn}&station={$station}&winid={$winid}&yr={$yr}&mo={$mo}&dy={$dy}&dystart={$dystart}&dyname={$dyname}"); } } else { // end of if(mode==save) $count = 0; $chartnotes = $charts_obj->getChartNotes($pn, $notes_type_nr); if (is_object($chartnotes)) { $count = $chartnotes->RecordCount(); include_once $root_path . 'include/inc_editor_fx.php'; include_once $root_path . 'include/inc_date_format_functions.php'; } } ?> <?php html_rtl($lang); ?> <HEAD> <?php echo setCharSet(); ?>