Ejemplo n.º 1
0
    $encounter_obj = new Encounter();
    # Load the wards info
    $ward_obj = new Ward();
    $items = 'nr,name';
    $ward_info =& $ward_obj->getAllWardsItemsObject($items);
    # Load the departments info
    $dept_obj = new Department();
    $medical_depts = $dept_obj->getAllMedical();
    # Get all encounter classes
    $encounter_classes = $encounter_obj->AllEncounterClassesObject();
    # Get the insurance classes */
    # Create new person�s insurance object */
    $insurance_obj = new Insurance();
    $insurance_classes =& $insurance_obj->getInsuranceClassInfoObject('class_nr,LD_var,name');
    /* Load the discharge types */
    $discharge_types =& $encounter_obj->getDischargeTypesData();
    if (!$GLOBAL_CONFIG['patient_service_care_hide']) {
        # Get the care service classes
        $care_service = $encounter_obj->AllCareServiceClassesObject();
    }
    if (!$GLOBAL_CONFIG['patient_service_room_hide']) {
        # Get the room service classes
        $room_service = $encounter_obj->AllRoomServiceClassesObject();
    }
    if (!$GLOBAL_CONFIG['patient_service_att_dr_hide']) {
        # Get the attending doctor service classes
        $att_dr_service = $encounter_obj->AllAttDrServiceClassesObject();
    }
}
# Load GUI page
require './gui_bridge/default/gui_aufnahme_list.php';
Ejemplo n.º 2
0
            exit;
        }
    }
    include_once $root_path . 'include/care_api_classes/class_globalconfig.php';
    $GLOBAL_CONFIG = array();
    $glob_obj = new GlobalConfig($GLOBAL_CONFIG);
    $glob_obj->getConfig('patient_%');
    $glob_obj->getConfig('person_%');
    $result = $enc_obj->encounter;
    /* Check whether config foto path exists, else use default path */
    $default_photo_path = 'fotos/registration';
    $photo_filename = $result['photo_filename'];
    $photo_path = is_dir($root_path . $GLOBAL_CONFIG['person_foto_path']) ? $GLOBAL_CONFIG['person_foto_path'] : $default_photo_path;
    require_once $root_path . 'include/inc_photo_filename_resolve.php';
    /* Load the discharge types */
    $discharge_types = $enc_obj->getDischargeTypesData();
    if (!isset($dept) || empty($dept)) {
        # Create nursing notes object
        include_once $root_path . 'include/care_api_classes/class_department.php';
        $dept_obj = new Department();
        $dept = $dept_obj->FormalName($dept_nr);
    }
}
# 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('common');