*/ define('LANG_FILE', 'nursing.php'); $local_user = '******'; require_once $root_path . 'include/inc_front_chain_lang.php'; if ($edit && !$_COOKIE[$local_user . $sid]) { header('Location:' . $root_path . 'language/' . $lang . '/lang_' . $lang . '_invalid-access-warning.php'); exit; } $thisfile = 'nursing-station-patientdaten-todo.php'; $breakfile = "nursing-station-patientdaten.php?sid={$sid}&lang={$lang}&station={$station}&pn={$pn}&edit={$edit}"; /* Create encounter object */ require_once $root_path . 'include/care_api_classes/class_encounter.php'; $enc_obj = new Encounter(); /* Create nursing notes object */ require_once $root_path . 'include/care_api_classes/class_notes_doctors.php'; $report_obj = new DoctorsNotes(); /* Load global configs */ include_once $root_path . 'include/care_api_classes/class_globalconfig.php'; $GLOBAL_CONFIG = array(); $glob_obj = new GlobalConfig($GLOBAL_CONFIG); $glob_obj->getConfig('patient_%'); /* Load date formatter */ include_once $root_path . 'include/inc_date_format_functions.php'; if ($mode == 'save') { if ($dateput && $timeput && $berichtput && $author || $dateput2 && $berichtput2 && $author2) { // Load the editor functions include_once $root_path . 'include/inc_editor_fx.php'; // Load the visual signalling functions include_once $root_path . 'include/inc_visual_signalling_fx.php'; if ($dateput && $timeput && $berichtput && $author) { if ($dateput) {
private function addDoctorsNoteData($params, $tokens, $allNeededInfo) { $DoctorsNotes = new DoctorsNotes(); $data = $DoctorsNotes->getDoctorsNote($params->docNoteid); if ($data === false) { return $allNeededInfo; } $info = ['[DOC_NOTE_ID]' => $data['id'], '[DOC_NOTE_CREATE_DATE]' => $data['create_date'], '[DOC_NOTE_ORDER_DATE]' => $data['order_date'], '[DOC_NOTE_FROM_DATE]' => $data['from_date'], '[DOC_NOTE_TO_DATE]' => $data['to_date'], '[DOC_NOTE_RESTRICTIONS]' => $this->arrayToOrderedList($data['restrictions']), '[DOC_NOTE_COMMENTS]' => $data['comments']]; unset($referral); foreach ($tokens as $i => $tok) { if (isset($info[$tok]) && ($allNeededInfo[$i] == '' || $allNeededInfo[$i] == null)) { $allNeededInfo[$i] = $info[$tok]; } } return $allNeededInfo; }