예제 #1
0
    require_once $root_path . 'include/care_api_classes/class_department.php';
    # Create encounter object
    $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();
    }
}
예제 #2
0
$newdata = 1;
$target = 'archiv';
if (!AUTOSHOW_ONERESULT) {
    include $root_path . 'include/care_api_classes/class_encounter.php';
    include $root_path . 'include/care_api_classes/class_ward.php';
    include $root_path . 'include/care_api_classes/class_insurance.php';
    /* Create encounter object */
    $encounter_obj = new Encounter();
    /* Load the wards info */
    $ward_obj = new Ward();
    $items = 'nr,name';
    $ward_info =& $ward_obj->getAllWardsItemsObject($items);
    /* Create new person's insurance object */
    $insurance_obj = new Insurance();
    /* Get the insurance classes */
    $insurance_classes =& $insurance_obj->getInsuranceClassInfoObject($root_path . 'include/care_api_classes/class_nr,name,LD_var');
    /* Get all encounter classes */
    $encounter_classes = $encounter_obj->AllEncounterClassesObject();
    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();
    }
}