INSERT INTO `forms` (`id`, `form_name`, `form_data`) VALUES 
(64, 'psycho-social-template', '{\"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\":\"psycho-social\",\"layout\":\"horizontal\",\"plugins\":[],\"aftervalidation\":\"\",\"redirectUrl\":\"\",\"senderEmail\":\"\",\"recipientEmail\":\"\",\"subject\":\"\",\"senderName\":\"\",\"replyToEmail\":\"\",\"sentMessage\":\"\",\"dbTable\":\"\",\"dbPrimary\":\"\",\"dbFilter\":\"\"}},{\"id\":\"gi8eaf5smfa4md8d5kh8j7\",\"componentType\":\"radio\",\"component\":{\"componentType\":\"radio\",\"helper\":\"\",\"plugins\":[],\"radioButtons\":[{\"index\":1,\"text\":\"Work\",\"value\":\"work\"},{\"index\":2,\"text\":\"Retired\",\"value\":\"retired\"},{\"index\":3,\"text\":\"Other\",\"value\":\"other\"}],\"attr\":[{\"name\":\"class\",\"value\":\"fstfdt6tsrt\"}],\"clazz\":\"fstfdt6tsrt\",\"index\":1,\"inline\":\"true\",\"label\":\"Economic Functioning\",\"name\":\"economic_functioning\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"neqt5a9xsxl9b5khitvpo\",\"componentType\":\"input\",\"component\":{\"componentType\":\"input\",\"helper\":\"\",\"icon\":\"\",\"iconPosition\":\"before\",\"plugins\":[],\"attr\":[],\"clazz\":\"\",\"index\":1,\"label\":\"Cultural/Religion background\",\"name\":\"cultural_religion_background\",\"placeholder\":\"\",\"type\":\"text\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"p4czm3dgmde4oj9ue8ybqp\",\"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\":2,\"inline\":\"true\",\"label\":\"Does the patient attend Adult Daycare Center? \",\"name\":\"attend_adult_daycare_center\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"9omi53g6ooymtgfgazimd\",\"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\":3,\"inline\":\"true\",\"label\":\"Social peer group? \",\"name\":\"social_peer_group\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"xf54olhg3ndwd8ahugsjuf\",\"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\":4,\"inline\":\"true\",\"label\":\"Does the patient smoke?\",\"name\":\"patient_smoke\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"yo861a28anbbfoqprn10m\",\"componentType\":\"input\",\"component\":{\"componentType\":\"input\",\"helper\":\"\",\"icon\":\"\",\"iconPosition\":\"before\",\"plugins\":[],\"attr\":[],\"clazz\":\"\",\"index\":2,\"label\":\"Smokes Frequency Per Day\",\"name\":\"smoke_frequency_per_day\",\"placeholder\":\"\",\"type\":\"number\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"5rq6zxlrkjfbryn8w8mruf\",\"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\":5,\"inline\":\"true\",\"label\":\"Is the patient Alcoholic?\",\"name\":\"patient_alcoholic\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"x64ug2heamgfmgksfywie\",\"componentType\":\"input\",\"component\":{\"componentType\":\"input\",\"helper\":\"\",\"icon\":\"\",\"iconPosition\":\"before\",\"plugins\":[],\"attr\":[],\"clazz\":\"\",\"index\":3,\"label\":\"Drink Frequency Per Day\",\"name\":\"drink_frequency_per_day\",\"placeholder\":\"\",\"type\":\"number\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"83fdhq5029v56jykxpum7q\",\"componentType\":\"input\",\"component\":{\"componentType\":\"input\",\"helper\":\"\",\"icon\":\"\",\"iconPosition\":\"before\",\"plugins\":[],\"attr\":[],\"clazz\":\"\",\"index\":4,\"label\":\"Drink Frequency Per Week\",\"name\":\"drink_frequency_per_week\",\"placeholder\":\"\",\"type\":\"number\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"phoxfik6zkb8d6v1r3dr78\",\"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\":6,\"inline\":\"true\",\"label\":\"History of chemical dependency\",\"name\":\"history_chemical_dependency\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"wre1tr19w8i2euowtb6tk\",\"componentType\":\"textarea\",\"component\":{\"componentType\":\"textarea\",\"helper\":\"\",\"plugins\":[],\"attr\":[],\"clazz\":\"\",\"index\":1,\"label\":\"S&S of Possible Abuse or Neglect\",\"name\":\"ss_possible_abuse_neglect\",\"placeholder\":\"\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"30uek2an9znpv6tv84qbrk\",\"componentType\":\"html\",\"component\":{\"componentType\":\"html\",\"index\":1,\"value\":\"<h6>In the past 5 weeks, does the patient report:</h6>\"}},{\"id\":\"8pg1wts32nq4lsv299ueut\",\"componentType\":\"radio\",\"component\":{\"componentType\":\"radio\",\"helper\":\"\",\"plugins\":[],\"radioButtons\":[{\"index\":1,\"text\":\"Not at all-0\",\"value\":\"0\"},{\"index\":2,\"text\":\"Several days-1\",\"value\":\"1\"},{\"index\":3,\"text\":\"More than half the days-2\",\"value\":\"2\"},{\"index\":4,\"text\":\"Nearly every day-3\",\"value\":\"3\"}],\"attr\":[{\"name\":\"class\",\"value\":\"fstfdt6tsrt\"}],\"clazz\":\"fstfdt6tsrt\",\"index\":7,\"inline\":\"true\",\"label\":\"Being sad, depressed or hopeless?\",\"name\":\"being_sad_depressed_hopeless\",\"value\":\"\",\"width\":\"100%\"}},{\"id\":\"d505lmo39xcbr0mwvwwub8\",\"componentType\":\"radio\",\"component\":{\"componentType\":\"radio\",\"helper\":\"\",\"plugins\":[],\"radioButtons\":[{\"index\":1,\"text\":\"Not at all-0\",\"value\":\"0\"},{\"index\":2,\"text\":\"Several days-1\",\"value\":\"1\"},{\"index\":3,\"text\":\"More than half the days-2\",\"value\":\"2\"},{\"index\":4,\"text\":\"Nearly every day-3\",\"value\":\"3\"}],\"attr\":[{\"name\":\"class\",\"value\":\"fstfdt6tsrt\"}],\"clazz\":\"fstfdt6tsrt\",\"index\":8,\"inline\":\"true\",\"label\":\"Little Interest or pleasure in doing things?\",\"name\":\"little_interest_or_pleasure\",\"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 (49, 'psycho-social', '64');
ALTER TABLE `patient_report` ADD `psycho_social` LONGTEXT NULL DEFAULT NULL AFTER `visit_info`;