haovn577 wrote on Monday, June 04, 2012:
and I have a problem, I thinks when install by Adminstrator->Other->RxNorm->install, it stop at step 3 (see code below) because I just see :
Copying the database file. This will take some time..
Extracting the file. This will take some time...
Loading the files into the database. This will take some time...
and it stop here…. I dont know cause?
Code in file standard_tables_manage.php
// 1. copy the file to temp directory
echo htmlspecialchars( xl(‘Copying the database file. This will take some time…’), ENT_NOQUOTES).“<br>”;
if (!temp_copy($file_revision_path,$mode)) {
echo htmlspecialchars( xl(‘ERROR: Unable to copy the file.’), ENT_NOQUOTES).“<br>”;
temp_dir_cleanup($mode);
exit;
}
// 2. unarchive the file
echo htmlspecialchars( xl(‘Extracting the file. This will take some time…’), ENT_NOQUOTES).“<br>”;
if (!temp_unarchive($file_revision_path,$mode)) {
echo htmlspecialchars( xl(‘ERROR: Unable to extract the file.’), ENT_NOQUOTES).“<br>”;
temp_dir_cleanup($mode);
exit;
}
// 3. load the database
echo htmlspecialchars( xl(‘Loading the files into the database. This will take some time…’), ENT_NOQUOTES).“<br>”;
if ($mode == ‘rxnorm’) {
if (!rxnorm_import(IS_WINDOWS)) {
echo htmlspecialchars( xl(‘ERROR: Unable to load the file into the database.’), ENT_NOQUOTES).“<br>”;
temp_dir_cleanup($mode);
exit;
}
}
else { //$mode == ‘snomed’
if (!snomed_import()) {
echo htmlspecialchars( xl(‘ERROR: Unable to load the file into the database.’), ENT_NOQUOTES).“<br>”;
temp_dir_cleanup($mode);
exit;
}
}
// 4. set the revision version in the database
echo htmlspecialchars( xl(‘Setting the version number in the database…’), ENT_NOQUOTES).“<br>”;
if (!update_tracker_table($mode,$file_revision_date)) {
echo htmlspecialchars( xl(‘ERROR: Unable to set the version number.’), ENT_NOQUOTES).“<br>”;
temp_dir_cleanup($mode);
exit;
}
// done, so clean up the temp directory
if ($pending_new) {
echo “<b>”.htmlspecialchars( xl(‘Successfully installed the database.’), ENT_NOQUOTES).“</b><br>”;
}
else { //$pending_upgrade
echo “<b>”.htmlspecialchars( xl(‘Successfully upgraded the database.’), ENT_NOQUOTES).“</b><br>”;
}
temp_dir_cleanup($mode);
}