|
| 1 | +-- |
| 2 | +-- Comment Meta Language Constructs: |
| 3 | +-- |
| 4 | +-- #IfNotTable |
| 5 | +-- argument: table_name |
| 6 | +-- behavior: if the table_name does not exist, the block will be executed |
| 7 | + |
| 8 | +-- #IfTable |
| 9 | +-- argument: table_name |
| 10 | +-- behavior: if the table_name does exist, the block will be executed |
| 11 | + |
| 12 | +-- #IfColumn |
| 13 | +-- arguments: table_name colname |
| 14 | +-- behavior: if the table and column exist, the block will be executed |
| 15 | + |
| 16 | +-- #IfMissingColumn |
| 17 | +-- arguments: table_name colname |
| 18 | +-- behavior: if the table exists but the column does not, the block will be executed |
| 19 | + |
| 20 | +-- #IfNotColumnType |
| 21 | +-- arguments: table_name colname value |
| 22 | +-- behavior: If the table table_name does not have a column colname with a data type equal to value, then the block will be executed |
| 23 | + |
| 24 | +-- #IfNotColumnTypeDefault |
| 25 | +-- arguments: table_name colname value value2 |
| 26 | +-- behavior: If the table table_name does not have a column colname with a data type equal to value and a default equal to value2, then the block will be executed |
| 27 | + |
| 28 | +-- #IfNotRow |
| 29 | +-- arguments: table_name colname value |
| 30 | +-- behavior: If the table table_name does not have a row where colname = value, the block will be executed. |
| 31 | + |
| 32 | +-- #IfNotRow2D |
| 33 | +-- arguments: table_name colname value colname2 value2 |
| 34 | +-- behavior: If the table table_name does not have a row where colname = value AND colname2 = value2, the block will be executed. |
| 35 | + |
| 36 | +-- #IfNotRow3D |
| 37 | +-- arguments: table_name colname value colname2 value2 colname3 value3 |
| 38 | +-- behavior: If the table table_name does not have a row where colname = value AND colname2 = value2 AND colname3 = value3, the block will be executed. |
| 39 | + |
| 40 | +-- #IfNotRow4D |
| 41 | +-- arguments: table_name colname value colname2 value2 colname3 value3 colname4 value4 |
| 42 | +-- behavior: If the table table_name does not have a row where colname = value AND colname2 = value2 AND colname3 = value3 AND colname4 = value4, the block will be executed. |
| 43 | + |
| 44 | +-- #IfNotRow2Dx2 |
| 45 | +-- desc: This is a very specialized function to allow adding items to the list_options table to avoid both redundant option_id and title in each element. |
| 46 | +-- arguments: table_name colname value colname2 value2 colname3 value3 |
| 47 | +-- behavior: The block will be executed if both statements below are true: |
| 48 | +-- 1) The table table_name does not have a row where colname = value AND colname2 = value2. |
| 49 | +-- 2) The table table_name does not have a row where colname = value AND colname3 = value3. |
| 50 | + |
| 51 | +-- #IfRow |
| 52 | +-- arguments: table_name colname value |
| 53 | +-- behavior: If the table table_name does have a row where colname = value, the block will be executed. |
| 54 | + |
| 55 | +-- #IfRow2D |
| 56 | +-- arguments: table_name colname value colname2 value2 |
| 57 | +-- behavior: If the table table_name does have a row where colname = value AND colname2 = value2, the block will be executed. |
| 58 | + |
| 59 | +-- #IfRow3D |
| 60 | +-- arguments: table_name colname value colname2 value2 colname3 value3 |
| 61 | +-- behavior: If the table table_name does have a row where colname = value AND colname2 = value2 AND colname3 = value3, the block will be executed. |
| 62 | + |
| 63 | +-- #IfRowIsNull |
| 64 | +-- arguments: table_name colname |
| 65 | +-- behavior: If the table table_name does have a row where colname is null, the block will be executed. |
| 66 | + |
| 67 | +-- #IfIndex |
| 68 | +-- desc: This function is most often used for dropping of indexes/keys. |
| 69 | +-- arguments: table_name colname |
| 70 | +-- behavior: If the table and index exist the relevant statements are executed, otherwise not. |
| 71 | + |
| 72 | +-- #IfNotIndex |
| 73 | +-- desc: This function will allow adding of indexes/keys. |
| 74 | +-- arguments: table_name colname |
| 75 | +-- behavior: If the index does not exist, it will be created |
| 76 | + |
| 77 | +-- #EndIf |
| 78 | +-- all blocks are terminated with a #EndIf statement. |
| 79 | + |
| 80 | +-- #IfNotListReaction |
| 81 | +-- Custom function for creating Reaction List |
| 82 | + |
| 83 | +-- #IfNotListOccupation |
| 84 | +-- Custom function for creating Occupation List |
| 85 | + |
| 86 | +-- #IfTextNullFixNeeded |
| 87 | +-- desc: convert all text fields without default null to have default null. |
| 88 | +-- arguments: none |
| 89 | + |
| 90 | +-- #IfTableEngine |
| 91 | +-- desc: Execute SQL if the table has been created with given engine specified. |
| 92 | +-- arguments: table_name engine |
| 93 | +-- behavior: Use when engine conversion requires more than one ALTER TABLE |
| 94 | + |
| 95 | +-- #IfInnoDBMigrationNeeded |
| 96 | +-- desc: find all MyISAM tables and convert them to InnoDB. |
| 97 | +-- arguments: none |
| 98 | +-- behavior: can take a long time. |
| 99 | + |
| 100 | +-- #IfDocumentNamingNeeded |
| 101 | +-- desc: populate name field with document names. |
| 102 | +-- arguments: none |
| 103 | + |
| 104 | +-- #IfUpdateEditOptionsNeeded |
| 105 | +-- desc: Change Layout edit options. |
| 106 | +-- arguments: mode(add or remove) layout_form_id the_edit_option comma_separated_list_of_field_ids |
| 107 | + |
| 108 | +-- #IfVitalsDatesNeeded |
| 109 | +-- desc: Change date from zeroes to date of vitals form creation. |
| 110 | +-- arguments: none |
| 111 | + |
| 112 | +-- #IfMBOEncounterNeeded |
| 113 | +-- desc: Add encounter to the form_misc_billing_options table |
| 114 | +-- arguments: none |
0 commit comments