case '2':
                $full_en = $pn + $GLOBAL_CONFIG['patient_outpatient_nr_adder'];
                break;
            default:
                $full_en = $pn + $GLOBAL_CONFIG['patient_inpatient_nr_adder'];
        }
        if ($enc_obj->is_loaded) {
            $result =& $enc_obj->encounter;
            $rows = $enc_obj->record_count;
        }
    } else {
        echo "{$sql}<br>{$LDDbNoRead}";
        $mode = '?';
    }
    // Load the nursing and effectivity reports in one instance
    $dd_report =& $report_obj->getDirectivesAndInquiries($pn);
    // Load the date range
    $dd_date_range =& $report_obj->getDoctorsDirectivesDateRange($pn);
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('nursing');
# Title in toolbar
$smarty->assign('sToolbarTitle', "{$LDDocsPrescription} {$station}");
# hide return button
$smarty->assign('pbBack', FALSE);