コード例 #1
0
ファイル: FhirSync.php プロジェクト: apelon-ohie/ihris-site
                } else {
                    alertDanger('Sync Failed');
                }
                break;
            case 'syncCounties':
                if ($is->insertCounties($valueset)) {
                    alert('Sync was OK!');
                } else {
                    alertDanger('Sync Failed');
                }
                break;
            case 'syncFacilities':
                if ($is->insertFacility($valueset)) {
                    alert('Sync OK!');
                } else {
                    alertDanger('Sync Failed');
                }
                break;
            case 'syncPositions':
                if ($is->insertPosition($valueset)) {
                    alert('Sync OK!');
                } else {
                    alerDangert('Sync Failed');
                }
                break;
            default:
                echo 'No vaiable action was set';
                break;
        }
    }
}
コード例 #2
0
ファイル: index.php プロジェクト: vaskaloidis/ohie-fhir-sync
            case 'syncFacilities':
                if ($is->insertFacility($valueset)) {
                    alert('Sync OK!');
                } else {
                    alertDanger('Facility Sync Failed');
                }
                break;
            case 'syncPositions':
                if ($is->insertPosition($valueset)) {
                    alert('Sync OK!');
                } else {
                    alerDanger('Position Sync Failed');
                }
                break;
            default:
                alertDanger('No vaiable action was set');
                break;
        }
    }
}
//BROWSE
function browsePositions()
{
    $table_columns = array(0 => "id", 1 => "parent", 2 => "i2ce_hidden", 3 => "i2ce_hidden", 4 => "name");
    startTable($table_columns);
    global $is;
    foreach ($is->fetchPositions() as $row) {
        echo '<tr>';
        foreach ($table_columns as $tc) {
            echo '<td>' . $row[$tc] . '</td>';
        }