예제 #1
0
        }
        $sTemp = $sTemp . '>';
        if (isset(${$dis_type}['LD_var']) && !empty(${$dis_type}['LD_var'])) {
            $sTemp = $sTemp . ${$dis_type}['LD_var'];
        } else {
            $sTemp = $sTemp . $dis_type['name'];
        }
        $sTemp = $sTemp . '<br>';
    }
}
$smarty->assign('sDischargeTypes', $sTemp);
$obj_diag = new Diagnostics();
$case_arr = $obj_diag->GetAllCasesFromPIDbyDate($enc_obj->PID());
$smarty->assign('LDNotes', $LDLastDiagnosis);
while (list($x, $v) = each($case_arr)) {
    $case_data = $obj_diag->GetCase($x);
    $case_list = $case_list . '<b>' . date('Y-m-d', $case_data['timestamp']) . ':</b> ' . $v . ' - ' . $obj_diag->get_icd10_description_from_code($v) . '<br>';
    if ($casecount++ > 3) {
        break;
    }
}
if (!$case_list) {
    $case_list = $LDNoDiagnosesAvailable;
}
$smarty->assign('diagnosis', nl2br($case_list));
$smarty->assign('LDNurse', $LDNurse);
$smarty->assign('encoder', $encoder);
if (!($mode == 'release' && $released)) {
    $smarty->assign('bShowValidator', TRUE);
    $smarty->assign('pbSubmit', '<input type="submit" style="height:35;width:100" value="' . $LDRelease . '" >');
    $smarty->assign('sValidatorCheckBox', '<input type="checkbox" name="sure" value="1">');