diff --git a/Documentation/Setting up the Patient flow board for OpenEmr.pdf b/Documentation/Setting up the Patient flow board for OpenEmr.pdf new file mode 100644 index 00000000000..65c6001631b Binary files /dev/null and b/Documentation/Setting up the Patient flow board for OpenEmr.pdf differ diff --git a/custom/patient_tracker.php b/custom/patient_tracker.php new file mode 100644 index 00000000000..152c15cfe32 --- /dev/null +++ b/custom/patient_tracker.php @@ -0,0 +1,299 @@ + + * + * LICENSE: This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 3 + * of the License, or (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see ;. + * + * @package OpenEMR + * @author Terry Hill + * @link http://www.open-emr.org + * + */ + +$fake_register_globals=false; +$sanitize_all_escapes=true; + +require_once("../interface/globals.php"); +require_once("$srcdir/patient.inc"); +require_once "$srcdir/appointments.inc.php"; +require_once("$srcdir/formatting.inc.php"); +require_once("$srcdir/options.inc.php"); + +//$where = ''; +$firsttime = 1; + +?> + + + + + + + + + + + + +
+ +
+ + + + + +

+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + ') { + echo text($appointment['roomnumber']) ; + } + ?> + + + + + + ) " + > + + + + + + + + + + + + + +
+ +
+
+ + diff --git a/custom/patient_tracker_status.php b/custom/patient_tracker_status.php new file mode 100644 index 00000000000..84e9a942bdf --- /dev/null +++ b/custom/patient_tracker_status.php @@ -0,0 +1,197 @@ + + * + * LICENSE: This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 3 + * of the License, or (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see ;. + * + * @package OpenEMR + * @author Terry Hill + * @link http://www.open-emr.org + * + */ + +$fake_register_globals=false; +$sanitize_all_escapes=true; + +require_once("../interface/globals.php"); +require_once("$srcdir/options.inc.php"); + +?> + + + + + + + + + + + + + + +' || $_POST['statustype'] == '!') + { + sqlStatement("UPDATE patient_tracker SET " . + "user =?, " . + "checkoutdatetime =? , " . + "checkoutuser =?, " . + "status =? " . + "WHERE id =? AND date =?", array($username,$track_date,$username,$status,$record_id,$today)); + } + + if ($_POST['statustype'] == 'N' AND $$rmnum != ' ') + { + if (strlen($rmnum) != 0) { + sqlStatement("UPDATE patient_tracker SET " . + "user =?, " . + "status =?, " . + "nurseseendatetime =? ," . + "nurseseenuser =?, " . + "drseendatetime =? " . + "WHERE id =? AND date =?", array($username,$status,$track_date,$username,$fill_dte,$record_id,$today)); + } + else + { + $status = $oldstatus; + die(xlt("Patient must have a room assigned in order to proceed.")); + } + } + + if ($_POST['statustype'] == 'D' AND $$rmnum != ' ') + { + if (strlen($rmnum) != 0) { + sqlStatement("UPDATE patient_tracker SET " . + "user =?, " . + "status =?, " . + "drseenuser =?, " . + "drseendatetime =? " . + "WHERE id =? AND date =?", array($username,$status,$username,$track_date,$record_id,$today)); + } + else + { + $status = $oldstatus; + die(xlt("Patient must have a room assigned in order to proceed.")); + } + } + + if ($_POST['statustype'] == '<') + { + sqlStatement("UPDATE patient_tracker SET " . + "user =?, " . + "roomnumber =? ," . + "status =?, " . + "inroomuser =?, " . + "inroomdatetime =? " . + "WHERE id =? AND date =?", array($username,$theroom,$status,$username,$track_date,$record_id,$today)); + } + + if (strlen($status) != 0) + { + sqlStatement("UPDATE openemr_postcalendar_events SET " . + "pc_apptstatus =? " . + "where pc_pid =? AND pc_eventdate =? AND pc_startTime =? ", array($status,$patient_id,$today,$appttime)); + } + echo "\n\n\n"; + exit(); + } + + $row = sqlQuery("select fname, lname " . + "from patient_data where pid =? limit 1" , array($patient_id)); + + $srow = sqlQuery("select pc_apptstatus as status, pc_startTime as start " . + "from openemr_postcalendar_events where pc_pid =? AND pc_eventdate =? limit 1" , array($patient_id,$today)); + +?> +
+
+ +

+ + :
+ +

+ :
+ " >

+ + + + +
+ +   + +
+ + + +
+
+ + diff --git a/interface/main/calendar/add_edit_event.php b/interface/main/calendar/add_edit_event.php index c510ae902d8..547d16ccbab 100644 --- a/interface/main/calendar/add_edit_event.php +++ b/interface/main/calendar/add_edit_event.php @@ -129,20 +129,102 @@ function DOBandEncounter() global $event_date,$info_msg; // Save new DOB if it's there. $patient_dob = trim($_POST['form_dob']); + $tmph = $_POST['form_hour'] + 0; + $tmpm = $_POST['form_minute'] + 0; + if ($_POST['form_ampm'] == '2' && $tmph < 12) $tmph += 12; + $appttime = "$tmph:$tmpm:00"; + $track_date = date("Y-m-d H:i:s"); + $tkpid = $_POST['form_pid']; + $tkprovider = $_POST['form_provider']; + $tkstatus = $_POST['form_apptstatus']; + $fill_dte = "0000-00-00 00:00:00"; + if ($patient_dob && $_POST['form_pid']) { sqlStatement("UPDATE patient_data SET DOB = ? WHERE " . "pid = ?", array($patient_dob,$_POST['form_pid']) ); } - + $tmprow = sqlQuery("SELECT username, facility, facility_id FROM users WHERE id = ?", array($_SESSION["authUserID"]) ); + $username = $tmprow['username']; // Auto-create a new encounter if appropriate. // - if ($GLOBALS['auto_create_new_encounters'] && $_POST['form_apptstatus'] == '@' && $event_date == date('Y-m-d')) + if ($GLOBALS['auto_create_new_encounters'] && ($_POST['form_apptstatus'] == '@' || $_POST['form_apptstatus'] == '~') && $event_date == date('Y-m-d')) { + $encounter = todaysEncounterCheck($_POST['form_pid'], $event_date, $_POST['form_comments'], $_POST['facility'], $_POST['billing_facility'], $_POST['form_provider'], $_POST['form_category'], false); if($encounter){ $info_msg .= xl("New encounter created with id"); $info_msg .= " $encounter"; } + sqlInsert("INSERT INTO patient_tracker SET " . + "user = ?, " . + "date = ?, " . + "pid = ?, " . + "origappt = ?, " . + "provider = ?, " . + "status = ?, " . + "arrivedatetime = ?, " . + "arriveuser = ?, " . + "encnum = ? ", + array($username,$event_date,$tkpid,$appttime,$tkprovider,$tkstatus,$track_date,$username,$encounter) + ); + } + + if (($_POST['form_apptstatus'] == 'x' || $_POST['form_apptstatus'] == '%' || $_POST['form_apptstatus'] == '?') && $event_date == date('Y-m-d')) + { + sqlStatement("INSERT INTO patient_tracker SET " . + "user =?, " . + "date =?, " . + "pid =?, " . + "origappt =? , " . + "provider =?, " . + "checkoutuser =?, " . + "status =?, " . + "checkoutdatetime =? ", + array($username,$event_date,$tkpid,$appttime,$tkprovider,$username,$tkstatus,$track_date) ) ; + } + +// if ($_POST['form_apptstatus'] == '!' && $event_date == date('Y-m-d')) +// { +// sqlStatement("UPDATE patient_tracker SET " . +// "user = '$username', " . +// "checkoutuser = '$username', " . +// "status = '$tkstatus', " . +// "checkoutdatetime = '$track_date' " . +// "WHERE pid = '$tkpid' AND date = '$event_date'"); + +// } + + if (($_POST['form_apptstatus'] == '>' || $_POST['form_apptstatus'] == '!') && $event_date == date('Y-m-d')) + { + sqlStatement("UPDATE patient_tracker SET " . + "user =?, " . + "checkoutdatetime =? , " . + "checkoutuser =?, " . + "status =? " . + "WHERE id =? AND date =?", array($username,$track_date,$username,$status,$record_id,$track_date)); + } + + if ($_POST['form_apptstatus'] == 'N' && $event_date == date('Y-m-d')) + { + sqlStatement("UPDATE patient_tracker SET " . + "user =?, " . + "status =?, " . + "nurseseendatetime =? ," . + "nurseseenuser =?, " . + "drseendatetime =? " . + "WHERE id =? AND date =?", array($username,$status,$track_date,$username,$fill_dte,$record_id,$track_date)); + + } + + if ($_POST['form_apptstatus'] == 'D' && $event_date == date('Y-m-d')) + { + sqlStatement("UPDATE patient_tracker SET " . + "user =?, " . + "status =?, " . + "drseenuser =?, " . + "drseendatetime =? " . + "WHERE id =? AND date =?", array($username,$status,$username,$track_date,$record_id,$track_date)); + } } //================================================================================================================ diff --git a/interface/main/left_nav.php b/interface/main/left_nav.php index 8a4dd481c3d..2909e1cfaac 100644 --- a/interface/main/left_nav.php +++ b/interface/main/left_nav.php @@ -415,6 +415,10 @@ function(data) { $(document).ready(function (){ getReminderCount();// parent.loadedFrameCount += 1; + + $("input[name=cb_bot]").trigger('click'); + toggleFrame(2); + }) // end of tajemo work dated reminders counter @@ -1257,7 +1261,19 @@ function selpopup(selobj) { - + +
  • +
      + + +
    +
  • + diff --git a/interface/super/edit_globals.php b/interface/super/edit_globals.php index 0624ee58b38..5014fedec54 100644 --- a/interface/super/edit_globals.php +++ b/interface/super/edit_globals.php @@ -259,6 +259,7 @@ function checkBackgroundServices(){ + @@ -422,6 +423,13 @@ function validate_file(){ echo " \n"; } + else if ($fldtype == 'colortext') { + if ($_GET['mode'] == "user") { + $globalTitle = $globalValue; + } + echo " \n"; + } else if ($fldtype == 'pwd') { if ($_GET['mode'] == "user") { $globalTitle = $globalValue; diff --git a/library/appointments.inc.php b/library/appointments.inc.php index 7be26a31139..94f01a8407a 100644 --- a/library/appointments.inc.php +++ b/library/appointments.inc.php @@ -31,6 +31,63 @@ 'status' => array( 'status', 'date', 'time', 'patient' ) ); +function fetchtrkrEvents( $from_date, $to_date, $where_param = null, $orderby_param = null ) +{ + +if ($_SESSION['userauthorized'] && $GLOBALS['docs_see_entire_calendar'] !='1') { + $getprovid = $_SESSION[authUserID]; + $where = + "( (e.pc_endDate >= '$from_date' AND e.pc_eventDate <= '$to_date' AND p.lname != ' ' AND e.pc_recurrtype = '1' AND e.pc_aid = '$getprovid') OR " . + "(e.pc_eventDate >= '$from_date' AND p.lname != ' ' AND e.pc_eventDate <= '$to_date' AND e.pc_aid = '$getprovid') )"; + } + else + { + $where = + "( (e.pc_endDate >= '$from_date' AND e.pc_eventDate <= '$to_date' AND p.lname != ' ' AND e.pc_recurrtype = '1') OR " . + "(e.pc_eventDate >= '$from_date' AND p.lname != ' ' AND e.pc_eventDate <= '$to_date') )"; + } + if ( $where_param ) $where .= $where_param; + + $order_by = "e.pc_eventDate, e.pc_startTime"; + if ( $orderby_param ) { + $order_by = $orderby_param; + } + + $query = "SELECT " . + "e.pc_eventDate, e.pc_endDate, e.pc_startTime, e.pc_endTime, e.pc_duration, e.pc_recurrtype, e.pc_recurrspec, e.pc_recurrfreq, e.pc_catid, e.pc_eid, " . + "e.pc_title, e.pc_hometext, e.pc_apptstatus, " . + "t.id, t.user, t.date, t.roomnumber, t.pid, t.encnum, t.status, t.origappt, t.provider, t.arrivedatetime, t.inroomdatetime, t.drseendatetime, t.nurseseendatetime, t.techseendatetime, t.checkoutdatetime, " . + "p.fname, p.mname, p.lname, p.pid, p.pubpid, p.phone_home, p.phone_cell, " . + "u.fname AS ufname, u.mname AS umname, u.lname AS ulname, u.id AS uprovider_id, " . + "c.pc_catname, c.pc_catid " . + "FROM openemr_postcalendar_events AS e " . + "LEFT OUTER JOIN patient_tracker AS t ON t.pid = e.pc_pid AND t.date = e.pc_eventDate AND e.pc_starttime = t.origappt " . + "LEFT OUTER JOIN patient_data AS p ON p.pid = e.pc_pid " . + "LEFT OUTER JOIN users AS u ON u.id = e.pc_aid " . + "LEFT OUTER JOIN openemr_postcalendar_categories AS c ON c.pc_catid = e.pc_catid " . + "WHERE $where " . + "ORDER BY $order_by"; + + + $res = sqlStatement( $query ); + $events = array(); + if ( $res ) + { + while ( $row = sqlFetchArray($res) ) + { + // if it's a repeating appointment, fetch all occurances in date range + if ( $row['pc_recurrtype'] ) { + $reccuringEvents = getRecurringEvents( $row, $from_date, $to_date ); + $events = array_merge( $events, $reccuringEvents ); + } else { + $events []= $row; + } + } + } + + return $events; +} + function fetchEvents( $from_date, $to_date, $where_param = null, $orderby_param = null ) { $where = diff --git a/library/globals.inc.php b/library/globals.inc.php index 39f7198a1c3..9c04a88c7ef 100644 --- a/library/globals.inc.php +++ b/library/globals.inc.php @@ -95,11 +95,15 @@ 'css_header', 'gbl_pt_list_page_size', 'gbl_pt_list_new_window', + 'drop_bottom', 'units_of_measurement', 'us_weight_format', 'date_display_format', 'time_display_format', 'event_color', + 'pat_trkr_timer', + 'pat_trak_top_color', + 'pat_trak_bot_color', 'erx_import_status_message'); $GLOBALS_METADATA = array( @@ -113,6 +117,7 @@ array( 'main_info.php' => xl('Calendar Screen'), '../new/new.php' => xl('Patient Search/Add Screen'), + '../../custom/patient_tracker.php?skip_timeout_reset=1' => xl('Patient Flow Board'), ), 'main_info.php', // default = calendar xl('Type of screen layout') @@ -246,7 +251,14 @@ 'http://open-emr.org/', xl('URL for OpenEMR support.') ), - + + 'drop_bottom' => array( + xl('Remove Bottom Pane'), + 'bool', // data type + '0', // default = false + xl('Removes the bottom pane by default on start up.') + ), + 'encounter_page_size' => array( xl('Encounter Page Size'), array( @@ -938,6 +950,35 @@ xl('This determines which color schema used for appointment') ), + 'pat_trkr_timer' => array( + xl('Patient Flow Board Timer Interval'), + array( + '0' => '0', + '0:10' => '10', + '0:20' => '20', + '0:30' => '30', + '0:40' => '40', + '0:50' => '50', + '0:59' => '60', + ), + '20', // default + xl('The screen refresh time in Seconds for the main Patient Flow Board Screen.').' ('.xl('Select 0 seconds to allow screen to be updated manually').')' + ), + + 'pat_trak_top_color' => array( + xl('Patient Flow Board Top Line Color'), + 'text', // data type + 'ccffff', // default + xl('This determines the color for the Top Line of the status screen in the Patient Flow Board.') + ), + + 'pat_trak_bot_color' => array( + xl('Patient Flow Board Bottom Line Color'), + 'text', // data type + 'ffffcc', // default + xl('This determines the color for the Top Line of the status screen in the Patient Flow Board.') + ), + ), // Security Tab diff --git a/library/jscolor/arrow.gif b/library/jscolor/arrow.gif new file mode 100644 index 00000000000..246478a864f Binary files /dev/null and b/library/jscolor/arrow.gif differ diff --git a/library/jscolor/cross.gif b/library/jscolor/cross.gif new file mode 100644 index 00000000000..0ee9c7ac517 Binary files /dev/null and b/library/jscolor/cross.gif differ diff --git a/library/jscolor/demo.html b/library/jscolor/demo.html new file mode 100644 index 00000000000..cb860664908 --- /dev/null +++ b/library/jscolor/demo.html @@ -0,0 +1,12 @@ + + + jscolor demo + + + + + + Click here: + + + diff --git a/library/jscolor/hs.png b/library/jscolor/hs.png new file mode 100644 index 00000000000..3d94486ceda Binary files /dev/null and b/library/jscolor/hs.png differ diff --git a/library/jscolor/hv.png b/library/jscolor/hv.png new file mode 100644 index 00000000000..1c5e01f8bce Binary files /dev/null and b/library/jscolor/hv.png differ diff --git a/library/jscolor/jscolor.js b/library/jscolor/jscolor.js new file mode 100644 index 00000000000..d56e1839d81 --- /dev/null +++ b/library/jscolor/jscolor.js @@ -0,0 +1,1010 @@ +/** + * jscolor, JavaScript Color Picker + * + * @version 1.4.4 + * @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html + * @author Jan Odvarko, http://odvarko.cz + * @created 2008-06-15 + * @updated 2014-12-09 + * @link http://jscolor.com + */ + + +var jscolor = { + + + dir : '', // location of jscolor directory (leave empty to autodetect) + bindClass : 'color', // class name + binding : true, // automatic binding via + preloading : true, // use image preloading? + + + install : function() { + jscolor.addEvent(window, 'load', jscolor.init); + }, + + + init : function() { + if(jscolor.binding) { + jscolor.bind(); + } + if(jscolor.preloading) { + jscolor.preload(); + } + }, + + + getDir : function() { + if(!jscolor.dir) { + var detected = jscolor.detectDir(); + jscolor.dir = detected!==false ? detected : 'jscolor/'; + } + return jscolor.dir; + }, + + + detectDir : function() { + var base = location.href; + + var e = document.getElementsByTagName('base'); + for(var i=0; i vs[a] ? + (-vp[a]+tp[a]+ts[a]/2 > vs[a]/2 && tp[a]+ts[a]-ps[a] >= 0 ? tp[a]+ts[a]-ps[a] : tp[a]) : + tp[a], + -vp[b]+tp[b]+ts[b]+ps[b]-l+l*c > vs[b] ? + (-vp[b]+tp[b]+ts[b]/2 > vs[b]/2 && tp[b]+ts[b]-l-l*c >= 0 ? tp[b]+ts[b]-l-l*c : tp[b]+ts[b]-l+l*c) : + (tp[b]+ts[b]-l+l*c >= 0 ? tp[b]+ts[b]-l+l*c : tp[b]+ts[b]-l-l*c) + ]; + } + drawPicker(pp[a], pp[b]); + } + }; + + + this.importColor = function() { + if(!valueElement) { + this.exportColor(); + } else { + if(!this.adjust) { + if(!this.fromString(valueElement.value, leaveValue)) { + styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage; + styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor; + styleElement.style.color = styleElement.jscStyle.color; + this.exportColor(leaveValue | leaveStyle); + } + } else if(!this.required && /^\s*$/.test(valueElement.value)) { + valueElement.value = ''; + styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage; + styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor; + styleElement.style.color = styleElement.jscStyle.color; + this.exportColor(leaveValue | leaveStyle); + + } else if(this.fromString(valueElement.value)) { + // OK + } else { + this.exportColor(); + } + } + }; + + + this.exportColor = function(flags) { + if(!(flags & leaveValue) && valueElement) { + var value = this.toString(); + if(this.caps) { value = value.toUpperCase(); } + if(this.hash) { value = '#'+value; } + valueElement.value = value; + } + if(!(flags & leaveStyle) && styleElement) { + styleElement.style.backgroundImage = "none"; + styleElement.style.backgroundColor = + '#'+this.toString(); + styleElement.style.color = + 0.213 * this.rgb[0] + + 0.715 * this.rgb[1] + + 0.072 * this.rgb[2] + < 0.5 ? '#FFF' : '#000'; + } + if(!(flags & leavePad) && isPickerOwner()) { + redrawPad(); + } + if(!(flags & leaveSld) && isPickerOwner()) { + redrawSld(); + } + }; + + + this.fromHSV = function(h, s, v, flags) { // null = don't change + if(h !== null) { h = Math.max(0.0, this.minH, Math.min(6.0, this.maxH, h)); } + if(s !== null) { s = Math.max(0.0, this.minS, Math.min(1.0, this.maxS, s)); } + if(v !== null) { v = Math.max(0.0, this.minV, Math.min(1.0, this.maxV, v)); } + + this.rgb = HSV_RGB( + h===null ? this.hsv[0] : (this.hsv[0]=h), + s===null ? this.hsv[1] : (this.hsv[1]=s), + v===null ? this.hsv[2] : (this.hsv[2]=v) + ); + + this.exportColor(flags); + }; + + + this.fromRGB = function(r, g, b, flags) { // null = don't change + if(r !== null) { r = Math.max(0.0, Math.min(1.0, r)); } + if(g !== null) { g = Math.max(0.0, Math.min(1.0, g)); } + if(b !== null) { b = Math.max(0.0, Math.min(1.0, b)); } + + var hsv = RGB_HSV( + r===null ? this.rgb[0] : r, + g===null ? this.rgb[1] : g, + b===null ? this.rgb[2] : b + ); + if(hsv[0] !== null) { + this.hsv[0] = Math.max(0.0, this.minH, Math.min(6.0, this.maxH, hsv[0])); + } + if(hsv[2] !== 0) { + this.hsv[1] = hsv[1]===null ? null : Math.max(0.0, this.minS, Math.min(1.0, this.maxS, hsv[1])); + } + this.hsv[2] = hsv[2]===null ? null : Math.max(0.0, this.minV, Math.min(1.0, this.maxV, hsv[2])); + + // update RGB according to final HSV, as some values might be trimmed + var rgb = HSV_RGB(this.hsv[0], this.hsv[1], this.hsv[2]); + this.rgb[0] = rgb[0]; + this.rgb[1] = rgb[1]; + this.rgb[2] = rgb[2]; + + this.exportColor(flags); + }; + + + this.fromString = function(hex, flags) { + var m = hex.match(/^\W*([0-9A-F]{3}([0-9A-F]{3})?)\W*$/i); + if(!m) { + return false; + } else { + if(m[1].length === 6) { // 6-char notation + this.fromRGB( + parseInt(m[1].substr(0,2),16) / 255, + parseInt(m[1].substr(2,2),16) / 255, + parseInt(m[1].substr(4,2),16) / 255, + flags + ); + } else { // 3-char notation + this.fromRGB( + parseInt(m[1].charAt(0)+m[1].charAt(0),16) / 255, + parseInt(m[1].charAt(1)+m[1].charAt(1),16) / 255, + parseInt(m[1].charAt(2)+m[1].charAt(2),16) / 255, + flags + ); + } + return true; + } + }; + + + this.toString = function() { + return ( + (0x100 | Math.round(255*this.rgb[0])).toString(16).substr(1) + + (0x100 | Math.round(255*this.rgb[1])).toString(16).substr(1) + + (0x100 | Math.round(255*this.rgb[2])).toString(16).substr(1) + ); + }; + + + function RGB_HSV(r, g, b) { + var n = Math.min(Math.min(r,g),b); + var v = Math.max(Math.max(r,g),b); + var m = v - n; + if(m === 0) { return [ null, 0, v ]; } + var h = r===n ? 3+(b-g)/m : (g===n ? 5+(r-b)/m : 1+(g-r)/m); + return [ h===6?0:h, m/v, v ]; + } + + + function HSV_RGB(h, s, v) { + if(h === null) { return [ v, v, v ]; } + var i = Math.floor(h); + var f = i%2 ? h-i : 1-(h-i); + var m = v * (1 - s); + var n = v * (1 - s*f); + switch(i) { + case 6: + case 0: return [v,n,m]; + case 1: return [n,v,m]; + case 2: return [m,v,n]; + case 3: return [m,n,v]; + case 4: return [n,m,v]; + case 5: return [v,m,n]; + } + } + + + function removePicker() { + delete jscolor.picker.owner; + document.getElementsByTagName('body')[0].removeChild(jscolor.picker.boxB); + } + + + function drawPicker(x, y) { + if(!jscolor.picker) { + jscolor.picker = { + box : document.createElement('div'), + boxB : document.createElement('div'), + pad : document.createElement('div'), + padB : document.createElement('div'), + padM : document.createElement('div'), + sld : document.createElement('div'), + sldB : document.createElement('div'), + sldM : document.createElement('div'), + btn : document.createElement('div'), + btnS : document.createElement('span'), + btnT : document.createTextNode(THIS.pickerCloseText) + }; + for(var i=0,segSize=4; iACL,2=>preferences,3=>hooks', + `obj_name` VARCHAR(255) DEFAULT NULL, + `menu_name` VARCHAR(255) DEFAULT NULL, + `path` VARCHAR(255) DEFAULT NULL +) ENGINE=InnoDB; +#EndIf + +#IfNotRow2D list_options list_id lists option_id insurance_types +INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`) VALUES ('lists','insurance_types','Insurance Types',1); +INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`) VALUES ('insurance_types','primary' ,'Primary' ,10); +INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`) VALUES ('insurance_types','secondary','Secondary',20); +INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`) VALUES ('insurance_types','tertiary' ,'Tertiary' ,30); +#EndIf + +#IfMissingColumn patient_data cmsportal_login +ALTER TABLE `patient_data` ADD COLUMN `cmsportal_login` varchar(60) NOT NULL default ''; +INSERT INTO `layout_options` (`form_id`, `field_id`, `group_name`, `title`, `seq`, `data_type`, `uor`, `fld_length`, `max_length`, `list_id`, `titlecols`, `datacols`, `default_value`, `edit_options`, `description`, `fld_rows`) VALUES + ('DEM', 'cmsportal_login', '3Choices', 'CMS Portal Login', 15, 2, 1, 30, 60, '', 1, 1, '', '', 'Login ID for the CMS Patient Portal', 0); +#EndIf + +#IfNotColumnType procedure_order control_id varchar(255) +ALTER TABLE `procedure_order` CHANGE `control_id` + `control_id` varchar(255) NOT NULL DEFAULT '' COMMENT 'This is the CONTROL ID that is sent back from lab'; +#EndIf + +#IfMissingColumn procedure_providers direction +ALTER TABLE `procedure_providers` +ADD COLUMN `direction` char(1) NOT NULL DEFAULT 'B' COMMENT 'Bidirectional or Results-only'; +#EndIf + +#IfNotColumnType billing units int(11) + ALTER TABLE `billing` CHANGE `units` `units` int(11) DEFAULT NULL; +#EndIf + +#IfNotColumnType codes units int(11) + ALTER TABLE `codes` CHANGE `units` `units` int(11) DEFAULT NULL; +#EndIf + +#IfNotRow2D list_options list_id language option_id declne_to_specfy +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'declne_to_specfy', 'Declined To Specify', 0, 0, 0); +#EndIf + +#IfNotRow2D list_options list_id ethrace option_id declne_to_specfy +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('ethrace', 'declne_to_specfy', 'Declined To Specify', 0, 0, 0); +#EndIf + +#IfNotRow2D list_options list_id race option_id declne_to_specfy +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('race', 'declne_to_specfy', 'Declined To Specify', 0, 0, 0); +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id abkhazian title Abkhazian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'abkhazian', 'Abkhazian', 10, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id abkhazian +UPDATE `list_options` SET `notes` = 'abk' WHERE `option_id` = 'abkhazian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Abkhazian +UPDATE `list_options` SET `notes` = 'abk' WHERE `title` = 'Abkhazian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id afar title Afar +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'afar', 'Afar', 20, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id afar +UPDATE `list_options` SET `notes` = 'aar' WHERE `option_id` = 'afar' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Afar +UPDATE `list_options` SET `notes` = 'aar' WHERE `title` = 'Afar' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id afrikaans title Afrikaans +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'afrikaans', 'Afrikaans', 30, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id afrikaans +UPDATE `list_options` SET `notes` = 'afr' WHERE `option_id` = 'afrikaans' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Afrikaans +UPDATE `list_options` SET `notes` = 'afr' WHERE `title` = 'Afrikaans' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id akan title Akan +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'akan', 'Akan', 40, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id akan +UPDATE `list_options` SET `notes` = 'aka' WHERE `option_id` = 'akan' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Akan +UPDATE `list_options` SET `notes` = 'aka' WHERE `title` = 'Akan' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id albanian title Albanian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'albanian', 'Albanian', 50, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id albanian +UPDATE `list_options` SET `notes` = 'alb(B)|sqi(T)' WHERE `option_id` = 'albanian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Albanian +UPDATE `list_options` SET `notes` = 'alb(B)|sqi(T)' WHERE `title` = 'Albanian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id amharic title Amharic +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'amharic', 'Amharic', 60, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id amharic +UPDATE `list_options` SET `notes` = 'amh' WHERE `option_id` = 'amharic' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Amharic +UPDATE `list_options` SET `notes` = 'amh' WHERE `title` = 'Amharic' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id arabic title Arabic +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'arabic', 'Arabic', 70, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id arabic +UPDATE `list_options` SET `notes` = 'ara' WHERE `option_id` = 'arabic' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Arabic +UPDATE `list_options` SET `notes` = 'ara' WHERE `title` = 'Arabic' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id aragonese title Aragonese +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'aragonese', 'Aragonese', 80, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id aragonese +UPDATE `list_options` SET `notes` = 'arg' WHERE `option_id` = 'aragonese' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Aragonese +UPDATE `list_options` SET `notes` = 'arg' WHERE `title` = 'Aragonese' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id armenian title Armenian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'armenian', 'Armenian', 90, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id armenian +UPDATE `list_options` SET `notes` = 'arm(B)|hye(T)' WHERE `option_id` = 'armenian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Armenian +UPDATE `list_options` SET `notes` = 'arm(B)|hye(T)' WHERE `title` = 'Armenian' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 10 option_id armenian +UPDATE `list_options` SET `seq` = 90 WHERE `option_id` = 'armenian' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 10 title Armenian +UPDATE `list_options` SET `seq` = 90 WHERE `title` = 'Armenian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id assamese title Assamese +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'assamese', 'Assamese', 100, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id assamese +UPDATE `list_options` SET `notes` = 'asm' WHERE `option_id` = 'assamese' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Assamese +UPDATE `list_options` SET `notes` = 'asm' WHERE `title` = 'Assamese' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id avaric title Avaric +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'avaric', 'Avaric', 110, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id avaric +UPDATE `list_options` SET `notes` = 'ava' WHERE `option_id` = 'avaric' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Avaric +UPDATE `list_options` SET `notes` = 'ava' WHERE `title` = 'Avaric' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id avestan title Avestan +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'avestan', 'Avestan', 120, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id avestan +UPDATE `list_options` SET `notes` = 'ave' WHERE `option_id` = 'avestan' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Avestan +UPDATE `list_options` SET `notes` = 'ave' WHERE `title` = 'Avestan' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id aymara title Aymara +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'aymara', 'Aymara', 130, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id aymara +UPDATE `list_options` SET `notes` = 'aym' WHERE `option_id` = 'aymara' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Aymara +UPDATE `list_options` SET `notes` = 'aym' WHERE `title` = 'Aymara' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id azerbaijani title Azerbaijani +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'azerbaijani', 'Azerbaijani', 140, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id azerbaijani +UPDATE `list_options` SET `notes` = 'aze' WHERE `option_id` = 'azerbaijani' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Azerbaijani +UPDATE `list_options` SET `notes` = 'aze' WHERE `title` = 'Azerbaijani' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id bambara title Bambara +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'bambara', 'Bambara', 150, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id bambara +UPDATE `list_options` SET `notes` = 'bam' WHERE `option_id` = 'bambara' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Bambara +UPDATE `list_options` SET `notes` = 'bam' WHERE `title` = 'Bambara' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id bashkir title Bashkir +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'bashkir', 'Bashkir', 160, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id bashkir +UPDATE `list_options` SET `notes` = 'bak' WHERE `option_id` = 'bashkir' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Bashkir +UPDATE `list_options` SET `notes` = 'bak' WHERE `title` = 'Bashkir' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id basque title Basque +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'basque', 'Basque', 170, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id basque +UPDATE `list_options` SET `notes` = 'baq(B)|eus(T)' WHERE `option_id` = 'basque' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Basque +UPDATE `list_options` SET `notes` = 'baq(B)|eus(T)' WHERE `title` = 'Basque' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id belarusian title Belarusian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'belarusian', 'Belarusian', 180, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id belarusian +UPDATE `list_options` SET `notes` = 'bel' WHERE `option_id` = 'belarusian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Belarusian +UPDATE `list_options` SET `notes` = 'bel' WHERE `title` = 'Belarusian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id bengali title Bengali +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'bengali', 'Bengali', 190, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id bengali +UPDATE `list_options` SET `notes` = 'ben' WHERE `option_id` = 'bengali' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Bengali +UPDATE `list_options` SET `notes` = 'ben' WHERE `title` = 'Bengali' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id bihari_languages title Bihari languages +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'bihari_languages', 'Bihari languages', 200, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id bihari_languages +UPDATE `list_options` SET `notes` = 'bih' WHERE `option_id` = 'bihari_languages' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Bihari languages +UPDATE `list_options` SET `notes` = 'bih' WHERE `title` = 'Bihari languages' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id bislama title Bislama +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'bislama', 'Bislama', 210, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id bislama +UPDATE `list_options` SET `notes` = 'bis' WHERE `option_id` = 'bislama' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Bislama +UPDATE `list_options` SET `notes` = 'bis' WHERE `title` = 'Bislama' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id bokmal_norwegian_norwegian_bok title Bokmål, Norwegian; Norwegian Bokmål +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'bokmal_norwegian_norwegian_bok', 'Bokmål, Norwegian; Norwegian Bokmål', 220, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id bokmal_norwegian_norwegian_bok +UPDATE `list_options` SET `notes` = 'nob' WHERE `option_id` = 'bokmal_norwegian_norwegian_bok' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Bokmål, Norwegian; Norwegian Bokmål +UPDATE `list_options` SET `notes` = 'nob' WHERE `title` = 'Bokmål, Norwegian; Norwegian Bokmål' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id bosnian title Bosnian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'bosnian', 'Bosnian', 230, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id bosnian +UPDATE `list_options` SET `notes` = 'bos' WHERE `option_id` = 'bosnian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Bosnian +UPDATE `list_options` SET `notes` = 'bos' WHERE `title` = 'Bosnian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id breton title Breton +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'breton', 'Breton', 240, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id breton +UPDATE `list_options` SET `notes` = 'bre' WHERE `option_id` = 'breton' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Breton +UPDATE `list_options` SET `notes` = 'bre' WHERE `title` = 'Breton' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id bulgarian title Bulgarian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'bulgarian', 'Bulgarian', 250, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id bulgarian +UPDATE `list_options` SET `notes` = 'bul' WHERE `option_id` = 'bulgarian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Bulgarian +UPDATE `list_options` SET `notes` = 'bul' WHERE `title` = 'Bulgarian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id burmese title Burmese +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'burmese', 'Burmese', 260, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id burmese +UPDATE `list_options` SET `notes` = 'bur(B)|mya(T)' WHERE `option_id` = 'burmese' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Burmese +UPDATE `list_options` SET `notes` = 'bur(B)|mya(T)' WHERE `title` = 'Burmese' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id catalan_valencian title Catalan; Valencian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, option_value ) VALUES ('language', 'catalan_valencian', 'Catalan; Valencian', 270, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id catalan_valencian +UPDATE `list_options` SET `notes` = 'cat' WHERE `option_id` = 'catalan_valencian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Catalan; Valencian +UPDATE `list_options` SET `notes` = 'cat' WHERE `title` = 'Catalan; Valencian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id central_khmer title Central Khmer +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'central_khmer', 'Central Khmer', 280, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id central_khmer +UPDATE `list_options` SET `notes` = 'khm' WHERE `option_id` = 'central_khmer' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Central Khmer +UPDATE `list_options` SET `notes` = 'khm' WHERE `title` = 'Central Khmer' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id chamorro title Chamorro +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'chamorro', 'Chamorro', 290, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id chamorro +UPDATE `list_options` SET `notes` = 'cha' WHERE `option_id` = 'chamorro' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Chamorro +UPDATE `list_options` SET `notes` = 'cha' WHERE `title` = 'Chamorro' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id chechen title Chechen +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'chechen', 'Chechen', 300, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id chechen +UPDATE `list_options` SET `notes` = 'che' WHERE `option_id` = 'chechen' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Chechen +UPDATE `list_options` SET `notes` = 'che' WHERE `title` = 'Chechen' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id chichewa_chewa_nyanja title Chichewa; Chewa; Nyanja +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'chichewa_chewa_nyanja', 'Chichewa; Chewa; Nyanja', 310, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id chichewa_chewa_nyanja +UPDATE `list_options` SET `notes` = 'nya' WHERE `option_id` = 'chichewa_chewa_nyanja' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Chichewa; Chewa; Nyanja +UPDATE `list_options` SET `notes` = 'nya' WHERE `title` = 'Chichewa; Chewa; Nyanja' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id chinese title Chinese +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'chinese', 'Chinese', 320, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id chinese +UPDATE `list_options` SET `notes` = 'chi(B)|zho(T)' WHERE `option_id` = 'chinese' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Chinese +UPDATE `list_options` SET `notes` = 'chi(B)|zho(T)' WHERE `title` = 'Chinese' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 20 option_id chinese +UPDATE `list_options` SET `seq` = 320 WHERE `option_id` = 'chinese' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 20 title Chinese +UPDATE `list_options` SET `seq` = 320 WHERE `title` = 'Chinese' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id church_slavic_old_slavonic_chu title Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'church_slavic_old_slavonic_chu', 'Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic', 330, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id church_slavic_old_slavonic_chu +UPDATE `list_options` SET `notes` = 'chu' WHERE `option_id` = 'church_slavic_old_slavonic_chu' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic +UPDATE `list_options` SET `notes` = 'chu' WHERE `title` = 'Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id chuvash title Chuvash +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'chuvash', 'Chuvash', 340, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id chuvash +UPDATE `list_options` SET `notes` = 'chv' WHERE `option_id` = 'chuvash' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Chuvash +UPDATE `list_options` SET `notes` = 'chv' WHERE `title` = 'Chuvash' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id cornish title Cornish +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'cornish', 'Cornish', 350, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id cornish +UPDATE `list_options` SET `notes` = 'cor' WHERE `option_id` = 'cornish' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Cornish +UPDATE `list_options` SET `notes` = 'cor' WHERE `title` = 'Cornish' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id corsican title Corsican +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'corsican', 'Corsican', 360, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id corsican +UPDATE `list_options` SET `notes` = 'cos' WHERE `option_id` = 'corsican' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Corsican +UPDATE `list_options` SET `notes` = 'cos' WHERE `title` = 'Corsican' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id cree title Cree +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'cree', 'Cree', 370, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id cree +UPDATE `list_options` SET `notes` = 'cre' WHERE `option_id` = 'cree' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Cree +UPDATE `list_options` SET `notes` = 'cre' WHERE `title` = 'Cree' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id croatian title Croatian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'croatian', 'Croatian', 380, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id croatian +UPDATE `list_options` SET `notes` = 'hrv' WHERE `option_id` = 'croatian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Croatian +UPDATE `list_options` SET `notes` = 'hrv' WHERE `title` = 'Croatian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id czech title Czech +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'czech', 'Czech', 390, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id czech +UPDATE `list_options` SET `notes` = 'cze(B)|ces(T)' WHERE `option_id` = 'czech' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Czech +UPDATE `list_options` SET `notes` = 'cze(B)|ces(T)' WHERE `title` = 'Czech' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id danish title Danish +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'danish', 'Danish', 400, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id danish +UPDATE `list_options` SET `notes` = 'dan' WHERE `option_id` = 'danish' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Danish +UPDATE `list_options` SET `notes` = 'dan' WHERE `title` = 'Danish' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 30 option_id danish +UPDATE `list_options` SET `seq` = 400 WHERE `option_id` = 'danish' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 30 title Danish +UPDATE `list_options` SET `seq` = 400 WHERE `title` = 'Danish' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 40 option_id deaf +UPDATE `list_options` SET `seq` = 405 WHERE `option_id` = 'deaf' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 40 title Deaf +UPDATE `list_options` SET `seq` = 405 WHERE `title` = 'Deaf' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id divehi_dhivehi_maldivian title Divehi; Dhivehi; Maldivian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'divehi_dhivehi_maldivian', 'Divehi; Dhivehi; Maldivian', 410, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id divehi_dhivehi_maldivian +UPDATE `list_options` SET `notes` = 'div' WHERE `option_id` = 'divehi_dhivehi_maldivian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Divehi; Dhivehi; Maldivian +UPDATE `list_options` SET `notes` = 'div' WHERE `title` = 'Divehi; Dhivehi; Maldivian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id dutch_flemish title Dutch; Flemish +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'dutch_flemish', 'Dutch; Flemish', 420, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id dutch_flemish +UPDATE `list_options` SET `notes` = 'dut(B)|nld(T)' WHERE `option_id` = 'dutch_flemish' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Dutch; Flemish +UPDATE `list_options` SET `notes` = 'dut(B)|nld(T)' WHERE `title` = 'Dutch; Flemish' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id dzongkha title Dzongkha +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'dzongkha', 'Dzongkha', 430, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id dzongkha +UPDATE `list_options` SET `notes` = 'dzo' WHERE `option_id` = 'dzongkha' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Dzongkha +UPDATE `list_options` SET `notes` = 'dzo' WHERE `title` = 'Dzongkha' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id English title English +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'English', 'English', 440, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id English +UPDATE `list_options` SET `notes` = 'eng' WHERE `option_id` = 'English' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title English +UPDATE `list_options` SET `notes` = 'eng' WHERE `title` = 'English' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 50 option_id English +UPDATE `list_options` SET `seq` = 440 WHERE `option_id` = 'English' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 50 title English +UPDATE `list_options` SET `seq` = 440 WHERE `title` = 'English' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id esperanto title Esperanto +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'esperanto', 'Esperanto', 450, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id esperanto +UPDATE `list_options` SET `notes` = 'epo' WHERE `option_id` = 'esperanto' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Esperanto +UPDATE `list_options` SET `notes` = 'epo' WHERE `title` = 'Esperanto' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id estonian title Estonian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'estonian', 'Estonian', 460, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id estonian +UPDATE `list_options` SET `notes` = 'est' WHERE `option_id` = 'estonian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Estonian +UPDATE `list_options` SET `notes` = 'est' WHERE `title` = 'Estonian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id ewe title Ewe +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'ewe', 'Ewe', 470, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id ewe +UPDATE `list_options` SET `notes` = 'ewe' WHERE `option_id` = 'ewe' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Ewe +UPDATE `list_options` SET `notes` = 'ewe' WHERE `title` = 'Ewe' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id faroese title Faroese +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'faroese', 'Faroese', 480, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id faroese +UPDATE `list_options` SET `notes` = 'fao' WHERE `option_id` = 'faroese' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Faroese +UPDATE `list_options` SET `notes` = 'fao' WHERE `title` = 'Faroese' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 60 option_id farsi +UPDATE `list_options` SET `seq` = 485 WHERE `option_id` = 'farsi' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 60 title Farsi +UPDATE `list_options` SET `seq` = 485 WHERE `title` = 'Farsi' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id fijian title Fijian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'fijian', 'Fijian', 490, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id fijian +UPDATE `list_options` SET `notes` = 'fij' WHERE `option_id` = 'fijian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Fijian +UPDATE `list_options` SET `notes` = 'fij' WHERE `title` = 'Fijian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id finnish title Finnish +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'finnish', 'Finnish', 500, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id finnish +UPDATE `list_options` SET `notes` = 'fin' WHERE `option_id` = 'finnish' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Finnish +UPDATE `list_options` SET `notes` = 'fin' WHERE `title` = 'Finnish' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id french title French +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'french', 'French', 510, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id french +UPDATE `list_options` SET `notes` = 'fre(B)|fra(T)' WHERE `option_id` = 'french' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title French +UPDATE `list_options` SET `notes` = 'fre(B)|fra(T)' WHERE `title` = 'French' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 70 option_id french +UPDATE `list_options` SET `seq` = 510 WHERE `option_id` = 'french' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 70 title French +UPDATE `list_options` SET `seq` = 510 WHERE `title` = 'French' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id fulah title Fulah +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'fulah', 'Fulah', 520, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id fulah +UPDATE `list_options` SET `notes` = 'ful' WHERE `option_id` = 'fulah' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Fulah +UPDATE `list_options` SET `notes` = 'ful' WHERE `title` = 'Fulah' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id gaelic_scottish_gaelic title Gaelic; Scottish Gaelic +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'gaelic_scottish_gaelic', 'Gaelic; Scottish Gaelic', 530, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id gaelic_scottish_gaelic +UPDATE `list_options` SET `notes` = 'gla' WHERE `option_id` = 'gaelic_scottish_gaelic' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Gaelic; Scottish Gaelic +UPDATE `list_options` SET `notes` = 'gla' WHERE `title` = 'Gaelic; Scottish Gaelic' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id galician title Galician +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'galician', 'Galician', 540, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id galician +UPDATE `list_options` SET `notes` = 'glg' WHERE `option_id` = 'galician' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Galician +UPDATE `list_options` SET `notes` = 'glg' WHERE `title` = 'Galician' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id ganda title Ganda +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'ganda', 'Ganda', 550, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id ganda +UPDATE `list_options` SET `notes` = 'lug' WHERE `option_id` = 'ganda' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Ganda +UPDATE `list_options` SET `notes` = 'lug' WHERE `title` = 'Ganda' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id georgian title Georgian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'georgian', 'Georgian', 560, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id georgian +UPDATE `list_options` SET `notes` = 'geo(B)|kat(T)' WHERE `option_id` = 'georgian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Georgian +UPDATE `list_options` SET `notes` = 'geo(B)|kat(T)' WHERE `title` = 'Georgian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id german title German +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'german', 'German', 570, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id german +UPDATE `list_options` SET `notes` = 'ger(B)|deu(T)' WHERE `option_id` = 'german' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title German +UPDATE `list_options` SET `notes` = 'ger(B)|deu(T)' WHERE `title` = 'German' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 80 option_id german +UPDATE `list_options` SET `seq` = 570 WHERE `option_id` = 'german' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 80 title German +UPDATE `list_options` SET `seq` = 570 WHERE `title` = 'German' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id greek title Greek, Modern (1453-) +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'greek', 'Greek, Modern (1453-)', 580, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id greek +UPDATE `list_options` SET `notes` = 'gre(B)|ell(T)' WHERE `option_id` = 'greek' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Greek, Modern (1453-) +UPDATE `list_options` SET `notes` = 'gre(B)|ell(T)' WHERE `title` = 'Greek, Modern (1453-)' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Greek +UPDATE `list_options` SET `notes` = 'gre(B)|ell(T)' WHERE `title` = 'Greek' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 90 option_id greek +UPDATE `list_options` SET `seq` = 580 WHERE `option_id` = 'greek' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 90 title Greek, Modern (1453-) +UPDATE `list_options` SET `seq` = 580 WHERE `title` = 'Greek, Modern (1453-)' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 90 title Greek +UPDATE `list_options` SET `seq` = 580 WHERE `title` = 'Greek' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id guarani title Guarani +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'guarani', 'Guarani', 590, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id guarani +UPDATE `list_options` SET `notes` = 'grn' WHERE `option_id` = 'guarani' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Guarani +UPDATE `list_options` SET `notes` = 'grn' WHERE `title` = 'Guarani' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id gujarati title Gujarati +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'gujarati', 'Gujarati', 600, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id gujarati +UPDATE `list_options` SET `notes` = 'guj' WHERE `option_id` = 'gujarati' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Gujarati +UPDATE `list_options` SET `notes` = 'guj' WHERE `title` = 'Gujarati' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id haitian_haitian_creole title Haitian; Haitian Creole +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'haitian_haitian_creole', 'Haitian; Haitian Creole', 610, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id haitian_haitian_creole +UPDATE `list_options` SET `notes` = 'hat' WHERE `option_id` = 'haitian_haitian_creole' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Haitian; Haitian Creole +UPDATE `list_options` SET `notes` = 'hat' WHERE `title` = 'Haitian; Haitian Creole' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id hausa title Hausa +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'hausa', 'Hausa', 620, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id hausa +UPDATE `list_options` SET `notes` = 'hau' WHERE `option_id` = 'hausa' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Hausa +UPDATE `list_options` SET `notes` = 'hau' WHERE `title` = 'Hausa' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id hebrew title Hebrew +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'hebrew', 'Hebrew', 630, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id hebrew +UPDATE `list_options` SET `notes` = 'heb' WHERE `option_id` = 'hebrew' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Hebrew +UPDATE `list_options` SET `notes` = 'heb' WHERE `title` = 'Hebrew' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id herero title Herero +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'herero', 'Herero', 640, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id herero +UPDATE `list_options` SET `notes` = 'her' WHERE `option_id` = 'herero' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Herero +UPDATE `list_options` SET `notes` = 'her' WHERE `title` = 'Herero' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id hindi title Hindi +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'hindi', 'Hindi', 650, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id hindi +UPDATE `list_options` SET `notes` = 'hin' WHERE `option_id` = 'hindi' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Hindi +UPDATE `list_options` SET `notes` = 'hin' WHERE `title` = 'Hindi' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id hiri_motu title Hiri Motu +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'hiri_motu', 'Hiri Motu', 660, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id hiri_motu +UPDATE `list_options` SET `notes` = 'hmo' WHERE `option_id` = 'hiri_motu' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Hiri Motu +UPDATE `list_options` SET `notes` = 'hmo' WHERE `title` = 'Hiri Motu' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language option_id hmong +UPDATE `list_options` SET `notes` = 'hmn' WHERE `option_id` = 'hmong' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Hmong +UPDATE `list_options` SET `notes` = 'hmn' WHERE `title` = 'Hmong' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 100 option_id hmong +UPDATE `list_options` SET `seq` = 665 WHERE `option_id` = 'hmong' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 100 title Hmong +UPDATE `list_options` SET `seq` = 665 WHERE `title` = 'Hmong' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id hungarian title Hungarian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'hungarian', 'Hungarian', 670, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id hungarian +UPDATE `list_options` SET `notes` = 'hun' WHERE `option_id` = 'hungarian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Hungarian +UPDATE `list_options` SET `notes` = 'hun' WHERE `title` = 'Hungarian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id icelandic title Icelandic +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'icelandic', 'Icelandic', 680, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id icelandic +UPDATE `list_options` SET `notes` = 'ice(B)|isl(T)' WHERE `option_id` = 'icelandic' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Icelandic +UPDATE `list_options` SET `notes` = 'ice(B)|isl(T)' WHERE `title` = 'Icelandic' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id ido title Ido +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ( +'language', 'ido', 'Ido', 690, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id ido +UPDATE `list_options` SET `notes` = 'ido' WHERE `option_id` = 'ido' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Ido +UPDATE `list_options` SET `notes` = 'ido' WHERE `title` = 'Ido' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id igbo title Igbo +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'igbo', 'Igbo', 700, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id igbo +UPDATE `list_options` SET `notes` = 'ibo' WHERE `option_id` = 'igbo' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Igbo +UPDATE `list_options` SET `notes` = 'ibo' WHERE `title` = 'Igbo' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id indonesian title Indonesian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'indonesian', 'Indonesian', 710, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id indonesian +UPDATE `list_options` SET `notes` = 'ind' WHERE `option_id` = 'indonesian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Indonesian +UPDATE `list_options` SET `notes` = 'ind' WHERE `title` = 'Indonesian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id interlingua_international_auxi title Interlingua (International Auxiliary Language Association) +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'interlingua_international_auxi', 'Interlingua (International Auxiliary Language Association)', 720, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id interlingua_international_auxi +UPDATE `list_options` SET `notes` = 'ina' WHERE `option_id` = 'interlingua_international_auxi' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Interlingua (International Auxiliary Language Association) +UPDATE `list_options` SET `notes` = 'ina' WHERE `title` = 'Interlingua (International Auxiliary Language Association)' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id interlingue_occidental title Interlingue; Occidental +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'interlingue_occidental', 'Interlingue; Occidental', 730, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id interlingue_occidental +UPDATE `list_options` SET `notes` = 'ile' WHERE `option_id` = 'interlingue_occidental' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Interlingue; Occidental +UPDATE `list_options` SET `notes` = 'ile' WHERE `title` = 'Interlingue; Occidental' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id inuktitut title Inuktitut +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'inuktitut', 'Inuktitut', 740, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id inuktitut +UPDATE `list_options` SET `notes` = 'iku' WHERE `option_id` = 'inuktitut' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Inuktitut +UPDATE `list_options` SET `notes` = 'iku' WHERE `title` = 'Inuktitut' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id inupiaq title Inupiaq +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'inupiaq', 'Inupiaq', 750, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id inupiaq +UPDATE `list_options` SET `notes` = 'ipk' WHERE `option_id` = 'inupiaq' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Inupiaq +UPDATE `list_options` SET `notes` = 'ipk' WHERE `title` = 'Inupiaq' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id irish title Irish +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'irish', 'Irish', 760, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id irish +UPDATE `list_options` SET `notes` = 'gle' WHERE `option_id` = 'irish' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Irish +UPDATE `list_options` SET `notes` = 'gle' WHERE `title` = 'Irish' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id italian title Italian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'italian', 'Italian', 770, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id italian +UPDATE `list_options` SET `notes` = 'ita' WHERE `option_id` = 'italian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Italian +UPDATE `list_options` SET `notes` = 'ita' WHERE `title` = 'Italian' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 110 option_id italian +UPDATE `list_options` SET `seq` = 770 WHERE `option_id` = 'italian' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 110 title Italian +UPDATE `list_options` SET `seq` = 770 WHERE `title` = 'Italian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id japanese title Japanese +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'japanese', 'Japanese', 780, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id japanese +UPDATE `list_options` SET `notes` = 'jpn' WHERE `option_id` = 'japanese' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Japanese +UPDATE `list_options` SET `notes` = 'jpn' WHERE `title` = 'Japanese' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 120 option_id japanese +UPDATE `list_options` SET `seq` = 780 WHERE `option_id` = 'japanese' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 120 title Japanese +UPDATE `list_options` SET `seq` = 780 WHERE `title` = 'Japanese' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id javanese title Javanese +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'javanese', 'Javanese', 790, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id javanese +UPDATE `list_options` SET `notes` = 'jav' WHERE `option_id` = 'javanese' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Javanese +UPDATE `list_options` SET `notes` = 'jav' WHERE `title` = 'Javanese' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id kalaallisut_greenlandic title Kalaallisut; Greenlandic +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kalaallisut_greenlandic', 'Kalaallisut; Greenlandic', 800, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id kalaallisut_greenlandic +UPDATE `list_options` SET `notes` = 'kal' WHERE `option_id` = 'kalaallisut_greenlandic' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Kalaallisut; Greenlandic +UPDATE `list_options` SET `notes` = 'kal' WHERE `title` = 'Kalaallisut; Greenlandic' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id kannada title Kannada +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kannada', 'Kannada', 810, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id kannada +UPDATE `list_options` SET `notes` = 'kan' WHERE `option_id` = 'kannada' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Kannada +UPDATE `list_options` SET `notes` = 'kan' WHERE `title` = 'Kannada' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id kanuri title Kanuri +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kanuri', 'Kanuri', 820, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id kanuri +UPDATE `list_options` SET `notes` = 'kau' WHERE `option_id` = 'kanuri' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Kanuri +UPDATE `list_options` SET `notes` = 'kau' WHERE `title` = 'Kanuri' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id kashmiri title Kashmiri +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kashmiri', 'Kashmiri', 830, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id kashmiri +UPDATE `list_options` SET `notes` = 'kas' WHERE `option_id` = 'kashmiri' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Kashmiri +UPDATE `list_options` SET `notes` = 'kas' WHERE `title` = 'Kashmiri' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id kazakh title Kazakh +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kazakh', 'Kazakh', 840, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id kazakh +UPDATE `list_options` SET `notes` = 'kaz' WHERE `option_id` = 'kazakh' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Kazakh +UPDATE `list_options` SET `notes` = 'kaz' WHERE `title` = 'Kazakh' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id kikuyu_gikuyu title Kikuyu; Gikuyu +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kikuyu_gikuyu', 'Kikuyu; Gikuyu', 850, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id kikuyu_gikuyu +UPDATE `list_options` SET `notes` = 'kik' WHERE `option_id` = 'kikuyu_gikuyu' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Kikuyu; Gikuyu +UPDATE `list_options` SET `notes` = 'kik' WHERE `title` = 'Kikuyu; Gikuyu' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id kinyarwanda title Kinyarwanda +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kinyarwanda', 'Kinyarwanda', 860, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id kinyarwanda +UPDATE `list_options` SET `notes` = 'kin' WHERE `option_id` = 'kinyarwanda' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Kinyarwanda +UPDATE `list_options` SET `notes` = 'kin' WHERE `title` = 'Kinyarwanda' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id kirghiz_kyrgyz title Kirghiz; Kyrgyz +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kirghiz_kyrgyz', 'Kirghiz; Kyrgyz', 870, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id kirghiz_kyrgyz +UPDATE `list_options` SET `notes` = 'kir' WHERE `option_id` = 'kirghiz_kyrgyz' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Kirghiz; Kyrgyz +UPDATE `list_options` SET `notes` = 'kir' WHERE `title` = 'Kirghiz; Kyrgyz' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id komi title Komi +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'komi', 'Komi', 880, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id komi +UPDATE `list_options` SET `notes` = 'kom' WHERE `option_id` = 'komi' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Komi +UPDATE `list_options` SET `notes` = 'kom' WHERE `title` = 'Komi' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id kongo title Kongo +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kongo', 'Kongo', 890, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id kongo +UPDATE `list_options` SET `notes` = 'kon' WHERE `option_id` = 'kongo' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Kongo +UPDATE `list_options` SET `notes` = 'kon' WHERE `title` = 'Kongo' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id korean title Korean +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'korean', 'Korean', 900, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id korean +UPDATE `list_options` SET `notes` = 'kor' WHERE `option_id` = 'korean' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Korean +UPDATE `list_options` SET `notes` = 'kor' WHERE `title` = 'Korean' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 130 option_id korean +UPDATE `list_options` SET `seq` = 900 WHERE `option_id` = 'korean' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 130 title Korean +UPDATE `list_options` SET `seq` = 900 WHERE `title` = 'Korean' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id kuanyama_kwanyama title Kuanyama; Kwanyama +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kuanyama_kwanyama', 'Kuanyama; Kwanyama', 910, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id kuanyama_kwanyama +UPDATE `list_options` SET `notes` = 'kua' WHERE `option_id` = 'kuanyama_kwanyama' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Kuanyama; Kwanyama +UPDATE `list_options` SET `notes` = 'kua' WHERE `title` = 'Kuanyama; Kwanyama' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id kurdish title Kurdish +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'kurdish', 'Kurdish', 920, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id kurdish +UPDATE `list_options` SET `notes` = 'kur' WHERE `option_id` = 'kurdish' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Kurdish +UPDATE `list_options` SET `notes` = 'kur' WHERE `title` = 'Kurdish' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id laotian title Lao +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'laotian', 'Lao', 930, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id laotian +UPDATE `list_options` SET `notes` = 'lao' WHERE `option_id` = 'laotian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Lao +UPDATE `list_options` SET `notes` = 'lao' WHERE `title` = 'Lao' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Laotian +UPDATE `list_options` SET `notes` = 'lao' WHERE `title` = 'Laotian' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 140 option_id laotian +UPDATE `list_options` SET `seq` = 930 WHERE `option_id` = 'laotian' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 140 title Lao +UPDATE `list_options` SET `seq` = 930 WHERE `title` = 'Lao' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 140 title Laotian +UPDATE `list_options` SET `seq` = 930 WHERE `title` = 'Laotian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id latin title Latin +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'latin', 'Latin', 940, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id latin +UPDATE `list_options` SET `notes` = 'lat' WHERE `option_id` = 'latin' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Latin +UPDATE `list_options` SET `notes` = 'lat' WHERE `title` = 'Latin' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id latvian title Latvian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'latvian', 'Latvian', 950, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id latvian +UPDATE `list_options` SET `notes` = 'lav' WHERE `option_id` = 'latvian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Latvian +UPDATE `list_options` SET `notes` = 'lav' WHERE `title` = 'Latvian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id limburgan_limburger_limburgish title Limburgan; Limburger; Limburgish +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'limburgan_limburger_limburgish', 'Limburgan; Limburger; Limburgish', 960, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id limburgan_limburger_limburgish +UPDATE `list_options` SET `notes` = 'lim' WHERE `option_id` = 'limburgan_limburger_limburgish' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Limburgan; Limburger; Limburgish +UPDATE `list_options` SET `notes` = 'lim' WHERE `title` = 'Limburgan; Limburger; Limburgish' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id lingala title Lingala +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'lingala', 'Lingala', 970, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id lingala +UPDATE `list_options` SET `notes` = 'lin' WHERE `option_id` = 'lingala' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Lingala +UPDATE `list_options` SET `notes` = 'lin' WHERE `title` = 'Lingala' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id lithuanian title Lithuanian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'lithuanian', 'Lithuanian', 980, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id lithuanian +UPDATE `list_options` SET `notes` = 'lit' WHERE `option_id` = 'lithuanian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Lithuanian +UPDATE `list_options` SET `notes` = 'lit' WHERE `title` = 'Lithuanian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id luba-katanga title Luba-Katanga +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'luba-katanga', 'Luba-Katanga', 990, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id luba-katanga +UPDATE `list_options` SET `notes` = 'lub' WHERE `option_id` = 'luba-katanga' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Luba-Katanga +UPDATE `list_options` SET `notes` = 'lub' WHERE `title` = 'Luba-Katanga' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id luxembourgish_letzeburgesch title Luxembourgish; Letzeburgesch +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'luxembourgish_letzeburgesch', 'Luxembourgish; Letzeburgesch', 1000, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id luxembourgish_letzeburgesch +UPDATE `list_options` SET `notes` = 'ltz' WHERE `option_id` = 'luxembourgish_letzeburgesch' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Luxembourgish; Letzeburgesch +UPDATE `list_options` SET `notes` = 'ltz' WHERE `title` = 'Luxembourgish; Letzeburgesch' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id macedonian title Macedonian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'macedonian', 'Macedonian', 1010, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id macedonian +UPDATE `list_options` SET `notes` = 'mac(B)|mkd(T)' WHERE `option_id` = 'macedonian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Macedonian +UPDATE `list_options` SET `notes` = 'mac(B)|mkd(T)' WHERE `title` = 'Macedonian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id malagasy title Malagasy +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'malagasy', 'Malagasy', 1020, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id malagasy +UPDATE `list_options` SET `notes` = 'mlg' WHERE `option_id` = 'malagasy' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Malagasy +UPDATE `list_options` SET `notes` = 'mlg' WHERE `title` = 'Malagasy' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id malay title Malay +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'malay', 'Malay', 1030, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id malay +UPDATE `list_options` SET `notes` = 'may(B)|msa(T)' WHERE `option_id` = 'malay' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Malay +UPDATE `list_options` SET `notes` = 'may(B)|msa(T)' WHERE `title` = 'Malay' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id malayalam title Malayalam +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'malayalam', 'Malayalam', 1040, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id malayalam +UPDATE `list_options` SET `notes` = 'mal' WHERE `option_id` = 'malayalam' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Malayalam +UPDATE `list_options` SET `notes` = 'mal' WHERE `title` = 'Malayalam' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id maltese title Maltese +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'maltese', 'Maltese', 1050, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id maltese +UPDATE `list_options` SET `notes` = 'mlt' WHERE `option_id` = 'maltese' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Maltese +UPDATE `list_options` SET `notes` = 'mlt' WHERE `title` = 'Maltese' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id manx title Manx +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'manx', 'Manx', 1060, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id manx +UPDATE `list_options` SET `notes` = 'glv' WHERE `option_id` = 'manx' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Manx +UPDATE `list_options` SET `notes` = 'glv' WHERE `title` = 'Manx' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id maori title Maori +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'maori', 'Maori', 1070, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id maori +UPDATE `list_options` SET `notes` = 'mao(B)|mri(T)' WHERE `option_id` = 'maori' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Maori +UPDATE `list_options` SET `notes` = 'mao(B)|mri(T)' WHERE `title` = 'Maori' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id marathi title Marathi +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'marathi', 'Marathi', 1080, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id marathi +UPDATE `list_options` SET `notes` = 'mar' WHERE `option_id` = 'marathi' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Marathi +UPDATE `list_options` SET `notes` = 'mar' WHERE `title` = 'Marathi' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id marshallese title Marshallese +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'marshallese', 'Marshallese', 1090, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id marshallese +UPDATE `list_options` SET `notes` = 'mah' WHERE `option_id` = 'marshallese' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Marshallese +UPDATE `list_options` SET `notes` = 'mah' WHERE `title` = 'Marshallese' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 150 option_id mien +UPDATE `list_options` SET `seq` = 1095 WHERE `option_id` = 'mien' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 150 title Mien +UPDATE `list_options` SET `seq` = 1095 WHERE `title` = 'Mien' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id mongolian title Mongolian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'mongolian', 'Mongolian', 1100, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id mongolian +UPDATE `list_options` SET `notes` = 'mon' WHERE `option_id` = 'mongolian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Mongolian +UPDATE `list_options` SET `notes` = 'mon' WHERE `title` = 'Mongolian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id nauru title Nauru +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'nauru', 'Nauru', 1110, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id nauru +UPDATE `list_options` SET `notes` = 'nau' WHERE `option_id` = 'nauru' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Nauru +UPDATE `list_options` SET `notes` = 'nau' WHERE `title` = 'Nauru' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id navajo_navaho title Navajo; Navaho +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'navajo_navaho', 'Navajo; Navaho', 1120, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id navajo_navaho +UPDATE `list_options` SET `notes` = 'nav' WHERE `option_id` = 'navajo_navaho' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Navajo; Navaho +UPDATE `list_options` SET `notes` = 'nav' WHERE `title` = 'Navajo; Navaho' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id ndebele_north_north_ndebele title Ndebele, North; North Ndebele +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'ndebele_north_north_ndebele', 'Ndebele, North; North Ndebele', 1130, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id ndebele_north_north_ndebele +UPDATE `list_options` SET `notes` = 'nde' WHERE `option_id` = 'ndebele_north_north_ndebele' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Ndebele, North; North Ndebele +UPDATE `list_options` SET `notes` = 'nde' WHERE `title` = 'Ndebele, North; North Ndebele' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id ndebele_south_south_ndebele title Ndebele, South; South Ndebele +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'ndebele_south_south_ndebele', 'Ndebele, South; South Ndebele', 1140, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id ndebele_south_south_ndebele +UPDATE `list_options` SET `notes` = 'nbl' WHERE `option_id` = 'ndebele_south_south_ndebele' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Ndebele, South; South Ndebele +UPDATE `list_options` SET `notes` = 'nbl' WHERE `title` = 'Ndebele, South; South Ndebele' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id ndonga title Ndonga +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'ndonga', 'Ndonga', 1150, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id ndonga +UPDATE `list_options` SET `notes` = 'ndo' WHERE `option_id` = 'ndonga' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Ndonga +UPDATE `list_options` SET `notes` = 'ndo' WHERE `title` = 'Ndonga' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id nepali title Nepali +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'nepali', 'Nepali', 1160, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id nepali +UPDATE `list_options` SET `notes` = 'nep' WHERE `option_id` = 'nepali' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Nepali +UPDATE `list_options` SET `notes` = 'nep' WHERE `title` = 'Nepali' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id northern_sami title Northern Sami +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'northern_sami', 'Northern Sami', 1170, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id northern_sami +UPDATE `list_options` SET `notes` = 'sme' WHERE `option_id` = 'northern_sami' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Northern Sami +UPDATE `list_options` SET `notes` = 'sme' WHERE `title` = 'Northern Sami' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id norwegian title Norwegian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'norwegian', 'Norwegian', 1180, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id norwegian +UPDATE `list_options` SET `notes` = 'nor' WHERE `option_id` = 'norwegian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Norwegian +UPDATE `list_options` SET `notes` = 'nor' WHERE `title` = 'Norwegian' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 160 option_id norwegian +UPDATE `list_options` SET `seq` = 1180 WHERE `option_id` = 'norwegian' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 160 title Norwegian +UPDATE `list_options` SET `seq` = 1180 WHERE `title` = 'Norwegian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id norwegian_nynorsk_nynorsk_norw title Norwegian Nynorsk; Nynorsk, Norwegian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'norwegian_nynorsk_nynorsk_norw', 'Norwegian Nynorsk; Nynorsk, Norwegian', 1190, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id norwegian_nynorsk_nynorsk_norw +UPDATE `list_options` SET `notes` = 'nno' WHERE `option_id` = 'norwegian_nynorsk_nynorsk_norw' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Norwegian Nynorsk; Nynorsk, Norwegian +UPDATE `list_options` SET `notes` = 'nno' WHERE `title` = 'Norwegian Nynorsk; Nynorsk, Norwegian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id occitan_post_1500 title Occitan (post 1500) +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'occitan_post_1500', 'Occitan (post 1500)', 1200, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id occitan_post_1500 +UPDATE `list_options` SET `notes` = 'oci' WHERE `option_id` = 'occitan_post_1500' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Occitan (post 1500) +UPDATE `list_options` SET `notes` = 'oci' WHERE `title` = 'Occitan (post 1500)' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id ojibwa title Ojibwa +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'ojibwa', 'Ojibwa', 1210, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id ojibwa +UPDATE `list_options` SET `notes` = 'oji' WHERE `option_id` = 'ojibwa' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Ojibwa +UPDATE `list_options` SET `notes` = 'oji' WHERE `title` = 'Ojibwa' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id oriya title Oriya +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'oriya', 'Oriya', 1220, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id oriya +UPDATE `list_options` SET `notes` = 'ori' WHERE `option_id` = 'oriya' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Oriya +UPDATE `list_options` SET `notes` = 'ori' WHERE `title` = 'Oriya' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id oromo title Oromo +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'oromo', 'Oromo', 1230, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id oromo +UPDATE `list_options` SET `notes` = 'orm' WHERE `option_id` = 'oromo' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Oromo +UPDATE `list_options` SET `notes` = 'orm' WHERE `title` = 'Oromo' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id ossetian_ossetic title Ossetian; Ossetic +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'ossetian_ossetic', 'Ossetian; Ossetic', 1240, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id ossetian_ossetic +UPDATE `list_options` SET `notes` = 'oss' WHERE `option_id` = 'ossetian_ossetic' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Ossetian; Ossetic +UPDATE `list_options` SET `notes` = 'oss' WHERE `title` = 'Ossetian; Ossetic' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 170 option_id othrs +UPDATE `list_options` SET `seq` = 1245 WHERE `option_id` = 'othrs' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 170 title Others +UPDATE `list_options` SET `seq` = 1245 WHERE `title` = 'Others' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id pali title Pali +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'pali', 'Pali', 1250, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id pali +UPDATE `list_options` SET `notes` = 'pli' WHERE `option_id` = 'pali' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Pali +UPDATE `list_options` SET `notes` = 'pli' WHERE `title` = 'Pali' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id persian title Persian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'persian', 'Persian', 1260, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id persian +UPDATE `list_options` SET `notes` = 'per(B)|fas(T)' WHERE `option_id` = 'persian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Persian +UPDATE `list_options` SET `notes` = 'per(B)|fas(T)' WHERE `title` = 'Persian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id polish title Polish +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'polish', 'Polish', 1270, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id polish +UPDATE `list_options` SET `notes` = 'pol' WHERE `option_id` = 'polish' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Polish +UPDATE `list_options` SET `notes` = 'pol' WHERE `title` = 'Polish' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id portuguese title Portuguese +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'portuguese', 'Portuguese', 1280, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id portuguese +UPDATE `list_options` SET `notes` = 'por' WHERE `option_id` = 'portuguese' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Portuguese +UPDATE `list_options` SET `notes` = 'por' WHERE `title` = 'Portuguese' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 180 option_id portuguese +UPDATE `list_options` SET `seq` = 1280 WHERE `option_id` = 'portuguese' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 180 title Portuguese +UPDATE `list_options` SET `seq` = 1280 WHERE `title` = 'Portuguese' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id punjabi title Punjabi +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'punjabi', 'Punjabi', 1290, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id portuguese +UPDATE `list_options` SET `notes` = 'pan' WHERE `option_id` = 'punjabi' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Punjabi +UPDATE `list_options` SET `notes` = 'pan' WHERE `title` = 'Punjabi' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 190 option_id punjabi +UPDATE `list_options` SET `seq` = 1290 WHERE `option_id` = 'punjabi' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 190 title Punjabi +UPDATE `list_options` SET `seq` = 1290 WHERE `title` = 'Punjabi' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id pushto_pashto title Pushto; Pashto +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'pushto_pashto', 'Pushto; Pashto', 1300, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id pushto_pashto +UPDATE `list_options` SET `notes` = 'pus' WHERE `option_id` = 'pushto_pashto' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Pushto; Pashto +UPDATE `list_options` SET `notes` = 'pus' WHERE `title` = 'Pushto; Pashto' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id quechua title Quechua +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'quechua', 'Quechua', 1310, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id quechua +UPDATE `list_options` SET `notes` = 'que' WHERE `option_id` = 'quechua' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Quechua +UPDATE `list_options` SET `notes` = 'que' WHERE `title` = 'Quechua' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id romanian_moldavian_moldovan title Romanian; Moldavian; Moldovan +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'romanian_moldavian_moldovan', 'Romanian; Moldavian; Moldovan', 1320, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id romanian_moldavian_moldovan +UPDATE `list_options` SET `notes` = 'rum(B)|ron(T)' WHERE `option_id` = 'romanian_moldavian_moldovan' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Romanian; Moldavian; Moldovan +UPDATE `list_options` SET `notes` = 'rum(B)|ron(T)' WHERE `title` = 'Romanian; Moldavian; Moldovan' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id romansh title Romansh +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'romansh', 'Romansh', 1330, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id romansh +UPDATE `list_options` SET `notes` = 'roh' WHERE `option_id` = 'romansh' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Romansh +UPDATE `list_options` SET `notes` = 'roh' WHERE `title` = 'Romansh' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id rundi title Rundi +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'rundi', 'Rundi', 1340, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id rundi +UPDATE `list_options` SET `notes` = 'run' WHERE `option_id` = 'rundi' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Rundi +UPDATE `list_options` SET `notes` = 'run' WHERE `title` = 'Rundi' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id russian title Russian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'russian', 'Russian', 1350, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id russian +UPDATE `list_options` SET `notes` = 'rus' WHERE `option_id` = 'russian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Russian +UPDATE `list_options` SET `notes` = 'rus' WHERE `title` = 'Russian' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 200 option_id russian +UPDATE `list_options` SET `seq` = 1350 WHERE `option_id` = 'russian' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 200 title Russian +UPDATE `list_options` SET `seq` = 1350 WHERE `title` = 'Russian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id samoan title Samoan +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'samoan', 'Samoan', 1360, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id samoan +UPDATE `list_options` SET `notes` = 'smo' WHERE `option_id` = 'samoan' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Samoan +UPDATE `list_options` SET `notes` = 'smo' WHERE `title` = 'Samoan' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id sango title Sango +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'sango', 'Sango', 1370, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id sango +UPDATE `list_options` SET `notes` = 'sag' WHERE `option_id` = 'sango' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Sango +UPDATE `list_options` SET `notes` = 'sag' WHERE `title` = 'Sango' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id sanskrit title Sanskrit +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'sanskrit', 'Sanskrit', 1380, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id sanskrit +UPDATE `list_options` SET `notes` = 'san' WHERE `option_id` = 'sanskrit' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Sanskrit +UPDATE `list_options` SET `notes` = 'san' WHERE `title` = 'Sanskrit' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id sardinian title Sardinian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'sardinian', 'Sardinian', 1390, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id sardinian +UPDATE `list_options` SET `notes` = 'srd' WHERE `option_id` = 'sardinian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Sardinian +UPDATE `list_options` SET `notes` = 'srd' WHERE `title` = 'Sardinian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id serbian title Serbian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'serbian', 'Serbian', 1400, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id serbian +UPDATE `list_options` SET `notes` = 'srp' WHERE `option_id` = 'serbian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Serbian +UPDATE `list_options` SET `notes` = 'srp' WHERE `title` = 'Serbian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id shona title Shona +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'shona', 'Shona', 1410, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id shona +UPDATE `list_options` SET `notes` = 'sna' WHERE `option_id` = 'shona' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Shona +UPDATE `list_options` SET `notes` = 'sna' WHERE `title` = 'Shona' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id sichuan_yi_nuosu title Sichuan Yi; Nuosu +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'sichuan_yi_nuosu', 'Sichuan Yi; Nuosu', 1420, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id sichuan_yi_nuosu +UPDATE `list_options` SET `notes` = 'iii' WHERE `option_id` = 'sichuan_yi_nuosu' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Sichuan Yi; Nuosu +UPDATE `list_options` SET `notes` = 'iii' WHERE `title` = 'Sichuan Yi; Nuosu' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id sindhi title Sindhi +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'sindhi', 'Sindhi', 1430, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id sindhi +UPDATE `list_options` SET `notes` = 'snd' WHERE `option_id` = 'sindhi' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Sindhi +UPDATE `list_options` SET `notes` = 'snd' WHERE `title` = 'Sindhi' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id sinhala_sinhalese title Sinhala; Sinhalese +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'sinhala_sinhalese', 'Sinhala; Sinhalese', 1440, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id sinhala_sinhalese +UPDATE `list_options` SET `notes` = 'sin' WHERE `option_id` = 'sinhala_sinhalese' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Sinhala; Sinhalese +UPDATE `list_options` SET `notes` = 'sin' WHERE `title` = 'Sinhala; Sinhalese' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id slovak title Slovak +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'slovak', 'Slovak', 1450, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id slovak +UPDATE `list_options` SET `notes` = 'slo(B)|slk(T)' WHERE `option_id` = 'slovak' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Slovak +UPDATE `list_options` SET `notes` = 'slo(B)|slk(T)' WHERE `title` = 'Slovak' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id slovenian title Slovenian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'slovenian', 'Slovenian', 1460, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id slovenian +UPDATE `list_options` SET `notes` = 'slv' WHERE `option_id` = 'slovenian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Slovenian +UPDATE `list_options` SET `notes` = 'slv' WHERE `title` = 'Slovenian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id somali title Somali +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'somali', 'Somali', 1470, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id somali +UPDATE `list_options` SET `notes` = 'som' WHERE `option_id` = 'somali' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Somali +UPDATE `list_options` SET `notes` = 'som' WHERE `title` = 'Somali' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id sotho_southern title Sotho, Southern +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'sotho_southern', 'Sotho, Southern', 1480, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id sotho_southern +UPDATE `list_options` SET `notes` = 'sot' WHERE `option_id` = 'sotho_southern' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Sotho, Southern +UPDATE `list_options` SET `notes` = 'sot' WHERE `title` = 'Sotho, Southern' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id Spanish title Spanish +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'Spanish', 'Spanish', 1490, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id Spanish +UPDATE `list_options` SET `notes` = 'spa' WHERE `option_id` = 'Spanish' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Spanish +UPDATE `list_options` SET `notes` = 'spa' WHERE `title` = 'Spanish' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 210 option_id Spanish +UPDATE `list_options` SET `seq` = 1490 WHERE `option_id` = 'Spanish' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 210 title Spanish +UPDATE `list_options` SET `seq` = 1490 WHERE `title` = 'Spanish' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id sundanese title Sundanese +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'sundanese', 'Sundanese', 1500, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id sundanese +UPDATE `list_options` SET `notes` = 'sun' WHERE `option_id` = 'sundanese' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Sundanese +UPDATE `list_options` SET `notes` = 'sun' WHERE `title` = 'Sundanese' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id swahili title Swahili +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'swahili', 'Swahili', 1510, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id swahili +UPDATE `list_options` SET `notes` = 'swa' WHERE `option_id` = 'swahili' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Swahili +UPDATE `list_options` SET `notes` = 'swa' WHERE `title` = 'Swahili' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id swati title Swati +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'swati', 'Swati', 1520, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id swati +UPDATE `list_options` SET `notes` = 'ssw' WHERE `option_id` = 'swati' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Swati +UPDATE `list_options` SET `notes` = 'ssw' WHERE `title` = 'Swati' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id swedish title Swedish +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'swedish', 'Swedish', 1530, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id swedish +UPDATE `list_options` SET `notes` = 'swe' WHERE `option_id` = 'swedish' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Swedish +UPDATE `list_options` SET `notes` = 'swe' WHERE `title` = 'Swedish' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id tagalog title Tagalog +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tagalog', 'Tagalog', 1540, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id tagalog +UPDATE `list_options` SET `notes` = 'tgl' WHERE `option_id` = 'tagalog' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Tagalog +UPDATE `list_options` SET `notes` = 'tgl' WHERE `title` = 'Tagalog' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 220 option_id tagalog +UPDATE `list_options` SET `seq` = 1540 WHERE `option_id` = 'tagalog' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 220 title Tagalog +UPDATE `list_options` SET `seq` = 1540 WHERE `title` = 'Tagalog' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id tahitian title Tahitian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tahitian', 'Tahitian', 1550, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id tahitian +UPDATE `list_options` SET `notes` = 'tah' WHERE `option_id` = 'tahitian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Tahitian +UPDATE `list_options` SET `notes` = 'tah' WHERE `title` = 'Tahitian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id tajik title Tajik +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tajik', 'Tajik', 1560, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id tajik +UPDATE `list_options` SET `notes` = 'tgk' WHERE `option_id` = 'tajik' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Tajik +UPDATE `list_options` SET `notes` = 'tgk' WHERE `title` = 'Tajik' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id tamil title Tamil +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tamil', 'Tamil', 1570, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id tamil +UPDATE `list_options` SET `notes` = 'tam' WHERE `option_id` = 'tamil' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Tamil +UPDATE `list_options` SET `notes` = 'tam' WHERE `title` = 'Tamil' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id tatar title Tatar +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tatar', 'Tatar', 1580, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id tatar +UPDATE `list_options` SET `notes` = 'tat' WHERE `option_id` = 'tatar' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Tatar +UPDATE `list_options` SET `notes` = 'tat' WHERE `title` = 'Tatar' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id telugu title Telugu +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'telugu', 'Telugu', 1590, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id telugu +UPDATE `list_options` SET `notes` = 'tel' WHERE `option_id` = 'telugu' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Telugu +UPDATE `list_options` SET `notes` = 'tel' WHERE `title` = 'Telugu' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id thai title Thai +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'thai', 'Thai', 1600, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id thai +UPDATE `list_options` SET `notes` = 'tha' WHERE `option_id` = 'thai' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Thai +UPDATE `list_options` SET `notes` = 'tha' WHERE `title` = 'Thai' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id tibetan title Tibetan +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tibetan', 'Tibetan', 1610, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id tibetan +UPDATE `list_options` SET `notes` = 'tib(B)|bod(T)' WHERE `option_id` = 'tibetan' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Tibetan +UPDATE `list_options` SET `notes` = 'tib(B)|bod(T)' WHERE `title` = 'Tibetan' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id tigrinya title Tigrinya +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tigrinya', 'Tigrinya', 1620, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id tigrinya +UPDATE `list_options` SET `notes` = 'tir' WHERE `option_id` = 'tigrinya' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Tigrinya +UPDATE `list_options` SET `notes` = 'tir' WHERE `title` = 'Tigrinya' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id tonga_tonga_islands title Tonga (Tonga Islands) +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tonga_tonga_islands', 'Tonga (Tonga Islands)', 1630, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id tonga_tonga_islands +UPDATE `list_options` SET `notes` = 'ton' WHERE `option_id` = 'tonga_tonga_islands' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Tonga (Tonga Islands) +UPDATE `list_options` SET `notes` = 'ton' WHERE `title` = 'Tonga (Tonga Islands)' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id tsonga title Tsonga +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tsonga', 'Tsonga', 1640, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id tsonga +UPDATE `list_options` SET `notes` = 'tso' WHERE `option_id` = 'tsonga' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Tsonga +UPDATE `list_options` SET `notes` = 'tso' WHERE `title` = 'Tsonga' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id tswana title Tswana +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'tswana', 'Tswana', 1650, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id tswana +UPDATE `list_options` SET `notes` = 'tsn' WHERE `option_id` = 'tswana' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Tswana +UPDATE `list_options` SET `notes` = 'tsn' WHERE `title` = 'Tswana' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id turkish title Turkish +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'turkish', 'Turkish', 1660, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id turkish +UPDATE `list_options` SET `notes` = 'tur' WHERE `option_id` = 'turkish' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Turkish +UPDATE `list_options` SET `notes` = 'tur' WHERE `title` = 'Turkish' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 230 option_id turkish +UPDATE `list_options` SET `seq` = 1660 WHERE `option_id` = 'turkish' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 230 title Turkish +UPDATE `list_options` SET `seq` = 1660 WHERE `title` = 'Turkish' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id turkmen title Turkmen +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'turkmen', 'Turkmen', 1670, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id turkmen +UPDATE `list_options` SET `notes` = 'tuk' WHERE `option_id` = 'turkmen' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Turkmen +UPDATE `list_options` SET `notes` = 'tuk' WHERE `title` = 'Turkmen' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id twi title Twi +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'twi', 'Twi', 1680, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id twi +UPDATE `list_options` SET `notes` = 'twi' WHERE `option_id` = 'twi' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Twi +UPDATE `list_options` SET `notes` = 'twi' WHERE `title` = 'Twi' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id uighur_uyghur title Uighur; Uyghur +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'uighur_uyghur', 'Uighur; Uyghur', 1690, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id uighur_uyghur +UPDATE `list_options` SET `notes` = 'uig' WHERE `option_id` = 'uighur_uyghur' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Uighur; Uyghur +UPDATE `list_options` SET `notes` = 'uig' WHERE `title` = 'Uighur; Uyghur' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id ukrainian title Ukrainian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'ukrainian', 'Ukrainian', 1700, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id ukrainian +UPDATE `list_options` SET `notes` = 'ukr' WHERE `option_id` = 'ukrainian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Ukrainian +UPDATE `list_options` SET `notes` = 'ukr' WHERE `title` = 'Ukrainian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id urdu title Urdu +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'urdu', 'Urdu', 1710, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id urdu +UPDATE `list_options` SET `notes` = 'urd' WHERE `option_id` = 'urdu' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Urdu +UPDATE `list_options` SET `notes` = 'urd' WHERE `title` = 'Urdu' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id uzbek title Uzbek +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'uzbek', 'Uzbek', 1720, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id uzbek +UPDATE `list_options` SET `notes` = 'uzb' WHERE `option_id` = 'uzbek' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Uzbek +UPDATE `list_options` SET `notes` = 'uzb' WHERE `title` = 'Uzbek' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id venda title Venda +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'venda', 'Venda', 1730, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id venda +UPDATE `list_options` SET `notes` = 'ven' WHERE `option_id` = 'venda' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Venda +UPDATE `list_options` SET `notes` = 'ven' WHERE `title` = 'Venda' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id vietnamese title Vietnamese +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'vietnamese', 'Vietnamese', 1740, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id vietnamese +UPDATE `list_options` SET `notes` = 'vie' WHERE `option_id` = 'vietnamese' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Vietnamese +UPDATE `list_options` SET `notes` = 'vie' WHERE `title` = 'Vietnamese' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 240 option_id vietnamese +UPDATE `list_options` SET `seq` = 1740 WHERE `option_id` = 'vietnamese' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 240 title Vietnamese +UPDATE `list_options` SET `seq` = 1740 WHERE `title` = 'Vietnamese' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id volapuk title Volapük +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'volapuk', 'Volapük', 1750, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id volapuk +UPDATE `list_options` SET `notes` = 'vol' WHERE `option_id` = 'volapuk' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Volapük +UPDATE `list_options` SET `notes` = 'vol' WHERE `title` = 'Volapük' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id walloon title Walloon +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'walloon', 'Walloon', 1760, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id walloon +UPDATE `list_options` SET `notes` = 'wln' WHERE `option_id` = 'walloon' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Walloon +UPDATE `list_options` SET `notes` = 'wln' WHERE `title` = 'Walloon' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id welsh title Welsh +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'welsh', 'Welsh', 1770, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id welsh +UPDATE `list_options` SET `notes` = 'wel(B)|cym(T)' WHERE `option_id` = 'welsh' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Welsh +UPDATE `list_options` SET `notes` = 'wel(B)|cym(T)' WHERE `title` = 'Welsh' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id western_frisian title Western Frisian +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'western_frisian', 'Western Frisian', 1780, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id western_frisian +UPDATE `list_options` SET `notes` = 'fry' WHERE `option_id` = 'western_frisian' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Western Frisian +UPDATE `list_options` SET `notes` = 'fry' WHERE `title` = 'Western Frisian' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id wolof title Wolof +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'wolof', 'Wolof', 1790, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id wolof +UPDATE `list_options` SET `notes` = 'wol' WHERE `option_id` = 'wolof' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Wolof +UPDATE `list_options` SET `notes` = 'wol' WHERE `title` = 'Wolof' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id xhosa title Xhosa +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'xhosa', 'Xhosa', 1800, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id xhosa +UPDATE `list_options` SET `notes` = 'xho' WHERE `option_id` = 'xhosa' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Xhosa +UPDATE `list_options` SET `notes` = 'xho' WHERE `title` = 'Xhosa' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id yiddish title Yiddish +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'yiddish', 'Yiddish', 1810, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id yiddish +UPDATE `list_options` SET `notes` = 'yid' WHERE `option_id` = 'yiddish' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Yiddish +UPDATE `list_options` SET `notes` = 'yid' WHERE `title` = 'Yiddish' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 250 option_id yiddish +UPDATE `list_options` SET `seq` = 1810 WHERE `option_id` = 'yiddish' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 250 title Yiddish +UPDATE `list_options` SET `seq` = 1810 WHERE `title` = 'Yiddish' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id yoruba title Yoruba +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'yoruba', 'Yoruba', 1820, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id yoruba +UPDATE `list_options` SET `notes` = 'yor' WHERE `option_id` = 'yoruba' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Yoruba +UPDATE `list_options` SET `notes` = 'yor' WHERE `title` = 'Yoruba' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id zhuang_chuang title Zhuang; Chuang +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'zhuang_chuang', 'Zhuang; Chuang', 1830, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id zhuang_chuang +UPDATE `list_options` SET `notes` = 'zha' WHERE `option_id` = 'zhuang_chuang' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Zhuang; Chuang +UPDATE `list_options` SET `notes` = 'zha' WHERE `title` = 'Zhuang; Chuang' AND `list_id` = 'language'; +#EndIf + +#IfNotRow2Dx2 list_options list_id language option_id zulu title Zulu +INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value` ) VALUES ('language', 'zulu', 'Zulu', 1840, 0, 0); +#EndIf + +#IfRow2D list_options list_id language option_id zulu +UPDATE `list_options` SET `notes` = 'zul' WHERE `option_id` = 'zulu' AND `list_id` = 'language'; +#EndIf + +#IfRow2D list_options list_id language title Zulu +UPDATE `list_options` SET `notes` = 'zul' WHERE `title` = 'Zulu' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 260 option_id zulu +UPDATE `list_options` SET `seq` = 1840 WHERE `option_id` = 'zulu' AND `list_id` = 'language'; +#EndIf + +#IfRow3D list_options list_id language seq 260 title Zulu +UPDATE `list_options` SET `seq` = 1840 WHERE `title` = 'Zulu' AND `list_id` = 'language'; +#EndIf + +#IfMissingColumn code_types ct_drug +ALTER TABLE `code_types` ADD COLUMN ct_drug tinyint(1) NOT NULL default 0 COMMENT '1 if this is a medication'; +#EndIf + +#IfNotRow code_types ct_key RXCUI +DROP TABLE IF EXISTS `temp_table_one`; +CREATE TABLE `temp_table_one` (`id` int(11) NOT NULL DEFAULT '0',`seq` int(11) NOT NULL DEFAULT '0') ENGINE=MyISAM; +INSERT INTO `temp_table_one` (`id`, `seq`) VALUES ( + IF(((SELECT MAX(`ct_id` ) FROM `code_types`) >= 100), ((SELECT MAX(`ct_id` ) FROM `code_types`) + 1), 100), + IF(((SELECT MAX(`ct_seq`) FROM `code_types`) >= 100), ((SELECT MAX(`ct_seq`) FROM `code_types`) + 1), 100)); +INSERT INTO code_types (ct_key, ct_id, ct_seq, ct_mod, ct_just, ct_fee, ct_rel, ct_nofs, ct_diag, ct_active, ct_label, ct_drug ) VALUES + ('RXCUI', (SELECT MAX(`id`) FROM `temp_table_one`), (SELECT MAX(`seq`) FROM `temp_table_one`), 0, '', 0, 0, 1, 0, 0, 'RXCUI Medication', 1); +DROP TABLE `temp_table_one`; +#EndIf + +#IfNotColumnType immunizations amount_administered float +ALTER TABLE immunizations CHANGE amount_administered amount_administered FLOAT; +#EndIf + +#IfNotRow4D supported_external_dataloads load_type ICD9 load_source CMS load_release_date 2014-10-01 load_filename ICD-9-CM-v32-master-descriptions.zip +INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD9', 'CMS', '2014-10-01', 'ICD-9-CM-v32-master-descriptions.zip', 'b852b85f770c83433201dc8ae2c59074'); +#EndIf + +#IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2014-10-01 load_filename 2015-PCS-long-and-abbreviated-titles.zip +INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2014-10-01', '2015-PCS-long-and-abbreviated-titles.zip', 'd1504d6cbc40e008e52dbc50600a4b66'); +#EndIf + +#IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2014-10-01 load_filename DiagnosisGEMs_2015.zip +INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2014-10-01', 'DiagnosisGEMs_2015.zip', 'a4505805edf25ba4eacda07f23934e63'); +#EndIf + +#IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2014-10-01 load_filename 2015-code-descriptions.zip +INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2014-10-01', '2015-code-descriptions.zip', '6a8c0ab630d5afa7482daa417950846a'); +#EndIf + +#IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2014-10-01 load_filename ProcedureGEMs_2015.zip +INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2014-10-01', 'ProcedureGEMs_2015.zip', 'fcba4e4c96851f4c900345bc557483e2'); +#EndIf + +#IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2014-10-01 load_filename Reimbursement_Mapping_dx_2015.zip +INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2014-10-01', 'Reimbursement_Mapping_dx_2015.zip', '0990d5bcac13ccf5e288249be5261fd7'); +#EndIf + +#IfNotRow4D supported_external_dataloads load_type ICD10 load_source CMS load_release_date 2014-10-01 load_filename Reimbursement_Mapping_pr_2015.zip +INSERT INTO `supported_external_dataloads` (`load_type`, `load_source`, `load_release_date`, `load_filename`, `load_checksum`) VALUES ('ICD10', 'CMS', '2014-10-01', 'Reimbursement_Mapping_pr_2015.zip', '493c022db17a70fcdcbb41bf0ad61a47'); +#EndIf + +#IfMissingColumn clinical_rules amc_2011_flag +ALTER TABLE `clinical_rules` ADD COLUMN `amc_2011_flag` tinyint(1) COMMENT '2011 Automated Measure Calculation flag for (unable to customize per patient)'; +UPDATE `clinical_rules` SET `amc_2011_flag` = 1 WHERE `amc_flag` = 1; +#EndIf + +#IfMissingColumn clinical_rules amc_2014_flag +ALTER TABLE `clinical_rules` ADD COLUMN `amc_2014_flag` tinyint(1) COMMENT '2014 Automated Measure Calculation flag for (unable to customize per patient)'; +#EndIf + +#IfMissingColumn clinical_rules amc_code_2014 +ALTER TABLE `clinical_rules` ADD COLUMN `amc_code_2014` varchar(30) NOT NULL default '' COMMENT 'Automated Measure Calculation 2014 indentifier (MU rule)'; +#EndIf + +#IfMissingColumn clinical_rules cqm_2011_flag +ALTER TABLE `clinical_rules` ADD COLUMN `cqm_2011_flag` tinyint(1) COMMENT '2011 Clinical Quality Measure flag (unable to customize per patient)'; +UPDATE `clinical_rules` SET `cqm_2011_flag` = 1 WHERE `cqm_flag` = 1; +#EndIf + +#IfMissingColumn clinical_rules cqm_2014_flag +ALTER TABLE `clinical_rules` ADD COLUMN `cqm_2014_flag` tinyint(1) COMMENT '2014 Clinical Quality Measure flag (unable to customize per patient)'; +#EndIf + +#IfMissingColumn clinical_plans cqm_2011_flag +ALTER TABLE `clinical_plans` ADD COLUMN `cqm_2011_flag` tinyint(1) COMMENT '2011 Clinical Quality Measure flag (unable to customize per patient)'; +UPDATE `clinical_plans` SET `cqm_2011_flag` = 1 WHERE `cqm_flag` = 1; +#EndIf + +#IfMissingColumn clinical_plans cqm_2014_flag +ALTER TABLE `clinical_plans` ADD COLUMN `cqm_2014_flag` tinyint(1) COMMENT '2014 Clinical Quality Measure flag (unable to customize per patient)'; +#EndIf + +#IfNotRow2D clinical_rules id problem_list_amc amc_2014_flag 1 +UPDATE `clinical_rules` SET `amc_2014_flag` = 1 , `amc_code_2014` = '170.314(g)(1)/(2)–4' WHERE `id` = 'problem_list_amc'; +#EndIf + +#IfNotRow2D clinical_rules id med_list_amc amc_2014_flag 1 +UPDATE `clinical_rules` SET `amc_2014_flag` = 1 ,`amc_code_2014` = '170.314(g)(1)/(2)–5' WHERE `id` = 'med_list_amc'; +#EndIf + +#IfNotRow2D clinical_rules id med_allergy_list_amc amc_2014_flag 1 +UPDATE `clinical_rules` SET `amc_2014_flag` = 1 , `amc_code_2014` = '170.314(g)(1)/(2)–6' WHERE `id` = 'med_allergy_list_amc'; +#EndIf + +#IfNotRow2D clinical_rules id record_dem_amc amc_2014_flag 1 +UPDATE `clinical_rules` SET `amc_2014_flag` = 1 , `amc_code_2014` = '170.314(g)(1)/(2)–9' WHERE `id` = 'record_dem_amc'; +#EndIf + +#IfNotRow2D clinical_rules id record_smoke_amc amc_2014_flag 1 +UPDATE `clinical_rules` SET `amc_2014_flag` = 1 , `amc_code_2014` = '170.314(g)(1)/(2)–11' WHERE `id` = 'record_smoke_amc'; +#EndIf + +#IfNotRow2D clinical_rules id lab_result_amc amc_2014_flag 1 +UPDATE `clinical_rules` SET `amc_2014_flag` = 1 , `amc_code_2014` = '170.314(g)(1)/(2)–12' WHERE `id` = 'lab_result_amc'; +#EndIf + +#IfNotRow2D clinical_rules id med_reconc_amc amc_2014_flag 1 +UPDATE `clinical_rules` SET `amc_2014_flag` = 1 , `amc_code_2014` = '170.314(g)(1)/(2)–17' WHERE `id` = 'med_reconc_amc'; +#EndIf + +#IfMissingColumn history_data dc_father + ALTER TABLE `history_data` ADD `dc_father` text; +#EndIf +#IfMissingColumn history_data dc_mother + ALTER TABLE `history_data` ADD `dc_mother` text; +#EndIf +#IfMissingColumn history_data dc_siblings + ALTER TABLE `history_data` ADD `dc_siblings` text; +#EndIf +#IfMissingColumn history_data dc_spouse + ALTER TABLE `history_data` ADD `dc_spouse` text; +#EndIf +#IfMissingColumn history_data dc_offspring + ALTER TABLE `history_data` ADD `dc_offspring` text; +#EndIf +#IfNotRow2D layout_options form_id HIS field_id dc_father + INSERT INTO `layout_options` (`form_id`, `field_id`, `group_name`, `title`, `seq`, `data_type`, `uor`, `fld_length`, `max_length`, `list_id`, `titlecols`, `datacols`, `default_value`, `edit_options`, `description`, `fld_rows`, `list_backup_id`) VALUES ('HIS', 'dc_father', '2Family History', 'Diagnosis Code', 2, 15, 1, 0, 255, '', 1, 1, '', '', '', 0, ''); + UPDATE `layout_options` SET `seq` = '3' WHERE `layout_options`.`form_id` = 'HIS' AND `layout_options`.`field_id` = 'history_mother'; +#EndIf +#IfNotRow2D layout_options form_id HIS field_id dc_mother + INSERT INTO `layout_options` (`form_id`, `field_id`, `group_name`, `title`, `seq`, `data_type`, `uor`, `fld_length`, `max_length`, `list_id`, `titlecols`, `datacols`, `default_value`, `edit_options`, `description`, `fld_rows`, `list_backup_id`) VALUES ('HIS', 'dc_mother', '2Family History', 'Diagnosis Code', 4, 15, 1, 0, 255, '', 1, 1, '', '', '', 0, ''); + UPDATE `layout_options` SET `seq` = '5' WHERE `layout_options`.`form_id` = 'HIS' AND `layout_options`.`field_id` = 'history_siblings'; +#EndIf +#IfNotRow2D layout_options form_id HIS field_id dc_siblings + INSERT INTO `layout_options` (`form_id`, `field_id`, `group_name`, `title`, `seq`, `data_type`, `uor`, `fld_length`, `max_length`, `list_id`, `titlecols`, `datacols`, `default_value`, `edit_options`, `description`, `fld_rows`, `list_backup_id`) VALUES ('HIS', 'dc_siblings', '2Family History', 'Diagnosis Code', 6, 15, 1, 0, 255, '', 1, 1, '', '', '', 0, ''); + UPDATE `layout_options` SET `seq` = '7' WHERE `layout_options`.`form_id` = 'HIS' AND `layout_options`.`field_id` = 'history_spouse'; +#EndIf +#IfNotRow2D layout_options form_id HIS field_id dc_spouse + INSERT INTO `layout_options` (`form_id`, `field_id`, `group_name`, `title`, `seq`, `data_type`, `uor`, `fld_length`, `max_length`, `list_id`, `titlecols`, `datacols`, `default_value`, `edit_options`, `description`, `fld_rows`, `list_backup_id`) VALUES ('HIS', 'dc_spouse', '2Family History', 'Diagnosis Code', 8, 15, 1, 0, 255, '', 1, 1, '', '', '', 0, ''); + UPDATE `layout_options` SET `seq` = '9', `datacols` = '1' WHERE `layout_options`.`form_id` = 'HIS' AND `layout_options`.`field_id` = 'history_offspring'; +#EndIf +#IfNotRow2D layout_options form_id HIS field_id dc_offspring + INSERT INTO `layout_options` (`form_id`, `field_id`, `group_name`, `title`, `seq`, `data_type`, `uor`, `fld_length`, `max_length`, `list_id`, `titlecols`, `datacols`, `default_value`, `edit_options`, `description`, `fld_rows`, `list_backup_id`) VALUES ('HIS', 'dc_offspring', '2Family History', 'Diagnosis Code', 10, 15, 1, 0, 255, '', 1, 1, '', '', '', 0, ''); +#EndIf + +#IfNotRow2D list_options list_id lists option_id amendment_status + INSERT INTO `list_options` ( `list_id`, `option_id`, `title` ) + VALUES ('lists' ,'amendment_status','Amendment Status'); + + INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES + ('amendment_status' ,'approved','Approved', 10, 0), + ('amendment_status' ,'rejected','Rejected', 20, 0); +#EndIf + +#IfNotRow2D list_options list_id lists option_id amendment_from + INSERT INTO `list_options` ( `list_id`, `option_id`, `title` ) + VALUES ('lists' ,'amendment_from','Amendment From'); + + INSERT INTO `list_options` ( `list_id`, `option_id`, `title`, `seq`, `is_default` ) VALUES + ('amendment_from' ,'patient','Patient', 10, 0), + ('amendment_from' ,'insurance','Insurance', 20, 0); +#EndIf + +#IfNotTable amendments + CREATE TABLE `amendments` ( + `amendment_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Amendment ID', + `amendment_date` date NOT NULL COMMENT 'Amendement request date', + `amendment_by` varchar(50) NOT NULL COMMENT 'Amendment requested from', + `amendment_status` varchar(50) NULL COMMENT 'Amendment status accepted/rejected/null', + `pid` int(11) NOT NULL COMMENT 'Patient ID from patient_data', + `amendment_desc` text NOT NULL COMMENT 'Amendment Details', + `created_by` int(11) NOT NULL COMMENT 'references users.id for session owner', + `modified_by` int(11) NULL COMMENT 'references users.id for session owner', + `created_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'created time', + `modified_time` timestamp NULL COMMENT 'modified time', + PRIMARY KEY amendments_id(`amendment_id`), + KEY amendment_pid(`pid`) + ) ENGINE = MyISAM; +#EndIf + +#IfNotTable amendments_history + CREATE TABLE `amendments_history` ( + `amendment_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Amendment ID', + `amendment_note` text NOT NULL COMMENT 'Amendment requested from', + `amendment_status` VARCHAR(50) NULL COMMENT 'Amendment Request Status', + `created_by` int(11) NOT NULL COMMENT 'references users.id for session owner', + `created_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'created time', + KEY amendment_history_id(`amendment_id`) + ) ENGINE = MyISAM; +#EndIf + +#IfNotTable log_comment_encrypt + CREATE TABLE `log_comment_encrypt` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `log_id` int(11) NOT NULL, + `encrypt` enum('Yes','No') NOT NULL DEFAULT 'No', + `checksum` longtext NOT NULL, + PRIMARY KEY (`id`) + ) ENGINE=InnoDB; +#EndIf + +#IfMissingColumn documents encounter_id + ALTER TABLE `documents` ADD `encounter_id` bigint(20) NOT NULL DEFAULT '0' COMMENT 'Encounter id if tagged'; +#EndIf + +#IfMissingColumn documents encounter_check + ALTER TABLE `documents` ADD `encounter_check` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'If encounter is created while tagging'; +#EndIf + +#IfNotTable report_itemized +CREATE TABLE `report_itemized` ( + `report_id` bigint(20) NOT NULL, + `itemized_test_id` smallint(6) NOT NULL, + `numerator_label` varchar(25) NOT NULL DEFAULT '' COMMENT 'Only used in special cases', + `pass` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 is fail, 1 is pass, 2 is excluded', + `pid` bigint(20) NOT NULL, + KEY (`report_id`,`itemized_test_id`,`numerator_label`,`pass`) +) ENGINE=MyISAM; +#EndIf + +#IfNotTable shared_attributes +CREATE TABLE `shared_attributes` ( + `pid` bigint(20) NOT NULL, + `encounter` bigint(20) NOT NULL COMMENT '0 if patient attribute, else encounter attribute', + `field_id` varchar(31) NOT NULL COMMENT 'references layout_options.field_id', + `last_update` datetime NOT NULL COMMENT 'time of last update', + `user_id` bigint(20) NOT NULL COMMENT 'user who last updated', + `field_value` TEXT NOT NULL, + PRIMARY KEY (`pid`, `encounter`, `field_id`) +); +#EndIf + +#IfMissingColumn layout_options source +ALTER TABLE `layout_options` ADD COLUMN `source` char(1) NOT NULL default 'F' + COMMENT 'F=Form, D=Demographics, H=History, E=Encounter'; +#EndIf + +#IfMissingColumn layout_options conditions +ALTER TABLE `layout_options` ADD COLUMN + `conditions` text NOT NULL DEFAULT '' COMMENT 'serialized array of skip conditions'; +#EndIf + +#IfNotTable patient_tracker +CREATE TABLE `patient_tracker` ( + `id` bigint(20) NOT NULL auto_increment, + `date` datetime NOT NULL, + `pid` bigint(20) NOT NULL, + `user` varchar(255) NOT NULL, + `groupname` varchar(255) NOT NULL, + `authorized` tinyint(4) NOT NULL, + `activity` tinyint(4) NOT NULL, + `roomnumber` varchar(15) NOT NULL, + `roomuser` varchar(255) NOT NULL, + `status` varchar(2) NOT NULL, + `encnum` bigint(20) NOT NULL, + `origappt` time NOT NULL, + `provider` varchar(30) NOT NULL, + `facility_id` bigint(20) NOT NULL, + `arrivedatetime` datetime NOT NULL, + `arrivedtestop` datetime NOT NULL, + `arriveuser` varchar(255) NOT NULL, + `inroomdatetime` datetime NOT NULL, + `inroomdtestop` datetime NOT NULL, + `inroomuser` varchar(255) NOT NULL, + `nurseseendatetime` datetime NOT NULL, + `nurseseendtestop` datetime NOT NULL, + `nurseseenuser` varchar(255) NOT NULL, + `drseendatetime` datetime NOT NULL, + `drseendtestop` datetime NOT NULL, + `drseenuser` varchar(255) NOT NULL, + `techseendatetime` datetime NOT NULL, + `techseendtestop` datetime NOT NULL, + `techseenuser` varchar(255) NOT NULL, + `labseendatetime` datetime NOT NULL, + `labseendtestop` datetime NOT NULL, + `labseenuser` varchar(255) NOT NULL, + `proseendatetime` datetime NOT NULL, + `proseendtestop` datetime NOT NULL, + `proseenuser` varchar(255) NOT NULL, + `radseendatetime` datetime NOT NULL, + `radseendtestop` datetime NOT NULL, + `radseenuser` varchar(255) NOT NULL, + `ptseendatetime` datetime NOT NULL, + `ptseendtestop` datetime NOT NULL, + `ptseenuser` varchar(255) NOT NULL, + `checkoutdatetime` datetime NOT NULL, + `checkoutdtestop` datetime NOT NULL, + `checkoutuser` varchar(255) NOT NULL, + `def1datetime` datetime NOT NULL, + `def1dtestop` datetime NOT NULL, + `def1user` varchar(255) NOT NULL, + `def2datetime` datetime NOT NULL, + `def2dtestop` datetime NOT NULL, + `def2user` varchar(255) NOT NULL, + `def3datetime` datetime NOT NULL, + `def3dtestop` datetime NOT NULL, + `def3user` varchar(255) NOT NULL, + `def4datetime` datetime NOT NULL, + `def4dtestop` datetime NOT NULL, + `def4user` varchar(255) NOT NULL, + `def5datetime` datetime NOT NULL, + `def5dtestop` datetime NOT NULL, + `def5user` varchar(255) NOT NULL, + `def6datetime` datetime NOT NULL, + `def6dtestop` datetime NOT NULL, + `def6user` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +); +#EndIf diff --git a/sql/database.sql b/sql/database.sql index d8a0db3a83f..3801a4e8ee9 100644 --- a/sql/database.sql +++ b/sql/database.sql @@ -6275,3 +6275,69 @@ CREATE TABLE `shared_attributes` ( `field_value` TEXT NOT NULL, PRIMARY KEY (`pid`, `encounter`, `field_id`) ); + +CREATE TABLE `patient_tracker` ( + `id` bigint(20) NOT NULL auto_increment, + `date` datetime NOT NULL, + `pid` bigint(20) NOT NULL, + `user` varchar(255) NOT NULL, + `groupname` varchar(255) NOT NULL, + `authorized` tinyint(4) NOT NULL, + `activity` tinyint(4) NOT NULL, + `roomnumber` varchar(15) NOT NULL, + `roomuser` varchar(255) NOT NULL, + `status` varchar(2) NOT NULL, + `encnum` bigint(20) NOT NULL, + `origappt` time NOT NULL, + `provider` varchar(30) NOT NULL, + `facility_id` bigint(20) NOT NULL, + `arrivedatetime` datetime NOT NULL, + `arrivedtestop` datetime NOT NULL, + `arriveuser` varchar(255) NOT NULL, + `inroomdatetime` datetime NOT NULL, + `inroomdtestop` datetime NOT NULL, + `inroomuser` varchar(255) NOT NULL, + `nurseseendatetime` datetime NOT NULL, + `nurseseendtestop` datetime NOT NULL, + `nurseseenuser` varchar(255) NOT NULL, + `drseendatetime` datetime NOT NULL, + `drseendtestop` datetime NOT NULL, + `drseenuser` varchar(255) NOT NULL, + `techseendatetime` datetime NOT NULL, + `techseendtestop` datetime NOT NULL, + `techseenuser` varchar(255) NOT NULL, + `labseendatetime` datetime NOT NULL, + `labseendtestop` datetime NOT NULL, + `labseenuser` varchar(255) NOT NULL, + `proseendatetime` datetime NOT NULL, + `proseendtestop` datetime NOT NULL, + `proseenuser` varchar(255) NOT NULL, + `radseendatetime` datetime NOT NULL, + `radseendtestop` datetime NOT NULL, + `radseenuser` varchar(255) NOT NULL, + `ptseendatetime` datetime NOT NULL, + `ptseendtestop` datetime NOT NULL, + `ptseenuser` varchar(255) NOT NULL, + `checkoutdatetime` datetime NOT NULL, + `checkoutdtestop` datetime NOT NULL, + `checkoutuser` varchar(255) NOT NULL, + `def1datetime` datetime NOT NULL, + `def1dtestop` datetime NOT NULL, + `def1user` varchar(255) NOT NULL, + `def2datetime` datetime NOT NULL, + `def2dtestop` datetime NOT NULL, + `def2user` varchar(255) NOT NULL, + `def3datetime` datetime NOT NULL, + `def3dtestop` datetime NOT NULL, + `def3user` varchar(255) NOT NULL, + `def4datetime` datetime NOT NULL, + `def4dtestop` datetime NOT NULL, + `def4user` varchar(255) NOT NULL, + `def5datetime` datetime NOT NULL, + `def5dtestop` datetime NOT NULL, + `def5user` varchar(255) NOT NULL, + `def6datetime` datetime NOT NULL, + `def6dtestop` datetime NOT NULL, + `def6user` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +); diff --git a/sql/patch.sql b/sql/patch.sql index 19770ee3894..d577d5c409b 100644 --- a/sql/patch.sql +++ b/sql/patch.sql @@ -47,4 +47,70 @@ -- #EndIf -- all blocks are terminated with and #EndIf statement. - +#IfNotTable patient_tracker +CREATE TABLE `patient_tracker` ( + `id` bigint(20) NOT NULL auto_increment, + `date` datetime NOT NULL, + `pid` bigint(20) NOT NULL, + `user` varchar(255) NOT NULL, + `groupname` varchar(255) NOT NULL, + `authorized` tinyint(4) NOT NULL, + `activity` tinyint(4) NOT NULL, + `roomnumber` varchar(15) NOT NULL, + `roomuser` varchar(255) NOT NULL, + `status` varchar(2) NOT NULL, + `encnum` bigint(20) NOT NULL, + `origappt` time NOT NULL, + `provider` varchar(30) NOT NULL, + `facility_id` bigint(20) NOT NULL, + `arrivedatetime` datetime NOT NULL, + `arrivedtestop` datetime NOT NULL, + `arriveuser` varchar(255) NOT NULL, + `inroomdatetime` datetime NOT NULL, + `inroomdtestop` datetime NOT NULL, + `inroomuser` varchar(255) NOT NULL, + `nurseseendatetime` datetime NOT NULL, + `nurseseendtestop` datetime NOT NULL, + `nurseseenuser` varchar(255) NOT NULL, + `drseendatetime` datetime NOT NULL, + `drseendtestop` datetime NOT NULL, + `drseenuser` varchar(255) NOT NULL, + `techseendatetime` datetime NOT NULL, + `techseendtestop` datetime NOT NULL, + `techseenuser` varchar(255) NOT NULL, + `labseendatetime` datetime NOT NULL, + `labseendtestop` datetime NOT NULL, + `labseenuser` varchar(255) NOT NULL, + `proseendatetime` datetime NOT NULL, + `proseendtestop` datetime NOT NULL, + `proseenuser` varchar(255) NOT NULL, + `radseendatetime` datetime NOT NULL, + `radseendtestop` datetime NOT NULL, + `radseenuser` varchar(255) NOT NULL, + `ptseendatetime` datetime NOT NULL, + `ptseendtestop` datetime NOT NULL, + `ptseenuser` varchar(255) NOT NULL, + `checkoutdatetime` datetime NOT NULL, + `checkoutdtestop` datetime NOT NULL, + `checkoutuser` varchar(255) NOT NULL, + `def1datetime` datetime NOT NULL, + `def1dtedtop` datetime NOT NULL, + `def1user` varchar(255) NOT NULL, + `def2datetime` datetime NOT NULL, + `def2dtestop` datetime NOT NULL, + `def2user` varchar(255) NOT NULL, + `def3datetime` datetime NOT NULL, + `def3dtestop` datetime NOT NULL, + `def3user` varchar(255) NOT NULL, + `def4datetime` datetime NOT NULL, + `def4dtestop` datetime NOT NULL, + `def4user` varchar(255) NOT NULL, + `def5datetime` datetime NOT NULL, + `def5dtestop` datetime NOT NULL, + `def5user` varchar(255) NOT NULL, + `def6datetime` datetime NOT NULL, + `def6dtestop` datetime NOT NULL, + `def6user` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +); +#EndIf \ No newline at end of file