--Emergency Preparedness Plan Form in New parent Tab

INSERT INTO `forms` (`id`, `form_name`, `form_data`) VALUES (74, 'emergency_preparedness_plan', '{\"formSections\":[{\"id\":\"user-form-settings\",\"componentType\":\"form\",\"component\":{\"ajax\":\"false\",\"attr\":\"novalidate\",\"framework\":\"bs4\",\"iconFont\":\"fontawesome5\",\"iconFontUrl\":\"//cdnjs.cloudflare.com/ajax/libs/font-awesome/5.3.1/css/all.min.css\",\"id\":\"emergency_preparedness_plan\",\"layout\":\"horizontal\",\"plugins\":[],\"aftervalidation\":\"\",\"redirectUrl\":\"\",\"senderEmail\":\"\",\"recipientEmail\":\"\",\"subject\":\"\",\"senderName\":\"\",\"replyToEmail\":\"\",\"sentMessage\":\"\",\"dbTable\":\"\",\"dbPrimary\":\"\",\"dbFilter\":\"\"}},{\"id\":\"f5kx1kfxrvn5tns2zxmz8h\",\"componentType\":\"radio\",\"component\":{\"componentType\":\"radio\",\"helper\":\"\",\"plugins\":[],\"radioButtons\":[{\"index\":1,\"text\":\"Yes\",\"value\":\"Yes\"},{\"index\":2,\"text\":\"No\",\"value\":\"No\"}],\"attr\":[{\"name\":\"class\",\"value\":\"fstfdt6tsrt\"}],\"clazz\":\"fstfdt6tsrt\",\"index\":1,\"inline\":\"true\",\"label\":\"Family or Other Back Upprovider Available\",\"name\":\"family_or_other_back_upprovider_available\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"rg3gy6m9kk8ij1icupmhs\",\"componentType\":\"input\",\"component\":{\"componentType\":\"input\",\"helper\":\"\",\"icon\":\"\",\"iconPosition\":\"before\",\"plugins\":[],\"attr\":[],\"clazz\":\"\",\"index\":1,\"label\":\"Family or Other Back Upprovider Name\",\"name\":\"family_or_other_back_upprovider_available_name\",\"placeholder\":\"\",\"type\":\"text\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"a8cdqgt6cpo3fas9i0fcyc\",\"componentType\":\"input\",\"component\":{\"componentType\":\"input\",\"helper\":\"\",\"icon\":\"\",\"iconPosition\":\"before\",\"plugins\":[],\"attr\":[],\"clazz\":\"\",\"index\":3,\"label\":\"Family or Other Back Upprovider Phone\",\"name\":\"family_or_other_back_upprovider_available_phone\",\"placeholder\":\"\",\"type\":\"text\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"zmttrbid04qrrrep2sdvaa\",\"componentType\":\"input\",\"component\":{\"componentType\":\"input\",\"helper\":\"\",\"icon\":\"\",\"iconPosition\":\"before\",\"plugins\":[],\"attr\":[],\"clazz\":\"\",\"index\":2,\"label\":\"Transportation Company\",\"name\":\"transportation_company\",\"placeholder\":\"\",\"type\":\"text\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"dxwpjdaqnvwtkhhdqjs2zf\",\"componentType\":\"radio\",\"component\":{\"componentType\":\"radio\",\"helper\":\"\",\"plugins\":[],\"radioButtons\":[{\"index\":1,\"text\":\"Hospital\",\"value\":\"Hospital\"},{\"index\":2,\"text\":\"Nursing Home\",\"value\":\"Nursing Home\"},{\"index\":3,\"text\":\"Shelter\",\"value\":\"Shelter\"},{\"index\":4,\"text\":\"Other\",\"value\":\"Other\"}],\"attr\":[],\"clazz\":\"\",\"index\":2,\"inline\":\"true\",\"label\":\"Evacuation Location\",\"name\":\"evacuation_location\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"zz50nlef4yqlsvqabs1wke\",\"componentType\":\"input\",\"component\":{\"componentType\":\"input\",\"helper\":\"\",\"icon\":\"\",\"iconPosition\":\"before\",\"plugins\":[],\"attr\":[],\"clazz\":\"\",\"index\":8,\"label\":\"TAL 1 Non-ambulatory Stretcher\",\"name\":\"tal_1_non_ambulatory_stretcher\",\"placeholder\":\"\",\"type\":\"text\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"hep1ycc1exqv84jgvtubmd\",\"componentType\":\"input\",\"component\":{\"componentType\":\"input\",\"helper\":\"\",\"icon\":\"\",\"iconPosition\":\"before\",\"plugins\":[],\"attr\":[],\"clazz\":\"\",\"index\":9,\"label\":\"TAL 2 Wheelchair\",\"name\":\"tal_2_wheelchair\",\"placeholder\":\"\",\"type\":\"text\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"u4yvlqwepxkzs7etxiirl\",\"componentType\":\"input\",\"component\":{\"componentType\":\"input\",\"helper\":\"\",\"icon\":\"\",\"iconPosition\":\"before\",\"plugins\":[],\"attr\":[],\"clazz\":\"\",\"index\":10,\"label\":\"TAL 3 Ambulatory\",\"name\":\"tal_3_ambulatory\",\"placeholder\":\"\",\"type\":\"text\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"413lw60h0c3xiawfw2e43k\",\"componentType\":\"radio\",\"component\":{\"componentType\":\"radio\",\"helper\":\"\",\"plugins\":[],\"radioButtons\":[{\"index\":1,\"text\":\"Level 1 High\",\"value\":\"Level 1 High\"},{\"index\":2,\"text\":\"Level 2 Moderate\",\"value\":\"Level 2 Moderate\"},{\"index\":3,\"text\":\"Level 3 Low\",\"value\":\"Level 3 Low\"}],\"attr\":[],\"clazz\":\"\",\"index\":3,\"inline\":\"true\",\"label\":\"Emergency Priority Code\",\"name\":\"emergency_criority_code\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"fvir8wcizu8x1rmqgbbau\",\"componentType\":\"radio\",\"component\":{\"componentType\":\"radio\",\"helper\":\"\",\"plugins\":[],\"radioButtons\":[{\"index\":1,\"text\":\"Yes\",\"value\":\"Yes\"},{\"index\":2,\"text\":\"No\",\"value\":\"No\"}],\"attr\":[],\"clazz\":\"\",\"index\":4,\"inline\":\"true\",\"label\":\"Electrical Equipment Dependency\",\"name\":\"electrical_equipment_dependency\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"yl1pt3v3k8o75cjmjpizc\",\"componentType\":\"checkbox\",\"component\":{\"componentType\":\"checkbox\",\"helper\":\"\",\"plugins\":[],\"checkboxes\":[{\"index\":1,\"text\":\"Feeding Pump\",\"value\":\"Feeding Pump\"},{\"index\":2,\"text\":\"Ventilator\",\"value\":\"Ventilator\"},{\"index\":3,\"text\":\"Oxygen\",\"value\":\"Oxygen\"},{\"index\":4,\"text\":\"IV Pump\",\"value\":\"IV Pump\"},{\"index\":5,\"text\":\"Other\",\"value\":\"Other\"}],\"attr\":[{\"name\":\"class\",\"value\":\"fstfdt6tsrt\"}],\"clazz\":\"fstfdt6tsrt\",\"index\":1,\"inline\":\"true\",\"label\":\"If Electrical Equipment Dependency Specify Type\",\"name\":\"if_electrical_equipment_dependenc\",\"value\":\"\",\"width\":\"50%\"}},{\"id\":\"3fbah9uil2r9tz7wivtboa\",\"componentType\":\"input\",\"component\":{\"componentType\":\"input\",\"helper\":\"\",\"icon\":\"\",\"iconPosition\":\"before\",\"plugins\":[],\"attr\":[],\"clazz\":\"\",\"index\":7,\"label\":\"If Electrical Equipment Dependency Specify Type (Other)\",\"name\":\"if_electrical_equipment_dependenc_other\",\"placeholder\":\"\",\"type\":\"text\",\"value\":\"\",\"width\":\"50%\"}},{\"id\":\"pppobozpqxba20f8fn8tt\",\"componentType\":\"input\",\"component\":{\"componentType\":\"input\",\"helper\":\"\",\"icon\":\"\",\"iconPosition\":\"before\",\"plugins\":[],\"attr\":[],\"clazz\":\"\",\"index\":8,\"label\":\"PCP Provider\",\"name\":\"pcp_rovider\",\"placeholder\":\"\",\"type\":\"text\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"o4g38a83x1rn529ukxo57m\",\"componentType\":\"input\",\"component\":{\"componentType\":\"input\",\"helper\":\"\",\"icon\":\"\",\"iconPosition\":\"before\",\"plugins\":[],\"attr\":[],\"clazz\":\"\",\"index\":9,\"label\":\"PCP Provider Phone Number\",\"name\":\"pcp_provider_phone\",\"placeholder\":\"\",\"type\":\"text\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"x6l5hq8wv3qjjrt0i1xf9\",\"componentType\":\"input\",\"component\":{\"componentType\":\"input\",\"helper\":\"\",\"icon\":\"\",\"iconPosition\":\"before\",\"plugins\":[],\"attr\":[],\"clazz\":\"\",\"index\":10,\"label\":\"MI.TC Name\",\"name\":\"mitc_name\",\"placeholder\":\"\",\"type\":\"text\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"u70vfmab5fcnaziocos2c\",\"componentType\":\"input\",\"component\":{\"componentType\":\"input\",\"helper\":\"\",\"icon\":\"\",\"iconPosition\":\"before\",\"plugins\":[],\"attr\":[],\"clazz\":\"\",\"index\":11,\"label\":\"MI.TC Phone Number\",\"name\":\"mitc_phone\",\"placeholder\":\"\",\"type\":\"text\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"270s1j6os8ql5tulg5e54\",\"componentType\":\"input\",\"component\":{\"componentType\":\"input\",\"helper\":\"\",\"icon\":\"\",\"iconPosition\":\"before\",\"plugins\":[],\"attr\":[],\"clazz\":\"\",\"index\":12,\"label\":\"Emergency Supply Kit Checklist\",\"name\":\"emergency_supply_kit_checklist\",\"placeholder\":\"\",\"type\":\"text\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"uciz7ef1qhpntusjqlotb\",\"componentType\":\"input\",\"component\":{\"componentType\":\"input\",\"helper\":\"\",\"icon\":\"\",\"iconPosition\":\"before\",\"plugins\":[],\"attr\":[],\"clazz\":\"\",\"index\":13,\"label\":\"Emergency Preparedness Guide\",\"name\":\"emergency_preparedness_guide\",\"placeholder\":\"\",\"type\":\"text\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"tve1441camlex4ce29ljkb\",\"componentType\":\"checkbox\",\"component\":{\"componentType\":\"checkbox\",\"helper\":\"\",\"plugins\":[],\"checkboxes\":[{\"index\":1,\"text\":\"Emergency Contacts\",\"value\":\"Emergency Contacts\"},{\"index\":2,\"text\":\"Medication List\",\"value\":\"Medication List\"}],\"attr\":[],\"clazz\":\"\",\"index\":2,\"inline\":\"true\",\"label\":\"\",\"name\":\"emergency_contacts_&_medication_checklist\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"user-form-settings\",\"componentType\":\"form\",\"component\":{\"ajax\":\"false\",\"attr\":\"novalidate\",\"framework\":\"bs4\",\"iconFont\":\"fontawesome5\",\"iconFontUrl\":\"//cdnjs.cloudflare.com/ajax/libs/font-awesome/5.3.1/css/all.min.css\",\"id\":\"fg-form\",\"layout\":\"horizontal\",\"plugins\":[],\"aftervalidation\":\"\",\"redirectUrl\":\"\",\"senderEmail\":\"\",\"recipientEmail\":\"\",\"subject\":\"\",\"senderName\":\"\",\"replyToEmail\":\"\",\"sentMessage\":\"\",\"dbTable\":\"\",\"dbPrimary\":\"\",\"dbFilter\":\"\"}}],\"uiForm\":{\"attr\":\"novalidate\",\"id\":\"fg-form\",\"layout\":\"horizontal\"},\"userForm\":{\"ajax\":\"false\",\"attr\":\"novalidate\",\"framework\":\"bs4\",\"iconFont\":\"fontawesome5\",\"iconFontUrl\":\"//cdnjs.cloudflare.com/ajax/libs/font-awesome/5.3.1/css/all.min.css\",\"id\":\"fg-form\",\"layout\":\"horizontal\",\"plugins\":[],\"aftervalidation\":\"\",\"redirectUrl\":\"\",\"senderEmail\":\"\",\"recipientEmail\":\"\",\"subject\":\"\",\"senderName\":\"\",\"replyToEmail\":\"\",\"sentMessage\":\"\",\"dbTable\":\"\",\"dbPrimary\":\"\",\"dbFilter\":\"\"}}');



INSERT INTO `form_template_mapping` (`id`, `form_name`, `template_id`) VALUES (NULL, 'emergency_preparedness_plan', '74');

ALTER TABLE `patient_report` ADD `emergency_preparedness_plan` TEXT NOT NULL AFTER `authorities`;