Beispiel #1
0
        }
    }
    // else {print "<p>$sql$LDDbNoRead"; exit;} /* Remove comment for debugging*/
    include_once $root_path . 'include/inc_date_format_functions.php';
    //$date_format=getDateFormat($link,$DBLink_OK);
    /* Get the patient global configs */
    include_once $root_path . 'include/care_api_classes/class_globalconfig.php';
    $glob_obj = new GlobalConfig($GLOBAL_CONFIG);
    $glob_obj->getConfig('patient_%');
    # Create insurance object
    include_once $root_path . 'include/care_api_classes/class_insurance.php';
    $ins_obj = new Insurance();
    include_once $root_path . 'include/care_api_classes/class_ward.php';
    $obj = new Ward();
    # Get location data
    $location =& $obj->EncounterLocationsInfo($en);
    //   $result['date_birth']=formatDate2Local($result['date_birth'],$date_format);
} else {
    print "{$LDDbNoLink}<br>{$sql}<br>";
}
switch ($result['encounter_class_nr']) {
    case '1':
        $full_en = $en + $GLOBAL_CONFIG['patient_inpatient_nr_adder'];
        $result['encounter_class'] = $LDStationary;
        break;
    case '2':
        $full_en = $en + $GLOBAL_CONFIG['patient_outpatient_nr_adder'];
        $result['encounter_class'] = $LDAmbulant;
    default:
        $full_en = $en + $GLOBAL_CONFIG['patient_inpatient_nr_adder'];
        $result['encounter_class'] = $LDStationary;