SQLite Forum

alter table RENAME COLUMN took 3 hours
Login

alter table RENAME COLUMN took 3 hours

(1) By L Carl (lcarlp) on 2020-04-05 15:01:27 [link] [source]

What's the proper way to report a bug in SQLite?

I would be inclined to call this a bug, since this is a small database.  I've only attempted to rename a column twice, in two different tables, but both times it took about 3 hours.  This is not a large database and I have no triggers or references constraints.  I have not done any additional experiments, e.g., in an empty database, since obviously there are other ways to accomplish this.  

I'm running on macOS 10.14.6 (18G3020)

Here is a log of the second column rename:

sqlite> .schema dict_v3
CREATE TABLE dict_v3(
  "Variable / Field Name" TEXT,
  "Form Name" TEXT,
  "Section Header" TEXT,
  "Field Type" TEXT,
  "Field Label" TEXT,
  "Choices, Calculations, OR Slider Labels" TEXT,
  "Field Note" TEXT,
  "Text Validation Type OR Show Slider Number" TEXT,
  "Text Validation Min" TEXT,
  "Text Validation Max" TEXT,
  "Identifier?" TEXT,
  "Branching Logic (Show field only if...)" TEXT,
  "Required Field?" TEXT,
  "Custom Alignment" TEXT,
  "Question Number (surveys only)" TEXT,
  "Matrix Group Name" TEXT,
  "Matrix Ranking?" TEXT,
  "Field Annotation" TEXT
);
sqlite> alter table dict_v3 rename "Variable / Field Name" to variable;
Run Time: real 11144.591 user 11068.905764 sys 20.954366
sqlite> .dbinfo
database page size:  4096
write format:        1
read format:         1
reserved bytes:      0
file change counter: 21589
database page count: 16918
freelist page count: 1
schema cookie:       22987
schema format:       4
default cache size:  0
autovacuum top root: 0
incremental vacuum:  0
text encoding:       1 (utf8)
user version:        0
application id:      0
software version:    3031001
number of tables:    50
number of indexes:   0
number of triggers:  0
number of views:     48
schema size:         532422
data version         3
sqlite> select 11144.591/60;
185.743183333333
Run Time: real 0.000 user 0.000047 sys 0.000019
sqlite> select 11144.591/60/60;
3.09571972222222
Run Time: real 0.000 user 0.000046 sys 0.000008
sqlite>

(2) By Richard Hipp (drh) on 2020-04-05 16:36:44 in reply to 1 [link] [source]

Can you send in your entire schema, please, including all 48 views?

(3) By L Carl (lcarlp) on 2020-04-06 13:28:24 in reply to 2 [source]

CREATE TABLE uvcnp1(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "date_contact" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE leb(
  record_id TEXT,
  redcap_repeat_instrument TEXT,
  redcap_repeat_instance TEXT,
  redcap_data_access_group TEXT,
  old_records_lyme TEXT,
  today TEXT,
  status_profile TEXT,
  first_name TEXT,
  last_name TEXT,
  preferred_name TEXT,
  consent_date TEXT,
  upload_form TEXT,
  gender TEXT,
  dob TEXT,
  age TEXT,
  date_1st_contact TEXT,
  meth_1st_contact TEXT,
  notes TEXT,
  referred_by___1 TEXT,
  referred_by___2 TEXT,
  referred_by___3 TEXT,
  referred_by___4 TEXT,
  referred_by___5 TEXT,
  referred_by___6 TEXT,
  referred_by___7 TEXT,
  referred_by___8 TEXT,
  referred_by___9 TEXT,
  notes_1 TEXT,
  informant TEXT,
  notes_50 TEXT,
  end_life_plan___1 TEXT,
  end_life_plan___2 TEXT,
  end_life_plan___3 TEXT,
  end_life_plan___4 TEXT,
  end_life_plan___5 TEXT,
  end_life_plan___6 TEXT,
  notes_2 TEXT,
  acp_location TEXT,
  client_answer TEXT,
  meds_client_before TEXT,
  cliebnt_home_before TEXT,
  client_anx_before TEXT,
  clients_daily_before TEXT,
  what_matters_patient TEXT,
  care_giver TEXT,
  who_cg TEXT,
  cg_func_before TEXT,
  cg_basicneeds_before TEXT,
  cg_conf_before TEXT,
  cg_fatig_before TEXT,
  cg_what_matters TEXT,
  client_profile_must_complete_form_complete TEXT,
  date_contact TEXT,
  address TEXT,
  phone TEXT,
  email TEXT,
  caregiver_info TEXT,
  number_providers TEXT,
  provider_1 TEXT,
  provider1_affiliation TEXT,
  provider_2 TEXT,
  provider2_affiliation TEXT,
  provider_3 TEXT,
  provider3_affiliation TEXT,
  other_provider_info TEXT,
  hospital_used TEXT,
  contact_information_must_complete_form_complete TEXT,
  date_sc TEXT,
  address_v2 TEXT,
  notes_52 TEXT,
  phone_v2 TEXT,
  notes_3 TEXT,
  name_2nd_person TEXT,
  client_support_1 TEXT,
  non_med_assist___1 TEXT,
  non_med_assist___2 TEXT,
  non_med_assist___3 TEXT,
  non_med_assist___4 TEXT,
  non_med_assist___5 TEXT,
  non_med_assist___6 TEXT,
  non_med_assist___8 TEXT,
  non_med_assist___9 TEXT,
  notes_4 TEXT,
  healthcare_serv___1 TEXT,
  healthcare_serv___2 TEXT,
  healthcare_serv___3 TEXT,
  healthcare_serv___4 TEXT,
  healthcare_serv___5 TEXT,
  healthcare_serv___6 TEXT,
  healthcare_serv___7 TEXT,
  healthcare_serv___8 TEXT,
  notes_5 TEXT,
  soc_lonl_1___1 TEXT,
  soc_lonl_1___2 TEXT,
  soc_lonl_1___3 TEXT,
  soc_lonl_1___4 TEXT,
  soc_lonl_1___5 TEXT,
  soc_lonl_1___6 TEXT,
  soc_lonl_1___7 TEXT,
  notes_6 TEXT,
  transp___1 TEXT,
  transp___2 TEXT,
  transp___3 TEXT,
  transp___4 TEXT,
  transp___5 TEXT,
  transp___6 TEXT,
  notes_53 TEXT,
  finan_1 TEXT,
  notes_54 TEXT,
  fin_gues_1___1 TEXT,
  fin_gues_1___2 TEXT,
  fin_gues_1___3 TEXT,
  fin_gues_1___4 TEXT,
  fin_gues_1___5 TEXT,
  notes_7 TEXT,
  heal_ins___1 TEXT,
  heal_ins___2 TEXT,
  heal_ins___3 TEXT,
  heal_ins___4 TEXT,
  heal_ins___5 TEXT,
  heal_ins___6 TEXT,
  notes_8 TEXT,
  ethn TEXT,
  notes_9 TEXT,
  st_language TEXT,
  non_english TEXT,
  other_soc_issue TEXT,
  social_context_complete TEXT,
  date_fh TEXT,
  prob_list2___1 TEXT,
  prob_list2___2 TEXT,
  prob_list2___3 TEXT,
  prob_list2___4 TEXT,
  prob_list2___15 TEXT,
  prob_list2___5 TEXT,
  prob_list2___6 TEXT,
  prob_list2___7 TEXT,
  prob_list2___8 TEXT,
  prob_list2___9 TEXT,
  prob_list2___10 TEXT,
  prob_list2___11 TEXT,
  prob_list2___12 TEXT,
  prob_list2___13 TEXT,
  prob_list2___14 TEXT,
  notes_10 TEXT,
  func_lim_1 TEXT,
  symp_mng_1___1 TEXT,
  symp_mng_1___2 TEXT,
  symp_mng_1___3 TEXT,
  symp_mng_1___4 TEXT,
  symp_mng_1___5 TEXT,
  notes_11 TEXT,
  polypharm TEXT,
  med_mng_1___1 TEXT,
  med_mng_1___2 TEXT,
  med_mng_1___3 TEXT,
  med_mng_1___4 TEXT,
  med_mng_1___5 TEXT,
  med_mng_1___6 TEXT,
  med_mng_1___7 TEXT,
  med_mng_1___8 TEXT,
  med_mng_1___9 TEXT,
  med_mng_1___10 TEXT,
  notes_12 TEXT,
  frail_1_v3___1 TEXT,
  frail_1_v3___2 TEXT,
  frail_1_v3___3 TEXT,
  frail_1_v3___4 TEXT,
  frail_1_v3___5 TEXT,
  frail_1_v3___6 TEXT,
  frail_1_v3___7 TEXT,
  frail_1_v3___9 TEXT,
  notes_13 TEXT,
  frai_phe_3 TEXT,
  cog_stat_1___1 TEXT,
  cog_stat_1___2 TEXT,
  cog_stat_1___3 TEXT,
  cog_stat_1___4 TEXT,
  cog_stat_1___5 TEXT,
  cog_stat_1___6 TEXT,
  notes_14 TEXT,
  mini_cog_score TEXT,
  safe_1___1 TEXT,
  safe_1___3 TEXT,
  safe_1___4 TEXT,
  safe_1___5 TEXT,
  safe_1___11 TEXT,
  safe_1___6 TEXT,
  safe_1___7 TEXT,
  safe_1___9 TEXT,
  safe_1___10 TEXT,
  notes_15 TEXT,
  env_risk___1 TEXT,
  env_risk___2 TEXT,
  env_risk___3 TEXT,
  env_risk___4 TEXT,
  env_risk___5 TEXT,
  env_risk___6 TEXT,
  env_risk___7 TEXT,
  env_risk___8 TEXT,
  env_risk___9 TEXT,
  env_risk___10 TEXT,
  env_risk___12 TEXT,
  env_risk___11 TEXT,
  notes_16 TEXT,
  mob_1___1 TEXT,
  mob_1___2 TEXT,
  mob_1___3 TEXT,
  mob_1___4 TEXT,
  mob_1___5 TEXT,
  mob_1___6 TEXT,
  mob_1___7 TEXT,
  mob_1___8 TEXT,
  mob_1___9 TEXT,
  mob_1___10 TEXT,
  notes_17 TEXT,
  tug_1 TEXT,
  number_falls TEXT,
  notes_18 TEXT,
  falls_reas___1 TEXT,
  falls_reas___2 TEXT,
  falls_reas___3 TEXT,
  falls_reas___4 TEXT,
  falls_reas___5 TEXT,
  notes_19 TEXT,
  fall_impact TEXT,
  notes_20 TEXT,
  fall_risk TEXT,
  notes_21 TEXT,
  lifeline TEXT,
  emo_stat___1 TEXT,
  emo_stat___2 TEXT,
  emo_stat___3 TEXT,
  emo_stat___4 TEXT,
  emo_stat___5 TEXT,
  emo_stat___6 TEXT,
  emo_stat___7 TEXT,
  emo_stat___8 TEXT,
  emo_stat___9 TEXT,
  emo_stat___10 TEXT,
  notes_22 TEXT,
  alc_dru___1 TEXT,
  alc_dru___2 TEXT,
  alc_dru___3 TEXT,
  alc_dru___4 TEXT,
  alc_dru___5 TEXT,
  alc_dru___6 TEXT,
  alc_dru___7 TEXT,
  alc_dru___8 TEXT,
  alc_dru___9 TEXT,
  notes_23 TEXT,
  eld_abu___1 TEXT,
  eld_abu___2 TEXT,
  eld_abu___3 TEXT,
  eld_abu___4 TEXT,
  eld_abu___5 TEXT,
  eld_abu___6 TEXT,
  eld_abu___7 TEXT,
  notes_55 TEXT,
  nut_list___1 TEXT,
  nut_list___2 TEXT,
  nut_list___3 TEXT,
  nut_list___4 TEXT,
  nut_list___5 TEXT,
  nut_list___6 TEXT,
  nut_list___7 TEXT,
  nut_list___8 TEXT,
  nut_list___9 TEXT,
  notes_24 TEXT,
  height TEXT,
  weight TEXT,
  bmi TEXT,
  bmi_stat TEXT,
  notes_25 TEXT,
  eli___1 TEXT,
  eli___2 TEXT,
  eli___3 TEXT,
  eli___4 TEXT,
  eli___5 TEXT,
  notes_26 TEXT,
  future_plan TEXT,
  notes_27 TEXT,
  functional_health_complete TEXT,
  med_date_v2 TEXT,
  ormore_meds TEXT,
  med_list_start_home TEXT,
  opload_option TEXT,
  current_med_list_1 TEXT,
  current_med_list_2 TEXT,
  current_med_list_3 TEXT,
  medication_list_complete TEXT,
  na_problem_list TEXT,
  problem_list1_date_v2 TEXT,
  ed_visits___1 TEXT,
  ed_visits___2 TEXT,
  ed_visits___3 TEXT,
  ed_date_add TEXT,
  ed_manag_date TEXT,
  ed_date_res TEXT,
  incorrect_meds___1 TEXT,
  incorrect_meds___2 TEXT,
  incorrect_meds___3 TEXT,
  incorrect_meds_added TEXT,
  inco_meds_manag_date TEXT,
  incorrect_med_res TEXT,
  ineff_ther___1 TEXT,
  ineff_ther___2 TEXT,
  ineff_ther___3 TEXT,
  ineff_ther_add TEXT,
  ineff_ther_manag_date TEXT,
  ineffe_ther_res TEXT,
  sympt_manag___1 TEXT,
  sympt_manag___2 TEXT,
  sympt_manag___3 TEXT,
  sympt_manag_add TEXT,
  sympt_manag_manag_date TEXT,
  sumpy_manag_res TEXT,
  frailty___1 TEXT,
  frailty___2 TEXT,
  frailty___3 TEXT,
  frail_add TEXT,
  frailty_manag_date TEXT,
  frail_res TEXT,
  impair_cog___1 TEXT,
  impair_cog___2 TEXT,
  impair_cog___3 TEXT,
  impair_cog_add TEXT,
  impair_cog_manag_date TEXT,
  impar_cog_res TEXT,
  ment_heal___1 TEXT,
  ment_heal___2 TEXT,
  ment_heal___3 TEXT,
  ment_heal_add TEXT,
  ment_heal_manag_date TEXT,
  ment_heal_res TEXT,
  self_care_prob_list___1 TEXT,
  self_care_prob_list___2 TEXT,
  self_care_prob_list___3 TEXT,
  self_care_added TEXT,
  self_care_manag_date TEXT,
  self_care_res TEXT,
  imp_phys_mob___1 TEXT,
  imp_phys_mob___2 TEXT,
  imp_phys_mob___3 TEXT,
  imp_phys_mob_add TEXT,
  imp_phys_manag_date TEXT,
  imp_phy_mob_res TEXT,
  fall___1 TEXT,
  fall___2 TEXT,
  fall___3 TEXT,
  fall_add TEXT,
  fall_manag_date TEXT,
  fall_res TEXT,
  stay_home___1 TEXT,
  stay_home___2 TEXT,
  stay_home___3 TEXT,
  stay_home_add TEXT,
  stay_home_manag_date TEXT,
  stay_home_res TEXT,
  prob_bills___1 TEXT,
  prob_bills___2 TEXT,
  prob_bills___3 TEXT,
  prob_bills_add TEXT,
  prob_bills_manag_date TEXT,
  prob_bills_res TEXT,
  stress_trans___1 TEXT,
  stress_trans___2 TEXT,
  stress_trans___3 TEXT,
  stres_trans_add TEXT,
  stess_trans_manag_date TEXT,
  stress_trans_res TEXT,
  incom_acp___1 TEXT,
  incom_acp___2 TEXT,
  incom_acp___3 TEXT,
  incom_acp_date_added TEXT,
  incom_acp_manag_date TEXT,
  incom_acp_date_reso TEXT,
  other_prob_list___1 TEXT,
  other_prob_list___2 TEXT,
  other_prob_list___3 TEXT,
  other_prob_add TEXT,
  other_prob_manag_date TEXT,
  other_prob_res TEXT,
  sdoh_iso___1 TEXT,
  sdoh_iso___2 TEXT,
  sdoh_iso___3 TEXT,
  soc_iso_2 TEXT,
  soc_iso_manag_date TEXT,
  soc_iso_date_resol TEXT,
  nutr_poor___1 TEXT,
  nutr_poor___2 TEXT,
  nutr_poor___3 TEXT,
  nutr_poor_date_add TEXT,
  nutr_poor_manag_date TEXT,
  nutr_poor_res_date TEXT,
  hous_def___1 TEXT,
  hous_def___2 TEXT,
  hous_def___3 TEXT,
  hous_added TEXT,
  hous_manag_date TEXT,
  hous_res_date TEXT,
  sdoh_transp___1 TEXT,
  sdoh_transp___2 TEXT,
  sdoh_transp___3 TEXT,
  trans_date_add TEXT,
  trans_manag_date TEXT,
  trans_date_resol TEXT,
  sdoh_finance___1 TEXT,
  sdoh_finance___2 TEXT,
  sdoh_finance___3 TEXT,
  finance_date_add TEXT,
  finance_manag_date TEXT,
  finance_date_resol TEXT,
  sdoh_other_2___1 TEXT,
  sdoh_other_2___2 TEXT,
  sdoh_other_2___3 TEXT,
  sdoh_other_date_add TEXT,
  sdoh_other_manag TEXT,
  other_sdh_date_resol TEXT,
  allerg TEXT,
  notes_56 TEXT,
  med_diag_list_v2_v2_v2 TEXT,
  goals_prob_cleint TEXT,
  cg_prob_goals TEXT,
  nurse_prob_goals TEXT,
  plan_of_care_problem_list_complete TEXT,
  date_int TEXT,
  ini_int_date TEXT,
  contact_pcp_v2 TEXT,
  pcp_for_v2_v2___1 TEXT,
  pcp_for_v2_v2___2 TEXT,
  pcp_for_v2_v2___3 TEXT,
  pcp_for_v2_v2___4 TEXT,
  pcp_for_v2_v2___5 TEXT,
  pcp_for_v2_v2___6 TEXT,
  notes_28 TEXT,
  spec_care_v2 TEXT,
  ref_v2 TEXT,
  med_interv_v2___1 TEXT,
  med_interv_v2___2 TEXT,
  med_interv_v2___3 TEXT,
  med_interv_v2___4 TEXT,
  med_interv_v2___5 TEXT,
  notes_29 TEXT,
  sympt_interv_v2___1 TEXT,
  sympt_interv_v2___2 TEXT,
  sympt_interv_v2___3 TEXT,
  sympt_interv_v2___4 TEXT,
  sympt_interv_v2___5 TEXT,
  sympt_interv_v2___6 TEXT,
  notes_30 TEXT,
  mob_interv_v2___1 TEXT,
  mob_interv_v2___2 TEXT,
  mob_interv_v2___3 TEXT,
  mob_interv_v2___4 TEXT,
  mob_interv_v2___5 TEXT,
  mob_interv_v2___6 TEXT,
  notes_31 TEXT,
  cg_fam_interv_v2___1 TEXT,
  cg_fam_interv_v2___2 TEXT,
  cg_fam_interv_v2___3 TEXT,
  cg_fam_interv_v2___4 TEXT,
  cg_fam_interv_v2___5 TEXT,
  notes_32 TEXT,
  house_fina_food_interv_v2___1 TEXT,
  house_fina_food_interv_v2___2 TEXT,
  house_fina_food_interv_v2___3 TEXT,
  house_fina_food_interv_v2___4 TEXT,
  house_fina_food_interv_v2___5 TEXT,
  house_fina_food_interv_v2___6 TEXT,
  house_fina_food_interv_v2___7 TEXT,
  house_fina_food_interv_v2___8 TEXT,
  house_fina_food_interv_v2___9 TEXT,
  notes_33 TEXT,
  other_interv_notabove TEXT,
  fu_list_v2___1 TEXT,
  fu_list_v2___2 TEXT,
  fu_list_v2___3 TEXT,
  fu_list_v2___4 TEXT,
  notes_34 TEXT,
  plan_of_care_initial_interventions_complete TEXT,
  today_date_v2 TEXT,
  cont_meth_v2___1 TEXT,
  cont_meth_v2___2 TEXT,
  cont_meth_v2___3 TEXT,
  cont_meth_v2___4 TEXT,
  cont_meth_v2___5 TEXT,
  cont_meth_v2___6 TEXT,
  cont_meth_v2___7 TEXT,
  cont_meth_v2___8 TEXT,
  cont_meth_v2___9 TEXT,
  cont_meth_v2___10 TEXT,
  notes_57 TEXT,
  cont_asses TEXT,
  concerns1_v2___1 TEXT,
  concerns1_v2___2 TEXT,
  concerns1_v2___3 TEXT,
  concerns1_v2___4 TEXT,
  concerns1_v2___5 TEXT,
  concerns1_v2___6 TEXT,
  notes_35 TEXT,
  list_issues TEXT,
  phys_cond_nursescale TEXT,
  emot_stat_nursescale TEXT,
  cog_stat_nursescale TEXT,
  notes_48 TEXT,
  fall_sincelast TEXT,
  hospit_since_last TEXT,
  care_plan_update TEXT,
  update_plan___1 TEXT,
  update_plan___2 TEXT,
  update_plan___3 TEXT,
  update_plan___4 TEXT,
  contact_pcp TEXT,
  pcp_for_v2___1 TEXT,
  pcp_for_v2___2 TEXT,
  pcp_for_v2___3 TEXT,
  pcp_for_v2___4 TEXT,
  pcp_for_v2___5 TEXT,
  pcp_for_v2___6 TEXT,
  notes_36 TEXT,
  spec_care TEXT,
  ref TEXT,
  med_interv___1 TEXT,
  med_interv___2 TEXT,
  med_interv___3 TEXT,
  med_interv___4 TEXT,
  med_interv___5 TEXT,
  med_interv___6 TEXT,
  notes_37 TEXT,
  sympt_interv___1 TEXT,
  sympt_interv___2 TEXT,
  sympt_interv___3 TEXT,
  sympt_interv___4 TEXT,
  sympt_interv___5 TEXT,
  sympt_interv___6 TEXT,
  notes_38 TEXT,
  mob_interv___1 TEXT,
  mob_interv___2 TEXT,
  mob_interv___3 TEXT,
  mob_interv___4 TEXT,
  mob_interv___5 TEXT,
  mob_interv___6 TEXT,
  notes_39 TEXT,
  cg_fam_interv___1 TEXT,
  cg_fam_interv___2 TEXT,
  cg_fam_interv___3 TEXT,
  cg_fam_interv___4 TEXT,
  cg_fam_interv___5 TEXT,
  notes_40 TEXT,
  house_fina_food_interv___1 TEXT,
  house_fina_food_interv___2 TEXT,
  house_fina_food_interv___3 TEXT,
  house_fina_food_interv___4 TEXT,
  house_fina_food_interv___5 TEXT,
  house_fina_food_interv___6 TEXT,
  house_fina_food_interv___7 TEXT,
  house_fina_food_interv___8 TEXT,
  house_fina_food_interv___9 TEXT,
  notes_41 TEXT,
  other_interv_not_listed TEXT,
  fu_list___1 TEXT,
  fu_list___2 TEXT,
  fu_list___3 TEXT,
  fu_list___4 TEXT,
  notes_42 TEXT,
  interval_contacts_complete TEXT,
  date_sixmonth TEXT,
  client_answer_v2 TEXT,
  meds_client_before_v2 TEXT,
  cliebnt_home_before_v2 TEXT,
  client_anx_before_v2 TEXT,
  clients_daily_before_v2 TEXT,
  what_matters_patient_v2 TEXT,
  care_giver_v2 TEXT,
  who_care_v2 TEXT,
  cg_func_before_v2 TEXT,
  cg_basic_before_v2 TEXT,
  cg_conf_before_v2 TEXT,
  cg_fatig_before_v2 TEXT,
  cg_what_matters_v2 TEXT,
  phys_con_6_month TEXT,
  emot_6_mont TEXT,
  cog_6_mont TEXT,
  notes_47 TEXT,
  nurse_out_6_mont___1 TEXT,
  nurse_out_6_mont___2 TEXT,
  nurse_out_6_mont___3 TEXT,
  nurse_out_6_mont___4 TEXT,
  nurse_out_6_mont___5 TEXT,
  nurse_out_6_mont___6 TEXT,
  nurse_out_6_mont___7 TEXT,
  nurse_out_6_mont___8 TEXT,
  nurse_out_6_mont___9 TEXT,
  notes_43 TEXT,
  fu_6month___1 TEXT,
  fu_6month___2 TEXT,
  fu_6month___3 TEXT,
  fu_6month___4 TEXT,
  notes_44 TEXT,
  month_report_complete TEXT,
  date_today_dis TEXT,
  reason_disch TEXT,
  notes_45 TEXT,
  disc_status TEXT,
  phys TEXT,
  emotion TEXT,
  cog_stat TEXT,
  notes_49 TEXT,
  nurse_report_all___1 TEXT,
  nurse_report_all___2 TEXT,
  nurse_report_all___3 TEXT,
  nurse_report_all___4 TEXT,
  nurse_report_all___5 TEXT,
  nurse_report_all___6 TEXT,
  nurse_report_all___7 TEXT,
  notes_46 TEXT,
  client_status_2 TEXT,
  clien_outcome_dis TEXT,
  client_out2_dis TEXT,
  client_outc3_dis TEXT,
  clie_outc4_dis TEXT,
  most_impo_client TEXT,
  cg_status_2 TEXT,
  cg_out1_dis TEXT,
  cg_out2_dis TEXT,
  cg_out3_dis TEXT,
  cg_outc4_dis TEXT,
  cg_con_most TEXT,
  discharge_report_complete TEXT
);
CREATE TABLE lebreport(
  "today" TEXT,
  "redcap_data_access_group" TEXT,
  "status_profile" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "informant" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "phone_v2" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "finan_1" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "ethn" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "fall_impact" TEXT,
  "fall_risk" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "future_plan" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE test1(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "date_contact" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE test1leb(
  record_id TEXT,
  redcap_repeat_instrument TEXT,
  redcap_repeat_instance TEXT,
  redcap_data_access_group TEXT,
  old_records_lyme TEXT,
  today TEXT,
  status_profile TEXT,
  first_name TEXT,
  last_name TEXT,
  preferred_name TEXT,
  consent_date TEXT,
  upload_form TEXT,
  gender TEXT,
  dob TEXT,
  age TEXT,
  date_1st_contact TEXT,
  meth_1st_contact TEXT,
  notes TEXT,
  referred_by___1 TEXT,
  referred_by___2 TEXT,
  referred_by___3 TEXT,
  referred_by___4 TEXT,
  referred_by___5 TEXT,
  referred_by___6 TEXT,
  referred_by___7 TEXT,
  referred_by___8 TEXT,
  referred_by___9 TEXT,
  notes_1 TEXT,
  informant TEXT,
  notes_50 TEXT,
  end_life_plan___1 TEXT,
  end_life_plan___2 TEXT,
  end_life_plan___3 TEXT,
  end_life_plan___4 TEXT,
  end_life_plan___5 TEXT,
  end_life_plan___6 TEXT,
  notes_2 TEXT,
  acp_location TEXT,
  client_answer TEXT,
  meds_client_before TEXT,
  cliebnt_home_before TEXT,
  client_anx_before TEXT,
  clients_daily_before TEXT,
  what_matters_patient TEXT,
  care_giver TEXT,
  who_cg TEXT,
  cg_func_before TEXT,
  cg_basicneeds_before TEXT,
  cg_conf_before TEXT,
  cg_fatig_before TEXT,
  cg_what_matters TEXT,
  client_profile_must_complete_form_complete TEXT,
  date_contact TEXT,
  address TEXT,
  phone TEXT,
  email TEXT,
  caregiver_info TEXT,
  number_providers TEXT,
  provider_1 TEXT,
  provider1_affiliation TEXT,
  provider_2 TEXT,
  provider2_affiliation TEXT,
  provider_3 TEXT,
  provider3_affiliation TEXT,
  other_provider_info TEXT,
  hospital_used TEXT,
  contact_information_must_complete_form_complete TEXT,
  date_sc TEXT,
  address_v2 TEXT,
  notes_52 TEXT,
  phone_v2 TEXT,
  notes_3 TEXT,
  name_2nd_person TEXT,
  client_support_1 TEXT,
  non_med_assist___1 TEXT,
  non_med_assist___2 TEXT,
  non_med_assist___3 TEXT,
  non_med_assist___4 TEXT,
  non_med_assist___5 TEXT,
  non_med_assist___6 TEXT,
  non_med_assist___8 TEXT,
  non_med_assist___9 TEXT,
  notes_4 TEXT,
  healthcare_serv___1 TEXT,
  healthcare_serv___2 TEXT,
  healthcare_serv___3 TEXT,
  healthcare_serv___4 TEXT,
  healthcare_serv___5 TEXT,
  healthcare_serv___6 TEXT,
  healthcare_serv___7 TEXT,
  healthcare_serv___8 TEXT,
  notes_5 TEXT,
  soc_lonl_1___1 TEXT,
  soc_lonl_1___2 TEXT,
  soc_lonl_1___3 TEXT,
  soc_lonl_1___4 TEXT,
  soc_lonl_1___5 TEXT,
  soc_lonl_1___6 TEXT,
  soc_lonl_1___7 TEXT,
  notes_6 TEXT,
  transp___1 TEXT,
  transp___2 TEXT,
  transp___3 TEXT,
  transp___4 TEXT,
  transp___5 TEXT,
  transp___6 TEXT,
  notes_53 TEXT,
  finan_1 TEXT,
  notes_54 TEXT,
  fin_gues_1___1 TEXT,
  fin_gues_1___2 TEXT,
  fin_gues_1___3 TEXT,
  fin_gues_1___4 TEXT,
  fin_gues_1___5 TEXT,
  notes_7 TEXT,
  heal_ins___1 TEXT,
  heal_ins___2 TEXT,
  heal_ins___3 TEXT,
  heal_ins___4 TEXT,
  heal_ins___5 TEXT,
  heal_ins___6 TEXT,
  notes_8 TEXT,
  ethn TEXT,
  notes_9 TEXT,
  st_language TEXT,
  non_english TEXT,
  other_soc_issue TEXT,
  social_context_complete TEXT,
  date_fh TEXT,
  prob_list2___1 TEXT,
  prob_list2___2 TEXT,
  prob_list2___3 TEXT,
  prob_list2___4 TEXT,
  prob_list2___15 TEXT,
  prob_list2___5 TEXT,
  prob_list2___6 TEXT,
  prob_list2___7 TEXT,
  prob_list2___8 TEXT,
  prob_list2___9 TEXT,
  prob_list2___10 TEXT,
  prob_list2___11 TEXT,
  prob_list2___12 TEXT,
  prob_list2___13 TEXT,
  prob_list2___14 TEXT,
  notes_10 TEXT,
  func_lim_1 TEXT,
  symp_mng_1___1 TEXT,
  symp_mng_1___2 TEXT,
  symp_mng_1___3 TEXT,
  symp_mng_1___4 TEXT,
  symp_mng_1___5 TEXT,
  notes_11 TEXT,
  polypharm TEXT,
  med_mng_1___1 TEXT,
  med_mng_1___2 TEXT,
  med_mng_1___3 TEXT,
  med_mng_1___4 TEXT,
  med_mng_1___5 TEXT,
  med_mng_1___6 TEXT,
  med_mng_1___7 TEXT,
  med_mng_1___8 TEXT,
  med_mng_1___9 TEXT,
  med_mng_1___10 TEXT,
  notes_12 TEXT,
  frail_1_v3___1 TEXT,
  frail_1_v3___2 TEXT,
  frail_1_v3___3 TEXT,
  frail_1_v3___4 TEXT,
  frail_1_v3___5 TEXT,
  frail_1_v3___6 TEXT,
  frail_1_v3___7 TEXT,
  frail_1_v3___9 TEXT,
  notes_13 TEXT,
  frai_phe_3 TEXT,
  cog_stat_1___1 TEXT,
  cog_stat_1___2 TEXT,
  cog_stat_1___3 TEXT,
  cog_stat_1___4 TEXT,
  cog_stat_1___5 TEXT,
  cog_stat_1___6 TEXT,
  notes_14 TEXT,
  mini_cog_score TEXT,
  safe_1___1 TEXT,
  safe_1___3 TEXT,
  safe_1___4 TEXT,
  safe_1___5 TEXT,
  safe_1___11 TEXT,
  safe_1___6 TEXT,
  safe_1___7 TEXT,
  safe_1___9 TEXT,
  safe_1___10 TEXT,
  notes_15 TEXT,
  env_risk___1 TEXT,
  env_risk___2 TEXT,
  env_risk___3 TEXT,
  env_risk___4 TEXT,
  env_risk___5 TEXT,
  env_risk___6 TEXT,
  env_risk___7 TEXT,
  env_risk___8 TEXT,
  env_risk___9 TEXT,
  env_risk___10 TEXT,
  env_risk___12 TEXT,
  env_risk___11 TEXT,
  notes_16 TEXT,
  mob_1___1 TEXT,
  mob_1___2 TEXT,
  mob_1___3 TEXT,
  mob_1___4 TEXT,
  mob_1___5 TEXT,
  mob_1___6 TEXT,
  mob_1___7 TEXT,
  mob_1___8 TEXT,
  mob_1___9 TEXT,
  mob_1___10 TEXT,
  notes_17 TEXT,
  tug_1 TEXT,
  number_falls TEXT,
  notes_18 TEXT,
  falls_reas___1 TEXT,
  falls_reas___2 TEXT,
  falls_reas___3 TEXT,
  falls_reas___4 TEXT,
  falls_reas___5 TEXT,
  notes_19 TEXT,
  fall_impact TEXT,
  notes_20 TEXT,
  fall_risk TEXT,
  notes_21 TEXT,
  lifeline TEXT,
  emo_stat___1 TEXT,
  emo_stat___2 TEXT,
  emo_stat___3 TEXT,
  emo_stat___4 TEXT,
  emo_stat___5 TEXT,
  emo_stat___6 TEXT,
  emo_stat___7 TEXT,
  emo_stat___8 TEXT,
  emo_stat___9 TEXT,
  emo_stat___10 TEXT,
  notes_22 TEXT,
  alc_dru___1 TEXT,
  alc_dru___2 TEXT,
  alc_dru___3 TEXT,
  alc_dru___4 TEXT,
  alc_dru___5 TEXT,
  alc_dru___6 TEXT,
  alc_dru___7 TEXT,
  alc_dru___8 TEXT,
  alc_dru___9 TEXT,
  notes_23 TEXT,
  eld_abu___1 TEXT,
  eld_abu___2 TEXT,
  eld_abu___3 TEXT,
  eld_abu___4 TEXT,
  eld_abu___5 TEXT,
  eld_abu___6 TEXT,
  eld_abu___7 TEXT,
  notes_55 TEXT,
  nut_list___1 TEXT,
  nut_list___2 TEXT,
  nut_list___3 TEXT,
  nut_list___4 TEXT,
  nut_list___5 TEXT,
  nut_list___6 TEXT,
  nut_list___7 TEXT,
  nut_list___8 TEXT,
  nut_list___9 TEXT,
  notes_24 TEXT,
  height TEXT,
  weight TEXT,
  bmi TEXT,
  bmi_stat TEXT,
  notes_25 TEXT,
  eli___1 TEXT,
  eli___2 TEXT,
  eli___3 TEXT,
  eli___4 TEXT,
  eli___5 TEXT,
  notes_26 TEXT,
  future_plan TEXT,
  notes_27 TEXT,
  functional_health_complete TEXT,
  med_date_v2 TEXT,
  ormore_meds TEXT,
  med_list_start_home TEXT,
  opload_option TEXT,
  current_med_list_1 TEXT,
  current_med_list_2 TEXT,
  current_med_list_3 TEXT,
  medication_list_complete TEXT,
  na_problem_list TEXT,
  problem_list1_date_v2 TEXT,
  ed_visits___1 TEXT,
  ed_visits___2 TEXT,
  ed_visits___3 TEXT,
  ed_date_add TEXT,
  ed_manag_date TEXT,
  ed_date_res TEXT,
  incorrect_meds___1 TEXT,
  incorrect_meds___2 TEXT,
  incorrect_meds___3 TEXT,
  incorrect_meds_added TEXT,
  inco_meds_manag_date TEXT,
  incorrect_med_res TEXT,
  ineff_ther___1 TEXT,
  ineff_ther___2 TEXT,
  ineff_ther___3 TEXT,
  ineff_ther_add TEXT,
  ineff_ther_manag_date TEXT,
  ineffe_ther_res TEXT,
  sympt_manag___1 TEXT,
  sympt_manag___2 TEXT,
  sympt_manag___3 TEXT,
  sympt_manag_add TEXT,
  sympt_manag_manag_date TEXT,
  sumpy_manag_res TEXT,
  frailty___1 TEXT,
  frailty___2 TEXT,
  frailty___3 TEXT,
  frail_add TEXT,
  frailty_manag_date TEXT,
  frail_res TEXT,
  impair_cog___1 TEXT,
  impair_cog___2 TEXT,
  impair_cog___3 TEXT,
  impair_cog_add TEXT,
  impair_cog_manag_date TEXT,
  impar_cog_res TEXT,
  ment_heal___1 TEXT,
  ment_heal___2 TEXT,
  ment_heal___3 TEXT,
  ment_heal_add TEXT,
  ment_heal_manag_date TEXT,
  ment_heal_res TEXT,
  self_care_prob_list___1 TEXT,
  self_care_prob_list___2 TEXT,
  self_care_prob_list___3 TEXT,
  self_care_added TEXT,
  self_care_manag_date TEXT,
  self_care_res TEXT,
  imp_phys_mob___1 TEXT,
  imp_phys_mob___2 TEXT,
  imp_phys_mob___3 TEXT,
  imp_phys_mob_add TEXT,
  imp_phys_manag_date TEXT,
  imp_phy_mob_res TEXT,
  fall___1 TEXT,
  fall___2 TEXT,
  fall___3 TEXT,
  fall_add TEXT,
  fall_manag_date TEXT,
  fall_res TEXT,
  stay_home___1 TEXT,
  stay_home___2 TEXT,
  stay_home___3 TEXT,
  stay_home_add TEXT,
  stay_home_manag_date TEXT,
  stay_home_res TEXT,
  prob_bills___1 TEXT,
  prob_bills___2 TEXT,
  prob_bills___3 TEXT,
  prob_bills_add TEXT,
  prob_bills_manag_date TEXT,
  prob_bills_res TEXT,
  stress_trans___1 TEXT,
  stress_trans___2 TEXT,
  stress_trans___3 TEXT,
  stres_trans_add TEXT,
  stess_trans_manag_date TEXT,
  stress_trans_res TEXT,
  incom_acp___1 TEXT,
  incom_acp___2 TEXT,
  incom_acp___3 TEXT,
  incom_acp_date_added TEXT,
  incom_acp_manag_date TEXT,
  incom_acp_date_reso TEXT,
  other_prob_list___1 TEXT,
  other_prob_list___2 TEXT,
  other_prob_list___3 TEXT,
  other_prob_add TEXT,
  other_prob_manag_date TEXT,
  other_prob_res TEXT,
  sdoh_iso___1 TEXT,
  sdoh_iso___2 TEXT,
  sdoh_iso___3 TEXT,
  soc_iso_2 TEXT,
  soc_iso_manag_date TEXT,
  soc_iso_date_resol TEXT,
  nutr_poor___1 TEXT,
  nutr_poor___2 TEXT,
  nutr_poor___3 TEXT,
  nutr_poor_date_add TEXT,
  nutr_poor_manag_date TEXT,
  nutr_poor_res_date TEXT,
  hous_def___1 TEXT,
  hous_def___2 TEXT,
  hous_def___3 TEXT,
  hous_added TEXT,
  hous_manag_date TEXT,
  hous_res_date TEXT,
  sdoh_transp___1 TEXT,
  sdoh_transp___2 TEXT,
  sdoh_transp___3 TEXT,
  trans_date_add TEXT,
  trans_manag_date TEXT,
  trans_date_resol TEXT,
  sdoh_finance___1 TEXT,
  sdoh_finance___2 TEXT,
  sdoh_finance___3 TEXT,
  finance_date_add TEXT,
  finance_manag_date TEXT,
  finance_date_resol TEXT,
  sdoh_other_2___1 TEXT,
  sdoh_other_2___2 TEXT,
  sdoh_other_2___3 TEXT,
  sdoh_other_date_add TEXT,
  sdoh_other_manag TEXT,
  other_sdh_date_resol TEXT,
  allerg TEXT,
  notes_56 TEXT,
  med_diag_list_v2_v2_v2 TEXT,
  goals_prob_cleint TEXT,
  cg_prob_goals TEXT,
  nurse_prob_goals TEXT,
  plan_of_care_problem_list_complete TEXT,
  date_int TEXT,
  ini_int_date TEXT,
  contact_pcp_v2 TEXT,
  pcp_for_v2_v2___1 TEXT,
  pcp_for_v2_v2___2 TEXT,
  pcp_for_v2_v2___3 TEXT,
  pcp_for_v2_v2___4 TEXT,
  pcp_for_v2_v2___5 TEXT,
  pcp_for_v2_v2___6 TEXT,
  notes_28 TEXT,
  spec_care_v2 TEXT,
  ref_v2 TEXT,
  med_interv_v2___1 TEXT,
  med_interv_v2___2 TEXT,
  med_interv_v2___3 TEXT,
  med_interv_v2___4 TEXT,
  med_interv_v2___5 TEXT,
  notes_29 TEXT,
  sympt_interv_v2___1 TEXT,
  sympt_interv_v2___2 TEXT,
  sympt_interv_v2___3 TEXT,
  sympt_interv_v2___4 TEXT,
  sympt_interv_v2___5 TEXT,
  sympt_interv_v2___6 TEXT,
  notes_30 TEXT,
  mob_interv_v2___1 TEXT,
  mob_interv_v2___2 TEXT,
  mob_interv_v2___3 TEXT,
  mob_interv_v2___4 TEXT,
  mob_interv_v2___5 TEXT,
  mob_interv_v2___6 TEXT,
  notes_31 TEXT,
  cg_fam_interv_v2___1 TEXT,
  cg_fam_interv_v2___2 TEXT,
  cg_fam_interv_v2___3 TEXT,
  cg_fam_interv_v2___4 TEXT,
  cg_fam_interv_v2___5 TEXT,
  notes_32 TEXT,
  house_fina_food_interv_v2___1 TEXT,
  house_fina_food_interv_v2___2 TEXT,
  house_fina_food_interv_v2___3 TEXT,
  house_fina_food_interv_v2___4 TEXT,
  house_fina_food_interv_v2___5 TEXT,
  house_fina_food_interv_v2___6 TEXT,
  house_fina_food_interv_v2___7 TEXT,
  house_fina_food_interv_v2___8 TEXT,
  house_fina_food_interv_v2___9 TEXT,
  notes_33 TEXT,
  other_interv_notabove TEXT,
  fu_list_v2___1 TEXT,
  fu_list_v2___2 TEXT,
  fu_list_v2___3 TEXT,
  fu_list_v2___4 TEXT,
  notes_34 TEXT,
  plan_of_care_initial_interventions_complete TEXT,
  today_date_v2 TEXT,
  cont_meth_v2___1 TEXT,
  cont_meth_v2___2 TEXT,
  cont_meth_v2___3 TEXT,
  cont_meth_v2___4 TEXT,
  cont_meth_v2___5 TEXT,
  cont_meth_v2___6 TEXT,
  cont_meth_v2___7 TEXT,
  cont_meth_v2___8 TEXT,
  cont_meth_v2___9 TEXT,
  cont_meth_v2___10 TEXT,
  notes_57 TEXT,
  cont_asses TEXT,
  concerns1_v2___1 TEXT,
  concerns1_v2___2 TEXT,
  concerns1_v2___3 TEXT,
  concerns1_v2___4 TEXT,
  concerns1_v2___5 TEXT,
  concerns1_v2___6 TEXT,
  notes_35 TEXT,
  list_issues TEXT,
  phys_cond_nursescale TEXT,
  emot_stat_nursescale TEXT,
  cog_stat_nursescale TEXT,
  notes_48 TEXT,
  fall_sincelast TEXT,
  hospit_since_last TEXT,
  care_plan_update TEXT,
  update_plan___1 TEXT,
  update_plan___2 TEXT,
  update_plan___3 TEXT,
  update_plan___4 TEXT,
  contact_pcp TEXT,
  pcp_for_v2___1 TEXT,
  pcp_for_v2___2 TEXT,
  pcp_for_v2___3 TEXT,
  pcp_for_v2___4 TEXT,
  pcp_for_v2___5 TEXT,
  pcp_for_v2___6 TEXT,
  notes_36 TEXT,
  spec_care TEXT,
  ref TEXT,
  med_interv___1 TEXT,
  med_interv___2 TEXT,
  med_interv___3 TEXT,
  med_interv___4 TEXT,
  med_interv___5 TEXT,
  med_interv___6 TEXT,
  notes_37 TEXT,
  sympt_interv___1 TEXT,
  sympt_interv___2 TEXT,
  sympt_interv___3 TEXT,
  sympt_interv___4 TEXT,
  sympt_interv___5 TEXT,
  sympt_interv___6 TEXT,
  notes_38 TEXT,
  mob_interv___1 TEXT,
  mob_interv___2 TEXT,
  mob_interv___3 TEXT,
  mob_interv___4 TEXT,
  mob_interv___5 TEXT,
  mob_interv___6 TEXT,
  notes_39 TEXT,
  cg_fam_interv___1 TEXT,
  cg_fam_interv___2 TEXT,
  cg_fam_interv___3 TEXT,
  cg_fam_interv___4 TEXT,
  cg_fam_interv___5 TEXT,
  notes_40 TEXT,
  house_fina_food_interv___1 TEXT,
  house_fina_food_interv___2 TEXT,
  house_fina_food_interv___3 TEXT,
  house_fina_food_interv___4 TEXT,
  house_fina_food_interv___5 TEXT,
  house_fina_food_interv___6 TEXT,
  house_fina_food_interv___7 TEXT,
  house_fina_food_interv___8 TEXT,
  house_fina_food_interv___9 TEXT,
  notes_41 TEXT,
  other_interv_not_listed TEXT,
  fu_list___1 TEXT,
  fu_list___2 TEXT,
  fu_list___3 TEXT,
  fu_list___4 TEXT,
  notes_42 TEXT,
  interval_contacts_complete TEXT,
  date_sixmonth TEXT,
  client_answer_v2 TEXT,
  meds_client_before_v2 TEXT,
  cliebnt_home_before_v2 TEXT,
  client_anx_before_v2 TEXT,
  clients_daily_before_v2 TEXT,
  what_matters_patient_v2 TEXT,
  care_giver_v2 TEXT,
  who_care_v2 TEXT,
  cg_func_before_v2 TEXT,
  cg_basic_before_v2 TEXT,
  cg_conf_before_v2 TEXT,
  cg_fatig_before_v2 TEXT,
  cg_what_matters_v2 TEXT,
  phys_con_6_month TEXT,
  emot_6_mont TEXT,
  cog_6_mont TEXT,
  notes_47 TEXT,
  nurse_out_6_mont___1 TEXT,
  nurse_out_6_mont___2 TEXT,
  nurse_out_6_mont___3 TEXT,
  nurse_out_6_mont___4 TEXT,
  nurse_out_6_mont___5 TEXT,
  nurse_out_6_mont___6 TEXT,
  nurse_out_6_mont___7 TEXT,
  nurse_out_6_mont___8 TEXT,
  nurse_out_6_mont___9 TEXT,
  notes_43 TEXT,
  fu_6month___1 TEXT,
  fu_6month___2 TEXT,
  fu_6month___3 TEXT,
  fu_6month___4 TEXT,
  notes_44 TEXT,
  month_report_complete TEXT,
  date_today_dis TEXT,
  reason_disch TEXT,
  notes_45 TEXT,
  disc_status TEXT,
  phys TEXT,
  emotion TEXT,
  cog_stat TEXT,
  notes_49 TEXT,
  nurse_report_all___1 TEXT,
  nurse_report_all___2 TEXT,
  nurse_report_all___3 TEXT,
  nurse_report_all___4 TEXT,
  nurse_report_all___5 TEXT,
  nurse_report_all___6 TEXT,
  nurse_report_all___7 TEXT,
  notes_46 TEXT,
  client_status_2 TEXT,
  clien_outcome_dis TEXT,
  client_out2_dis TEXT,
  client_outc3_dis TEXT,
  clie_outc4_dis TEXT,
  most_impo_client TEXT,
  cg_status_2 TEXT,
  cg_out1_dis TEXT,
  cg_out2_dis TEXT,
  cg_out3_dis TEXT,
  cg_outc4_dis TEXT,
  cg_con_most TEXT,
  discharge_report_complete TEXT
);
CREATE TABLE doriothy_50(
  record_id TEXT,
  redcap_repeat_instrument TEXT,
  redcap_repeat_instance TEXT,
  redcap_data_access_group TEXT,
  old_records_lyme TEXT,
  today TEXT,
  status_profile TEXT,
  first_name TEXT,
  last_name TEXT,
  preferred_name TEXT,
  consent_date TEXT,
  upload_form TEXT,
  gender TEXT,
  dob TEXT,
  age TEXT,
  date_1st_contact TEXT,
  meth_1st_contact TEXT,
  notes TEXT,
  referred_by___1 TEXT,
  referred_by___2 TEXT,
  referred_by___3 TEXT,
  referred_by___4 TEXT,
  referred_by___5 TEXT,
  referred_by___6 TEXT,
  referred_by___7 TEXT,
  referred_by___8 TEXT,
  referred_by___9 TEXT,
  notes_1 TEXT,
  informant TEXT,
  notes_50 TEXT,
  end_life_plan___1 TEXT,
  end_life_plan___2 TEXT,
  end_life_plan___3 TEXT,
  end_life_plan___4 TEXT,
  end_life_plan___5 TEXT,
  end_life_plan___6 TEXT,
  notes_2 TEXT,
  acp_location TEXT,
  client_answer TEXT,
  meds_client_before TEXT,
  cliebnt_home_before TEXT,
  client_anx_before TEXT,
  clients_daily_before TEXT,
  what_matters_patient TEXT,
  care_giver TEXT,
  who_cg TEXT,
  cg_func_before TEXT,
  cg_basicneeds_before TEXT,
  cg_conf_before TEXT,
  cg_fatig_before TEXT,
  cg_what_matters TEXT,
  client_profile_must_complete_form_complete TEXT,
  date_contact TEXT,
  address TEXT,
  phone TEXT,
  email TEXT,
  caregiver_info TEXT,
  number_providers TEXT,
  provider_1 TEXT,
  provider1_affiliation TEXT,
  provider_2 TEXT,
  provider2_affiliation TEXT,
  provider_3 TEXT,
  provider3_affiliation TEXT,
  other_provider_info TEXT,
  hospital_used TEXT,
  contact_information_must_complete_form_complete TEXT,
  date_sc TEXT,
  address_v2 TEXT,
  notes_52 TEXT,
  phone_v2 TEXT,
  notes_3 TEXT,
  name_2nd_person TEXT,
  client_support_1 TEXT,
  non_med_assist___1 TEXT,
  non_med_assist___2 TEXT,
  non_med_assist___3 TEXT,
  non_med_assist___4 TEXT,
  non_med_assist___5 TEXT,
  non_med_assist___6 TEXT,
  non_med_assist___8 TEXT,
  non_med_assist___9 TEXT,
  notes_4 TEXT,
  healthcare_serv___1 TEXT,
  healthcare_serv___2 TEXT,
  healthcare_serv___3 TEXT,
  healthcare_serv___4 TEXT,
  healthcare_serv___5 TEXT,
  healthcare_serv___6 TEXT,
  healthcare_serv___7 TEXT,
  healthcare_serv___8 TEXT,
  notes_5 TEXT,
  soc_lonl_1___1 TEXT,
  soc_lonl_1___2 TEXT,
  soc_lonl_1___3 TEXT,
  soc_lonl_1___4 TEXT,
  soc_lonl_1___5 TEXT,
  soc_lonl_1___6 TEXT,
  soc_lonl_1___7 TEXT,
  notes_6 TEXT,
  transp___1 TEXT,
  transp___2 TEXT,
  transp___3 TEXT,
  transp___4 TEXT,
  transp___5 TEXT,
  transp___6 TEXT,
  notes_53 TEXT,
  finan_1 TEXT,
  notes_54 TEXT,
  fin_gues_1___1 TEXT,
  fin_gues_1___2 TEXT,
  fin_gues_1___3 TEXT,
  fin_gues_1___4 TEXT,
  fin_gues_1___5 TEXT,
  notes_7 TEXT,
  heal_ins___1 TEXT,
  heal_ins___2 TEXT,
  heal_ins___3 TEXT,
  heal_ins___4 TEXT,
  heal_ins___5 TEXT,
  heal_ins___6 TEXT,
  notes_8 TEXT,
  ethn TEXT,
  notes_9 TEXT,
  st_language TEXT,
  non_english TEXT,
  other_soc_issue TEXT,
  social_context_complete TEXT,
  date_fh TEXT,
  prob_list2___1 TEXT,
  prob_list2___2 TEXT,
  prob_list2___3 TEXT,
  prob_list2___4 TEXT,
  prob_list2___15 TEXT,
  prob_list2___5 TEXT,
  prob_list2___6 TEXT,
  prob_list2___7 TEXT,
  prob_list2___8 TEXT,
  prob_list2___9 TEXT,
  prob_list2___10 TEXT,
  prob_list2___11 TEXT,
  prob_list2___12 TEXT,
  prob_list2___13 TEXT,
  prob_list2___14 TEXT,
  notes_10 TEXT,
  func_lim_1 TEXT,
  symp_mng_1___1 TEXT,
  symp_mng_1___2 TEXT,
  symp_mng_1___3 TEXT,
  symp_mng_1___4 TEXT,
  symp_mng_1___5 TEXT,
  notes_11 TEXT,
  polypharm TEXT,
  med_mng_1___1 TEXT,
  med_mng_1___2 TEXT,
  med_mng_1___3 TEXT,
  med_mng_1___4 TEXT,
  med_mng_1___5 TEXT,
  med_mng_1___6 TEXT,
  med_mng_1___7 TEXT,
  med_mng_1___8 TEXT,
  med_mng_1___9 TEXT,
  med_mng_1___10 TEXT,
  notes_12 TEXT,
  frail_1_v3___1 TEXT,
  frail_1_v3___2 TEXT,
  frail_1_v3___3 TEXT,
  frail_1_v3___4 TEXT,
  frail_1_v3___5 TEXT,
  frail_1_v3___6 TEXT,
  frail_1_v3___7 TEXT,
  frail_1_v3___9 TEXT,
  notes_13 TEXT,
  frai_phe_3 TEXT,
  cog_stat_1___1 TEXT,
  cog_stat_1___2 TEXT,
  cog_stat_1___3 TEXT,
  cog_stat_1___4 TEXT,
  cog_stat_1___5 TEXT,
  cog_stat_1___6 TEXT,
  notes_14 TEXT,
  mini_cog_score TEXT,
  safe_1___1 TEXT,
  safe_1___3 TEXT,
  safe_1___4 TEXT,
  safe_1___5 TEXT,
  safe_1___11 TEXT,
  safe_1___6 TEXT,
  safe_1___7 TEXT,
  safe_1___9 TEXT,
  safe_1___10 TEXT,
  notes_15 TEXT,
  env_risk___1 TEXT,
  env_risk___2 TEXT,
  env_risk___3 TEXT,
  env_risk___4 TEXT,
  env_risk___5 TEXT,
  env_risk___6 TEXT,
  env_risk___7 TEXT,
  env_risk___8 TEXT,
  env_risk___9 TEXT,
  env_risk___10 TEXT,
  env_risk___12 TEXT,
  env_risk___11 TEXT,
  notes_16 TEXT,
  mob_1___1 TEXT,
  mob_1___2 TEXT,
  mob_1___3 TEXT,
  mob_1___4 TEXT,
  mob_1___5 TEXT,
  mob_1___6 TEXT,
  mob_1___7 TEXT,
  mob_1___8 TEXT,
  mob_1___9 TEXT,
  mob_1___10 TEXT,
  notes_17 TEXT,
  tug_1 TEXT,
  number_falls TEXT,
  notes_18 TEXT,
  falls_reas___1 TEXT,
  falls_reas___2 TEXT,
  falls_reas___3 TEXT,
  falls_reas___4 TEXT,
  falls_reas___5 TEXT,
  notes_19 TEXT,
  fall_impact TEXT,
  notes_20 TEXT,
  fall_risk TEXT,
  notes_21 TEXT,
  lifeline TEXT,
  emo_stat___1 TEXT,
  emo_stat___2 TEXT,
  emo_stat___3 TEXT,
  emo_stat___4 TEXT,
  emo_stat___5 TEXT,
  emo_stat___6 TEXT,
  emo_stat___7 TEXT,
  emo_stat___8 TEXT,
  emo_stat___9 TEXT,
  emo_stat___10 TEXT,
  notes_22 TEXT,
  alc_dru___1 TEXT,
  alc_dru___2 TEXT,
  alc_dru___3 TEXT,
  alc_dru___4 TEXT,
  alc_dru___5 TEXT,
  alc_dru___6 TEXT,
  alc_dru___7 TEXT,
  alc_dru___8 TEXT,
  alc_dru___9 TEXT,
  notes_23 TEXT,
  eld_abu___1 TEXT,
  eld_abu___2 TEXT,
  eld_abu___3 TEXT,
  eld_abu___4 TEXT,
  eld_abu___5 TEXT,
  eld_abu___6 TEXT,
  eld_abu___7 TEXT,
  notes_55 TEXT,
  nut_list___1 TEXT,
  nut_list___2 TEXT,
  nut_list___3 TEXT,
  nut_list___4 TEXT,
  nut_list___5 TEXT,
  nut_list___6 TEXT,
  nut_list___7 TEXT,
  nut_list___8 TEXT,
  nut_list___9 TEXT,
  notes_24 TEXT,
  height TEXT,
  weight TEXT,
  bmi TEXT,
  bmi_stat TEXT,
  notes_25 TEXT,
  eli___1 TEXT,
  eli___2 TEXT,
  eli___3 TEXT,
  eli___4 TEXT,
  eli___5 TEXT,
  notes_26 TEXT,
  future_plan TEXT,
  notes_27 TEXT,
  functional_health_complete TEXT,
  med_date_v2 TEXT,
  ormore_meds TEXT,
  med_list_start_home TEXT,
  opload_option TEXT,
  current_med_list_1 TEXT,
  current_med_list_2 TEXT,
  current_med_list_3 TEXT,
  medication_list_complete TEXT,
  na_problem_list TEXT,
  problem_list1_date_v2 TEXT,
  ed_visits___1 TEXT,
  ed_visits___2 TEXT,
  ed_visits___3 TEXT,
  ed_date_add TEXT,
  ed_manag_date TEXT,
  ed_date_res TEXT,
  incorrect_meds___1 TEXT,
  incorrect_meds___2 TEXT,
  incorrect_meds___3 TEXT,
  incorrect_meds_added TEXT,
  inco_meds_manag_date TEXT,
  incorrect_med_res TEXT,
  ineff_ther___1 TEXT,
  ineff_ther___2 TEXT,
  ineff_ther___3 TEXT,
  ineff_ther_add TEXT,
  ineff_ther_manag_date TEXT,
  ineffe_ther_res TEXT,
  sympt_manag___1 TEXT,
  sympt_manag___2 TEXT,
  sympt_manag___3 TEXT,
  sympt_manag_add TEXT,
  sympt_manag_manag_date TEXT,
  sumpy_manag_res TEXT,
  frailty___1 TEXT,
  frailty___2 TEXT,
  frailty___3 TEXT,
  frail_add TEXT,
  frailty_manag_date TEXT,
  frail_res TEXT,
  impair_cog___1 TEXT,
  impair_cog___2 TEXT,
  impair_cog___3 TEXT,
  impair_cog_add TEXT,
  impair_cog_manag_date TEXT,
  impar_cog_res TEXT,
  ment_heal___1 TEXT,
  ment_heal___2 TEXT,
  ment_heal___3 TEXT,
  ment_heal_add TEXT,
  ment_heal_manag_date TEXT,
  ment_heal_res TEXT,
  self_care_prob_list___1 TEXT,
  self_care_prob_list___2 TEXT,
  self_care_prob_list___3 TEXT,
  self_care_added TEXT,
  self_care_manag_date TEXT,
  self_care_res TEXT,
  imp_phys_mob___1 TEXT,
  imp_phys_mob___2 TEXT,
  imp_phys_mob___3 TEXT,
  imp_phys_mob_add TEXT,
  imp_phys_manag_date TEXT,
  imp_phy_mob_res TEXT,
  fall___1 TEXT,
  fall___2 TEXT,
  fall___3 TEXT,
  fall_add TEXT,
  fall_manag_date TEXT,
  fall_res TEXT,
  stay_home___1 TEXT,
  stay_home___2 TEXT,
  stay_home___3 TEXT,
  stay_home_add TEXT,
  stay_home_manag_date TEXT,
  stay_home_res TEXT,
  prob_bills___1 TEXT,
  prob_bills___2 TEXT,
  prob_bills___3 TEXT,
  prob_bills_add TEXT,
  prob_bills_manag_date TEXT,
  prob_bills_res TEXT,
  stress_trans___1 TEXT,
  stress_trans___2 TEXT,
  stress_trans___3 TEXT,
  stres_trans_add TEXT,
  stess_trans_manag_date TEXT,
  stress_trans_res TEXT,
  incom_acp___1 TEXT,
  incom_acp___2 TEXT,
  incom_acp___3 TEXT,
  incom_acp_date_added TEXT,
  incom_acp_manag_date TEXT,
  incom_acp_date_reso TEXT,
  other_prob_list___1 TEXT,
  other_prob_list___2 TEXT,
  other_prob_list___3 TEXT,
  other_prob_add TEXT,
  other_prob_manag_date TEXT,
  other_prob_res TEXT,
  sdoh_iso___1 TEXT,
  sdoh_iso___2 TEXT,
  sdoh_iso___3 TEXT,
  soc_iso_2 TEXT,
  soc_iso_manag_date TEXT,
  soc_iso_date_resol TEXT,
  nutr_poor___1 TEXT,
  nutr_poor___2 TEXT,
  nutr_poor___3 TEXT,
  nutr_poor_date_add TEXT,
  nutr_poor_manag_date TEXT,
  nutr_poor_res_date TEXT,
  hous_def___1 TEXT,
  hous_def___2 TEXT,
  hous_def___3 TEXT,
  hous_added TEXT,
  hous_manag_date TEXT,
  hous_res_date TEXT,
  sdoh_transp___1 TEXT,
  sdoh_transp___2 TEXT,
  sdoh_transp___3 TEXT,
  trans_date_add TEXT,
  trans_manag_date TEXT,
  trans_date_resol TEXT,
  sdoh_finance___1 TEXT,
  sdoh_finance___2 TEXT,
  sdoh_finance___3 TEXT,
  finance_date_add TEXT,
  finance_manag_date TEXT,
  finance_date_resol TEXT,
  sdoh_other_2___1 TEXT,
  sdoh_other_2___2 TEXT,
  sdoh_other_2___3 TEXT,
  sdoh_other_date_add TEXT,
  sdoh_other_manag TEXT,
  other_sdh_date_resol TEXT,
  allerg TEXT,
  notes_56 TEXT,
  med_diag_list_v2_v2_v2 TEXT,
  goals_prob_cleint TEXT,
  cg_prob_goals TEXT,
  nurse_prob_goals TEXT,
  plan_of_care_problem_list_complete TEXT,
  date_int TEXT,
  ini_int_date TEXT,
  contact_pcp_v2 TEXT,
  pcp_for_v2_v2___1 TEXT,
  pcp_for_v2_v2___2 TEXT,
  pcp_for_v2_v2___3 TEXT,
  pcp_for_v2_v2___4 TEXT,
  pcp_for_v2_v2___5 TEXT,
  pcp_for_v2_v2___6 TEXT,
  notes_28 TEXT,
  spec_care_v2 TEXT,
  ref_v2 TEXT,
  med_interv_v2___1 TEXT,
  med_interv_v2___2 TEXT,
  med_interv_v2___3 TEXT,
  med_interv_v2___4 TEXT,
  med_interv_v2___5 TEXT,
  notes_29 TEXT,
  sympt_interv_v2___1 TEXT,
  sympt_interv_v2___2 TEXT,
  sympt_interv_v2___3 TEXT,
  sympt_interv_v2___4 TEXT,
  sympt_interv_v2___5 TEXT,
  sympt_interv_v2___6 TEXT,
  notes_30 TEXT,
  mob_interv_v2___1 TEXT,
  mob_interv_v2___2 TEXT,
  mob_interv_v2___3 TEXT,
  mob_interv_v2___4 TEXT,
  mob_interv_v2___5 TEXT,
  mob_interv_v2___6 TEXT,
  notes_31 TEXT,
  cg_fam_interv_v2___1 TEXT,
  cg_fam_interv_v2___2 TEXT,
  cg_fam_interv_v2___3 TEXT,
  cg_fam_interv_v2___4 TEXT,
  cg_fam_interv_v2___5 TEXT,
  notes_32 TEXT,
  house_fina_food_interv_v2___1 TEXT,
  house_fina_food_interv_v2___2 TEXT,
  house_fina_food_interv_v2___3 TEXT,
  house_fina_food_interv_v2___4 TEXT,
  house_fina_food_interv_v2___5 TEXT,
  house_fina_food_interv_v2___6 TEXT,
  house_fina_food_interv_v2___7 TEXT,
  house_fina_food_interv_v2___8 TEXT,
  house_fina_food_interv_v2___9 TEXT,
  notes_33 TEXT,
  other_interv_notabove TEXT,
  fu_list_v2___1 TEXT,
  fu_list_v2___2 TEXT,
  fu_list_v2___3 TEXT,
  fu_list_v2___4 TEXT,
  notes_34 TEXT,
  plan_of_care_initial_interventions_complete TEXT,
  today_date_v2 TEXT,
  cont_meth_v2___1 TEXT,
  cont_meth_v2___2 TEXT,
  cont_meth_v2___3 TEXT,
  cont_meth_v2___4 TEXT,
  cont_meth_v2___5 TEXT,
  cont_meth_v2___6 TEXT,
  cont_meth_v2___7 TEXT,
  cont_meth_v2___8 TEXT,
  cont_meth_v2___9 TEXT,
  cont_meth_v2___10 TEXT,
  notes_57 TEXT,
  cont_asses TEXT,
  concerns1_v2___1 TEXT,
  concerns1_v2___2 TEXT,
  concerns1_v2___3 TEXT,
  concerns1_v2___4 TEXT,
  concerns1_v2___5 TEXT,
  concerns1_v2___6 TEXT,
  notes_35 TEXT,
  list_issues TEXT,
  phys_cond_nursescale TEXT,
  emot_stat_nursescale TEXT,
  cog_stat_nursescale TEXT,
  notes_48 TEXT,
  fall_sincelast TEXT,
  hospit_since_last TEXT,
  care_plan_update TEXT,
  update_plan___1 TEXT,
  update_plan___2 TEXT,
  update_plan___3 TEXT,
  update_plan___4 TEXT,
  contact_pcp TEXT,
  pcp_for_v2___1 TEXT,
  pcp_for_v2___2 TEXT,
  pcp_for_v2___3 TEXT,
  pcp_for_v2___4 TEXT,
  pcp_for_v2___5 TEXT,
  pcp_for_v2___6 TEXT,
  notes_36 TEXT,
  spec_care TEXT,
  ref TEXT,
  med_interv___1 TEXT,
  med_interv___2 TEXT,
  med_interv___3 TEXT,
  med_interv___4 TEXT,
  med_interv___5 TEXT,
  med_interv___6 TEXT,
  notes_37 TEXT,
  sympt_interv___1 TEXT,
  sympt_interv___2 TEXT,
  sympt_interv___3 TEXT,
  sympt_interv___4 TEXT,
  sympt_interv___5 TEXT,
  sympt_interv___6 TEXT,
  notes_38 TEXT,
  mob_interv___1 TEXT,
  mob_interv___2 TEXT,
  mob_interv___3 TEXT,
  mob_interv___4 TEXT,
  mob_interv___5 TEXT,
  mob_interv___6 TEXT,
  notes_39 TEXT,
  cg_fam_interv___1 TEXT,
  cg_fam_interv___2 TEXT,
  cg_fam_interv___3 TEXT,
  cg_fam_interv___4 TEXT,
  cg_fam_interv___5 TEXT,
  notes_40 TEXT,
  house_fina_food_interv___1 TEXT,
  house_fina_food_interv___2 TEXT,
  house_fina_food_interv___3 TEXT,
  house_fina_food_interv___4 TEXT,
  house_fina_food_interv___5 TEXT,
  house_fina_food_interv___6 TEXT,
  house_fina_food_interv___7 TEXT,
  house_fina_food_interv___8 TEXT,
  house_fina_food_interv___9 TEXT,
  notes_41 TEXT,
  other_interv_not_listed TEXT,
  fu_list___1 TEXT,
  fu_list___2 TEXT,
  fu_list___3 TEXT,
  fu_list___4 TEXT,
  notes_42 TEXT,
  interval_contacts_complete TEXT,
  date_sixmonth TEXT,
  client_answer_v2 TEXT,
  meds_client_before_v2 TEXT,
  cliebnt_home_before_v2 TEXT,
  client_anx_before_v2 TEXT,
  clients_daily_before_v2 TEXT,
  what_matters_patient_v2 TEXT,
  care_giver_v2 TEXT,
  who_care_v2 TEXT,
  cg_func_before_v2 TEXT,
  cg_basic_before_v2 TEXT,
  cg_conf_before_v2 TEXT,
  cg_fatig_before_v2 TEXT,
  cg_what_matters_v2 TEXT,
  phys_con_6_month TEXT,
  emot_6_mont TEXT,
  cog_6_mont TEXT,
  notes_47 TEXT,
  nurse_out_6_mont___1 TEXT,
  nurse_out_6_mont___2 TEXT,
  nurse_out_6_mont___3 TEXT,
  nurse_out_6_mont___4 TEXT,
  nurse_out_6_mont___5 TEXT,
  nurse_out_6_mont___6 TEXT,
  nurse_out_6_mont___7 TEXT,
  nurse_out_6_mont___8 TEXT,
  nurse_out_6_mont___9 TEXT,
  notes_43 TEXT,
  fu_6month___1 TEXT,
  fu_6month___2 TEXT,
  fu_6month___3 TEXT,
  fu_6month___4 TEXT,
  notes_44 TEXT,
  month_report_complete TEXT,
  date_today_dis TEXT,
  reason_disch TEXT,
  notes_45 TEXT,
  disc_status TEXT,
  phys TEXT,
  emotion TEXT,
  cog_stat TEXT,
  notes_49 TEXT,
  nurse_report_all___1 TEXT,
  nurse_report_all___2 TEXT,
  nurse_report_all___3 TEXT,
  nurse_report_all___4 TEXT,
  nurse_report_all___5 TEXT,
  nurse_report_all___6 TEXT,
  nurse_report_all___7 TEXT,
  notes_46 TEXT,
  client_status_2 TEXT,
  clien_outcome_dis TEXT,
  client_out2_dis TEXT,
  client_outc3_dis TEXT,
  clie_outc4_dis TEXT,
  most_impo_client TEXT,
  cg_status_2 TEXT,
  cg_out1_dis TEXT,
  cg_out2_dis TEXT,
  cg_out3_dis TEXT,
  cg_outc4_dis TEXT,
  cg_con_most TEXT,
  discharge_report_complete TEXT
);
CREATE TABLE test2(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "date_contact" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE test2leb(
  record_id TEXT,
  redcap_repeat_instrument TEXT,
  redcap_repeat_instance TEXT,
  redcap_data_access_group TEXT,
  old_records_lyme TEXT,
  today TEXT,
  status_profile TEXT,
  first_name TEXT,
  last_name TEXT,
  preferred_name TEXT,
  consent_date TEXT,
  upload_form TEXT,
  gender TEXT,
  dob TEXT,
  age TEXT,
  date_1st_contact TEXT,
  meth_1st_contact TEXT,
  notes TEXT,
  referred_by___1 TEXT,
  referred_by___2 TEXT,
  referred_by___3 TEXT,
  referred_by___4 TEXT,
  referred_by___5 TEXT,
  referred_by___6 TEXT,
  referred_by___7 TEXT,
  referred_by___8 TEXT,
  referred_by___9 TEXT,
  notes_1 TEXT,
  informant TEXT,
  notes_50 TEXT,
  end_life_plan___1 TEXT,
  end_life_plan___2 TEXT,
  end_life_plan___3 TEXT,
  end_life_plan___4 TEXT,
  end_life_plan___5 TEXT,
  end_life_plan___6 TEXT,
  notes_2 TEXT,
  acp_location TEXT,
  client_answer TEXT,
  meds_client_before TEXT,
  cliebnt_home_before TEXT,
  client_anx_before TEXT,
  clients_daily_before TEXT,
  what_matters_patient TEXT,
  care_giver TEXT,
  who_cg TEXT,
  cg_func_before TEXT,
  cg_basicneeds_before TEXT,
  cg_conf_before TEXT,
  cg_fatig_before TEXT,
  cg_what_matters TEXT,
  client_profile_must_complete_form_complete TEXT,
  date_contact TEXT,
  address TEXT,
  phone TEXT,
  email TEXT,
  caregiver_info TEXT,
  number_providers TEXT,
  provider_1 TEXT,
  provider1_affiliation TEXT,
  provider_2 TEXT,
  provider2_affiliation TEXT,
  provider_3 TEXT,
  provider3_affiliation TEXT,
  other_provider_info TEXT,
  hospital_used TEXT,
  contact_information_must_complete_form_complete TEXT,
  date_sc TEXT,
  address_v2 TEXT,
  notes_52 TEXT,
  phone_v2 TEXT,
  notes_3 TEXT,
  name_2nd_person TEXT,
  client_support_1 TEXT,
  non_med_assist___1 TEXT,
  non_med_assist___2 TEXT,
  non_med_assist___3 TEXT,
  non_med_assist___4 TEXT,
  non_med_assist___5 TEXT,
  non_med_assist___6 TEXT,
  non_med_assist___8 TEXT,
  non_med_assist___9 TEXT,
  notes_4 TEXT,
  healthcare_serv___1 TEXT,
  healthcare_serv___2 TEXT,
  healthcare_serv___3 TEXT,
  healthcare_serv___4 TEXT,
  healthcare_serv___5 TEXT,
  healthcare_serv___6 TEXT,
  healthcare_serv___7 TEXT,
  healthcare_serv___8 TEXT,
  notes_5 TEXT,
  soc_lonl_1___1 TEXT,
  soc_lonl_1___2 TEXT,
  soc_lonl_1___3 TEXT,
  soc_lonl_1___4 TEXT,
  soc_lonl_1___5 TEXT,
  soc_lonl_1___6 TEXT,
  soc_lonl_1___7 TEXT,
  notes_6 TEXT,
  transp___1 TEXT,
  transp___2 TEXT,
  transp___3 TEXT,
  transp___4 TEXT,
  transp___5 TEXT,
  transp___6 TEXT,
  notes_53 TEXT,
  finan_1 TEXT,
  notes_54 TEXT,
  fin_gues_1___1 TEXT,
  fin_gues_1___2 TEXT,
  fin_gues_1___3 TEXT,
  fin_gues_1___4 TEXT,
  fin_gues_1___5 TEXT,
  notes_7 TEXT,
  heal_ins___1 TEXT,
  heal_ins___2 TEXT,
  heal_ins___3 TEXT,
  heal_ins___4 TEXT,
  heal_ins___5 TEXT,
  heal_ins___6 TEXT,
  notes_8 TEXT,
  ethn TEXT,
  notes_9 TEXT,
  st_language TEXT,
  non_english TEXT,
  other_soc_issue TEXT,
  social_context_complete TEXT,
  date_fh TEXT,
  prob_list2___1 TEXT,
  prob_list2___2 TEXT,
  prob_list2___3 TEXT,
  prob_list2___4 TEXT,
  prob_list2___15 TEXT,
  prob_list2___5 TEXT,
  prob_list2___6 TEXT,
  prob_list2___7 TEXT,
  prob_list2___8 TEXT,
  prob_list2___9 TEXT,
  prob_list2___10 TEXT,
  prob_list2___11 TEXT,
  prob_list2___12 TEXT,
  prob_list2___13 TEXT,
  prob_list2___14 TEXT,
  notes_10 TEXT,
  func_lim_1 TEXT,
  symp_mng_1___1 TEXT,
  symp_mng_1___2 TEXT,
  symp_mng_1___3 TEXT,
  symp_mng_1___4 TEXT,
  symp_mng_1___5 TEXT,
  notes_11 TEXT,
  polypharm TEXT,
  med_mng_1___1 TEXT,
  med_mng_1___2 TEXT,
  med_mng_1___3 TEXT,
  med_mng_1___4 TEXT,
  med_mng_1___5 TEXT,
  med_mng_1___6 TEXT,
  med_mng_1___7 TEXT,
  med_mng_1___8 TEXT,
  med_mng_1___9 TEXT,
  med_mng_1___10 TEXT,
  notes_12 TEXT,
  frail_1_v3___1 TEXT,
  frail_1_v3___2 TEXT,
  frail_1_v3___3 TEXT,
  frail_1_v3___4 TEXT,
  frail_1_v3___5 TEXT,
  frail_1_v3___6 TEXT,
  frail_1_v3___7 TEXT,
  frail_1_v3___9 TEXT,
  notes_13 TEXT,
  frai_phe_3 TEXT,
  cog_stat_1___1 TEXT,
  cog_stat_1___2 TEXT,
  cog_stat_1___3 TEXT,
  cog_stat_1___4 TEXT,
  cog_stat_1___5 TEXT,
  cog_stat_1___6 TEXT,
  notes_14 TEXT,
  mini_cog_score TEXT,
  safe_1___1 TEXT,
  safe_1___3 TEXT,
  safe_1___4 TEXT,
  safe_1___5 TEXT,
  safe_1___11 TEXT,
  safe_1___6 TEXT,
  safe_1___7 TEXT,
  safe_1___9 TEXT,
  safe_1___10 TEXT,
  notes_15 TEXT,
  env_risk___1 TEXT,
  env_risk___2 TEXT,
  env_risk___3 TEXT,
  env_risk___4 TEXT,
  env_risk___5 TEXT,
  env_risk___6 TEXT,
  env_risk___7 TEXT,
  env_risk___8 TEXT,
  env_risk___9 TEXT,
  env_risk___10 TEXT,
  env_risk___12 TEXT,
  env_risk___11 TEXT,
  notes_16 TEXT,
  mob_1___1 TEXT,
  mob_1___2 TEXT,
  mob_1___3 TEXT,
  mob_1___4 TEXT,
  mob_1___5 TEXT,
  mob_1___6 TEXT,
  mob_1___7 TEXT,
  mob_1___8 TEXT,
  mob_1___9 TEXT,
  mob_1___10 TEXT,
  notes_17 TEXT,
  tug_1 TEXT,
  number_falls TEXT,
  notes_18 TEXT,
  falls_reas___1 TEXT,
  falls_reas___2 TEXT,
  falls_reas___3 TEXT,
  falls_reas___4 TEXT,
  falls_reas___5 TEXT,
  notes_19 TEXT,
  fall_impact TEXT,
  notes_20 TEXT,
  fall_risk TEXT,
  notes_21 TEXT,
  lifeline TEXT,
  emo_stat___1 TEXT,
  emo_stat___2 TEXT,
  emo_stat___3 TEXT,
  emo_stat___4 TEXT,
  emo_stat___5 TEXT,
  emo_stat___6 TEXT,
  emo_stat___7 TEXT,
  emo_stat___8 TEXT,
  emo_stat___9 TEXT,
  emo_stat___10 TEXT,
  notes_22 TEXT,
  alc_dru___1 TEXT,
  alc_dru___2 TEXT,
  alc_dru___3 TEXT,
  alc_dru___4 TEXT,
  alc_dru___5 TEXT,
  alc_dru___6 TEXT,
  alc_dru___7 TEXT,
  alc_dru___8 TEXT,
  alc_dru___9 TEXT,
  notes_23 TEXT,
  eld_abu___1 TEXT,
  eld_abu___2 TEXT,
  eld_abu___3 TEXT,
  eld_abu___4 TEXT,
  eld_abu___5 TEXT,
  eld_abu___6 TEXT,
  eld_abu___7 TEXT,
  notes_55 TEXT,
  nut_list___1 TEXT,
  nut_list___2 TEXT,
  nut_list___3 TEXT,
  nut_list___4 TEXT,
  nut_list___5 TEXT,
  nut_list___6 TEXT,
  nut_list___7 TEXT,
  nut_list___8 TEXT,
  nut_list___9 TEXT,
  notes_24 TEXT,
  height TEXT,
  weight TEXT,
  bmi TEXT,
  bmi_stat TEXT,
  notes_25 TEXT,
  eli___1 TEXT,
  eli___2 TEXT,
  eli___3 TEXT,
  eli___4 TEXT,
  eli___5 TEXT,
  notes_26 TEXT,
  future_plan TEXT,
  notes_27 TEXT,
  functional_health_complete TEXT,
  med_date_v2 TEXT,
  ormore_meds TEXT,
  med_list_start_home TEXT,
  opload_option TEXT,
  current_med_list_1 TEXT,
  current_med_list_2 TEXT,
  current_med_list_3 TEXT,
  medication_list_complete TEXT,
  na_problem_list TEXT,
  problem_list1_date_v2 TEXT,
  ed_visits___1 TEXT,
  ed_visits___2 TEXT,
  ed_visits___3 TEXT,
  ed_date_add TEXT,
  ed_manag_date TEXT,
  ed_date_res TEXT,
  incorrect_meds___1 TEXT,
  incorrect_meds___2 TEXT,
  incorrect_meds___3 TEXT,
  incorrect_meds_added TEXT,
  inco_meds_manag_date TEXT,
  incorrect_med_res TEXT,
  ineff_ther___1 TEXT,
  ineff_ther___2 TEXT,
  ineff_ther___3 TEXT,
  ineff_ther_add TEXT,
  ineff_ther_manag_date TEXT,
  ineffe_ther_res TEXT,
  sympt_manag___1 TEXT,
  sympt_manag___2 TEXT,
  sympt_manag___3 TEXT,
  sympt_manag_add TEXT,
  sympt_manag_manag_date TEXT,
  sumpy_manag_res TEXT,
  frailty___1 TEXT,
  frailty___2 TEXT,
  frailty___3 TEXT,
  frail_add TEXT,
  frailty_manag_date TEXT,
  frail_res TEXT,
  impair_cog___1 TEXT,
  impair_cog___2 TEXT,
  impair_cog___3 TEXT,
  impair_cog_add TEXT,
  impair_cog_manag_date TEXT,
  impar_cog_res TEXT,
  ment_heal___1 TEXT,
  ment_heal___2 TEXT,
  ment_heal___3 TEXT,
  ment_heal_add TEXT,
  ment_heal_manag_date TEXT,
  ment_heal_res TEXT,
  self_care_prob_list___1 TEXT,
  self_care_prob_list___2 TEXT,
  self_care_prob_list___3 TEXT,
  self_care_added TEXT,
  self_care_manag_date TEXT,
  self_care_res TEXT,
  imp_phys_mob___1 TEXT,
  imp_phys_mob___2 TEXT,
  imp_phys_mob___3 TEXT,
  imp_phys_mob_add TEXT,
  imp_phys_manag_date TEXT,
  imp_phy_mob_res TEXT,
  fall___1 TEXT,
  fall___2 TEXT,
  fall___3 TEXT,
  fall_add TEXT,
  fall_manag_date TEXT,
  fall_res TEXT,
  stay_home___1 TEXT,
  stay_home___2 TEXT,
  stay_home___3 TEXT,
  stay_home_add TEXT,
  stay_home_manag_date TEXT,
  stay_home_res TEXT,
  prob_bills___1 TEXT,
  prob_bills___2 TEXT,
  prob_bills___3 TEXT,
  prob_bills_add TEXT,
  prob_bills_manag_date TEXT,
  prob_bills_res TEXT,
  stress_trans___1 TEXT,
  stress_trans___2 TEXT,
  stress_trans___3 TEXT,
  stres_trans_add TEXT,
  stess_trans_manag_date TEXT,
  stress_trans_res TEXT,
  incom_acp___1 TEXT,
  incom_acp___2 TEXT,
  incom_acp___3 TEXT,
  incom_acp_date_added TEXT,
  incom_acp_manag_date TEXT,
  incom_acp_date_reso TEXT,
  other_prob_list___1 TEXT,
  other_prob_list___2 TEXT,
  other_prob_list___3 TEXT,
  other_prob_add TEXT,
  other_prob_manag_date TEXT,
  other_prob_res TEXT,
  sdoh_iso___1 TEXT,
  sdoh_iso___2 TEXT,
  sdoh_iso___3 TEXT,
  soc_iso_2 TEXT,
  soc_iso_manag_date TEXT,
  soc_iso_date_resol TEXT,
  nutr_poor___1 TEXT,
  nutr_poor___2 TEXT,
  nutr_poor___3 TEXT,
  nutr_poor_date_add TEXT,
  nutr_poor_manag_date TEXT,
  nutr_poor_res_date TEXT,
  hous_def___1 TEXT,
  hous_def___2 TEXT,
  hous_def___3 TEXT,
  hous_added TEXT,
  hous_manag_date TEXT,
  hous_res_date TEXT,
  sdoh_transp___1 TEXT,
  sdoh_transp___2 TEXT,
  sdoh_transp___3 TEXT,
  trans_date_add TEXT,
  trans_manag_date TEXT,
  trans_date_resol TEXT,
  sdoh_finance___1 TEXT,
  sdoh_finance___2 TEXT,
  sdoh_finance___3 TEXT,
  finance_date_add TEXT,
  finance_manag_date TEXT,
  finance_date_resol TEXT,
  sdoh_other_2___1 TEXT,
  sdoh_other_2___2 TEXT,
  sdoh_other_2___3 TEXT,
  sdoh_other_date_add TEXT,
  sdoh_other_manag TEXT,
  other_sdh_date_resol TEXT,
  allerg TEXT,
  notes_56 TEXT,
  med_diag_list_v2_v2_v2 TEXT,
  goals_prob_cleint TEXT,
  cg_prob_goals TEXT,
  nurse_prob_goals TEXT,
  plan_of_care_problem_list_complete TEXT,
  date_int TEXT,
  ini_int_date TEXT,
  contact_pcp_v2 TEXT,
  pcp_for_v2_v2___1 TEXT,
  pcp_for_v2_v2___2 TEXT,
  pcp_for_v2_v2___3 TEXT,
  pcp_for_v2_v2___4 TEXT,
  pcp_for_v2_v2___5 TEXT,
  pcp_for_v2_v2___6 TEXT,
  notes_28 TEXT,
  spec_care_v2 TEXT,
  ref_v2 TEXT,
  med_interv_v2___1 TEXT,
  med_interv_v2___2 TEXT,
  med_interv_v2___3 TEXT,
  med_interv_v2___4 TEXT,
  med_interv_v2___5 TEXT,
  notes_29 TEXT,
  sympt_interv_v2___1 TEXT,
  sympt_interv_v2___2 TEXT,
  sympt_interv_v2___3 TEXT,
  sympt_interv_v2___4 TEXT,
  sympt_interv_v2___5 TEXT,
  sympt_interv_v2___6 TEXT,
  notes_30 TEXT,
  mob_interv_v2___1 TEXT,
  mob_interv_v2___2 TEXT,
  mob_interv_v2___3 TEXT,
  mob_interv_v2___4 TEXT,
  mob_interv_v2___5 TEXT,
  mob_interv_v2___6 TEXT,
  notes_31 TEXT,
  cg_fam_interv_v2___1 TEXT,
  cg_fam_interv_v2___2 TEXT,
  cg_fam_interv_v2___3 TEXT,
  cg_fam_interv_v2___4 TEXT,
  cg_fam_interv_v2___5 TEXT,
  notes_32 TEXT,
  house_fina_food_interv_v2___1 TEXT,
  house_fina_food_interv_v2___2 TEXT,
  house_fina_food_interv_v2___3 TEXT,
  house_fina_food_interv_v2___4 TEXT,
  house_fina_food_interv_v2___5 TEXT,
  house_fina_food_interv_v2___6 TEXT,
  house_fina_food_interv_v2___7 TEXT,
  house_fina_food_interv_v2___8 TEXT,
  house_fina_food_interv_v2___9 TEXT,
  notes_33 TEXT,
  other_interv_notabove TEXT,
  fu_list_v2___1 TEXT,
  fu_list_v2___2 TEXT,
  fu_list_v2___3 TEXT,
  fu_list_v2___4 TEXT,
  notes_34 TEXT,
  plan_of_care_initial_interventions_complete TEXT,
  today_date_v2 TEXT,
  cont_meth_v2___1 TEXT,
  cont_meth_v2___2 TEXT,
  cont_meth_v2___3 TEXT,
  cont_meth_v2___4 TEXT,
  cont_meth_v2___5 TEXT,
  cont_meth_v2___6 TEXT,
  cont_meth_v2___7 TEXT,
  cont_meth_v2___8 TEXT,
  cont_meth_v2___9 TEXT,
  cont_meth_v2___10 TEXT,
  notes_57 TEXT,
  cont_asses TEXT,
  concerns1_v2___1 TEXT,
  concerns1_v2___2 TEXT,
  concerns1_v2___3 TEXT,
  concerns1_v2___4 TEXT,
  concerns1_v2___5 TEXT,
  concerns1_v2___6 TEXT,
  notes_35 TEXT,
  list_issues TEXT,
  phys_cond_nursescale TEXT,
  emot_stat_nursescale TEXT,
  cog_stat_nursescale TEXT,
  notes_48 TEXT,
  fall_sincelast TEXT,
  hospit_since_last TEXT,
  care_plan_update TEXT,
  update_plan___1 TEXT,
  update_plan___2 TEXT,
  update_plan___3 TEXT,
  update_plan___4 TEXT,
  contact_pcp TEXT,
  pcp_for_v2___1 TEXT,
  pcp_for_v2___2 TEXT,
  pcp_for_v2___3 TEXT,
  pcp_for_v2___4 TEXT,
  pcp_for_v2___5 TEXT,
  pcp_for_v2___6 TEXT,
  notes_36 TEXT,
  spec_care TEXT,
  ref TEXT,
  med_interv___1 TEXT,
  med_interv___2 TEXT,
  med_interv___3 TEXT,
  med_interv___4 TEXT,
  med_interv___5 TEXT,
  med_interv___6 TEXT,
  notes_37 TEXT,
  sympt_interv___1 TEXT,
  sympt_interv___2 TEXT,
  sympt_interv___3 TEXT,
  sympt_interv___4 TEXT,
  sympt_interv___5 TEXT,
  sympt_interv___6 TEXT,
  notes_38 TEXT,
  mob_interv___1 TEXT,
  mob_interv___2 TEXT,
  mob_interv___3 TEXT,
  mob_interv___4 TEXT,
  mob_interv___5 TEXT,
  mob_interv___6 TEXT,
  notes_39 TEXT,
  cg_fam_interv___1 TEXT,
  cg_fam_interv___2 TEXT,
  cg_fam_interv___3 TEXT,
  cg_fam_interv___4 TEXT,
  cg_fam_interv___5 TEXT,
  notes_40 TEXT,
  house_fina_food_interv___1 TEXT,
  house_fina_food_interv___2 TEXT,
  house_fina_food_interv___3 TEXT,
  house_fina_food_interv___4 TEXT,
  house_fina_food_interv___5 TEXT,
  house_fina_food_interv___6 TEXT,
  house_fina_food_interv___7 TEXT,
  house_fina_food_interv___8 TEXT,
  house_fina_food_interv___9 TEXT,
  notes_41 TEXT,
  other_interv_not_listed TEXT,
  fu_list___1 TEXT,
  fu_list___2 TEXT,
  fu_list___3 TEXT,
  fu_list___4 TEXT,
  notes_42 TEXT,
  interval_contacts_complete TEXT,
  date_sixmonth TEXT,
  client_answer_v2 TEXT,
  meds_client_before_v2 TEXT,
  cliebnt_home_before_v2 TEXT,
  client_anx_before_v2 TEXT,
  clients_daily_before_v2 TEXT,
  what_matters_patient_v2 TEXT,
  care_giver_v2 TEXT,
  who_care_v2 TEXT,
  cg_func_before_v2 TEXT,
  cg_basic_before_v2 TEXT,
  cg_conf_before_v2 TEXT,
  cg_fatig_before_v2 TEXT,
  cg_what_matters_v2 TEXT,
  phys_con_6_month TEXT,
  emot_6_mont TEXT,
  cog_6_mont TEXT,
  notes_47 TEXT,
  nurse_out_6_mont___1 TEXT,
  nurse_out_6_mont___2 TEXT,
  nurse_out_6_mont___3 TEXT,
  nurse_out_6_mont___4 TEXT,
  nurse_out_6_mont___5 TEXT,
  nurse_out_6_mont___6 TEXT,
  nurse_out_6_mont___7 TEXT,
  nurse_out_6_mont___8 TEXT,
  nurse_out_6_mont___9 TEXT,
  notes_43 TEXT,
  fu_6month___1 TEXT,
  fu_6month___2 TEXT,
  fu_6month___3 TEXT,
  fu_6month___4 TEXT,
  notes_44 TEXT,
  month_report_complete TEXT,
  date_today_dis TEXT,
  reason_disch TEXT,
  notes_45 TEXT,
  disc_status TEXT,
  phys TEXT,
  emotion TEXT,
  cog_stat TEXT,
  notes_49 TEXT,
  nurse_report_all___1 TEXT,
  nurse_report_all___2 TEXT,
  nurse_report_all___3 TEXT,
  nurse_report_all___4 TEXT,
  nurse_report_all___5 TEXT,
  nurse_report_all___6 TEXT,
  nurse_report_all___7 TEXT,
  notes_46 TEXT,
  client_status_2 TEXT,
  clien_outcome_dis TEXT,
  client_out2_dis TEXT,
  client_outc3_dis TEXT,
  clie_outc4_dis TEXT,
  most_impo_client TEXT,
  cg_status_2 TEXT,
  cg_out1_dis TEXT,
  cg_out2_dis TEXT,
  cg_out3_dis TEXT,
  cg_outc4_dis TEXT,
  cg_con_most TEXT,
  discharge_report_complete TEXT
);
CREATE TABLE dict1(
  "variable" TEXT,
  "form" TEXT,
  "section_header" TEXT,
  "type" TEXT,
  "label" TEXT,
  "formula" TEXT,
  "note" TEXT,
  "validation" TEXT,
  "vein" TEXT,
  "max" TEXT,
  "idflag" TEXT,
  "branching" TEXT,
  "required" TEXT,
  "align" TEXT,
  "question" TEXT,
  "matrix_group" TEXT,
  "matrix_rank" TEXT,
  "annotation" TEXT
);
CREATE TABLE log(
  "when" TEXT,
  "who" TEXT,
  "action" TEXT,
  "changes" TEXT
);
CREATE TABLE jason1(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "informant" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "phone_v2" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "finan_1" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "ethn" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "fall_impact" TEXT,
  "fall_risk" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "future_plan" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE jason2(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "informant" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "phone_v2" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "finan_1" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "ethn" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "fall_impact" TEXT,
  "fall_risk" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "future_plan" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE age1(age TEXT,c);
CREATE TABLE age2(age TEXT,c);
CREATE TABLE jason3(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "informant" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "phone_v2" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "finan_1" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "ethn" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "fall_impact" TEXT,
  "fall_risk" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "future_plan" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE jason4(
  record_id TEXT,
  redcap_repeat_instrument TEXT,
  redcap_repeat_instance TEXT,
  redcap_data_access_group TEXT,
  today TEXT,
  status_profile TEXT,
  gender TEXT,
  dob TEXT,
  age TEXT,
  date_1st_contact TEXT,
  meth_1st_contact TEXT,
  referred_by___1 TEXT,
  referred_by___2 TEXT,
  referred_by___3 TEXT,
  referred_by___4 TEXT,
  referred_by___5 TEXT,
  referred_by___6 TEXT,
  referred_by___7 TEXT,
  referred_by___8 TEXT,
  referred_by___9 TEXT,
  informant TEXT,
  end_life_plan___1 TEXT,
  end_life_plan___2 TEXT,
  end_life_plan___3 TEXT,
  end_life_plan___4 TEXT,
  end_life_plan___5 TEXT,
  end_life_plan___6 TEXT,
  acp_location TEXT,
  client_answer TEXT,
  meds_client_before TEXT,
  cliebnt_home_before TEXT,
  client_anx_before TEXT,
  clients_daily_before TEXT,
  what_matters_patient TEXT,
  care_giver TEXT,
  cg_func_before TEXT,
  cg_basicneeds_before TEXT,
  cg_conf_before TEXT,
  cg_fatig_before TEXT,
  cg_what_matters TEXT,
  client_profile_must_complete_form_complete TEXT,
  number_providers TEXT,
  provider_1 TEXT,
  provider1_affiliation TEXT,
  provider_2 TEXT,
  provider2_affiliation TEXT,
  provider_3 TEXT,
  provider3_affiliation TEXT,
  other_provider_info TEXT,
  hospital_used TEXT,
  contact_information_must_complete_form_complete TEXT,
  today_date_v2 TEXT,
  cont_meth_v2___1 TEXT,
  cont_meth_v2___2 TEXT,
  cont_meth_v2___3 TEXT,
  cont_meth_v2___4 TEXT,
  cont_meth_v2___5 TEXT,
  cont_meth_v2___6 TEXT,
  cont_meth_v2___7 TEXT,
  cont_meth_v2___8 TEXT,
  cont_meth_v2___9 TEXT,
  cont_meth_v2___10 TEXT,
  cont_asses TEXT,
  concerns1_v2___1 TEXT,
  concerns1_v2___2 TEXT,
  concerns1_v2___3 TEXT,
  concerns1_v2___4 TEXT,
  concerns1_v2___5 TEXT,
  concerns1_v2___6 TEXT,
  phys_cond_nursescale TEXT,
  emot_stat_nursescale TEXT,
  cog_stat_nursescale TEXT,
  fall_sincelast TEXT,
  hospit_since_last TEXT,
  care_plan_update TEXT,
  update_plan___1 TEXT,
  update_plan___2 TEXT,
  update_plan___3 TEXT,
  update_plan___4 TEXT,
  contact_pcp TEXT,
  pcp_for_v2___1 TEXT,
  pcp_for_v2___2 TEXT,
  pcp_for_v2___3 TEXT,
  pcp_for_v2___4 TEXT,
  pcp_for_v2___5 TEXT,
  pcp_for_v2___6 TEXT,
  spec_care TEXT,
  ref TEXT,
  med_interv___1 TEXT,
  med_interv___2 TEXT,
  med_interv___3 TEXT,
  med_interv___4 TEXT,
  med_interv___5 TEXT,
  med_interv___6 TEXT,
  sympt_interv___1 TEXT,
  sympt_interv___2 TEXT,
  sympt_interv___3 TEXT,
  sympt_interv___4 TEXT,
  sympt_interv___5 TEXT,
  sympt_interv___6 TEXT,
  mob_interv___1 TEXT,
  mob_interv___2 TEXT,
  mob_interv___3 TEXT,
  mob_interv___4 TEXT,
  mob_interv___5 TEXT,
  mob_interv___6 TEXT,
  cg_fam_interv___1 TEXT,
  cg_fam_interv___2 TEXT,
  cg_fam_interv___3 TEXT,
  cg_fam_interv___4 TEXT,
  cg_fam_interv___5 TEXT,
  house_fina_food_interv___1 TEXT,
  house_fina_food_interv___2 TEXT,
  house_fina_food_interv___3 TEXT,
  house_fina_food_interv___4 TEXT,
  house_fina_food_interv___5 TEXT,
  house_fina_food_interv___6 TEXT,
  house_fina_food_interv___7 TEXT,
  house_fina_food_interv___8 TEXT,
  house_fina_food_interv___9 TEXT,
  fu_list___1 TEXT,
  fu_list___2 TEXT,
  fu_list___3 TEXT,
  fu_list___4 TEXT,
  interval_contacts_complete TEXT,
  date_sc TEXT,
  address_v2 TEXT,
  phone_v2 TEXT,
  client_support_1 TEXT,
  non_med_assist___1 TEXT,
  non_med_assist___2 TEXT,
  non_med_assist___3 TEXT,
  non_med_assist___4 TEXT,
  non_med_assist___5 TEXT,
  non_med_assist___6 TEXT,
  non_med_assist___8 TEXT,
  non_med_assist___9 TEXT,
  healthcare_serv___1 TEXT,
  healthcare_serv___2 TEXT,
  healthcare_serv___3 TEXT,
  healthcare_serv___4 TEXT,
  healthcare_serv___5 TEXT,
  healthcare_serv___6 TEXT,
  healthcare_serv___7 TEXT,
  healthcare_serv___8 TEXT,
  soc_lonl_1___1 TEXT,
  soc_lonl_1___2 TEXT,
  soc_lonl_1___3 TEXT,
  soc_lonl_1___4 TEXT,
  soc_lonl_1___5 TEXT,
  soc_lonl_1___6 TEXT,
  soc_lonl_1___7 TEXT,
  transp___1 TEXT,
  transp___2 TEXT,
  transp___3 TEXT,
  transp___4 TEXT,
  transp___5 TEXT,
  transp___6 TEXT,
  finan_1 TEXT,
  fin_gues_1___1 TEXT,
  fin_gues_1___2 TEXT,
  fin_gues_1___3 TEXT,
  fin_gues_1___4 TEXT,
  fin_gues_1___5 TEXT,
  heal_ins___1 TEXT,
  heal_ins___2 TEXT,
  heal_ins___3 TEXT,
  heal_ins___4 TEXT,
  heal_ins___5 TEXT,
  heal_ins___6 TEXT,
  ethn TEXT,
  st_language TEXT,
  non_english TEXT,
  other_soc_issue TEXT,
  social_context_complete TEXT,
  date_fh TEXT,
  prob_list2___1 TEXT,
  prob_list2___2 TEXT,
  prob_list2___3 TEXT,
  prob_list2___4 TEXT,
  prob_list2___15 TEXT,
  prob_list2___5 TEXT,
  prob_list2___6 TEXT,
  prob_list2___7 TEXT,
  prob_list2___8 TEXT,
  prob_list2___9 TEXT,
  prob_list2___10 TEXT,
  prob_list2___11 TEXT,
  prob_list2___12 TEXT,
  prob_list2___13 TEXT,
  prob_list2___14 TEXT,
  func_lim_1 TEXT,
  symp_mng_1___1 TEXT,
  symp_mng_1___2 TEXT,
  symp_mng_1___3 TEXT,
  symp_mng_1___4 TEXT,
  symp_mng_1___5 TEXT,
  polypharm TEXT,
  med_mng_1___1 TEXT,
  med_mng_1___2 TEXT,
  med_mng_1___3 TEXT,
  med_mng_1___4 TEXT,
  med_mng_1___5 TEXT,
  med_mng_1___6 TEXT,
  med_mng_1___7 TEXT,
  med_mng_1___8 TEXT,
  med_mng_1___9 TEXT,
  med_mng_1___10 TEXT,
  frail_1_v3___1 TEXT,
  frail_1_v3___2 TEXT,
  frail_1_v3___3 TEXT,
  frail_1_v3___4 TEXT,
  frail_1_v3___5 TEXT,
  frail_1_v3___6 TEXT,
  frail_1_v3___7 TEXT,
  frail_1_v3___9 TEXT,
  frai_phe_3 TEXT,
  cog_stat_1___1 TEXT,
  cog_stat_1___2 TEXT,
  cog_stat_1___3 TEXT,
  cog_stat_1___4 TEXT,
  cog_stat_1___5 TEXT,
  cog_stat_1___6 TEXT,
  mini_cog_score TEXT,
  safe_1___1 TEXT,
  safe_1___3 TEXT,
  safe_1___4 TEXT,
  safe_1___5 TEXT,
  safe_1___11 TEXT,
  safe_1___6 TEXT,
  safe_1___7 TEXT,
  safe_1___9 TEXT,
  safe_1___10 TEXT,
  env_risk___1 TEXT,
  env_risk___2 TEXT,
  env_risk___3 TEXT,
  env_risk___4 TEXT,
  env_risk___5 TEXT,
  env_risk___6 TEXT,
  env_risk___7 TEXT,
  env_risk___8 TEXT,
  env_risk___9 TEXT,
  env_risk___10 TEXT,
  env_risk___12 TEXT,
  env_risk___11 TEXT,
  mob_1___1 TEXT,
  mob_1___2 TEXT,
  mob_1___3 TEXT,
  mob_1___4 TEXT,
  mob_1___5 TEXT,
  mob_1___6 TEXT,
  mob_1___7 TEXT,
  mob_1___8 TEXT,
  mob_1___9 TEXT,
  mob_1___10 TEXT,
  tug_1 TEXT,
  number_falls TEXT,
  falls_reas___1 TEXT,
  falls_reas___2 TEXT,
  falls_reas___3 TEXT,
  falls_reas___4 TEXT,
  falls_reas___5 TEXT,
  fall_impact TEXT,
  fall_risk TEXT,
  lifeline TEXT,
  emo_stat___1 TEXT,
  emo_stat___2 TEXT,
  emo_stat___3 TEXT,
  emo_stat___4 TEXT,
  emo_stat___5 TEXT,
  emo_stat___6 TEXT,
  emo_stat___7 TEXT,
  emo_stat___8 TEXT,
  emo_stat___9 TEXT,
  emo_stat___10 TEXT,
  alc_dru___1 TEXT,
  alc_dru___2 TEXT,
  alc_dru___3 TEXT,
  alc_dru___4 TEXT,
  alc_dru___5 TEXT,
  alc_dru___6 TEXT,
  alc_dru___7 TEXT,
  alc_dru___8 TEXT,
  alc_dru___9 TEXT,
  eld_abu___1 TEXT,
  eld_abu___2 TEXT,
  eld_abu___3 TEXT,
  eld_abu___4 TEXT,
  eld_abu___5 TEXT,
  eld_abu___6 TEXT,
  eld_abu___7 TEXT,
  nut_list___1 TEXT,
  nut_list___2 TEXT,
  nut_list___3 TEXT,
  nut_list___4 TEXT,
  nut_list___5 TEXT,
  nut_list___6 TEXT,
  nut_list___7 TEXT,
  nut_list___8 TEXT,
  nut_list___9 TEXT,
  height TEXT,
  weight TEXT,
  bmi TEXT,
  bmi_stat TEXT,
  eli___1 TEXT,
  eli___2 TEXT,
  eli___3 TEXT,
  eli___4 TEXT,
  eli___5 TEXT,
  future_plan TEXT,
  functional_health_complete TEXT,
  med_date_v2 TEXT,
  ormore_meds TEXT,
  med_list_start_home TEXT,
  opload_option TEXT,
  current_med_list_1 TEXT,
  current_med_list_2 TEXT,
  current_med_list_3 TEXT,
  medication_list_complete TEXT,
  na_problem_list TEXT,
  problem_list1_date_v2 TEXT,
  ed_visits___1 TEXT,
  ed_visits___2 TEXT,
  ed_visits___3 TEXT,
  ed_date_add TEXT,
  ed_manag_date TEXT,
  ed_date_res TEXT,
  incorrect_meds___1 TEXT,
  incorrect_meds___2 TEXT,
  incorrect_meds___3 TEXT,
  incorrect_meds_added TEXT,
  inco_meds_manag_date TEXT,
  incorrect_med_res TEXT,
  ineff_ther___1 TEXT,
  ineff_ther___2 TEXT,
  ineff_ther___3 TEXT,
  ineff_ther_add TEXT,
  ineff_ther_manag_date TEXT,
  ineffe_ther_res TEXT,
  sympt_manag___1 TEXT,
  sympt_manag___2 TEXT,
  sympt_manag___3 TEXT,
  sympt_manag_add TEXT,
  sympt_manag_manag_date TEXT,
  sumpy_manag_res TEXT,
  frailty___1 TEXT,
  frailty___2 TEXT,
  frailty___3 TEXT,
  frail_add TEXT,
  frailty_manag_date TEXT,
  frail_res TEXT,
  impair_cog___1 TEXT,
  impair_cog___2 TEXT,
  impair_cog___3 TEXT,
  impair_cog_add TEXT,
  impair_cog_manag_date TEXT,
  impar_cog_res TEXT,
  ment_heal___1 TEXT,
  ment_heal___2 TEXT,
  ment_heal___3 TEXT,
  ment_heal_add TEXT,
  ment_heal_manag_date TEXT,
  ment_heal_res TEXT,
  self_care_prob_list___1 TEXT,
  self_care_prob_list___2 TEXT,
  self_care_prob_list___3 TEXT,
  self_care_added TEXT,
  self_care_manag_date TEXT,
  self_care_res TEXT,
  imp_phys_mob___1 TEXT,
  imp_phys_mob___2 TEXT,
  imp_phys_mob___3 TEXT,
  imp_phys_mob_add TEXT,
  imp_phys_manag_date TEXT,
  imp_phy_mob_res TEXT,
  fall___1 TEXT,
  fall___2 TEXT,
  fall___3 TEXT,
  fall_add TEXT,
  fall_manag_date TEXT,
  fall_res TEXT,
  stay_home___1 TEXT,
  stay_home___2 TEXT,
  stay_home___3 TEXT,
  stay_home_add TEXT,
  stay_home_manag_date TEXT,
  stay_home_res TEXT,
  prob_bills___1 TEXT,
  prob_bills___2 TEXT,
  prob_bills___3 TEXT,
  prob_bills_add TEXT,
  prob_bills_manag_date TEXT,
  prob_bills_res TEXT,
  stress_trans___1 TEXT,
  stress_trans___2 TEXT,
  stress_trans___3 TEXT,
  stres_trans_add TEXT,
  stess_trans_manag_date TEXT,
  stress_trans_res TEXT,
  incom_acp___1 TEXT,
  incom_acp___2 TEXT,
  incom_acp___3 TEXT,
  incom_acp_date_added TEXT,
  incom_acp_manag_date TEXT,
  incom_acp_date_reso TEXT,
  other_prob_list___1 TEXT,
  other_prob_list___2 TEXT,
  other_prob_list___3 TEXT,
  other_prob_add TEXT,
  other_prob_manag_date TEXT,
  other_prob_res TEXT,
  sdoh_iso___1 TEXT,
  sdoh_iso___2 TEXT,
  sdoh_iso___3 TEXT,
  soc_iso_2 TEXT,
  soc_iso_manag_date TEXT,
  soc_iso_date_resol TEXT,
  nutr_poor___1 TEXT,
  nutr_poor___2 TEXT,
  nutr_poor___3 TEXT,
  nutr_poor_date_add TEXT,
  nutr_poor_manag_date TEXT,
  nutr_poor_res_date TEXT,
  hous_def___1 TEXT,
  hous_def___2 TEXT,
  hous_def___3 TEXT,
  hous_added TEXT,
  hous_manag_date TEXT,
  hous_res_date TEXT,
  sdoh_transp___1 TEXT,
  sdoh_transp___2 TEXT,
  sdoh_transp___3 TEXT,
  trans_date_add TEXT,
  trans_manag_date TEXT,
  trans_date_resol TEXT,
  sdoh_finance___1 TEXT,
  sdoh_finance___2 TEXT,
  sdoh_finance___3 TEXT,
  finance_date_add TEXT,
  finance_manag_date TEXT,
  finance_date_resol TEXT,
  sdoh_other_2___1 TEXT,
  sdoh_other_2___2 TEXT,
  sdoh_other_2___3 TEXT,
  sdoh_other_date_add TEXT,
  sdoh_other_manag TEXT,
  other_sdh_date_resol TEXT,
  allerg TEXT,
  med_diag_list_v2_v2_v2 TEXT,
  goals_prob_cleint TEXT,
  cg_prob_goals TEXT,
  nurse_prob_goals TEXT,
  plan_of_care_problem_list_complete TEXT,
  date_int TEXT,
  ini_int_date TEXT,
  contact_pcp_v2 TEXT,
  pcp_for_v2_v2___1 TEXT,
  pcp_for_v2_v2___2 TEXT,
  pcp_for_v2_v2___3 TEXT,
  pcp_for_v2_v2___4 TEXT,
  pcp_for_v2_v2___5 TEXT,
  pcp_for_v2_v2___6 TEXT,
  spec_care_v2 TEXT,
  ref_v2 TEXT,
  med_interv_v2___1 TEXT,
  med_interv_v2___2 TEXT,
  med_interv_v2___3 TEXT,
  med_interv_v2___4 TEXT,
  med_interv_v2___5 TEXT,
  sympt_interv_v2___1 TEXT,
  sympt_interv_v2___2 TEXT,
  sympt_interv_v2___3 TEXT,
  sympt_interv_v2___4 TEXT,
  sympt_interv_v2___5 TEXT,
  sympt_interv_v2___6 TEXT,
  mob_interv_v2___1 TEXT,
  mob_interv_v2___2 TEXT,
  mob_interv_v2___3 TEXT,
  mob_interv_v2___4 TEXT,
  mob_interv_v2___5 TEXT,
  mob_interv_v2___6 TEXT,
  cg_fam_interv_v2___1 TEXT,
  cg_fam_interv_v2___2 TEXT,
  cg_fam_interv_v2___3 TEXT,
  cg_fam_interv_v2___4 TEXT,
  cg_fam_interv_v2___5 TEXT,
  house_fina_food_interv_v2___1 TEXT,
  house_fina_food_interv_v2___2 TEXT,
  house_fina_food_interv_v2___3 TEXT,
  house_fina_food_interv_v2___4 TEXT,
  house_fina_food_interv_v2___5 TEXT,
  house_fina_food_interv_v2___6 TEXT,
  house_fina_food_interv_v2___7 TEXT,
  house_fina_food_interv_v2___8 TEXT,
  house_fina_food_interv_v2___9 TEXT,
  other_interv_notabove TEXT,
  fu_list_v2___1 TEXT,
  fu_list_v2___2 TEXT,
  fu_list_v2___3 TEXT,
  fu_list_v2___4 TEXT,
  plan_of_care_initial_interventions_complete TEXT,
  date_sixmonth TEXT,
  client_answer_v2 TEXT,
  meds_client_before_v2 TEXT,
  cliebnt_home_before_v2 TEXT,
  client_anx_before_v2 TEXT,
  clients_daily_before_v2 TEXT,
  what_matters_patient_v2 TEXT,
  care_giver_v2 TEXT,
  who_care_v2 TEXT,
  cg_func_before_v2 TEXT,
  cg_basic_before_v2 TEXT,
  cg_conf_before_v2 TEXT,
  cg_fatig_before_v2 TEXT,
  cg_what_matters_v2 TEXT,
  phys_con_6_month TEXT,
  emot_6_mont TEXT,
  cog_6_mont TEXT,
  nurse_out_6_mont___1 TEXT,
  nurse_out_6_mont___2 TEXT,
  nurse_out_6_mont___3 TEXT,
  nurse_out_6_mont___4 TEXT,
  nurse_out_6_mont___5 TEXT,
  nurse_out_6_mont___6 TEXT,
  nurse_out_6_mont___7 TEXT,
  nurse_out_6_mont___8 TEXT,
  nurse_out_6_mont___9 TEXT,
  fu_6month___1 TEXT,
  fu_6month___2 TEXT,
  fu_6month___3 TEXT,
  fu_6month___4 TEXT,
  month_report_complete TEXT,
  date_today_dis TEXT,
  reason_disch TEXT,
  disc_status TEXT,
  phys TEXT,
  emotion TEXT,
  cog_stat TEXT,
  nurse_report_all___1 TEXT,
  nurse_report_all___2 TEXT,
  nurse_report_all___3 TEXT,
  nurse_report_all___4 TEXT,
  nurse_report_all___5 TEXT,
  nurse_report_all___6 TEXT,
  nurse_report_all___7 TEXT,
  client_status_2 TEXT,
  clien_outcome_dis TEXT,
  client_out2_dis TEXT,
  client_outc3_dis TEXT,
  clie_outc4_dis TEXT,
  most_impo_client TEXT,
  cg_status_2 TEXT,
  cg_out1_dis TEXT,
  cg_out2_dis TEXT,
  cg_out3_dis TEXT,
  cg_outc4_dis TEXT,
  cg_con_most TEXT,
  discharge_report_complete TEXT
);
CREATE TABLE jason4t(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "informant" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "phone_v2" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "finan_1" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "ethn" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "fall_impact" TEXT,
  "fall_risk" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "future_plan" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE IF NOT EXISTS "all1_old"(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "date_contact" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE han1(
  record_id TEXT,
  redcap_repeat_instrument TEXT,
  redcap_repeat_instance TEXT,
  redcap_data_access_group TEXT,
  old_records_lyme TEXT,
  today TEXT,
  status_profile TEXT,
  first_name TEXT,
  last_name TEXT,
  preferred_name TEXT,
  consent_date TEXT,
  upload_form TEXT,
  gender TEXT,
  dob TEXT,
  age TEXT,
  date_1st_contact TEXT,
  meth_1st_contact TEXT,
  notes TEXT,
  referred_by___1 TEXT,
  referred_by___2 TEXT,
  referred_by___3 TEXT,
  referred_by___4 TEXT,
  referred_by___5 TEXT,
  referred_by___6 TEXT,
  referred_by___7 TEXT,
  referred_by___8 TEXT,
  referred_by___9 TEXT,
  notes_1 TEXT,
  informant TEXT,
  notes_50 TEXT,
  end_life_plan___1 TEXT,
  end_life_plan___2 TEXT,
  end_life_plan___3 TEXT,
  end_life_plan___4 TEXT,
  end_life_plan___5 TEXT,
  end_life_plan___6 TEXT,
  notes_2 TEXT,
  acp_location TEXT,
  client_answer TEXT,
  meds_client_before TEXT,
  cliebnt_home_before TEXT,
  client_anx_before TEXT,
  clients_daily_before TEXT,
  what_matters_patient TEXT,
  care_giver TEXT,
  who_cg TEXT,
  cg_func_before TEXT,
  cg_basicneeds_before TEXT,
  cg_conf_before TEXT,
  cg_fatig_before TEXT,
  cg_what_matters TEXT,
  client_profile_must_complete_form_complete TEXT,
  date_contact TEXT,
  address TEXT,
  phone TEXT,
  email TEXT,
  caregiver_info TEXT,
  number_providers TEXT,
  provider_1 TEXT,
  provider1_affiliation TEXT,
  provider_2 TEXT,
  provider2_affiliation TEXT,
  provider_3 TEXT,
  provider3_affiliation TEXT,
  other_provider_info TEXT,
  hospital_used TEXT,
  contact_information_must_complete_form_complete TEXT,
  date_sc TEXT,
  address_v2 TEXT,
  notes_52 TEXT,
  phone_v2 TEXT,
  notes_3 TEXT,
  name_2nd_person TEXT,
  client_support_1 TEXT,
  non_med_assist___1 TEXT,
  non_med_assist___2 TEXT,
  non_med_assist___3 TEXT,
  non_med_assist___4 TEXT,
  non_med_assist___5 TEXT,
  non_med_assist___6 TEXT,
  non_med_assist___8 TEXT,
  non_med_assist___9 TEXT,
  notes_4 TEXT,
  healthcare_serv___1 TEXT,
  healthcare_serv___2 TEXT,
  healthcare_serv___3 TEXT,
  healthcare_serv___4 TEXT,
  healthcare_serv___5 TEXT,
  healthcare_serv___6 TEXT,
  healthcare_serv___7 TEXT,
  healthcare_serv___8 TEXT,
  notes_5 TEXT,
  soc_lonl_1___1 TEXT,
  soc_lonl_1___2 TEXT,
  soc_lonl_1___3 TEXT,
  soc_lonl_1___4 TEXT,
  soc_lonl_1___5 TEXT,
  soc_lonl_1___6 TEXT,
  soc_lonl_1___7 TEXT,
  notes_6 TEXT,
  transp___1 TEXT,
  transp___2 TEXT,
  transp___3 TEXT,
  transp___4 TEXT,
  transp___5 TEXT,
  transp___6 TEXT,
  notes_53 TEXT,
  finan_1 TEXT,
  notes_54 TEXT,
  fin_gues_1___1 TEXT,
  fin_gues_1___2 TEXT,
  fin_gues_1___3 TEXT,
  fin_gues_1___4 TEXT,
  fin_gues_1___5 TEXT,
  notes_7 TEXT,
  heal_ins___1 TEXT,
  heal_ins___2 TEXT,
  heal_ins___3 TEXT,
  heal_ins___4 TEXT,
  heal_ins___5 TEXT,
  heal_ins___6 TEXT,
  notes_8 TEXT,
  ethn TEXT,
  notes_9 TEXT,
  st_language TEXT,
  non_english TEXT,
  other_soc_issue TEXT,
  social_context_complete TEXT,
  date_fh TEXT,
  prob_list2___1 TEXT,
  prob_list2___2 TEXT,
  prob_list2___3 TEXT,
  prob_list2___4 TEXT,
  prob_list2___15 TEXT,
  prob_list2___5 TEXT,
  prob_list2___6 TEXT,
  prob_list2___7 TEXT,
  prob_list2___8 TEXT,
  prob_list2___9 TEXT,
  prob_list2___10 TEXT,
  prob_list2___11 TEXT,
  prob_list2___12 TEXT,
  prob_list2___13 TEXT,
  prob_list2___14 TEXT,
  notes_10 TEXT,
  func_lim_1 TEXT,
  symp_mng_1___1 TEXT,
  symp_mng_1___2 TEXT,
  symp_mng_1___3 TEXT,
  symp_mng_1___4 TEXT,
  symp_mng_1___5 TEXT,
  notes_11 TEXT,
  polypharm TEXT,
  med_mng_1___1 TEXT,
  med_mng_1___2 TEXT,
  med_mng_1___3 TEXT,
  med_mng_1___4 TEXT,
  med_mng_1___5 TEXT,
  med_mng_1___6 TEXT,
  med_mng_1___7 TEXT,
  med_mng_1___8 TEXT,
  med_mng_1___9 TEXT,
  med_mng_1___10 TEXT,
  notes_12 TEXT,
  frail_1_v3___1 TEXT,
  frail_1_v3___2 TEXT,
  frail_1_v3___3 TEXT,
  frail_1_v3___4 TEXT,
  frail_1_v3___5 TEXT,
  frail_1_v3___6 TEXT,
  frail_1_v3___7 TEXT,
  frail_1_v3___9 TEXT,
  notes_13 TEXT,
  frai_phe_3 TEXT,
  cog_stat_1___1 TEXT,
  cog_stat_1___2 TEXT,
  cog_stat_1___3 TEXT,
  cog_stat_1___4 TEXT,
  cog_stat_1___5 TEXT,
  cog_stat_1___6 TEXT,
  notes_14 TEXT,
  mini_cog_score TEXT,
  safe_1___1 TEXT,
  safe_1___3 TEXT,
  safe_1___4 TEXT,
  safe_1___5 TEXT,
  safe_1___11 TEXT,
  safe_1___6 TEXT,
  safe_1___7 TEXT,
  safe_1___9 TEXT,
  safe_1___10 TEXT,
  notes_15 TEXT,
  env_risk___1 TEXT,
  env_risk___2 TEXT,
  env_risk___3 TEXT,
  env_risk___4 TEXT,
  env_risk___5 TEXT,
  env_risk___6 TEXT,
  env_risk___7 TEXT,
  env_risk___8 TEXT,
  env_risk___9 TEXT,
  env_risk___10 TEXT,
  env_risk___12 TEXT,
  env_risk___11 TEXT,
  notes_16 TEXT,
  mob_1___1 TEXT,
  mob_1___2 TEXT,
  mob_1___3 TEXT,
  mob_1___4 TEXT,
  mob_1___5 TEXT,
  mob_1___6 TEXT,
  mob_1___7 TEXT,
  mob_1___8 TEXT,
  mob_1___9 TEXT,
  mob_1___10 TEXT,
  notes_17 TEXT,
  tug_1 TEXT,
  number_falls TEXT,
  notes_18 TEXT,
  falls_reas___1 TEXT,
  falls_reas___2 TEXT,
  falls_reas___3 TEXT,
  falls_reas___4 TEXT,
  falls_reas___5 TEXT,
  notes_19 TEXT,
  fall_impact TEXT,
  notes_20 TEXT,
  fall_risk TEXT,
  notes_21 TEXT,
  lifeline TEXT,
  emo_stat___1 TEXT,
  emo_stat___2 TEXT,
  emo_stat___3 TEXT,
  emo_stat___4 TEXT,
  emo_stat___5 TEXT,
  emo_stat___6 TEXT,
  emo_stat___7 TEXT,
  emo_stat___8 TEXT,
  emo_stat___9 TEXT,
  emo_stat___10 TEXT,
  notes_22 TEXT,
  alc_dru___1 TEXT,
  alc_dru___2 TEXT,
  alc_dru___3 TEXT,
  alc_dru___4 TEXT,
  alc_dru___5 TEXT,
  alc_dru___6 TEXT,
  alc_dru___7 TEXT,
  alc_dru___8 TEXT,
  alc_dru___9 TEXT,
  notes_23 TEXT,
  eld_abu___1 TEXT,
  eld_abu___2 TEXT,
  eld_abu___3 TEXT,
  eld_abu___4 TEXT,
  eld_abu___5 TEXT,
  eld_abu___6 TEXT,
  eld_abu___7 TEXT,
  notes_55 TEXT,
  nut_list___1 TEXT,
  nut_list___2 TEXT,
  nut_list___3 TEXT,
  nut_list___4 TEXT,
  nut_list___5 TEXT,
  nut_list___6 TEXT,
  nut_list___7 TEXT,
  nut_list___8 TEXT,
  nut_list___9 TEXT,
  notes_24 TEXT,
  height TEXT,
  weight TEXT,
  bmi TEXT,
  bmi_stat TEXT,
  notes_25 TEXT,
  eli___1 TEXT,
  eli___2 TEXT,
  eli___3 TEXT,
  eli___4 TEXT,
  eli___5 TEXT,
  notes_26 TEXT,
  future_plan TEXT,
  notes_27 TEXT,
  functional_health_complete TEXT,
  med_date_v2 TEXT,
  ormore_meds TEXT,
  med_list_start_home TEXT,
  opload_option TEXT,
  current_med_list_1 TEXT,
  current_med_list_2 TEXT,
  current_med_list_3 TEXT,
  medication_list_complete TEXT,
  na_problem_list TEXT,
  problem_list1_date_v2 TEXT,
  ed_visits___1 TEXT,
  ed_visits___2 TEXT,
  ed_visits___3 TEXT,
  ed_date_add TEXT,
  ed_manag_date TEXT,
  ed_date_res TEXT,
  incorrect_meds___1 TEXT,
  incorrect_meds___2 TEXT,
  incorrect_meds___3 TEXT,
  incorrect_meds_added TEXT,
  inco_meds_manag_date TEXT,
  incorrect_med_res TEXT,
  ineff_ther___1 TEXT,
  ineff_ther___2 TEXT,
  ineff_ther___3 TEXT,
  ineff_ther_add TEXT,
  ineff_ther_manag_date TEXT,
  ineffe_ther_res TEXT,
  sympt_manag___1 TEXT,
  sympt_manag___2 TEXT,
  sympt_manag___3 TEXT,
  sympt_manag_add TEXT,
  sympt_manag_manag_date TEXT,
  sumpy_manag_res TEXT,
  frailty___1 TEXT,
  frailty___2 TEXT,
  frailty___3 TEXT,
  frail_add TEXT,
  frailty_manag_date TEXT,
  frail_res TEXT,
  impair_cog___1 TEXT,
  impair_cog___2 TEXT,
  impair_cog___3 TEXT,
  impair_cog_add TEXT,
  impair_cog_manag_date TEXT,
  impar_cog_res TEXT,
  ment_heal___1 TEXT,
  ment_heal___2 TEXT,
  ment_heal___3 TEXT,
  ment_heal_add TEXT,
  ment_heal_manag_date TEXT,
  ment_heal_res TEXT,
  self_care_prob_list___1 TEXT,
  self_care_prob_list___2 TEXT,
  self_care_prob_list___3 TEXT,
  self_care_added TEXT,
  self_care_manag_date TEXT,
  self_care_res TEXT,
  imp_phys_mob___1 TEXT,
  imp_phys_mob___2 TEXT,
  imp_phys_mob___3 TEXT,
  imp_phys_mob_add TEXT,
  imp_phys_manag_date TEXT,
  imp_phy_mob_res TEXT,
  fall___1 TEXT,
  fall___2 TEXT,
  fall___3 TEXT,
  fall_add TEXT,
  fall_manag_date TEXT,
  fall_res TEXT,
  stay_home___1 TEXT,
  stay_home___2 TEXT,
  stay_home___3 TEXT,
  stay_home_add TEXT,
  stay_home_manag_date TEXT,
  stay_home_res TEXT,
  prob_bills___1 TEXT,
  prob_bills___2 TEXT,
  prob_bills___3 TEXT,
  prob_bills_add TEXT,
  prob_bills_manag_date TEXT,
  prob_bills_res TEXT,
  stress_trans___1 TEXT,
  stress_trans___2 TEXT,
  stress_trans___3 TEXT,
  stres_trans_add TEXT,
  stess_trans_manag_date TEXT,
  stress_trans_res TEXT,
  incom_acp___1 TEXT,
  incom_acp___2 TEXT,
  incom_acp___3 TEXT,
  incom_acp_date_added TEXT,
  incom_acp_manag_date TEXT,
  incom_acp_date_reso TEXT,
  other_prob_list___1 TEXT,
  other_prob_list___2 TEXT,
  other_prob_list___3 TEXT,
  other_prob_add TEXT,
  other_prob_manag_date TEXT,
  other_prob_res TEXT,
  sdoh_iso___1 TEXT,
  sdoh_iso___2 TEXT,
  sdoh_iso___3 TEXT,
  soc_iso_2 TEXT,
  soc_iso_manag_date TEXT,
  soc_iso_date_resol TEXT,
  nutr_poor___1 TEXT,
  nutr_poor___2 TEXT,
  nutr_poor___3 TEXT,
  nutr_poor_date_add TEXT,
  nutr_poor_manag_date TEXT,
  nutr_poor_res_date TEXT,
  hous_def___1 TEXT,
  hous_def___2 TEXT,
  hous_def___3 TEXT,
  hous_added TEXT,
  hous_manag_date TEXT,
  hous_res_date TEXT,
  sdoh_transp___1 TEXT,
  sdoh_transp___2 TEXT,
  sdoh_transp___3 TEXT,
  trans_date_add TEXT,
  trans_manag_date TEXT,
  trans_date_resol TEXT,
  sdoh_finance___1 TEXT,
  sdoh_finance___2 TEXT,
  sdoh_finance___3 TEXT,
  finance_date_add TEXT,
  finance_manag_date TEXT,
  finance_date_resol TEXT,
  sdoh_other_2___1 TEXT,
  sdoh_other_2___2 TEXT,
  sdoh_other_2___3 TEXT,
  sdoh_other_date_add TEXT,
  sdoh_other_manag TEXT,
  other_sdh_date_resol TEXT,
  allerg TEXT,
  notes_56 TEXT,
  med_diag_list_v2_v2_v2 TEXT,
  goals_prob_cleint TEXT,
  cg_prob_goals TEXT,
  nurse_prob_goals TEXT,
  plan_of_care_problem_list_complete TEXT,
  date_int TEXT,
  ini_int_date TEXT,
  contact_pcp_v2 TEXT,
  pcp_for_v2_v2___1 TEXT,
  pcp_for_v2_v2___2 TEXT,
  pcp_for_v2_v2___3 TEXT,
  pcp_for_v2_v2___4 TEXT,
  pcp_for_v2_v2___5 TEXT,
  pcp_for_v2_v2___6 TEXT,
  notes_28 TEXT,
  spec_care_v2 TEXT,
  ref_v2 TEXT,
  med_interv_v2___1 TEXT,
  med_interv_v2___2 TEXT,
  med_interv_v2___3 TEXT,
  med_interv_v2___4 TEXT,
  med_interv_v2___5 TEXT,
  notes_29 TEXT,
  sympt_interv_v2___1 TEXT,
  sympt_interv_v2___2 TEXT,
  sympt_interv_v2___3 TEXT,
  sympt_interv_v2___4 TEXT,
  sympt_interv_v2___5 TEXT,
  sympt_interv_v2___6 TEXT,
  notes_30 TEXT,
  mob_interv_v2___1 TEXT,
  mob_interv_v2___2 TEXT,
  mob_interv_v2___3 TEXT,
  mob_interv_v2___4 TEXT,
  mob_interv_v2___5 TEXT,
  mob_interv_v2___6 TEXT,
  notes_31 TEXT,
  cg_fam_interv_v2___1 TEXT,
  cg_fam_interv_v2___2 TEXT,
  cg_fam_interv_v2___3 TEXT,
  cg_fam_interv_v2___4 TEXT,
  cg_fam_interv_v2___5 TEXT,
  notes_32 TEXT,
  house_fina_food_interv_v2___1 TEXT,
  house_fina_food_interv_v2___2 TEXT,
  house_fina_food_interv_v2___3 TEXT,
  house_fina_food_interv_v2___4 TEXT,
  house_fina_food_interv_v2___5 TEXT,
  house_fina_food_interv_v2___6 TEXT,
  house_fina_food_interv_v2___7 TEXT,
  house_fina_food_interv_v2___8 TEXT,
  house_fina_food_interv_v2___9 TEXT,
  notes_33 TEXT,
  other_interv_notabove TEXT,
  fu_list_v2___1 TEXT,
  fu_list_v2___2 TEXT,
  fu_list_v2___3 TEXT,
  fu_list_v2___4 TEXT,
  notes_34 TEXT,
  plan_of_care_initial_interventions_complete TEXT,
  today_date_v2 TEXT,
  cont_meth_v2___1 TEXT,
  cont_meth_v2___2 TEXT,
  cont_meth_v2___3 TEXT,
  cont_meth_v2___4 TEXT,
  cont_meth_v2___5 TEXT,
  cont_meth_v2___6 TEXT,
  cont_meth_v2___7 TEXT,
  cont_meth_v2___8 TEXT,
  cont_meth_v2___9 TEXT,
  cont_meth_v2___10 TEXT,
  notes_57 TEXT,
  cont_asses TEXT,
  concerns1_v2___1 TEXT,
  concerns1_v2___2 TEXT,
  concerns1_v2___3 TEXT,
  concerns1_v2___4 TEXT,
  concerns1_v2___5 TEXT,
  concerns1_v2___6 TEXT,
  notes_35 TEXT,
  list_issues TEXT,
  phys_cond_nursescale TEXT,
  emot_stat_nursescale TEXT,
  cog_stat_nursescale TEXT,
  notes_48 TEXT,
  fall_sincelast TEXT,
  hospit_since_last TEXT,
  care_plan_update TEXT,
  update_plan___1 TEXT,
  update_plan___2 TEXT,
  update_plan___3 TEXT,
  update_plan___4 TEXT,
  contact_pcp TEXT,
  pcp_for_v2___1 TEXT,
  pcp_for_v2___2 TEXT,
  pcp_for_v2___3 TEXT,
  pcp_for_v2___4 TEXT,
  pcp_for_v2___5 TEXT,
  pcp_for_v2___6 TEXT,
  notes_36 TEXT,
  spec_care TEXT,
  ref TEXT,
  med_interv___1 TEXT,
  med_interv___2 TEXT,
  med_interv___3 TEXT,
  med_interv___4 TEXT,
  med_interv___5 TEXT,
  med_interv___6 TEXT,
  notes_37 TEXT,
  sympt_interv___1 TEXT,
  sympt_interv___2 TEXT,
  sympt_interv___3 TEXT,
  sympt_interv___4 TEXT,
  sympt_interv___5 TEXT,
  sympt_interv___6 TEXT,
  notes_38 TEXT,
  mob_interv___1 TEXT,
  mob_interv___2 TEXT,
  mob_interv___3 TEXT,
  mob_interv___4 TEXT,
  mob_interv___5 TEXT,
  mob_interv___6 TEXT,
  notes_39 TEXT,
  cg_fam_interv___1 TEXT,
  cg_fam_interv___2 TEXT,
  cg_fam_interv___3 TEXT,
  cg_fam_interv___4 TEXT,
  cg_fam_interv___5 TEXT,
  notes_40 TEXT,
  house_fina_food_interv___1 TEXT,
  house_fina_food_interv___2 TEXT,
  house_fina_food_interv___3 TEXT,
  house_fina_food_interv___4 TEXT,
  house_fina_food_interv___5 TEXT,
  house_fina_food_interv___6 TEXT,
  house_fina_food_interv___7 TEXT,
  house_fina_food_interv___8 TEXT,
  house_fina_food_interv___9 TEXT,
  notes_41 TEXT,
  other_interv_not_listed TEXT,
  fu_list___1 TEXT,
  fu_list___2 TEXT,
  fu_list___3 TEXT,
  fu_list___4 TEXT,
  notes_42 TEXT,
  interval_contacts_complete TEXT,
  date_sixmonth TEXT,
  client_answer_v2 TEXT,
  meds_client_before_v2 TEXT,
  cliebnt_home_before_v2 TEXT,
  client_anx_before_v2 TEXT,
  clients_daily_before_v2 TEXT,
  what_matters_patient_v2 TEXT,
  care_giver_v2 TEXT,
  who_care_v2 TEXT,
  cg_func_before_v2 TEXT,
  cg_basic_before_v2 TEXT,
  cg_conf_before_v2 TEXT,
  cg_fatig_before_v2 TEXT,
  cg_what_matters_v2 TEXT,
  phys_con_6_month TEXT,
  emot_6_mont TEXT,
  cog_6_mont TEXT,
  notes_47 TEXT,
  nurse_out_6_mont___1 TEXT,
  nurse_out_6_mont___2 TEXT,
  nurse_out_6_mont___3 TEXT,
  nurse_out_6_mont___4 TEXT,
  nurse_out_6_mont___5 TEXT,
  nurse_out_6_mont___6 TEXT,
  nurse_out_6_mont___7 TEXT,
  nurse_out_6_mont___8 TEXT,
  nurse_out_6_mont___9 TEXT,
  notes_43 TEXT,
  fu_6month___1 TEXT,
  fu_6month___2 TEXT,
  fu_6month___3 TEXT,
  fu_6month___4 TEXT,
  notes_44 TEXT,
  month_report_complete TEXT,
  date_today_dis TEXT,
  reason_disch TEXT,
  notes_45 TEXT,
  disc_status TEXT,
  phys TEXT,
  emotion TEXT,
  cog_stat TEXT,
  notes_49 TEXT,
  nurse_report_all___1 TEXT,
  nurse_report_all___2 TEXT,
  nurse_report_all___3 TEXT,
  nurse_report_all___4 TEXT,
  nurse_report_all___5 TEXT,
  nurse_report_all___6 TEXT,
  nurse_report_all___7 TEXT,
  notes_46 TEXT,
  client_status_2 TEXT,
  clien_outcome_dis TEXT,
  client_out2_dis TEXT,
  client_outc3_dis TEXT,
  clie_outc4_dis TEXT,
  most_impo_client TEXT,
  cg_status_2 TEXT,
  cg_out1_dis TEXT,
  cg_out2_dis TEXT,
  cg_out3_dis TEXT,
  cg_outc4_dis TEXT,
  cg_con_most TEXT,
  discharge_report_complete TEXT
);
CREATE TABLE foo1 (x date);
CREATE TABLE all_2019_1031_1500(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "date_contact" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE int1(cname, var text);
CREATE TABLE int1_desc(
  "'pcp_for_v2'",
  "'Care coordination & clarification with providers'"
);
CREATE TABLE all_2019_1101_0630(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "date_contact" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE IF NOT EXISTS "all_2019_0915_2355"(
  record_id TEXT,
  redcap_repeat_instrument TEXT,
  redcap_repeat_instance TEXT,
  redcap_data_access_group TEXT,
  old_records_lyme TEXT,
  today TEXT,
  status_profile TEXT,
  first_name TEXT,
  last_name TEXT,
  preferred_name TEXT,
  consent_date TEXT,
  upload_form TEXT,
  gender TEXT,
  dob TEXT,
  age TEXT,
  date_1st_contact TEXT,
  meth_1st_contact TEXT,
  notes TEXT,
  referred_by___1 TEXT,
  referred_by___2 TEXT,
  referred_by___3 TEXT,
  referred_by___4 TEXT,
  referred_by___5 TEXT,
  referred_by___6 TEXT,
  referred_by___7 TEXT,
  referred_by___8 TEXT,
  referred_by___9 TEXT,
  notes_1 TEXT,
  informant TEXT,
  notes_50 TEXT,
  end_life_plan___1 TEXT,
  end_life_plan___2 TEXT,
  end_life_plan___3 TEXT,
  end_life_plan___4 TEXT,
  end_life_plan___5 TEXT,
  end_life_plan___6 TEXT,
  notes_2 TEXT,
  acp_location TEXT,
  client_answer TEXT,
  meds_client_before TEXT,
  cliebnt_home_before TEXT,
  client_anx_before TEXT,
  clients_daily_before TEXT,
  what_matters_patient TEXT,
  care_giver TEXT,
  who_cg TEXT,
  cg_func_before TEXT,
  cg_basicneeds_before TEXT,
  cg_conf_before TEXT,
  cg_fatig_before TEXT,
  cg_what_matters TEXT,
  client_profile_must_complete_form_complete TEXT,
  date_contact TEXT,
  address TEXT,
  phone TEXT,
  email TEXT,
  caregiver_info TEXT,
  number_providers TEXT,
  provider_1 TEXT,
  provider1_affiliation TEXT,
  provider_2 TEXT,
  provider2_affiliation TEXT,
  provider_3 TEXT,
  provider3_affiliation TEXT,
  other_provider_info TEXT,
  hospital_used TEXT,
  contact_information_must_complete_form_complete TEXT,
  date_sc TEXT,
  address_v2 TEXT,
  notes_52 TEXT,
  phone_v2 TEXT,
  notes_3 TEXT,
  name_2nd_person TEXT,
  client_support_1 TEXT,
  non_med_assist___1 TEXT,
  non_med_assist___2 TEXT,
  non_med_assist___3 TEXT,
  non_med_assist___4 TEXT,
  non_med_assist___5 TEXT,
  non_med_assist___6 TEXT,
  non_med_assist___8 TEXT,
  non_med_assist___9 TEXT,
  notes_4 TEXT,
  healthcare_serv___1 TEXT,
  healthcare_serv___2 TEXT,
  healthcare_serv___3 TEXT,
  healthcare_serv___4 TEXT,
  healthcare_serv___5 TEXT,
  healthcare_serv___6 TEXT,
  healthcare_serv___7 TEXT,
  healthcare_serv___8 TEXT,
  notes_5 TEXT,
  soc_lonl_1___1 TEXT,
  soc_lonl_1___2 TEXT,
  soc_lonl_1___3 TEXT,
  soc_lonl_1___4 TEXT,
  soc_lonl_1___5 TEXT,
  soc_lonl_1___6 TEXT,
  soc_lonl_1___7 TEXT,
  notes_6 TEXT,
  transp___1 TEXT,
  transp___2 TEXT,
  transp___3 TEXT,
  transp___4 TEXT,
  transp___5 TEXT,
  transp___6 TEXT,
  notes_53 TEXT,
  finan_1 TEXT,
  notes_54 TEXT,
  fin_gues_1___1 TEXT,
  fin_gues_1___2 TEXT,
  fin_gues_1___3 TEXT,
  fin_gues_1___4 TEXT,
  fin_gues_1___5 TEXT,
  notes_7 TEXT,
  heal_ins___1 TEXT,
  heal_ins___2 TEXT,
  heal_ins___3 TEXT,
  heal_ins___4 TEXT,
  heal_ins___5 TEXT,
  heal_ins___6 TEXT,
  notes_8 TEXT,
  ethn TEXT,
  notes_9 TEXT,
  st_language TEXT,
  non_english TEXT,
  other_soc_issue TEXT,
  social_context_complete TEXT,
  date_fh TEXT,
  prob_list2___1 TEXT,
  prob_list2___2 TEXT,
  prob_list2___3 TEXT,
  prob_list2___4 TEXT,
  prob_list2___15 TEXT,
  prob_list2___5 TEXT,
  prob_list2___6 TEXT,
  prob_list2___7 TEXT,
  prob_list2___8 TEXT,
  prob_list2___9 TEXT,
  prob_list2___10 TEXT,
  prob_list2___11 TEXT,
  prob_list2___12 TEXT,
  prob_list2___13 TEXT,
  prob_list2___14 TEXT,
  notes_10 TEXT,
  func_lim_1 TEXT,
  symp_mng_1___1 TEXT,
  symp_mng_1___2 TEXT,
  symp_mng_1___3 TEXT,
  symp_mng_1___4 TEXT,
  symp_mng_1___5 TEXT,
  notes_11 TEXT,
  polypharm TEXT,
  med_mng_1___1 TEXT,
  med_mng_1___2 TEXT,
  med_mng_1___3 TEXT,
  med_mng_1___4 TEXT,
  med_mng_1___5 TEXT,
  med_mng_1___6 TEXT,
  med_mng_1___7 TEXT,
  med_mng_1___8 TEXT,
  med_mng_1___9 TEXT,
  med_mng_1___10 TEXT,
  notes_12 TEXT,
  frail_1_v3___1 TEXT,
  frail_1_v3___2 TEXT,
  frail_1_v3___3 TEXT,
  frail_1_v3___4 TEXT,
  frail_1_v3___5 TEXT,
  frail_1_v3___6 TEXT,
  frail_1_v3___7 TEXT,
  frail_1_v3___9 TEXT,
  notes_13 TEXT,
  frai_phe_3 TEXT,
  cog_stat_1___1 TEXT,
  cog_stat_1___2 TEXT,
  cog_stat_1___3 TEXT,
  cog_stat_1___4 TEXT,
  cog_stat_1___5 TEXT,
  cog_stat_1___6 TEXT,
  notes_14 TEXT,
  mini_cog_score TEXT,
  safe_1___1 TEXT,
  safe_1___3 TEXT,
  safe_1___4 TEXT,
  safe_1___5 TEXT,
  safe_1___11 TEXT,
  safe_1___6 TEXT,
  safe_1___7 TEXT,
  safe_1___9 TEXT,
  safe_1___10 TEXT,
  notes_15 TEXT,
  env_risk___1 TEXT,
  env_risk___2 TEXT,
  env_risk___3 TEXT,
  env_risk___4 TEXT,
  env_risk___5 TEXT,
  env_risk___6 TEXT,
  env_risk___7 TEXT,
  env_risk___8 TEXT,
  env_risk___9 TEXT,
  env_risk___10 TEXT,
  env_risk___12 TEXT,
  env_risk___11 TEXT,
  notes_16 TEXT,
  mob_1___1 TEXT,
  mob_1___2 TEXT,
  mob_1___3 TEXT,
  mob_1___4 TEXT,
  mob_1___5 TEXT,
  mob_1___6 TEXT,
  mob_1___7 TEXT,
  mob_1___8 TEXT,
  mob_1___9 TEXT,
  mob_1___10 TEXT,
  notes_17 TEXT,
  tug_1 TEXT,
  number_falls TEXT,
  notes_18 TEXT,
  falls_reas___1 TEXT,
  falls_reas___2 TEXT,
  falls_reas___3 TEXT,
  falls_reas___4 TEXT,
  falls_reas___5 TEXT,
  notes_19 TEXT,
  fall_impact TEXT,
  notes_20 TEXT,
  fall_risk TEXT,
  notes_21 TEXT,
  lifeline TEXT,
  emo_stat___1 TEXT,
  emo_stat___2 TEXT,
  emo_stat___3 TEXT,
  emo_stat___4 TEXT,
  emo_stat___5 TEXT,
  emo_stat___6 TEXT,
  emo_stat___7 TEXT,
  emo_stat___8 TEXT,
  emo_stat___9 TEXT,
  emo_stat___10 TEXT,
  notes_22 TEXT,
  alc_dru___1 TEXT,
  alc_dru___2 TEXT,
  alc_dru___3 TEXT,
  alc_dru___4 TEXT,
  alc_dru___5 TEXT,
  alc_dru___6 TEXT,
  alc_dru___7 TEXT,
  alc_dru___8 TEXT,
  alc_dru___9 TEXT,
  notes_23 TEXT,
  eld_abu___1 TEXT,
  eld_abu___2 TEXT,
  eld_abu___3 TEXT,
  eld_abu___4 TEXT,
  eld_abu___5 TEXT,
  eld_abu___6 TEXT,
  eld_abu___7 TEXT,
  notes_55 TEXT,
  nut_list___1 TEXT,
  nut_list___2 TEXT,
  nut_list___3 TEXT,
  nut_list___4 TEXT,
  nut_list___5 TEXT,
  nut_list___6 TEXT,
  nut_list___7 TEXT,
  nut_list___8 TEXT,
  nut_list___9 TEXT,
  notes_24 TEXT,
  height TEXT,
  weight TEXT,
  bmi TEXT,
  bmi_stat TEXT,
  notes_25 TEXT,
  eli___1 TEXT,
  eli___2 TEXT,
  eli___3 TEXT,
  eli___4 TEXT,
  eli___5 TEXT,
  notes_26 TEXT,
  future_plan TEXT,
  notes_27 TEXT,
  functional_health_complete TEXT,
  med_date_v2 TEXT,
  ormore_meds TEXT,
  med_list_start_home TEXT,
  opload_option TEXT,
  current_med_list_1 TEXT,
  current_med_list_2 TEXT,
  current_med_list_3 TEXT,
  medication_list_complete TEXT,
  na_problem_list TEXT,
  problem_list1_date_v2 TEXT,
  ed_visits___1 TEXT,
  ed_visits___2 TEXT,
  ed_visits___3 TEXT,
  ed_date_add TEXT,
  ed_manag_date TEXT,
  ed_date_res TEXT,
  incorrect_meds___1 TEXT,
  incorrect_meds___2 TEXT,
  incorrect_meds___3 TEXT,
  incorrect_meds_added TEXT,
  inco_meds_manag_date TEXT,
  incorrect_med_res TEXT,
  ineff_ther___1 TEXT,
  ineff_ther___2 TEXT,
  ineff_ther___3 TEXT,
  ineff_ther_add TEXT,
  ineff_ther_manag_date TEXT,
  ineffe_ther_res TEXT,
  sympt_manag___1 TEXT,
  sympt_manag___2 TEXT,
  sympt_manag___3 TEXT,
  sympt_manag_add TEXT,
  sympt_manag_manag_date TEXT,
  sumpy_manag_res TEXT,
  frailty___1 TEXT,
  frailty___2 TEXT,
  frailty___3 TEXT,
  frail_add TEXT,
  frailty_manag_date TEXT,
  frail_res TEXT,
  impair_cog___1 TEXT,
  impair_cog___2 TEXT,
  impair_cog___3 TEXT,
  impair_cog_add TEXT,
  impair_cog_manag_date TEXT,
  impar_cog_res TEXT,
  ment_heal___1 TEXT,
  ment_heal___2 TEXT,
  ment_heal___3 TEXT,
  ment_heal_add TEXT,
  ment_heal_manag_date TEXT,
  ment_heal_res TEXT,
  self_care_prob_list___1 TEXT,
  self_care_prob_list___2 TEXT,
  self_care_prob_list___3 TEXT,
  self_care_added TEXT,
  self_care_manag_date TEXT,
  self_care_res TEXT,
  imp_phys_mob___1 TEXT,
  imp_phys_mob___2 TEXT,
  imp_phys_mob___3 TEXT,
  imp_phys_mob_add TEXT,
  imp_phys_manag_date TEXT,
  imp_phy_mob_res TEXT,
  fall___1 TEXT,
  fall___2 TEXT,
  fall___3 TEXT,
  fall_add TEXT,
  fall_manag_date TEXT,
  fall_res TEXT,
  stay_home___1 TEXT,
  stay_home___2 TEXT,
  stay_home___3 TEXT,
  stay_home_add TEXT,
  stay_home_manag_date TEXT,
  stay_home_res TEXT,
  prob_bills___1 TEXT,
  prob_bills___2 TEXT,
  prob_bills___3 TEXT,
  prob_bills_add TEXT,
  prob_bills_manag_date TEXT,
  prob_bills_res TEXT,
  stress_trans___1 TEXT,
  stress_trans___2 TEXT,
  stress_trans___3 TEXT,
  stres_trans_add TEXT,
  stess_trans_manag_date TEXT,
  stress_trans_res TEXT,
  incom_acp___1 TEXT,
  incom_acp___2 TEXT,
  incom_acp___3 TEXT,
  incom_acp_date_added TEXT,
  incom_acp_manag_date TEXT,
  incom_acp_date_reso TEXT,
  other_prob_list___1 TEXT,
  other_prob_list___2 TEXT,
  other_prob_list___3 TEXT,
  other_prob_add TEXT,
  other_prob_manag_date TEXT,
  other_prob_res TEXT,
  sdoh_iso___1 TEXT,
  sdoh_iso___2 TEXT,
  sdoh_iso___3 TEXT,
  soc_iso_2 TEXT,
  soc_iso_manag_date TEXT,
  soc_iso_date_resol TEXT,
  nutr_poor___1 TEXT,
  nutr_poor___2 TEXT,
  nutr_poor___3 TEXT,
  nutr_poor_date_add TEXT,
  nutr_poor_manag_date TEXT,
  nutr_poor_res_date TEXT,
  hous_def___1 TEXT,
  hous_def___2 TEXT,
  hous_def___3 TEXT,
  hous_added TEXT,
  hous_manag_date TEXT,
  hous_res_date TEXT,
  sdoh_transp___1 TEXT,
  sdoh_transp___2 TEXT,
  sdoh_transp___3 TEXT,
  trans_date_add TEXT,
  trans_manag_date TEXT,
  trans_date_resol TEXT,
  sdoh_finance___1 TEXT,
  sdoh_finance___2 TEXT,
  sdoh_finance___3 TEXT,
  finance_date_add TEXT,
  finance_manag_date TEXT,
  finance_date_resol TEXT,
  sdoh_other_2___1 TEXT,
  sdoh_other_2___2 TEXT,
  sdoh_other_2___3 TEXT,
  sdoh_other_date_add TEXT,
  sdoh_other_manag TEXT,
  other_sdh_date_resol TEXT,
  allerg TEXT,
  notes_56 TEXT,
  med_diag_list_v2_v2_v2 TEXT,
  goals_prob_cleint TEXT,
  cg_prob_goals TEXT,
  nurse_prob_goals TEXT,
  plan_of_care_problem_list_complete TEXT,
  date_int TEXT,
  ini_int_date TEXT,
  contact_pcp_v2 TEXT,
  pcp_for_v2_v2___1 TEXT,
  pcp_for_v2_v2___2 TEXT,
  pcp_for_v2_v2___3 TEXT,
  pcp_for_v2_v2___4 TEXT,
  pcp_for_v2_v2___5 TEXT,
  pcp_for_v2_v2___6 TEXT,
  notes_28 TEXT,
  spec_care_v2 TEXT,
  ref_v2 TEXT,
  med_interv_v2___1 TEXT,
  med_interv_v2___2 TEXT,
  med_interv_v2___3 TEXT,
  med_interv_v2___4 TEXT,
  med_interv_v2___5 TEXT,
  notes_29 TEXT,
  sympt_interv_v2___1 TEXT,
  sympt_interv_v2___2 TEXT,
  sympt_interv_v2___3 TEXT,
  sympt_interv_v2___4 TEXT,
  sympt_interv_v2___5 TEXT,
  sympt_interv_v2___6 TEXT,
  notes_30 TEXT,
  mob_interv_v2___1 TEXT,
  mob_interv_v2___2 TEXT,
  mob_interv_v2___3 TEXT,
  mob_interv_v2___4 TEXT,
  mob_interv_v2___5 TEXT,
  mob_interv_v2___6 TEXT,
  notes_31 TEXT,
  cg_fam_interv_v2___1 TEXT,
  cg_fam_interv_v2___2 TEXT,
  cg_fam_interv_v2___3 TEXT,
  cg_fam_interv_v2___4 TEXT,
  cg_fam_interv_v2___5 TEXT,
  notes_32 TEXT,
  house_fina_food_interv_v2___1 TEXT,
  house_fina_food_interv_v2___2 TEXT,
  house_fina_food_interv_v2___3 TEXT,
  house_fina_food_interv_v2___4 TEXT,
  house_fina_food_interv_v2___5 TEXT,
  house_fina_food_interv_v2___6 TEXT,
  house_fina_food_interv_v2___7 TEXT,
  house_fina_food_interv_v2___8 TEXT,
  house_fina_food_interv_v2___9 TEXT,
  notes_33 TEXT,
  other_interv_notabove TEXT,
  fu_list_v2___1 TEXT,
  fu_list_v2___2 TEXT,
  fu_list_v2___3 TEXT,
  fu_list_v2___4 TEXT,
  notes_34 TEXT,
  plan_of_care_initial_interventions_complete TEXT,
  today_date_v2 TEXT,
  cont_meth_v2___1 TEXT,
  cont_meth_v2___2 TEXT,
  cont_meth_v2___3 TEXT,
  cont_meth_v2___4 TEXT,
  cont_meth_v2___5 TEXT,
  cont_meth_v2___6 TEXT,
  cont_meth_v2___7 TEXT,
  cont_meth_v2___8 TEXT,
  cont_meth_v2___9 TEXT,
  cont_meth_v2___10 TEXT,
  notes_57 TEXT,
  cont_asses TEXT,
  concerns1_v2___1 TEXT,
  concerns1_v2___2 TEXT,
  concerns1_v2___3 TEXT,
  concerns1_v2___4 TEXT,
  concerns1_v2___5 TEXT,
  concerns1_v2___6 TEXT,
  notes_35 TEXT,
  list_issues TEXT,
  phys_cond_nursescale TEXT,
  emot_stat_nursescale TEXT,
  cog_stat_nursescale TEXT,
  notes_48 TEXT,
  fall_sincelast TEXT,
  hospit_since_last TEXT,
  care_plan_update TEXT,
  update_plan___1 TEXT,
  update_plan___2 TEXT,
  update_plan___3 TEXT,
  update_plan___4 TEXT,
  contact_pcp TEXT,
  pcp_for_v2___1 TEXT,
  pcp_for_v2___2 TEXT,
  pcp_for_v2___3 TEXT,
  pcp_for_v2___4 TEXT,
  pcp_for_v2___5 TEXT,
  pcp_for_v2___6 TEXT,
  notes_36 TEXT,
  spec_care TEXT,
  ref TEXT,
  med_interv___1 TEXT,
  med_interv___2 TEXT,
  med_interv___3 TEXT,
  med_interv___4 TEXT,
  med_interv___5 TEXT,
  med_interv___6 TEXT,
  notes_37 TEXT,
  sympt_interv___1 TEXT,
  sympt_interv___2 TEXT,
  sympt_interv___3 TEXT,
  sympt_interv___4 TEXT,
  sympt_interv___5 TEXT,
  sympt_interv___6 TEXT,
  notes_38 TEXT,
  mob_interv___1 TEXT,
  mob_interv___2 TEXT,
  mob_interv___3 TEXT,
  mob_interv___4 TEXT,
  mob_interv___5 TEXT,
  mob_interv___6 TEXT,
  notes_39 TEXT,
  cg_fam_interv___1 TEXT,
  cg_fam_interv___2 TEXT,
  cg_fam_interv___3 TEXT,
  cg_fam_interv___4 TEXT,
  cg_fam_interv___5 TEXT,
  notes_40 TEXT,
  house_fina_food_interv___1 TEXT,
  house_fina_food_interv___2 TEXT,
  house_fina_food_interv___3 TEXT,
  house_fina_food_interv___4 TEXT,
  house_fina_food_interv___5 TEXT,
  house_fina_food_interv___6 TEXT,
  house_fina_food_interv___7 TEXT,
  house_fina_food_interv___8 TEXT,
  house_fina_food_interv___9 TEXT,
  notes_41 TEXT,
  other_interv_not_listed TEXT,
  fu_list___1 TEXT,
  fu_list___2 TEXT,
  fu_list___3 TEXT,
  fu_list___4 TEXT,
  notes_42 TEXT,
  interval_contacts_complete TEXT,
  date_sixmonth TEXT,
  client_answer_v2 TEXT,
  meds_client_before_v2 TEXT,
  cliebnt_home_before_v2 TEXT,
  client_anx_before_v2 TEXT,
  clients_daily_before_v2 TEXT,
  what_matters_patient_v2 TEXT,
  care_giver_v2 TEXT,
  who_care_v2 TEXT,
  cg_func_before_v2 TEXT,
  cg_basic_before_v2 TEXT,
  cg_conf_before_v2 TEXT,
  cg_fatig_before_v2 TEXT,
  cg_what_matters_v2 TEXT,
  phys_con_6_month TEXT,
  emot_6_mont TEXT,
  cog_6_mont TEXT,
  notes_47 TEXT,
  nurse_out_6_mont___1 TEXT,
  nurse_out_6_mont___2 TEXT,
  nurse_out_6_mont___3 TEXT,
  nurse_out_6_mont___4 TEXT,
  nurse_out_6_mont___5 TEXT,
  nurse_out_6_mont___6 TEXT,
  nurse_out_6_mont___7 TEXT,
  nurse_out_6_mont___8 TEXT,
  nurse_out_6_mont___9 TEXT,
  notes_43 TEXT,
  fu_6month___1 TEXT,
  fu_6month___2 TEXT,
  fu_6month___3 TEXT,
  fu_6month___4 TEXT,
  notes_44 TEXT,
  month_report_complete TEXT,
  date_today_dis TEXT,
  reason_disch TEXT,
  notes_45 TEXT,
  disc_status TEXT,
  phys TEXT,
  emotion TEXT,
  cog_stat TEXT,
  notes_49 TEXT,
  nurse_report_all___1 TEXT,
  nurse_report_all___2 TEXT,
  nurse_report_all___3 TEXT,
  nurse_report_all___4 TEXT,
  nurse_report_all___5 TEXT,
  nurse_report_all___6 TEXT,
  nurse_report_all___7 TEXT,
  notes_46 TEXT,
  client_status_2 TEXT,
  clien_outcome_dis TEXT,
  client_out2_dis TEXT,
  client_outc3_dis TEXT,
  clie_outc4_dis TEXT,
  most_impo_client TEXT,
  cg_status_2 TEXT,
  cg_out1_dis TEXT,
  cg_out2_dis TEXT,
  cg_out3_dis TEXT,
  cg_outc4_dis TEXT,
  cg_con_most TEXT,
  discharge_report_complete TEXT
);
CREATE TABLE log_2019_1107_1536(
  "Time / Date" TEXT,
  "Username" TEXT,
  "Action" TEXT,
  "List of Data Changes OR Fields Exported" TEXT
);
CREATE TABLE creates(
  created TEXT,
  who TEXT,
  "action" TEXT,
  what TEXT
, today date, date_1st_contact date);
CREATE TABLE creates2(
  created TEXT,
  who TEXT,
  "action" TEXT,
  what TEXT,
  today NUM,
  date_1st_contact NUM
);
CREATE TABLE IF NOT EXISTS "redcap_export_cindy"(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "date_contact" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE VIEW ttt as select record_id, redcap_data_access_group town from aag1 join aag_date_range on coalesce(date_1st_contact,last) <= last or coalesce(today,last) <= last where redcap_repeat_instrument=''
/* ttt(record_id,town) */;
CREATE VIEW aag_outcome1 as 
select record_id
     , redcap_data_access_group town
     , redcap_repeat_instrument
     , redcap_repeat_instance
     , nurse_out_6_mont___1 as outcome_1
     , nurse_out_6_mont___2 as outcome_2
     , nurse_out_6_mont___3 as outcome_3
     , nurse_out_6_mont___4 as outcome_4
     , nurse_out_6_mont___5 as outcome_5
     , nurse_out_6_mont___6 as outcome_6
     , nurse_out_6_mont___7 as outcome_7
     , nurse_out_6_mont___8 as outcome_8
     , nurse_out_6_mont___9 as outcome_9
  from aag1_6month
union all
select record_id
     , redcap_data_access_group town
     , redcap_repeat_instrument
     , redcap_repeat_instance
     , 0 as outcome_1
     , 0 as outcome_2
     , nurse_report_all___1 as outcome_3
     , nurse_report_all___2 as outcome_4
     , nurse_report_all___3 as outcome_5
     , nurse_report_all___4 as outcome_6
     , nurse_report_all___5 as outcome_7
     , nurse_report_all___6 as outcome_8
     , nurse_report_all___7 as outcome_9
  from aag1_discharge
/* aag_outcome1(record_id,town,redcap_repeat_instrument,redcap_repeat_instance,outcome_1,outcome_2,outcome_3,outcome_4,outcome_5,outcome_6,outcome_7,outcome_8,outcome_9) */;
CREATE TABLE thetford_import(
  "when" TEXT,
  who TEXT,
  "action" TEXT,
  changes TEXT
, record_id text);
CREATE VIEW thetford_client as
select *
  from redcap_export
 where redcap_repeat_instrument=''
   and redcap_data_access_group='thetford'
/* thetford_client(record_id,redcap_repeat_instrument,redcap_repeat_instance,redcap_data_access_group,old_records_lyme,today,status_profile,first_name,last_name,preferred_name,consent_date,upload_form,gender,dob,age,date_1st_contact,meth_1st_contact,notes,referred_by___1,referred_by___2,referred_by___3,referred_by___4,referred_by___5,referred_by___6,referred_by___7,referred_by___8,referred_by___9,notes_1,informant,notes_50,end_life_plan___1,end_life_plan___2,end_life_plan___3,end_life_plan___4,end_life_plan___5,end_life_plan___6,notes_2,acp_location,client_answer,meds_client_before,cliebnt_home_before,client_anx_before,clients_daily_before,what_matters_patient,care_giver,who_cg,cg_func_before,cg_basicneeds_before,cg_conf_before,cg_fatig_before,cg_what_matters,client_profile_must_complete_form_complete,date_contact,address,phone,email,caregiver_info,number_providers,provider_1,provider1_affiliation,provider_2,provider2_affiliation,provider_3,provider3_affiliation,other_provider_info,hospital_used,contact_information_must_complete_form_complete,date_sc,address_v2,notes_52,phone_v2,notes_3,name_2nd_person,client_support_1,non_med_assist___1,non_med_assist___2,non_med_assist___3,non_med_assist___4,non_med_assist___5,non_med_assist___6,non_med_assist___8,non_med_assist___9,notes_4,healthcare_serv___1,healthcare_serv___2,healthcare_serv___3,healthcare_serv___4,healthcare_serv___5,healthcare_serv___6,healthcare_serv___7,healthcare_serv___8,notes_5,soc_lonl_1___1,soc_lonl_1___2,soc_lonl_1___3,soc_lonl_1___4,soc_lonl_1___5,soc_lonl_1___6,soc_lonl_1___7,notes_6,transp___1,transp___2,transp___3,transp___4,transp___5,transp___6,notes_53,finan_1,notes_54,fin_gues_1___1,fin_gues_1___2,fin_gues_1___3,fin_gues_1___4,fin_gues_1___5,notes_7,heal_ins___1,heal_ins___2,heal_ins___3,heal_ins___4,heal_ins___5,heal_ins___6,notes_8,ethn,notes_9,st_language,non_english,other_soc_issue,social_context_complete,date_fh,prob_list2___1,prob_list2___2,prob_list2___3,prob_list2___4,prob_list2___15,prob_list2___5,prob_list2___6,prob_list2___7,prob_list2___8,prob_list2___9,prob_list2___10,prob_list2___11,prob_list2___12,prob_list2___13,prob_list2___14,notes_10,func_lim_1,symp_mng_1___1,symp_mng_1___2,symp_mng_1___3,symp_mng_1___4,symp_mng_1___5,notes_11,polypharm,med_mng_1___1,med_mng_1___2,med_mng_1___3,med_mng_1___4,med_mng_1___5,med_mng_1___6,med_mng_1___7,med_mng_1___8,med_mng_1___9,med_mng_1___10,notes_12,frail_1_v3___1,frail_1_v3___2,frail_1_v3___3,frail_1_v3___4,frail_1_v3___5,frail_1_v3___6,frail_1_v3___7,frail_1_v3___9,notes_13,frai_phe_3,cog_stat_1___1,cog_stat_1___2,cog_stat_1___3,cog_stat_1___4,cog_stat_1___5,cog_stat_1___6,notes_14,mini_cog_score,safe_1___1,safe_1___3,safe_1___4,safe_1___5,safe_1___11,safe_1___6,safe_1___7,safe_1___9,safe_1___10,notes_15,env_risk___1,env_risk___2,env_risk___3,env_risk___4,env_risk___5,env_risk___6,env_risk___7,env_risk___8,env_risk___9,env_risk___10,env_risk___12,env_risk___11,notes_16,mob_1___1,mob_1___2,mob_1___3,mob_1___4,mob_1___5,mob_1___6,mob_1___7,mob_1___8,mob_1___9,mob_1___10,notes_17,tug_1,number_falls,notes_18,falls_reas___1,falls_reas___2,falls_reas___3,falls_reas___4,falls_reas___5,notes_19,fall_impact,notes_20,fall_risk,notes_21,lifeline,emo_stat___1,emo_stat___2,emo_stat___3,emo_stat___4,emo_stat___5,emo_stat___6,emo_stat___7,emo_stat___8,emo_stat___9,emo_stat___10,notes_22,alc_dru___1,alc_dru___2,alc_dru___3,alc_dru___4,alc_dru___5,alc_dru___6,alc_dru___7,alc_dru___8,alc_dru___9,notes_23,eld_abu___1,eld_abu___2,eld_abu___3,eld_abu___4,eld_abu___5,eld_abu___6,eld_abu___7,notes_55,nut_list___1,nut_list___2,nut_list___3,nut_list___4,nut_list___5,nut_list___6,nut_list___7,nut_list___8,nut_list___9,notes_24,height,weight,bmi,bmi_stat,notes_25,eli___1,eli___2,eli___3,eli___4,eli___5,notes_26,future_plan,notes_27,functional_health_complete,med_date_v2,ormore_meds,med_list_start_home,opload_option,current_med_list_1,current_med_list_2,current_med_list_3,medication_list_complete,na_problem_list,problem_list1_date_v2,ed_visits___1,ed_visits___2,ed_visits___3,ed_date_add,ed_manag_date,ed_date_res,incorrect_meds___1,incorrect_meds___2,incorrect_meds___3,incorrect_meds_added,inco_meds_manag_date,incorrect_med_res,ineff_ther___1,ineff_ther___2,ineff_ther___3,ineff_ther_add,ineff_ther_manag_date,ineffe_ther_res,sympt_manag___1,sympt_manag___2,sympt_manag___3,sympt_manag_add,sympt_manag_manag_date,sumpy_manag_res,frailty___1,frailty___2,frailty___3,frail_add,frailty_manag_date,frail_res,impair_cog___1,impair_cog___2,impair_cog___3,impair_cog_add,impair_cog_manag_date,impar_cog_res,ment_heal___1,ment_heal___2,ment_heal___3,ment_heal_add,ment_heal_manag_date,ment_heal_res,self_care_prob_list___1,self_care_prob_list___2,self_care_prob_list___3,self_care_added,self_care_manag_date,self_care_res,imp_phys_mob___1,imp_phys_mob___2,imp_phys_mob___3,imp_phys_mob_add,imp_phys_manag_date,imp_phy_mob_res,fall___1,fall___2,fall___3,fall_add,fall_manag_date,fall_res,stay_home___1,stay_home___2,stay_home___3,stay_home_add,stay_home_manag_date,stay_home_res,prob_bills___1,prob_bills___2,prob_bills___3,prob_bills_add,prob_bills_manag_date,prob_bills_res,stress_trans___1,stress_trans___2,stress_trans___3,stres_trans_add,stess_trans_manag_date,stress_trans_res,incom_acp___1,incom_acp___2,incom_acp___3,incom_acp_date_added,incom_acp_manag_date,incom_acp_date_reso,other_prob_list___1,other_prob_list___2,other_prob_list___3,other_prob_add,other_prob_manag_date,other_prob_res,sdoh_iso___1,sdoh_iso___2,sdoh_iso___3,soc_iso_2,soc_iso_manag_date,soc_iso_date_resol,nutr_poor___1,nutr_poor___2,nutr_poor___3,nutr_poor_date_add,nutr_poor_manag_date,nutr_poor_res_date,hous_def___1,hous_def___2,hous_def___3,hous_added,hous_manag_date,hous_res_date,sdoh_transp___1,sdoh_transp___2,sdoh_transp___3,trans_date_add,trans_manag_date,trans_date_resol,sdoh_finance___1,sdoh_finance___2,sdoh_finance___3,finance_date_add,finance_manag_date,finance_date_resol,sdoh_other_2___1,sdoh_other_2___2,sdoh_other_2___3,sdoh_other_date_add,sdoh_other_manag,other_sdh_date_resol,allerg,notes_56,med_diag_list_v2_v2_v2,goals_prob_cleint,cg_prob_goals,nurse_prob_goals,plan_of_care_problem_list_complete,date_int,ini_int_date,contact_pcp_v2,pcp_for_v2_v2___1,pcp_for_v2_v2___2,pcp_for_v2_v2___3,pcp_for_v2_v2___4,pcp_for_v2_v2___5,pcp_for_v2_v2___6,notes_28,spec_care_v2,ref_v2,med_interv_v2___1,med_interv_v2___2,med_interv_v2___3,med_interv_v2___4,med_interv_v2___5,notes_29,sympt_interv_v2___1,sympt_interv_v2___2,sympt_interv_v2___3,sympt_interv_v2___4,sympt_interv_v2___5,sympt_interv_v2___6,notes_30,mob_interv_v2___1,mob_interv_v2___2,mob_interv_v2___3,mob_interv_v2___4,mob_interv_v2___5,mob_interv_v2___6,notes_31,cg_fam_interv_v2___1,cg_fam_interv_v2___2,cg_fam_interv_v2___3,cg_fam_interv_v2___4,cg_fam_interv_v2___5,notes_32,house_fina_food_interv_v2___1,house_fina_food_interv_v2___2,house_fina_food_interv_v2___3,house_fina_food_interv_v2___4,house_fina_food_interv_v2___5,house_fina_food_interv_v2___6,house_fina_food_interv_v2___7,house_fina_food_interv_v2___8,house_fina_food_interv_v2___9,notes_33,other_interv_notabove,fu_list_v2___1,fu_list_v2___2,fu_list_v2___3,fu_list_v2___4,notes_34,plan_of_care_initial_interventions_complete,today_date_v2,cont_meth_v2___1,cont_meth_v2___2,cont_meth_v2___3,cont_meth_v2___4,cont_meth_v2___5,cont_meth_v2___6,cont_meth_v2___7,cont_meth_v2___8,cont_meth_v2___9,cont_meth_v2___10,notes_57,cont_asses,concerns1_v2___1,concerns1_v2___2,concerns1_v2___3,concerns1_v2___4,concerns1_v2___5,concerns1_v2___6,notes_35,list_issues,phys_cond_nursescale,emot_stat_nursescale,cog_stat_nursescale,notes_48,fall_sincelast,hospit_since_last,care_plan_update,update_plan___1,update_plan___2,update_plan___3,update_plan___4,contact_pcp,pcp_for_v2___1,pcp_for_v2___2,pcp_for_v2___3,pcp_for_v2___4,pcp_for_v2___5,pcp_for_v2___6,notes_36,spec_care,ref,med_interv___1,med_interv___2,med_interv___3,med_interv___4,med_interv___5,med_interv___6,notes_37,sympt_interv___1,sympt_interv___2,sympt_interv___3,sympt_interv___4,sympt_interv___5,sympt_interv___6,notes_38,mob_interv___1,mob_interv___2,mob_interv___3,mob_interv___4,mob_interv___5,mob_interv___6,notes_39,cg_fam_interv___1,cg_fam_interv___2,cg_fam_interv___3,cg_fam_interv___4,cg_fam_interv___5,notes_40,house_fina_food_interv___1,house_fina_food_interv___2,house_fina_food_interv___3,house_fina_food_interv___4,house_fina_food_interv___5,house_fina_food_interv___6,house_fina_food_interv___7,house_fina_food_interv___8,house_fina_food_interv___9,notes_41,other_interv_not_listed,fu_list___1,fu_list___2,fu_list___3,fu_list___4,notes_42,interval_contacts_complete,date_sixmonth,client_answer_v2,meds_client_before_v2,cliebnt_home_before_v2,client_anx_before_v2,clients_daily_before_v2,what_matters_patient_v2,care_giver_v2,who_care_v2,cg_func_before_v2,cg_basic_before_v2,cg_conf_before_v2,cg_fatig_before_v2,cg_what_matters_v2,phys_con_6_month,emot_6_mont,cog_6_mont,notes_47,nurse_out_6_mont___1,nurse_out_6_mont___2,nurse_out_6_mont___3,nurse_out_6_mont___4,nurse_out_6_mont___5,nurse_out_6_mont___6,nurse_out_6_mont___7,nurse_out_6_mont___8,nurse_out_6_mont___9,notes_43,fu_6month___1,fu_6month___2,fu_6month___3,fu_6month___4,notes_44,month_report_complete,date_today_dis,reason_disch,notes_45,disc_status,phys,emotion,cog_stat,notes_49,nurse_report_all___1,nurse_report_all___2,nurse_report_all___3,nurse_report_all___4,nurse_report_all___5,nurse_report_all___6,nurse_report_all___7,notes_46,client_status_2,clien_outcome_dis,client_out2_dis,client_outc3_dis,clie_outc4_dis,most_impo_client,cg_status_2,cg_out1_dis,cg_out2_dis,cg_out3_dis,cg_outc4_dis,cg_con_most,discharge_report_complete) */;
CREATE VIEW thetford_encounter as
select *
  from redcap_export
 where redcap_repeat_instrument='interval_contacts'
   and redcap_data_access_group='thetford'
/* thetford_encounter(record_id,redcap_repeat_instrument,redcap_repeat_instance,redcap_data_access_group,old_records_lyme,today,status_profile,first_name,last_name,preferred_name,consent_date,upload_form,gender,dob,age,date_1st_contact,meth_1st_contact,notes,referred_by___1,referred_by___2,referred_by___3,referred_by___4,referred_by___5,referred_by___6,referred_by___7,referred_by___8,referred_by___9,notes_1,informant,notes_50,end_life_plan___1,end_life_plan___2,end_life_plan___3,end_life_plan___4,end_life_plan___5,end_life_plan___6,notes_2,acp_location,client_answer,meds_client_before,cliebnt_home_before,client_anx_before,clients_daily_before,what_matters_patient,care_giver,who_cg,cg_func_before,cg_basicneeds_before,cg_conf_before,cg_fatig_before,cg_what_matters,client_profile_must_complete_form_complete,date_contact,address,phone,email,caregiver_info,number_providers,provider_1,provider1_affiliation,provider_2,provider2_affiliation,provider_3,provider3_affiliation,other_provider_info,hospital_used,contact_information_must_complete_form_complete,date_sc,address_v2,notes_52,phone_v2,notes_3,name_2nd_person,client_support_1,non_med_assist___1,non_med_assist___2,non_med_assist___3,non_med_assist___4,non_med_assist___5,non_med_assist___6,non_med_assist___8,non_med_assist___9,notes_4,healthcare_serv___1,healthcare_serv___2,healthcare_serv___3,healthcare_serv___4,healthcare_serv___5,healthcare_serv___6,healthcare_serv___7,healthcare_serv___8,notes_5,soc_lonl_1___1,soc_lonl_1___2,soc_lonl_1___3,soc_lonl_1___4,soc_lonl_1___5,soc_lonl_1___6,soc_lonl_1___7,notes_6,transp___1,transp___2,transp___3,transp___4,transp___5,transp___6,notes_53,finan_1,notes_54,fin_gues_1___1,fin_gues_1___2,fin_gues_1___3,fin_gues_1___4,fin_gues_1___5,notes_7,heal_ins___1,heal_ins___2,heal_ins___3,heal_ins___4,heal_ins___5,heal_ins___6,notes_8,ethn,notes_9,st_language,non_english,other_soc_issue,social_context_complete,date_fh,prob_list2___1,prob_list2___2,prob_list2___3,prob_list2___4,prob_list2___15,prob_list2___5,prob_list2___6,prob_list2___7,prob_list2___8,prob_list2___9,prob_list2___10,prob_list2___11,prob_list2___12,prob_list2___13,prob_list2___14,notes_10,func_lim_1,symp_mng_1___1,symp_mng_1___2,symp_mng_1___3,symp_mng_1___4,symp_mng_1___5,notes_11,polypharm,med_mng_1___1,med_mng_1___2,med_mng_1___3,med_mng_1___4,med_mng_1___5,med_mng_1___6,med_mng_1___7,med_mng_1___8,med_mng_1___9,med_mng_1___10,notes_12,frail_1_v3___1,frail_1_v3___2,frail_1_v3___3,frail_1_v3___4,frail_1_v3___5,frail_1_v3___6,frail_1_v3___7,frail_1_v3___9,notes_13,frai_phe_3,cog_stat_1___1,cog_stat_1___2,cog_stat_1___3,cog_stat_1___4,cog_stat_1___5,cog_stat_1___6,notes_14,mini_cog_score,safe_1___1,safe_1___3,safe_1___4,safe_1___5,safe_1___11,safe_1___6,safe_1___7,safe_1___9,safe_1___10,notes_15,env_risk___1,env_risk___2,env_risk___3,env_risk___4,env_risk___5,env_risk___6,env_risk___7,env_risk___8,env_risk___9,env_risk___10,env_risk___12,env_risk___11,notes_16,mob_1___1,mob_1___2,mob_1___3,mob_1___4,mob_1___5,mob_1___6,mob_1___7,mob_1___8,mob_1___9,mob_1___10,notes_17,tug_1,number_falls,notes_18,falls_reas___1,falls_reas___2,falls_reas___3,falls_reas___4,falls_reas___5,notes_19,fall_impact,notes_20,fall_risk,notes_21,lifeline,emo_stat___1,emo_stat___2,emo_stat___3,emo_stat___4,emo_stat___5,emo_stat___6,emo_stat___7,emo_stat___8,emo_stat___9,emo_stat___10,notes_22,alc_dru___1,alc_dru___2,alc_dru___3,alc_dru___4,alc_dru___5,alc_dru___6,alc_dru___7,alc_dru___8,alc_dru___9,notes_23,eld_abu___1,eld_abu___2,eld_abu___3,eld_abu___4,eld_abu___5,eld_abu___6,eld_abu___7,notes_55,nut_list___1,nut_list___2,nut_list___3,nut_list___4,nut_list___5,nut_list___6,nut_list___7,nut_list___8,nut_list___9,notes_24,height,weight,bmi,bmi_stat,notes_25,eli___1,eli___2,eli___3,eli___4,eli___5,notes_26,future_plan,notes_27,functional_health_complete,med_date_v2,ormore_meds,med_list_start_home,opload_option,current_med_list_1,current_med_list_2,current_med_list_3,medication_list_complete,na_problem_list,problem_list1_date_v2,ed_visits___1,ed_visits___2,ed_visits___3,ed_date_add,ed_manag_date,ed_date_res,incorrect_meds___1,incorrect_meds___2,incorrect_meds___3,incorrect_meds_added,inco_meds_manag_date,incorrect_med_res,ineff_ther___1,ineff_ther___2,ineff_ther___3,ineff_ther_add,ineff_ther_manag_date,ineffe_ther_res,sympt_manag___1,sympt_manag___2,sympt_manag___3,sympt_manag_add,sympt_manag_manag_date,sumpy_manag_res,frailty___1,frailty___2,frailty___3,frail_add,frailty_manag_date,frail_res,impair_cog___1,impair_cog___2,impair_cog___3,impair_cog_add,impair_cog_manag_date,impar_cog_res,ment_heal___1,ment_heal___2,ment_heal___3,ment_heal_add,ment_heal_manag_date,ment_heal_res,self_care_prob_list___1,self_care_prob_list___2,self_care_prob_list___3,self_care_added,self_care_manag_date,self_care_res,imp_phys_mob___1,imp_phys_mob___2,imp_phys_mob___3,imp_phys_mob_add,imp_phys_manag_date,imp_phy_mob_res,fall___1,fall___2,fall___3,fall_add,fall_manag_date,fall_res,stay_home___1,stay_home___2,stay_home___3,stay_home_add,stay_home_manag_date,stay_home_res,prob_bills___1,prob_bills___2,prob_bills___3,prob_bills_add,prob_bills_manag_date,prob_bills_res,stress_trans___1,stress_trans___2,stress_trans___3,stres_trans_add,stess_trans_manag_date,stress_trans_res,incom_acp___1,incom_acp___2,incom_acp___3,incom_acp_date_added,incom_acp_manag_date,incom_acp_date_reso,other_prob_list___1,other_prob_list___2,other_prob_list___3,other_prob_add,other_prob_manag_date,other_prob_res,sdoh_iso___1,sdoh_iso___2,sdoh_iso___3,soc_iso_2,soc_iso_manag_date,soc_iso_date_resol,nutr_poor___1,nutr_poor___2,nutr_poor___3,nutr_poor_date_add,nutr_poor_manag_date,nutr_poor_res_date,hous_def___1,hous_def___2,hous_def___3,hous_added,hous_manag_date,hous_res_date,sdoh_transp___1,sdoh_transp___2,sdoh_transp___3,trans_date_add,trans_manag_date,trans_date_resol,sdoh_finance___1,sdoh_finance___2,sdoh_finance___3,finance_date_add,finance_manag_date,finance_date_resol,sdoh_other_2___1,sdoh_other_2___2,sdoh_other_2___3,sdoh_other_date_add,sdoh_other_manag,other_sdh_date_resol,allerg,notes_56,med_diag_list_v2_v2_v2,goals_prob_cleint,cg_prob_goals,nurse_prob_goals,plan_of_care_problem_list_complete,date_int,ini_int_date,contact_pcp_v2,pcp_for_v2_v2___1,pcp_for_v2_v2___2,pcp_for_v2_v2___3,pcp_for_v2_v2___4,pcp_for_v2_v2___5,pcp_for_v2_v2___6,notes_28,spec_care_v2,ref_v2,med_interv_v2___1,med_interv_v2___2,med_interv_v2___3,med_interv_v2___4,med_interv_v2___5,notes_29,sympt_interv_v2___1,sympt_interv_v2___2,sympt_interv_v2___3,sympt_interv_v2___4,sympt_interv_v2___5,sympt_interv_v2___6,notes_30,mob_interv_v2___1,mob_interv_v2___2,mob_interv_v2___3,mob_interv_v2___4,mob_interv_v2___5,mob_interv_v2___6,notes_31,cg_fam_interv_v2___1,cg_fam_interv_v2___2,cg_fam_interv_v2___3,cg_fam_interv_v2___4,cg_fam_interv_v2___5,notes_32,house_fina_food_interv_v2___1,house_fina_food_interv_v2___2,house_fina_food_interv_v2___3,house_fina_food_interv_v2___4,house_fina_food_interv_v2___5,house_fina_food_interv_v2___6,house_fina_food_interv_v2___7,house_fina_food_interv_v2___8,house_fina_food_interv_v2___9,notes_33,other_interv_notabove,fu_list_v2___1,fu_list_v2___2,fu_list_v2___3,fu_list_v2___4,notes_34,plan_of_care_initial_interventions_complete,today_date_v2,cont_meth_v2___1,cont_meth_v2___2,cont_meth_v2___3,cont_meth_v2___4,cont_meth_v2___5,cont_meth_v2___6,cont_meth_v2___7,cont_meth_v2___8,cont_meth_v2___9,cont_meth_v2___10,notes_57,cont_asses,concerns1_v2___1,concerns1_v2___2,concerns1_v2___3,concerns1_v2___4,concerns1_v2___5,concerns1_v2___6,notes_35,list_issues,phys_cond_nursescale,emot_stat_nursescale,cog_stat_nursescale,notes_48,fall_sincelast,hospit_since_last,care_plan_update,update_plan___1,update_plan___2,update_plan___3,update_plan___4,contact_pcp,pcp_for_v2___1,pcp_for_v2___2,pcp_for_v2___3,pcp_for_v2___4,pcp_for_v2___5,pcp_for_v2___6,notes_36,spec_care,ref,med_interv___1,med_interv___2,med_interv___3,med_interv___4,med_interv___5,med_interv___6,notes_37,sympt_interv___1,sympt_interv___2,sympt_interv___3,sympt_interv___4,sympt_interv___5,sympt_interv___6,notes_38,mob_interv___1,mob_interv___2,mob_interv___3,mob_interv___4,mob_interv___5,mob_interv___6,notes_39,cg_fam_interv___1,cg_fam_interv___2,cg_fam_interv___3,cg_fam_interv___4,cg_fam_interv___5,notes_40,house_fina_food_interv___1,house_fina_food_interv___2,house_fina_food_interv___3,house_fina_food_interv___4,house_fina_food_interv___5,house_fina_food_interv___6,house_fina_food_interv___7,house_fina_food_interv___8,house_fina_food_interv___9,notes_41,other_interv_not_listed,fu_list___1,fu_list___2,fu_list___3,fu_list___4,notes_42,interval_contacts_complete,date_sixmonth,client_answer_v2,meds_client_before_v2,cliebnt_home_before_v2,client_anx_before_v2,clients_daily_before_v2,what_matters_patient_v2,care_giver_v2,who_care_v2,cg_func_before_v2,cg_basic_before_v2,cg_conf_before_v2,cg_fatig_before_v2,cg_what_matters_v2,phys_con_6_month,emot_6_mont,cog_6_mont,notes_47,nurse_out_6_mont___1,nurse_out_6_mont___2,nurse_out_6_mont___3,nurse_out_6_mont___4,nurse_out_6_mont___5,nurse_out_6_mont___6,nurse_out_6_mont___7,nurse_out_6_mont___8,nurse_out_6_mont___9,notes_43,fu_6month___1,fu_6month___2,fu_6month___3,fu_6month___4,notes_44,month_report_complete,date_today_dis,reason_disch,notes_45,disc_status,phys,emotion,cog_stat,notes_49,nurse_report_all___1,nurse_report_all___2,nurse_report_all___3,nurse_report_all___4,nurse_report_all___5,nurse_report_all___6,nurse_report_all___7,notes_46,client_status_2,clien_outcome_dis,client_out2_dis,client_outc3_dis,clie_outc4_dis,most_impo_client,cg_status_2,cg_out1_dis,cg_out2_dis,cg_out3_dis,cg_outc4_dis,cg_con_most,discharge_report_complete) */;
CREATE VIEW thetford_last_encounter as
select record_id, max(today_date_v2) edate, count(*) ecount from thetford_encounter group by record_id
/* thetford_last_encounter(record_id,edate,ecount) */;
CREATE VIEW client_served as
select distinct 
       record_id
     , town
  from aag1_encounter
/* client_served(record_id,town) */;
CREATE TABLE aag1_temp1(sort_key,text);
CREATE TABLE redcap_export1(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "date_contact" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE redcap_export2(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "date_contact" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE redcap_export_b4_repeat(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "date_contact" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE redcap_export_repeat(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "date_contact" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE redcap_export_carl_test(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "date_contact" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE redcap_export_after_delete(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "date_contact" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE redcap_export_unrepeat(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "date_contact" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE VIEW aag1 as
select * 
  from redcap_export
  join aag_town 
    on redcap_data_access_group = lower(town)
/* aag1(record_id,redcap_repeat_instrument,redcap_repeat_instance,redcap_data_access_group,old_records_lyme,today,status_profile,first_name,last_name,preferred_name,consent_date,upload_form,gender,dob,age,date_1st_contact,meth_1st_contact,notes,referred_by___1,referred_by___2,referred_by___3,referred_by___4,referred_by___5,referred_by___6,referred_by___7,referred_by___8,referred_by___9,notes_1,informant,notes_50,end_life_plan___1,end_life_plan___2,end_life_plan___3,end_life_plan___4,end_life_plan___5,end_life_plan___6,notes_2,acp_location,client_answer,meds_client_before,cliebnt_home_before,client_anx_before,clients_daily_before,what_matters_patient,care_giver,who_cg,cg_func_before,cg_basicneeds_before,cg_conf_before,cg_fatig_before,cg_what_matters,client_profile_must_complete_form_complete,date_contact,address,phone,email,caregiver_info,number_providers,provider_1,provider1_affiliation,provider_2,provider2_affiliation,provider_3,provider3_affiliation,other_provider_info,hospital_used,contact_information_must_complete_form_complete,date_sc,address_v2,notes_52,phone_v2,notes_3,name_2nd_person,client_support_1,non_med_assist___1,non_med_assist___2,non_med_assist___3,non_med_assist___4,non_med_assist___5,non_med_assist___6,non_med_assist___8,non_med_assist___9,notes_4,healthcare_serv___1,healthcare_serv___2,healthcare_serv___3,healthcare_serv___4,healthcare_serv___5,healthcare_serv___6,healthcare_serv___7,healthcare_serv___8,notes_5,soc_lonl_1___1,soc_lonl_1___2,soc_lonl_1___3,soc_lonl_1___4,soc_lonl_1___5,soc_lonl_1___6,soc_lonl_1___7,notes_6,transp___1,transp___2,transp___3,transp___4,transp___5,transp___6,notes_53,finan_1,notes_54,fin_gues_1___1,fin_gues_1___2,fin_gues_1___3,fin_gues_1___4,fin_gues_1___5,notes_7,heal_ins___1,heal_ins___2,heal_ins___3,heal_ins___4,heal_ins___5,heal_ins___6,notes_8,ethn,notes_9,st_language,non_english,other_soc_issue,social_context_complete,date_fh,prob_list2___1,prob_list2___2,prob_list2___3,prob_list2___4,prob_list2___15,prob_list2___5,prob_list2___6,prob_list2___7,prob_list2___8,prob_list2___9,prob_list2___10,prob_list2___11,prob_list2___12,prob_list2___13,prob_list2___14,notes_10,func_lim_1,symp_mng_1___1,symp_mng_1___2,symp_mng_1___3,symp_mng_1___4,symp_mng_1___5,notes_11,polypharm,med_mng_1___1,med_mng_1___2,med_mng_1___3,med_mng_1___4,med_mng_1___5,med_mng_1___6,med_mng_1___7,med_mng_1___8,med_mng_1___9,med_mng_1___10,notes_12,frail_1_v3___1,frail_1_v3___2,frail_1_v3___3,frail_1_v3___4,frail_1_v3___5,frail_1_v3___6,frail_1_v3___7,frail_1_v3___9,notes_13,frai_phe_3,cog_stat_1___1,cog_stat_1___2,cog_stat_1___3,cog_stat_1___4,cog_stat_1___5,cog_stat_1___6,notes_14,mini_cog_score,safe_1___1,safe_1___3,safe_1___4,safe_1___5,safe_1___11,safe_1___6,safe_1___7,safe_1___9,safe_1___10,notes_15,env_risk___1,env_risk___2,env_risk___3,env_risk___4,env_risk___5,env_risk___6,env_risk___7,env_risk___8,env_risk___9,env_risk___10,env_risk___12,env_risk___11,notes_16,mob_1___1,mob_1___2,mob_1___3,mob_1___4,mob_1___5,mob_1___6,mob_1___7,mob_1___8,mob_1___9,mob_1___10,notes_17,tug_1,number_falls,notes_18,falls_reas___1,falls_reas___2,falls_reas___3,falls_reas___4,falls_reas___5,notes_19,fall_impact,notes_20,fall_risk,notes_21,lifeline,emo_stat___1,emo_stat___2,emo_stat___3,emo_stat___4,emo_stat___5,emo_stat___6,emo_stat___7,emo_stat___8,emo_stat___9,emo_stat___10,notes_22,alc_dru___1,alc_dru___2,alc_dru___3,alc_dru___4,alc_dru___5,alc_dru___6,alc_dru___7,alc_dru___8,alc_dru___9,notes_23,eld_abu___1,eld_abu___2,eld_abu___3,eld_abu___4,eld_abu___5,eld_abu___6,eld_abu___7,notes_55,nut_list___1,nut_list___2,nut_list___3,nut_list___4,nut_list___5,nut_list___6,nut_list___7,nut_list___8,nut_list___9,notes_24,height,weight,bmi,bmi_stat,notes_25,eli___1,eli___2,eli___3,eli___4,eli___5,notes_26,future_plan,notes_27,functional_health_complete,med_date_v2,ormore_meds,med_list_start_home,opload_option,current_med_list_1,current_med_list_2,current_med_list_3,medication_list_complete,na_problem_list,problem_list1_date_v2,ed_visits___1,ed_visits___2,ed_visits___3,ed_date_add,ed_manag_date,ed_date_res,incorrect_meds___1,incorrect_meds___2,incorrect_meds___3,incorrect_meds_added,inco_meds_manag_date,incorrect_med_res,ineff_ther___1,ineff_ther___2,ineff_ther___3,ineff_ther_add,ineff_ther_manag_date,ineffe_ther_res,sympt_manag___1,sympt_manag___2,sympt_manag___3,sympt_manag_add,sympt_manag_manag_date,sumpy_manag_res,frailty___1,frailty___2,frailty___3,frail_add,frailty_manag_date,frail_res,impair_cog___1,impair_cog___2,impair_cog___3,impair_cog_add,impair_cog_manag_date,impar_cog_res,ment_heal___1,ment_heal___2,ment_heal___3,ment_heal_add,ment_heal_manag_date,ment_heal_res,self_care_prob_list___1,self_care_prob_list___2,self_care_prob_list___3,self_care_added,self_care_manag_date,self_care_res,imp_phys_mob___1,imp_phys_mob___2,imp_phys_mob___3,imp_phys_mob_add,imp_phys_manag_date,imp_phy_mob_res,fall___1,fall___2,fall___3,fall_add,fall_manag_date,fall_res,stay_home___1,stay_home___2,stay_home___3,stay_home_add,stay_home_manag_date,stay_home_res,prob_bills___1,prob_bills___2,prob_bills___3,prob_bills_add,prob_bills_manag_date,prob_bills_res,stress_trans___1,stress_trans___2,stress_trans___3,stres_trans_add,stess_trans_manag_date,stress_trans_res,incom_acp___1,incom_acp___2,incom_acp___3,incom_acp_date_added,incom_acp_manag_date,incom_acp_date_reso,other_prob_list___1,other_prob_list___2,other_prob_list___3,other_prob_add,other_prob_manag_date,other_prob_res,sdoh_iso___1,sdoh_iso___2,sdoh_iso___3,soc_iso_2,soc_iso_manag_date,soc_iso_date_resol,nutr_poor___1,nutr_poor___2,nutr_poor___3,nutr_poor_date_add,nutr_poor_manag_date,nutr_poor_res_date,hous_def___1,hous_def___2,hous_def___3,hous_added,hous_manag_date,hous_res_date,sdoh_transp___1,sdoh_transp___2,sdoh_transp___3,trans_date_add,trans_manag_date,trans_date_resol,sdoh_finance___1,sdoh_finance___2,sdoh_finance___3,finance_date_add,finance_manag_date,finance_date_resol,sdoh_other_2___1,sdoh_other_2___2,sdoh_other_2___3,sdoh_other_date_add,sdoh_other_manag,other_sdh_date_resol,allerg,notes_56,med_diag_list_v2_v2_v2,goals_prob_cleint,cg_prob_goals,nurse_prob_goals,plan_of_care_problem_list_complete,date_int,ini_int_date,contact_pcp_v2,pcp_for_v2_v2___1,pcp_for_v2_v2___2,pcp_for_v2_v2___3,pcp_for_v2_v2___4,pcp_for_v2_v2___5,pcp_for_v2_v2___6,notes_28,spec_care_v2,ref_v2,med_interv_v2___1,med_interv_v2___2,med_interv_v2___3,med_interv_v2___4,med_interv_v2___5,notes_29,sympt_interv_v2___1,sympt_interv_v2___2,sympt_interv_v2___3,sympt_interv_v2___4,sympt_interv_v2___5,sympt_interv_v2___6,notes_30,mob_interv_v2___1,mob_interv_v2___2,mob_interv_v2___3,mob_interv_v2___4,mob_interv_v2___5,mob_interv_v2___6,notes_31,cg_fam_interv_v2___1,cg_fam_interv_v2___2,cg_fam_interv_v2___3,cg_fam_interv_v2___4,cg_fam_interv_v2___5,notes_32,house_fina_food_interv_v2___1,house_fina_food_interv_v2___2,house_fina_food_interv_v2___3,house_fina_food_interv_v2___4,house_fina_food_interv_v2___5,house_fina_food_interv_v2___6,house_fina_food_interv_v2___7,house_fina_food_interv_v2___8,house_fina_food_interv_v2___9,notes_33,other_interv_notabove,fu_list_v2___1,fu_list_v2___2,fu_list_v2___3,fu_list_v2___4,notes_34,plan_of_care_initial_interventions_complete,today_date_v2,cont_meth_v2___1,cont_meth_v2___2,cont_meth_v2___3,cont_meth_v2___4,cont_meth_v2___5,cont_meth_v2___6,cont_meth_v2___7,cont_meth_v2___8,cont_meth_v2___9,cont_meth_v2___10,notes_57,cont_asses,concerns1_v2___1,concerns1_v2___2,concerns1_v2___3,concerns1_v2___4,concerns1_v2___5,concerns1_v2___6,notes_35,list_issues,phys_cond_nursescale,emot_stat_nursescale,cog_stat_nursescale,notes_48,fall_sincelast,hospit_since_last,care_plan_update,update_plan___1,update_plan___2,update_plan___3,update_plan___4,contact_pcp,pcp_for_v2___1,pcp_for_v2___2,pcp_for_v2___3,pcp_for_v2___4,pcp_for_v2___5,pcp_for_v2___6,notes_36,spec_care,ref,med_interv___1,med_interv___2,med_interv___3,med_interv___4,med_interv___5,med_interv___6,notes_37,sympt_interv___1,sympt_interv___2,sympt_interv___3,sympt_interv___4,sympt_interv___5,sympt_interv___6,notes_38,mob_interv___1,mob_interv___2,mob_interv___3,mob_interv___4,mob_interv___5,mob_interv___6,notes_39,cg_fam_interv___1,cg_fam_interv___2,cg_fam_interv___3,cg_fam_interv___4,cg_fam_interv___5,notes_40,house_fina_food_interv___1,house_fina_food_interv___2,house_fina_food_interv___3,house_fina_food_interv___4,house_fina_food_interv___5,house_fina_food_interv___6,house_fina_food_interv___7,house_fina_food_interv___8,house_fina_food_interv___9,notes_41,other_interv_not_listed,fu_list___1,fu_list___2,fu_list___3,fu_list___4,notes_42,interval_contacts_complete,date_sixmonth,client_answer_v2,meds_client_before_v2,cliebnt_home_before_v2,client_anx_before_v2,clients_daily_before_v2,what_matters_patient_v2,care_giver_v2,who_care_v2,cg_func_before_v2,cg_basic_before_v2,cg_conf_before_v2,cg_fatig_before_v2,cg_what_matters_v2,phys_con_6_month,emot_6_mont,cog_6_mont,notes_47,nurse_out_6_mont___1,nurse_out_6_mont___2,nurse_out_6_mont___3,nurse_out_6_mont___4,nurse_out_6_mont___5,nurse_out_6_mont___6,nurse_out_6_mont___7,nurse_out_6_mont___8,nurse_out_6_mont___9,notes_43,fu_6month___1,fu_6month___2,fu_6month___3,fu_6month___4,notes_44,month_report_complete,date_today_dis,reason_disch,notes_45,disc_status,phys,emotion,cog_stat,notes_49,nurse_report_all___1,nurse_report_all___2,nurse_report_all___3,nurse_report_all___4,nurse_report_all___5,nurse_report_all___6,nurse_report_all___7,notes_46,client_status_2,clien_outcome_dis,client_out2_dis,client_outc3_dis,clie_outc4_dis,most_impo_client,cg_status_2,cg_out1_dis,cg_out2_dis,cg_out3_dis,cg_outc4_dis,cg_con_most,discharge_report_complete,town) */;
CREATE VIEW aag1_client_all as
select record_id
     , redcap_data_access_group town
     , status_profile
     , cast(age as real) as age
     , gender
     , today as admit_date
     , date_1st_contact
     , referred_by___1
     , referred_by___2
     , referred_by___3
     , referred_by___4
     , referred_by___5
     , referred_by___6
     , referred_by___7
     , referred_by___8
     , referred_by___9
     , case
        when referred_by___1 +
                referred_by___2 +
                referred_by___3 +
                referred_by___4 +
                referred_by___5 +
                referred_by___6 +
                referred_by___7 +
                referred_by___8 +
                referred_by___9 > 0 then 1
        else 0
        end as referred_by_any
     , end_life_plan___2 -- Living will DPOAH
     , case 
          when end_life_plan___1 + end_life_plan___2 + end_life_plan___3 + 
               end_life_plan___4 + end_life_plan___5 + end_life_plan___6 > 0 then 1 
          else 0
       end as end_life_plan_any
     , client_anx_before
     , care_giver
     , provider1_affiliation
     , case when provider1_affiliation = '' then 0 else 1 end as provider1_affiliation_any
     , hospital_used
     , case when hospital_used = '' then 0 else 1 end as hospital_used_any
  from aag1
 where redcap_repeat_instrument = ''
/* aag1_client_all(record_id,town,status_profile,age,gender,admit_date,date_1st_contact,referred_by___1,referred_by___2,referred_by___3,referred_by___4,referred_by___5,referred_by___6,referred_by___7,referred_by___8,referred_by___9,referred_by_any,end_life_plan___2,end_life_plan_any,client_anx_before,care_giver,provider1_affiliation,provider1_affiliation_any,hospital_used,hospital_used_any) */;
CREATE VIEW aag1_encountered1 as
select record_id
     , redcap_data_access_group town
     , date_1st_contact as encounter_date
     , 1 as initial
  from aag1
 where redcap_repeat_instrument = ''
union all
select record_id
     , redcap_data_access_group town
     , today_date_v2 as encounter_date
     , 0 as initial
  from aag1
 where redcap_repeat_instrument = 'interval_contacts'
/* aag1_encountered1(record_id,town,encounter_date,initial) */;
CREATE VIEW aag1_encountered as
select record_id
     , town
     , encounter_date
     , initial
  from aag1_encountered1 e
  join aag_date_range d
 where e.encounter_date between d.first and d.last
 -- Picks up anyone with an encounter in the range.
/* aag1_encountered(record_id,town,encounter_date,initial) */;
CREATE VIEW aag1_client as
select *
  from aag1_client_all
 where record_id in(
         select record_id from aag1_encountered )
 -- For clients served, only show them if they had an encounter
 -- within the range.
/* aag1_client(record_id,town,status_profile,age,gender,admit_date,date_1st_contact,referred_by___1,referred_by___2,referred_by___3,referred_by___4,referred_by___5,referred_by___6,referred_by___7,referred_by___8,referred_by___9,referred_by_any,end_life_plan___2,end_life_plan_any,client_anx_before,care_giver,provider1_affiliation,provider1_affiliation_any,hospital_used,hospital_used_any) */;
CREATE VIEW aag1_client_age as
select record_id, age
  from aag1_client
 where age >= 1
-- Ignore low ages that likely resulted from the nurse entering today's
-- date into the birthday field.
/* aag1_client_age(record_id,age) */;
CREATE VIEW aag1_encounter_all as
select record_id
     , redcap_data_access_group town
     , date_1st_contact as encounter_date
     , 1 as initial
     , cast(meth_1st_contact as integer) as type
  from aag1
 where redcap_repeat_instrument = ''
union all
select record_id
     , redcap_data_access_group town
     , today_date_v2 as encounter_date
     , 0 as initial
     , 1 as type
  from aag1
 where redcap_repeat_instrument = 'interval_contacts'
   and cont_meth_v2___1 = 1
union all
select record_id
     , redcap_data_access_group town
     , today_date_v2 as encounter_date
     , 0 as initial
     , 2 as type
  from aag1
 where redcap_repeat_instrument = 'interval_contacts'
   and cont_meth_v2___2 = 1
union all
select record_id
     , redcap_data_access_group town
     , today_date_v2 as encounter_date
     , 0 as initial
     , 3 as type
  from aag1
 where redcap_repeat_instrument = 'interval_contacts'
   and cont_meth_v2___3 = 1
union all
select record_id
     , redcap_data_access_group town
     , today_date_v2 as encounter_date
     , 0 as initial
     , 4 as type
  from aag1
 where redcap_repeat_instrument = 'interval_contacts'
   and cont_meth_v2___4 = 1
union all
select record_id
     , redcap_data_access_group town
     , today_date_v2 as encounter_date
     , 0 as initial
     , 5 as type
  from aag1
 where redcap_repeat_instrument = 'interval_contacts'
   and cont_meth_v2___5 = 1
union all
select record_id
     , redcap_data_access_group town
     , today_date_v2 as encounter_date
     , 0 as initial
     , 6 as type
  from aag1
 where redcap_repeat_instrument = 'interval_contacts'
   and cont_meth_v2___6 = 1
union all
select record_id
     , redcap_data_access_group town
     , today_date_v2 as encounter_date
     , 0 as initial
     , 7 as type
  from aag1
 where redcap_repeat_instrument = 'interval_contacts'
   and cont_meth_v2___7 = 1
union all
select record_id
     , redcap_data_access_group town
     , today_date_v2 as encounter_date
     , 0 as initial
     , 8 as type
  from aag1
 where redcap_repeat_instrument = 'interval_contacts'
   and cont_meth_v2___8 = 1
union all
select record_id
     , redcap_data_access_group town
     , today_date_v2 as encounter_date
     , 0 as initial
     , 9 as type
  from aag1
 where redcap_repeat_instrument = 'interval_contacts'
   and cont_meth_v2___9 = 1
union all
select record_id
     , redcap_data_access_group town
     , today_date_v2 as encounter_date
     , 0 as initial
     , 10 as type
  from aag1
 where redcap_repeat_instrument = 'interval_contacts'
   and cont_meth_v2___1
        + cont_meth_v2___2
        + cont_meth_v2___3
        + cont_meth_v2___4
        + cont_meth_v2___5
        + cont_meth_v2___6
        + cont_meth_v2___7
        + cont_meth_v2___8
        + cont_meth_v2___9 = 0
/* aag1_encounter_all(record_id,town,encounter_date,initial,type) */;
CREATE VIEW aag1_encounter as
select record_id
     , town
     , encounter_date
     , initial
     , type
  from aag1_encounter_all e
  join aag_date_range d
 where e.encounter_date between d.first and d.last
/* aag1_encounter(record_id,town,encounter_date,initial,type) */;
CREATE VIEW month(number,name) as 
select 1,'January' union all
select 2,'February' union all
select 3,'March' union all
select 4,'April' union all
select 5,'May' union all
select 6,'June' union all
select 7,'July' union all
select 8,'August' union all
select 9,'September' union all
select 10,'October' union all
select 11,'November' union all
select 12,'December'
/* month(number,name) */;
CREATE VIEW aag1_dates as
select first
     , last
     , (julianday(last) - julianday(first))/7 as weeks
     , first_month.name first_month
     , strftime('%d',d.first) first_day
     , strftime('%Y',d.first) first_year     
     , last_month.name last_month
     , strftime('%d',d.last) last_day
     , strftime('%Y',d.last) last_year     
  from aag_date_range as d
  join month as first_month
    on first_month.number = cast(strftime('%m',d.first) as integer)
  join month as last_month
    on last_month.number = cast(strftime('%m',d.last) as integer)
/* aag1_dates("first","last",weeks,first_month,first_day,first_year,last_month,last_day,last_year) */;
CREATE VIEW aag1_problem1 as
select record_id
     , redcap_data_access_group town
     , cast(max(ed_visits___1,ed_visits___2) as integer) ed_visits
     , cast(max(incorrect_meds___1,incorrect_meds___2) as integer) incorrect_meds
     , cast(max(ineff_ther___1,ineff_ther___2) as integer) ineff_ther
     , cast(max(sympt_manag___1,sympt_manag___2) as integer) sympt_manag
     , cast(max(frailty___1,frailty___2) as integer) frailty
     , cast(max(impair_cog___1,impair_cog___2) as integer) impair_cog
     , cast(max(ment_heal___1,ment_heal___2) as integer) ment_heal
     , cast(max(self_care_prob_list___1,self_care_prob_list___2) as integer) self_care_prob_list
     , cast(max(imp_phys_mob___1,imp_phys_mob___2) as integer) imp_phys_mob
     , cast(max(fall___1,fall___2) as integer) fall
     , cast(max(stay_home___1,stay_home___2) as integer) stay_home
     , cast(max(prob_bills___1,prob_bills___2) as integer) prob_bills
     , cast(max(stress_trans___1,stress_trans___2) as integer) stress_trans
     , cast(max(incom_acp___1,incom_acp___2) as integer) incom_acp
     , cast(max(other_prob_list___1,other_prob_list___2) as integer) other_prob_list
     , cast(max(sdoh_iso___1,sdoh_iso___2) as integer) sdoh_iso
     , cast(max(nutr_poor___1,nutr_poor___2) as integer) nutr_poor
     , cast(max(hous_def___1,hous_def___2) as integer) hous_def
     , cast(max(sdoh_transp___1,sdoh_transp___2) as integer) sdoh_transp
     , cast(max(sdoh_finance___1,sdoh_finance___2) as integer) sdoh_finance
     , cast(max(sdoh_other_2___1,sdoh_other_2___2) as integer) sdoh_other_2
  from aag1
 where redcap_repeat_instrument = ''
   and record_id in(
         select record_id from aag1_encountered )
 -- For clients served, only show them if they had an encounter
 -- within the range.
/* aag1_problem1(record_id,town,ed_visits,incorrect_meds,ineff_ther,sympt_manag,frailty,impair_cog,ment_heal,self_care_prob_list,imp_phys_mob,fall,stay_home,prob_bills,stress_trans,incom_acp,other_prob_list,sdoh_iso,nutr_poor,hous_def,sdoh_transp,sdoh_finance,sdoh_other_2) */;
CREATE VIEW aag1_affiliation1 as
select 'DHMC' as label
     , '01' as provider1_affiliation --To use in sort_key
     , cast(round(portion*100./total) as integer) as percentage
  from (select sum(provider1_affiliation_any) as total
             , sum(case when provider1_affiliation = 1 then 1 else 0 end) as portion
          from aag1_client)
 where portion > 0
union all
select 'APD'
     , '02'
     , cast(round(portion*100./total) as integer)
  from (select sum(provider1_affiliation_any) as total
             , sum(case when provider1_affiliation = 2 then 1 else 0 end) as portion
          from aag1_client)
 where portion > 0
union all
select 'Mt. Ascutney'
     , '03'
     , cast(round(portion*100./total) as integer)
  from (select sum(provider1_affiliation_any) as total
             , sum(case when provider1_affiliation = 3 then 1 else 0 end) as portion
          from aag1_client)
 where portion > 0
union all
select 'Gifford Medical Center'
     , '04'
     , cast(round(portion*100./total) as integer)
  from (select sum(provider1_affiliation_any) as total
             , sum(case when provider1_affiliation = 4 then 1 else 0 end) as portion
          from aag1_client)
 where portion > 0
union all
select 'Valley Regional'
     , '05'
     , cast(round(portion*100./total) as integer)
  from (select sum(provider1_affiliation_any) as total
             , sum(case when provider1_affiliation = 5 then 1 else 0 end) as portion
          from aag1_client)
 where portion > 0
union all
select 'Cottage'
     , '06'
     , cast(round(portion*100./total) as integer)
  from (select sum(provider1_affiliation_any) as total
             , sum(case when provider1_affiliation = 6 then 1 else 0 end) as portion
          from aag1_client)
 where portion > 0
union all
select 'New London'
     , '07' 
     , cast(round(portion*100./total) as integer)
  from (select sum(provider1_affiliation_any) as total
             , sum(case when provider1_affiliation = 7 then 1 else 0 end) as portion
          from aag1_client)
 where portion > 0
union all
select 'Private or Community-based Practice'
     , '08' 
     , cast(round(portion*100./total) as integer)
  from (select sum(provider1_affiliation_any) as total
             , sum(case when provider1_affiliation = 8 then 1 else 0 end) as portion
          from aag1_client)
 where portion > 0
union all
select 'VA'
     , '09' 
     , cast(round(portion*100./total) as integer)
  from (select sum(provider1_affiliation_any) as total
             , sum(case when provider1_affiliation = 9 then 1 else 0 end) as portion
          from aag1_client)
 where portion > 0
union all
select 'Other'
     , '10' 
     , cast(round(portion*100./total) as integer)
  from (select sum(provider1_affiliation_any) as total
             , sum(case when provider1_affiliation = 10 then 1 else 0 end) as portion
          from aag1_client)
 where portion > 0
/* aag1_affiliation1(label,provider1_affiliation,percentage) */;
CREATE VIEW aag1_affiliation2 as
select (100 + percentage)||provider1_affiliation as sort_key
     , label
     , percentage
  from aag1_affiliation1
/* aag1_affiliation2(sort_key,label,percentage) */;
CREATE VIEW aag1_affiliation as
select ( select count(*) from aag1_affiliation2 where sort_key >= this.sort_key ) rank
     , percentage
     , label
  from aag1_affiliation2 this
-- This view is pretty slow to query.  If it gets too slow with more data,
-- it would probably help to use a temporary table for the output from 
-- aag1_affiliation2.
/* aag1_affiliation(rank,percentage,label) */;
CREATE VIEW aag1_hospital_used1 as
select 'DHMC' as label
     , '01' as hospital_used --Add to use in sort_key
     , cast(round(portion*100./total) as integer) as percentage
  from (select sum(hospital_used_any) as total
             , sum(case when hospital_used = 1 then 1 else 0 end) as portion
          from aag1_client)
 where portion > 0
union all          
select 'APD'
     , '02'
     , cast(round(portion*100./total) as integer)
  from (select sum(hospital_used_any) as total
             , sum(case when hospital_used = 2 then 1 else 0 end) as portion
          from aag1_client)
 where portion > 0
union all
select 'Mt. Ascutney'
     , '03'
     , cast(round(portion*100./total) as integer)
  from (select sum(hospital_used_any) as total
             , sum(case when hospital_used = 3 then 1 else 0 end) as portion
          from aag1_client)
 where portion > 0
union all
select 'Gifford Medical Center'
     , '04'
     , cast(round(portion*100./total) as integer)
  from (select sum(hospital_used_any) as total
             , sum(case when hospital_used = 4 then 1 else 0 end) as portion
          from aag1_client)
 where portion > 0
union all
select 'Valley Regional'
     , '05'
     , cast(round(portion*100./total) as integer)
  from (select sum(hospital_used_any) as total
             , sum(case when hospital_used = 5 then 1 else 0 end) as portion
          from aag1_client)
 where portion > 0
union all
select 'Cottage'
     , '06'
     , cast(round(portion*100./total) as integer)
  from (select sum(hospital_used_any) as total
             , sum(case when hospital_used = 6 then 1 else 0 end) as portion
          from aag1_client)
 where portion > 0
union all
select 'New London'
     , '07'
     , cast(round(portion*100./total) as integer)
  from (select sum(hospital_used_any) as total
             , sum(case when hospital_used = 7 then 1 else 0 end) as portion
          from aag1_client)
 where portion > 0
union all
select 'Other'
     , '08'
     , cast(round(portion*100./total) as integer)
  from (select sum(hospital_used_any) as total
             , sum(case when hospital_used = 8 then 1 else 0 end) as portion
          from aag1_client)
 where portion > 0
/* aag1_hospital_used1(label,hospital_used,percentage) */;
CREATE VIEW aag1_hospital_used2 as
select (100 + percentage)||hospital_used as sort_key
     , label
     , percentage
  from aag1_hospital_used1
/* aag1_hospital_used2(sort_key,label,percentage) */;
CREATE VIEW aag1_hospital_used as
select ( select count(*) from aag1_hospital_used2 where sort_key >= this.sort_key ) rank
     , percentage
     , label
  from aag1_hospital_used2 this
-- This view is pretty slow to query.  If it gets too slow with more data,
-- it would probably help to use a temporary table for the output from 
-- aag1_hospital_used2.
/* aag1_hospital_used(rank,percentage,label) */;
CREATE VIEW aag1_problem as
select aag1_problem1.*
     , ed_visits
     +   incorrect_meds
     +   ineff_ther
     +   sympt_manag
     +   frailty
     +   impair_cog
     +   ment_heal
     +   self_care_prob_list
     +   imp_phys_mob
     +   fall
     +   stay_home
     +   prob_bills
     +   stress_trans
     +   incom_acp
     +   other_prob_list
     +   sdoh_iso
     +   nutr_poor
     +   hous_def
     +   sdoh_transp
     +   sdoh_finance
     +   sdoh_other_2 problems
  from aag1_problem1
/* aag1_problem(record_id,town,ed_visits,incorrect_meds,ineff_ther,sympt_manag,frailty,impair_cog,ment_heal,self_care_prob_list,imp_phys_mob,fall,stay_home,prob_bills,stress_trans,incom_acp,other_prob_list,sdoh_iso,nutr_poor,hous_def,sdoh_transp,sdoh_finance,sdoh_other_2,problems) */;
CREATE VIEW aag1_has_problems as
select cast(count(*) as real) as it
  from aag1_problem
 where problems > 0
/* aag1_has_problems(it) */;
CREATE VIEW aag1_problem_percent1 as
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Frequent ED visits/EMS calls' label
  from aag1_problem
  join aag1_has_problems
 where ed_visits > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Not taking medications correctly' label
  from aag1_problem
  join aag1_has_problems
 where incorrect_meds > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Ineffective enactment of therapeutic recommendations' label
  from aag1_problem
  join aag1_has_problems
 where ineff_ther > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Symptom(s) not well controlled' label
  from aag1_problem
  join aag1_has_problems
 where sympt_manag > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Frailty' label
  from aag1_problem
  join aag1_has_problems
 where frailty > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Impaired cognitive functioning' label
  from aag1_problem
  join aag1_has_problems
 where impair_cog > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Mental Health or Substance Abuse Issue' label
  from aag1_problem
  join aag1_has_problems
 where ment_heal > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Self-care deficit in performing ADLs' label
  from aag1_problem
  join aag1_has_problems
 where self_care_prob_list > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Impaired Mobility' label
  from aag1_problem
  join aag1_has_problems
 where imp_phys_mob > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'High Fall Risk' label
  from aag1_problem
  join aag1_has_problems
 where fall > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Difficulty living at home' label
  from aag1_problem
  join aag1_has_problems
 where stay_home > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Problems with bills, insurance etc.' label
  from aag1_problem
  join aag1_has_problems
 where prob_bills > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Anticipated stressful transition to another level of care' label
  from aag1_problem
  join aag1_has_problems
 where stress_trans > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Incomplete end of life planning' label
  from aag1_problem
  join aag1_has_problems
 where incom_acp > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Other problems' label
  from aag1_problem
  join aag1_has_problems
 where other_prob_list > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Social isolation' label
  from aag1_problem
  join aag1_has_problems
 where sdoh_iso > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Poor Nutrition' label
  from aag1_problem
  join aag1_has_problems
 where nutr_poor > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Deficient Housing' label
  from aag1_problem
  join aag1_has_problems
 where hous_def > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Lack of Transportation' label
  from aag1_problem
  join aag1_has_problems
 where sdoh_transp > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Financial struggles' label
  from aag1_problem
  join aag1_has_problems
 where sdoh_finance > 0
union all
select cast(round(count(*)*100./aag1_has_problems.it) as integer) percentage
     , 'Other social' label
  from aag1_problem
  join aag1_has_problems
 where sdoh_other_2 > 0
/* aag1_problem_percent1(percentage,label) */;
CREATE VIEW aag1_problem_percent2 as
select (100 + percentage)||label as sort_key
     , percentage
     , label||substr('                    ',1,min(length(label),20-length(label))) as label
  from aag1_problem_percent1
 where percentage > 0
/* aag1_problem_percent2(sort_key,percentage,label) */;
CREATE VIEW aag1_problem_percent as
select ( select count(*) from aag1_problem_percent2 where sort_key >= this.sort_key ) rank
     , percentage
     , label
  from aag1_problem_percent2 this
-- This view is pretty slow to query.  If it gets too slow with more data,
-- it would probably help to use a temporary table for the output from 
-- aag1_problem_percent2.
/* aag1_problem_percent(rank,percentage,label) */;
CREATE VIEW aag1_encounter1 as
select *
  from aag1
  join aag_date_range d
    on today_date_v2 between d.first and d.last
 where redcap_repeat_instrument = 'interval_contacts'
 -- This version of encounters is one-to-one with
 -- interval_contacts, unlike the other one that adds 
 -- additional encounters if there is more than one type
 -- in one encounter
/* aag1_encounter1(record_id,redcap_repeat_instrument,redcap_repeat_instance,redcap_data_access_group,old_records_lyme,today,status_profile,first_name,last_name,preferred_name,consent_date,upload_form,gender,dob,age,date_1st_contact,meth_1st_contact,notes,referred_by___1,referred_by___2,referred_by___3,referred_by___4,referred_by___5,referred_by___6,referred_by___7,referred_by___8,referred_by___9,notes_1,informant,notes_50,end_life_plan___1,end_life_plan___2,end_life_plan___3,end_life_plan___4,end_life_plan___5,end_life_plan___6,notes_2,acp_location,client_answer,meds_client_before,cliebnt_home_before,client_anx_before,clients_daily_before,what_matters_patient,care_giver,who_cg,cg_func_before,cg_basicneeds_before,cg_conf_before,cg_fatig_before,cg_what_matters,client_profile_must_complete_form_complete,date_contact,address,phone,email,caregiver_info,number_providers,provider_1,provider1_affiliation,provider_2,provider2_affiliation,provider_3,provider3_affiliation,other_provider_info,hospital_used,contact_information_must_complete_form_complete,date_sc,address_v2,notes_52,phone_v2,notes_3,name_2nd_person,client_support_1,non_med_assist___1,non_med_assist___2,non_med_assist___3,non_med_assist___4,non_med_assist___5,non_med_assist___6,non_med_assist___8,non_med_assist___9,notes_4,healthcare_serv___1,healthcare_serv___2,healthcare_serv___3,healthcare_serv___4,healthcare_serv___5,healthcare_serv___6,healthcare_serv___7,healthcare_serv___8,notes_5,soc_lonl_1___1,soc_lonl_1___2,soc_lonl_1___3,soc_lonl_1___4,soc_lonl_1___5,soc_lonl_1___6,soc_lonl_1___7,notes_6,transp___1,transp___2,transp___3,transp___4,transp___5,transp___6,notes_53,finan_1,notes_54,fin_gues_1___1,fin_gues_1___2,fin_gues_1___3,fin_gues_1___4,fin_gues_1___5,notes_7,heal_ins___1,heal_ins___2,heal_ins___3,heal_ins___4,heal_ins___5,heal_ins___6,notes_8,ethn,notes_9,st_language,non_english,other_soc_issue,social_context_complete,date_fh,prob_list2___1,prob_list2___2,prob_list2___3,prob_list2___4,prob_list2___15,prob_list2___5,prob_list2___6,prob_list2___7,prob_list2___8,prob_list2___9,prob_list2___10,prob_list2___11,prob_list2___12,prob_list2___13,prob_list2___14,notes_10,func_lim_1,symp_mng_1___1,symp_mng_1___2,symp_mng_1___3,symp_mng_1___4,symp_mng_1___5,notes_11,polypharm,med_mng_1___1,med_mng_1___2,med_mng_1___3,med_mng_1___4,med_mng_1___5,med_mng_1___6,med_mng_1___7,med_mng_1___8,med_mng_1___9,med_mng_1___10,notes_12,frail_1_v3___1,frail_1_v3___2,frail_1_v3___3,frail_1_v3___4,frail_1_v3___5,frail_1_v3___6,frail_1_v3___7,frail_1_v3___9,notes_13,frai_phe_3,cog_stat_1___1,cog_stat_1___2,cog_stat_1___3,cog_stat_1___4,cog_stat_1___5,cog_stat_1___6,notes_14,mini_cog_score,safe_1___1,safe_1___3,safe_1___4,safe_1___5,safe_1___11,safe_1___6,safe_1___7,safe_1___9,safe_1___10,notes_15,env_risk___1,env_risk___2,env_risk___3,env_risk___4,env_risk___5,env_risk___6,env_risk___7,env_risk___8,env_risk___9,env_risk___10,env_risk___12,env_risk___11,notes_16,mob_1___1,mob_1___2,mob_1___3,mob_1___4,mob_1___5,mob_1___6,mob_1___7,mob_1___8,mob_1___9,mob_1___10,notes_17,tug_1,number_falls,notes_18,falls_reas___1,falls_reas___2,falls_reas___3,falls_reas___4,falls_reas___5,notes_19,fall_impact,notes_20,fall_risk,notes_21,lifeline,emo_stat___1,emo_stat___2,emo_stat___3,emo_stat___4,emo_stat___5,emo_stat___6,emo_stat___7,emo_stat___8,emo_stat___9,emo_stat___10,notes_22,alc_dru___1,alc_dru___2,alc_dru___3,alc_dru___4,alc_dru___5,alc_dru___6,alc_dru___7,alc_dru___8,alc_dru___9,notes_23,eld_abu___1,eld_abu___2,eld_abu___3,eld_abu___4,eld_abu___5,eld_abu___6,eld_abu___7,notes_55,nut_list___1,nut_list___2,nut_list___3,nut_list___4,nut_list___5,nut_list___6,nut_list___7,nut_list___8,nut_list___9,notes_24,height,weight,bmi,bmi_stat,notes_25,eli___1,eli___2,eli___3,eli___4,eli___5,notes_26,future_plan,notes_27,functional_health_complete,med_date_v2,ormore_meds,med_list_start_home,opload_option,current_med_list_1,current_med_list_2,current_med_list_3,medication_list_complete,na_problem_list,problem_list1_date_v2,ed_visits___1,ed_visits___2,ed_visits___3,ed_date_add,ed_manag_date,ed_date_res,incorrect_meds___1,incorrect_meds___2,incorrect_meds___3,incorrect_meds_added,inco_meds_manag_date,incorrect_med_res,ineff_ther___1,ineff_ther___2,ineff_ther___3,ineff_ther_add,ineff_ther_manag_date,ineffe_ther_res,sympt_manag___1,sympt_manag___2,sympt_manag___3,sympt_manag_add,sympt_manag_manag_date,sumpy_manag_res,frailty___1,frailty___2,frailty___3,frail_add,frailty_manag_date,frail_res,impair_cog___1,impair_cog___2,impair_cog___3,impair_cog_add,impair_cog_manag_date,impar_cog_res,ment_heal___1,ment_heal___2,ment_heal___3,ment_heal_add,ment_heal_manag_date,ment_heal_res,self_care_prob_list___1,self_care_prob_list___2,self_care_prob_list___3,self_care_added,self_care_manag_date,self_care_res,imp_phys_mob___1,imp_phys_mob___2,imp_phys_mob___3,imp_phys_mob_add,imp_phys_manag_date,imp_phy_mob_res,fall___1,fall___2,fall___3,fall_add,fall_manag_date,fall_res,stay_home___1,stay_home___2,stay_home___3,stay_home_add,stay_home_manag_date,stay_home_res,prob_bills___1,prob_bills___2,prob_bills___3,prob_bills_add,prob_bills_manag_date,prob_bills_res,stress_trans___1,stress_trans___2,stress_trans___3,stres_trans_add,stess_trans_manag_date,stress_trans_res,incom_acp___1,incom_acp___2,incom_acp___3,incom_acp_date_added,incom_acp_manag_date,incom_acp_date_reso,other_prob_list___1,other_prob_list___2,other_prob_list___3,other_prob_add,other_prob_manag_date,other_prob_res,sdoh_iso___1,sdoh_iso___2,sdoh_iso___3,soc_iso_2,soc_iso_manag_date,soc_iso_date_resol,nutr_poor___1,nutr_poor___2,nutr_poor___3,nutr_poor_date_add,nutr_poor_manag_date,nutr_poor_res_date,hous_def___1,hous_def___2,hous_def___3,hous_added,hous_manag_date,hous_res_date,sdoh_transp___1,sdoh_transp___2,sdoh_transp___3,trans_date_add,trans_manag_date,trans_date_resol,sdoh_finance___1,sdoh_finance___2,sdoh_finance___3,finance_date_add,finance_manag_date,finance_date_resol,sdoh_other_2___1,sdoh_other_2___2,sdoh_other_2___3,sdoh_other_date_add,sdoh_other_manag,other_sdh_date_resol,allerg,notes_56,med_diag_list_v2_v2_v2,goals_prob_cleint,cg_prob_goals,nurse_prob_goals,plan_of_care_problem_list_complete,date_int,ini_int_date,contact_pcp_v2,pcp_for_v2_v2___1,pcp_for_v2_v2___2,pcp_for_v2_v2___3,pcp_for_v2_v2___4,pcp_for_v2_v2___5,pcp_for_v2_v2___6,notes_28,spec_care_v2,ref_v2,med_interv_v2___1,med_interv_v2___2,med_interv_v2___3,med_interv_v2___4,med_interv_v2___5,notes_29,sympt_interv_v2___1,sympt_interv_v2___2,sympt_interv_v2___3,sympt_interv_v2___4,sympt_interv_v2___5,sympt_interv_v2___6,notes_30,mob_interv_v2___1,mob_interv_v2___2,mob_interv_v2___3,mob_interv_v2___4,mob_interv_v2___5,mob_interv_v2___6,notes_31,cg_fam_interv_v2___1,cg_fam_interv_v2___2,cg_fam_interv_v2___3,cg_fam_interv_v2___4,cg_fam_interv_v2___5,notes_32,house_fina_food_interv_v2___1,house_fina_food_interv_v2___2,house_fina_food_interv_v2___3,house_fina_food_interv_v2___4,house_fina_food_interv_v2___5,house_fina_food_interv_v2___6,house_fina_food_interv_v2___7,house_fina_food_interv_v2___8,house_fina_food_interv_v2___9,notes_33,other_interv_notabove,fu_list_v2___1,fu_list_v2___2,fu_list_v2___3,fu_list_v2___4,notes_34,plan_of_care_initial_interventions_complete,today_date_v2,cont_meth_v2___1,cont_meth_v2___2,cont_meth_v2___3,cont_meth_v2___4,cont_meth_v2___5,cont_meth_v2___6,cont_meth_v2___7,cont_meth_v2___8,cont_meth_v2___9,cont_meth_v2___10,notes_57,cont_asses,concerns1_v2___1,concerns1_v2___2,concerns1_v2___3,concerns1_v2___4,concerns1_v2___5,concerns1_v2___6,notes_35,list_issues,phys_cond_nursescale,emot_stat_nursescale,cog_stat_nursescale,notes_48,fall_sincelast,hospit_since_last,care_plan_update,update_plan___1,update_plan___2,update_plan___3,update_plan___4,contact_pcp,pcp_for_v2___1,pcp_for_v2___2,pcp_for_v2___3,pcp_for_v2___4,pcp_for_v2___5,pcp_for_v2___6,notes_36,spec_care,ref,med_interv___1,med_interv___2,med_interv___3,med_interv___4,med_interv___5,med_interv___6,notes_37,sympt_interv___1,sympt_interv___2,sympt_interv___3,sympt_interv___4,sympt_interv___5,sympt_interv___6,notes_38,mob_interv___1,mob_interv___2,mob_interv___3,mob_interv___4,mob_interv___5,mob_interv___6,notes_39,cg_fam_interv___1,cg_fam_interv___2,cg_fam_interv___3,cg_fam_interv___4,cg_fam_interv___5,notes_40,house_fina_food_interv___1,house_fina_food_interv___2,house_fina_food_interv___3,house_fina_food_interv___4,house_fina_food_interv___5,house_fina_food_interv___6,house_fina_food_interv___7,house_fina_food_interv___8,house_fina_food_interv___9,notes_41,other_interv_not_listed,fu_list___1,fu_list___2,fu_list___3,fu_list___4,notes_42,interval_contacts_complete,date_sixmonth,client_answer_v2,meds_client_before_v2,cliebnt_home_before_v2,client_anx_before_v2,clients_daily_before_v2,what_matters_patient_v2,care_giver_v2,who_care_v2,cg_func_before_v2,cg_basic_before_v2,cg_conf_before_v2,cg_fatig_before_v2,cg_what_matters_v2,phys_con_6_month,emot_6_mont,cog_6_mont,notes_47,nurse_out_6_mont___1,nurse_out_6_mont___2,nurse_out_6_mont___3,nurse_out_6_mont___4,nurse_out_6_mont___5,nurse_out_6_mont___6,nurse_out_6_mont___7,nurse_out_6_mont___8,nurse_out_6_mont___9,notes_43,fu_6month___1,fu_6month___2,fu_6month___3,fu_6month___4,notes_44,month_report_complete,date_today_dis,reason_disch,notes_45,disc_status,phys,emotion,cog_stat,notes_49,nurse_report_all___1,nurse_report_all___2,nurse_report_all___3,nurse_report_all___4,nurse_report_all___5,nurse_report_all___6,nurse_report_all___7,notes_46,client_status_2,clien_outcome_dis,client_out2_dis,client_outc3_dis,clie_outc4_dis,most_impo_client,cg_status_2,cg_out1_dis,cg_out2_dis,cg_out3_dis,cg_outc4_dis,cg_con_most,discharge_report_complete,town,"first","last") */;
CREATE VIEW aag1_intervene1 as
select record_id
     , redcap_data_access_group town
     , redcap_repeat_instance
     , cast(max(pcp_for_v2___1,
                pcp_for_v2___2,
                pcp_for_v2___3,
                pcp_for_v2___4,
                pcp_for_v2___5,
                pcp_for_v2___6) as integer) as pcp_for_v2
     , cast(max(med_interv___1,
                med_interv___2,
                med_interv___3,
                med_interv___4,
                med_interv___5,
                med_interv___6) as integer) as med_interv
     , cast(max(sympt_interv___1,
                sympt_interv___2,
                sympt_interv___3,
                sympt_interv___4,
                sympt_interv___5,
                sympt_interv___6) as integer) as sympt_interv
     , cast(max(mob_interv___1,
                mob_interv___2,
                mob_interv___3,
                mob_interv___4,
                mob_interv___5,
                mob_interv___6) as integer) as mob_interv
     , cast(max(cg_fam_interv___1,
                cg_fam_interv___2,
                cg_fam_interv___3,
                cg_fam_interv___4,
                cg_fam_interv___5) as integer) as cg_fam_interv
     , cast(max(house_fina_food_interv___1,
                house_fina_food_interv___2,
                house_fina_food_interv___3,
                house_fina_food_interv___4,
                house_fina_food_interv___5,
                house_fina_food_interv___6,
                house_fina_food_interv___7,
                house_fina_food_interv___8,
                house_fina_food_interv___9) as integer) as house_fina_food_interv
  from aag1_encounter1
/* aag1_intervene1(record_id,town,redcap_repeat_instance,pcp_for_v2,med_interv,sympt_interv,mob_interv,cg_fam_interv,house_fina_food_interv) */;
CREATE VIEW aag1_intervene_all as
select record_id
     , town
     , redcap_repeat_instance
     , pcp_for_v2 + med_interv + sympt_interv + mob_interv + 
            cg_fam_interv + house_fina_food_interv as interv_sum
     , pcp_for_v2 || med_interv || sympt_interv || mob_interv || 
            cg_fam_interv || house_fina_food_interv as interv
  from aag1_intervene1
/* aag1_intervene_all(record_id,town,redcap_repeat_instance,interv_sum,interv) */;
CREATE VIEW aag1_intervene2 as
select 'pcp_for_v2' name, sum(case when pcp_for_v2 > 0 then 1 else 0 end) value, count(*) total
  from aag1_intervene1
union all
select 'med_interv', sum(case when med_interv> 0 then 1 else 0 end), count(*)
  from aag1_intervene1
union all
select 'sympt_interv', sum(case when sympt_interv > 0 then 1 else 0 end), count(*)
  from aag1_intervene1
union all
select 'mob_interv', sum(case when mob_interv > 0 then 1 else 0 end), count(*)
  from aag1_intervene1
union all
select 'cg_fam_interv', sum(case when cg_fam_interv > 0 then 1 else 0 end), count(*)
  from aag1_intervene1
union all
select 'house_fina_food_interv', sum(case when house_fina_food_interv > 0 then 1 else 0 end), count(*)
  from aag1_intervene1
/* aag1_intervene2(name,value,total) */;
CREATE VIEW aag1_intervene_label as
select 'pcp_for_v2' name,'Care coordination & clarification with providers' label union all
select 'med_interv','Medication reconciliation, education and management coaching' union all
select 'sympt_interv','Symptom management - assessment & education' union all
select 'mob_interv','Address ADLs & mobility-related support' union all
select 'cg_fam_interv','Family and caregiver support' union all
select 'house_fina_food_interv','Address other support services'
/* aag1_intervene_label(name,label) */;
CREATE VIEW aag1_intervene3 as
select name
     , value
     , cast(round(value*100./total) as integer) percentage
     , label
  from aag1_intervene2
  join aag1_intervene_label
 using (name)
/* aag1_intervene3(name,value,percentage,label) */;
CREATE VIEW aag1_intervene4 as
select name
     , value
     , percentage
     , label
     , (100 + percentage)||name as sort_key
  from aag1_intervene3
/* aag1_intervene4(name,value,percentage,label,sort_key) */;
CREATE VIEW aag1_intervene5 as
select ( select count(*) from aag1_intervene4 where sort_key >= this.sort_key ) rank
     , name
     , value
     , percentage
     , label
  from aag1_intervene4 this
/* aag1_intervene5(rank,name,value,percentage,label) */;
CREATE VIEW aag1_intervene_sub1 as
select 'pcp_for_v2' name, 1 i, count(*) value, 'For Symptom Management' label from aag1_encounter1 where pcp_for_v2___1=1 union all
select 'pcp_for_v2', 2, count(*), 'To be seen' from aag1_encounter1 where pcp_for_v2___2=1 union all
select 'pcp_for_v2', 3, count(*), 'Medication or care clarification' from aag1_encounter1 where pcp_for_v2___3=1 union all
select 'pcp_for_v2', 4, count(*), 'Worsening condition' from aag1_encounter1 where pcp_for_v2___4=1 union all
select 'pcp_for_v2', 5, count(*), 'Discuss referral to VNA, Hospice,  PT' from aag1_encounter1 where pcp_for_v2___5=1 union all
select 'pcp_for_v2', 6, count(*), 'Other' from aag1_encounter1 where pcp_for_v2___6=1 union all
select 'med_interv', 1, count(*), 'Educate re medications and how to take them' from aag1_encounter1 where med_interv___1=1 union all
select 'med_interv', 2, count(*), 'Fill pill box(es)' from aag1_encounter1 where med_interv___2=1 union all
select 'med_interv', 3, count(*), 'Help to obtain medications' from aag1_encounter1 where med_interv___3=1 union all
select 'med_interv', 4, count(*), 'Monitor medication adherence' from aag1_encounter1 where med_interv___4=1 union all
select 'med_interv', 5, count(*), 'Change in medications' from aag1_encounter1 where med_interv___5=1 union all
select 'med_interv', 6, count(*), 'Other' from aag1_encounter1 where med_interv___6=1 union all
select 'sympt_interv', 1, count(*), 'Teach re symptom management and monitor symptoms over time' from aag1_encounter1 where sympt_interv___1=1 union all
select 'sympt_interv', 2, count(*), 'Reassure client and make recommendations re anxiety, depression, sleep, and mental health concerns' from aag1_encounter1 where sympt_interv___2=1 union all
select 'sympt_interv', 3, count(*), 'Instruct and reassure re: what to do if s/he needs emergency help' from aag1_encounter1 where sympt_interv___3=1 union all
select 'sympt_interv', 4, count(*), 'Give/ recommend and discuss educational materials re: health maintenance, medical conditions, and related resources' from aag1_encounter1 where sympt_interv___4=1 union all
select 'sympt_interv', 5, count(*), 'Monitor BP, heart rate, SOB, weight, blood sugar level, pulse, oxygen, hydration' from aag1_encounter1 where sympt_interv___5=1 union all
select 'sympt_interv', 6, count(*), 'Other' from aag1_encounter1 where sympt_interv___6=1 union all
select 'mob_interv', 1, count(*), 'Teach client self-care r/t incontinence, bowel problems, dressing and hygiene' from aag1_encounter1 where mob_interv___1=1 union all
select 'mob_interv', 2, count(*), 'Teach and make recommendations re: mobility, activity, and/or exercise' from aag1_encounter1 where mob_interv___2=1 union all
select 'mob_interv', 3, count(*), 'Obtain durable medical equipment and instruct on usage' from aag1_encounter1 where mob_interv___3=1 union all
select 'mob_interv', 4, count(*), 'Make recommendations to reduce fall risk' from aag1_encounter1 where mob_interv___4=1 union all
select 'mob_interv', 5, count(*), 'Point out and make suggestions re: environmental safety risks' from aag1_encounter1 where mob_interv___5=1 union all
select 'mob_interv', 6, count(*), 'Other' from aag1_encounter1 where mob_interv___6=1 union all
select 'cg_fam_interv', 1, count(*), 'Support family/care giver(s) with family member who is frail or has a cognitive deficit' from aag1_encounter1 where cg_fam_interv___1=1 union all
select 'cg_fam_interv', 2, count(*), 'Facilitate family dialogue re caregiving decisions & strategies' from aag1_encounter1 where cg_fam_interv___2=1 union all
select 'cg_fam_interv', 3, count(*), 'Discuss and plan respite for care giver' from aag1_encounter1 where cg_fam_interv___3=1 union all
select 'cg_fam_interv', 4, count(*), 'Coordinate a care setting transition' from aag1_encounter1 where cg_fam_interv___4=1 union all
select 'cg_fam_interv', 5, count(*), 'Other' from aag1_encounter1 where cg_fam_interv___5=1 union all
select 'house_fina_food_interv', 1, count(*), 'Discuss options for getting help with household tasks (shopping, cleaning, food prep, house repairs)' from aag1_encounter1 where house_fina_food_interv___1=1 union all
select 'house_fina_food_interv', 2, count(*), 'Suggest or arrange socialization opportunities' from aag1_encounter1 where house_fina_food_interv___2=1 union all
select 'house_fina_food_interv', 3, count(*), 'Identify resources for help with transportation' from aag1_encounter1 where house_fina_food_interv___3=1 union all
select 'house_fina_food_interv', 4, count(*), 'Address food insecurity' from aag1_encounter1 where house_fina_food_interv___4=1 union all
select 'house_fina_food_interv', 5, count(*), 'Address housing inadequacy' from aag1_encounter1 where house_fina_food_interv___5=1 union all
select 'house_fina_food_interv', 6, count(*), 'Facilitate getting help for finances, legal documents, taxes' from aag1_encounter1 where house_fina_food_interv___6=1 union all
select 'house_fina_food_interv', 7, count(*), 'Initiate advance planning discussions and document completion' from aag1_encounter1 where house_fina_food_interv___7=1 union all
select 'house_fina_food_interv', 8, count(*), 'Advise re immunizations' from aag1_encounter1 where house_fina_food_interv___8=1 union all
select 'house_fina_food_interv', 9, count(*), 'Other' from aag1_encounter1 where house_fina_food_interv___9=1
/* aag1_intervene_sub1(name,i,value,label) */;
CREATE VIEW aag1_intervene_sub2 as
select name, sub1.i, sub1.value, sub1.label
     , cast(round(100.*sub1.value/a.value) as integer) percentage
  from aag1_intervene_sub1 sub1
  join aag1_intervene2 a
 using (name)
/* aag1_intervene_sub2(name,i,value,label,percentage) */;
CREATE VIEW aag1_social_context as
select record_id
     , max(redcap_repeat_instance)
     , address_v2
  from aag1
  join aag_date_range d
    on date_sc <= d.last
    or date_sc = ''
 where redcap_repeat_instrument = 'social_context'
   and record_id in(select record_id from aag1_encountered)
 group by record_id
 -- The date should be required, but it is not.
 -- We attempt to exclude recently entered records, and
 -- we only look at clients who are included.
 -- Uses a SQLite trick to get address_v2 for max repeat instance.
/* aag1_social_context(record_id,"max(redcap_repeat_instance)",address_v2) */;
CREATE VIEW aag1_discharge as
select *
  from aag1
  join aag_date_range d
    on coalesce(date_today_dis,d.last) between d.first and d.last
    or date_today_dis = ''
 where redcap_repeat_instrument = 'discharge_report'
   and record_id in(select record_id from aag1_encountered)
 -- The date should be required, but it is not.
/* aag1_discharge(record_id,redcap_repeat_instrument,redcap_repeat_instance,redcap_data_access_group,old_records_lyme,today,status_profile,first_name,last_name,preferred_name,consent_date,upload_form,gender,dob,age,date_1st_contact,meth_1st_contact,notes,referred_by___1,referred_by___2,referred_by___3,referred_by___4,referred_by___5,referred_by___6,referred_by___7,referred_by___8,referred_by___9,notes_1,informant,notes_50,end_life_plan___1,end_life_plan___2,end_life_plan___3,end_life_plan___4,end_life_plan___5,end_life_plan___6,notes_2,acp_location,client_answer,meds_client_before,cliebnt_home_before,client_anx_before,clients_daily_before,what_matters_patient,care_giver,who_cg,cg_func_before,cg_basicneeds_before,cg_conf_before,cg_fatig_before,cg_what_matters,client_profile_must_complete_form_complete,date_contact,address,phone,email,caregiver_info,number_providers,provider_1,provider1_affiliation,provider_2,provider2_affiliation,provider_3,provider3_affiliation,other_provider_info,hospital_used,contact_information_must_complete_form_complete,date_sc,address_v2,notes_52,phone_v2,notes_3,name_2nd_person,client_support_1,non_med_assist___1,non_med_assist___2,non_med_assist___3,non_med_assist___4,non_med_assist___5,non_med_assist___6,non_med_assist___8,non_med_assist___9,notes_4,healthcare_serv___1,healthcare_serv___2,healthcare_serv___3,healthcare_serv___4,healthcare_serv___5,healthcare_serv___6,healthcare_serv___7,healthcare_serv___8,notes_5,soc_lonl_1___1,soc_lonl_1___2,soc_lonl_1___3,soc_lonl_1___4,soc_lonl_1___5,soc_lonl_1___6,soc_lonl_1___7,notes_6,transp___1,transp___2,transp___3,transp___4,transp___5,transp___6,notes_53,finan_1,notes_54,fin_gues_1___1,fin_gues_1___2,fin_gues_1___3,fin_gues_1___4,fin_gues_1___5,notes_7,heal_ins___1,heal_ins___2,heal_ins___3,heal_ins___4,heal_ins___5,heal_ins___6,notes_8,ethn,notes_9,st_language,non_english,other_soc_issue,social_context_complete,date_fh,prob_list2___1,prob_list2___2,prob_list2___3,prob_list2___4,prob_list2___15,prob_list2___5,prob_list2___6,prob_list2___7,prob_list2___8,prob_list2___9,prob_list2___10,prob_list2___11,prob_list2___12,prob_list2___13,prob_list2___14,notes_10,func_lim_1,symp_mng_1___1,symp_mng_1___2,symp_mng_1___3,symp_mng_1___4,symp_mng_1___5,notes_11,polypharm,med_mng_1___1,med_mng_1___2,med_mng_1___3,med_mng_1___4,med_mng_1___5,med_mng_1___6,med_mng_1___7,med_mng_1___8,med_mng_1___9,med_mng_1___10,notes_12,frail_1_v3___1,frail_1_v3___2,frail_1_v3___3,frail_1_v3___4,frail_1_v3___5,frail_1_v3___6,frail_1_v3___7,frail_1_v3___9,notes_13,frai_phe_3,cog_stat_1___1,cog_stat_1___2,cog_stat_1___3,cog_stat_1___4,cog_stat_1___5,cog_stat_1___6,notes_14,mini_cog_score,safe_1___1,safe_1___3,safe_1___4,safe_1___5,safe_1___11,safe_1___6,safe_1___7,safe_1___9,safe_1___10,notes_15,env_risk___1,env_risk___2,env_risk___3,env_risk___4,env_risk___5,env_risk___6,env_risk___7,env_risk___8,env_risk___9,env_risk___10,env_risk___12,env_risk___11,notes_16,mob_1___1,mob_1___2,mob_1___3,mob_1___4,mob_1___5,mob_1___6,mob_1___7,mob_1___8,mob_1___9,mob_1___10,notes_17,tug_1,number_falls,notes_18,falls_reas___1,falls_reas___2,falls_reas___3,falls_reas___4,falls_reas___5,notes_19,fall_impact,notes_20,fall_risk,notes_21,lifeline,emo_stat___1,emo_stat___2,emo_stat___3,emo_stat___4,emo_stat___5,emo_stat___6,emo_stat___7,emo_stat___8,emo_stat___9,emo_stat___10,notes_22,alc_dru___1,alc_dru___2,alc_dru___3,alc_dru___4,alc_dru___5,alc_dru___6,alc_dru___7,alc_dru___8,alc_dru___9,notes_23,eld_abu___1,eld_abu___2,eld_abu___3,eld_abu___4,eld_abu___5,eld_abu___6,eld_abu___7,notes_55,nut_list___1,nut_list___2,nut_list___3,nut_list___4,nut_list___5,nut_list___6,nut_list___7,nut_list___8,nut_list___9,notes_24,height,weight,bmi,bmi_stat,notes_25,eli___1,eli___2,eli___3,eli___4,eli___5,notes_26,future_plan,notes_27,functional_health_complete,med_date_v2,ormore_meds,med_list_start_home,opload_option,current_med_list_1,current_med_list_2,current_med_list_3,medication_list_complete,na_problem_list,problem_list1_date_v2,ed_visits___1,ed_visits___2,ed_visits___3,ed_date_add,ed_manag_date,ed_date_res,incorrect_meds___1,incorrect_meds___2,incorrect_meds___3,incorrect_meds_added,inco_meds_manag_date,incorrect_med_res,ineff_ther___1,ineff_ther___2,ineff_ther___3,ineff_ther_add,ineff_ther_manag_date,ineffe_ther_res,sympt_manag___1,sympt_manag___2,sympt_manag___3,sympt_manag_add,sympt_manag_manag_date,sumpy_manag_res,frailty___1,frailty___2,frailty___3,frail_add,frailty_manag_date,frail_res,impair_cog___1,impair_cog___2,impair_cog___3,impair_cog_add,impair_cog_manag_date,impar_cog_res,ment_heal___1,ment_heal___2,ment_heal___3,ment_heal_add,ment_heal_manag_date,ment_heal_res,self_care_prob_list___1,self_care_prob_list___2,self_care_prob_list___3,self_care_added,self_care_manag_date,self_care_res,imp_phys_mob___1,imp_phys_mob___2,imp_phys_mob___3,imp_phys_mob_add,imp_phys_manag_date,imp_phy_mob_res,fall___1,fall___2,fall___3,fall_add,fall_manag_date,fall_res,stay_home___1,stay_home___2,stay_home___3,stay_home_add,stay_home_manag_date,stay_home_res,prob_bills___1,prob_bills___2,prob_bills___3,prob_bills_add,prob_bills_manag_date,prob_bills_res,stress_trans___1,stress_trans___2,stress_trans___3,stres_trans_add,stess_trans_manag_date,stress_trans_res,incom_acp___1,incom_acp___2,incom_acp___3,incom_acp_date_added,incom_acp_manag_date,incom_acp_date_reso,other_prob_list___1,other_prob_list___2,other_prob_list___3,other_prob_add,other_prob_manag_date,other_prob_res,sdoh_iso___1,sdoh_iso___2,sdoh_iso___3,soc_iso_2,soc_iso_manag_date,soc_iso_date_resol,nutr_poor___1,nutr_poor___2,nutr_poor___3,nutr_poor_date_add,nutr_poor_manag_date,nutr_poor_res_date,hous_def___1,hous_def___2,hous_def___3,hous_added,hous_manag_date,hous_res_date,sdoh_transp___1,sdoh_transp___2,sdoh_transp___3,trans_date_add,trans_manag_date,trans_date_resol,sdoh_finance___1,sdoh_finance___2,sdoh_finance___3,finance_date_add,finance_manag_date,finance_date_resol,sdoh_other_2___1,sdoh_other_2___2,sdoh_other_2___3,sdoh_other_date_add,sdoh_other_manag,other_sdh_date_resol,allerg,notes_56,med_diag_list_v2_v2_v2,goals_prob_cleint,cg_prob_goals,nurse_prob_goals,plan_of_care_problem_list_complete,date_int,ini_int_date,contact_pcp_v2,pcp_for_v2_v2___1,pcp_for_v2_v2___2,pcp_for_v2_v2___3,pcp_for_v2_v2___4,pcp_for_v2_v2___5,pcp_for_v2_v2___6,notes_28,spec_care_v2,ref_v2,med_interv_v2___1,med_interv_v2___2,med_interv_v2___3,med_interv_v2___4,med_interv_v2___5,notes_29,sympt_interv_v2___1,sympt_interv_v2___2,sympt_interv_v2___3,sympt_interv_v2___4,sympt_interv_v2___5,sympt_interv_v2___6,notes_30,mob_interv_v2___1,mob_interv_v2___2,mob_interv_v2___3,mob_interv_v2___4,mob_interv_v2___5,mob_interv_v2___6,notes_31,cg_fam_interv_v2___1,cg_fam_interv_v2___2,cg_fam_interv_v2___3,cg_fam_interv_v2___4,cg_fam_interv_v2___5,notes_32,house_fina_food_interv_v2___1,house_fina_food_interv_v2___2,house_fina_food_interv_v2___3,house_fina_food_interv_v2___4,house_fina_food_interv_v2___5,house_fina_food_interv_v2___6,house_fina_food_interv_v2___7,house_fina_food_interv_v2___8,house_fina_food_interv_v2___9,notes_33,other_interv_notabove,fu_list_v2___1,fu_list_v2___2,fu_list_v2___3,fu_list_v2___4,notes_34,plan_of_care_initial_interventions_complete,today_date_v2,cont_meth_v2___1,cont_meth_v2___2,cont_meth_v2___3,cont_meth_v2___4,cont_meth_v2___5,cont_meth_v2___6,cont_meth_v2___7,cont_meth_v2___8,cont_meth_v2___9,cont_meth_v2___10,notes_57,cont_asses,concerns1_v2___1,concerns1_v2___2,concerns1_v2___3,concerns1_v2___4,concerns1_v2___5,concerns1_v2___6,notes_35,list_issues,phys_cond_nursescale,emot_stat_nursescale,cog_stat_nursescale,notes_48,fall_sincelast,hospit_since_last,care_plan_update,update_plan___1,update_plan___2,update_plan___3,update_plan___4,contact_pcp,pcp_for_v2___1,pcp_for_v2___2,pcp_for_v2___3,pcp_for_v2___4,pcp_for_v2___5,pcp_for_v2___6,notes_36,spec_care,ref,med_interv___1,med_interv___2,med_interv___3,med_interv___4,med_interv___5,med_interv___6,notes_37,sympt_interv___1,sympt_interv___2,sympt_interv___3,sympt_interv___4,sympt_interv___5,sympt_interv___6,notes_38,mob_interv___1,mob_interv___2,mob_interv___3,mob_interv___4,mob_interv___5,mob_interv___6,notes_39,cg_fam_interv___1,cg_fam_interv___2,cg_fam_interv___3,cg_fam_interv___4,cg_fam_interv___5,notes_40,house_fina_food_interv___1,house_fina_food_interv___2,house_fina_food_interv___3,house_fina_food_interv___4,house_fina_food_interv___5,house_fina_food_interv___6,house_fina_food_interv___7,house_fina_food_interv___8,house_fina_food_interv___9,notes_41,other_interv_not_listed,fu_list___1,fu_list___2,fu_list___3,fu_list___4,notes_42,interval_contacts_complete,date_sixmonth,client_answer_v2,meds_client_before_v2,cliebnt_home_before_v2,client_anx_before_v2,clients_daily_before_v2,what_matters_patient_v2,care_giver_v2,who_care_v2,cg_func_before_v2,cg_basic_before_v2,cg_conf_before_v2,cg_fatig_before_v2,cg_what_matters_v2,phys_con_6_month,emot_6_mont,cog_6_mont,notes_47,nurse_out_6_mont___1,nurse_out_6_mont___2,nurse_out_6_mont___3,nurse_out_6_mont___4,nurse_out_6_mont___5,nurse_out_6_mont___6,nurse_out_6_mont___7,nurse_out_6_mont___8,nurse_out_6_mont___9,notes_43,fu_6month___1,fu_6month___2,fu_6month___3,fu_6month___4,notes_44,month_report_complete,date_today_dis,reason_disch,notes_45,disc_status,phys,emotion,cog_stat,notes_49,nurse_report_all___1,nurse_report_all___2,nurse_report_all___3,nurse_report_all___4,nurse_report_all___5,nurse_report_all___6,nurse_report_all___7,notes_46,client_status_2,clien_outcome_dis,client_out2_dis,client_outc3_dis,clie_outc4_dis,most_impo_client,cg_status_2,cg_out1_dis,cg_out2_dis,cg_out3_dis,cg_outc4_dis,cg_con_most,discharge_report_complete,town,"first","last") */;
CREATE VIEW aag1_discharge_reason1 as
select 'Services no longer needed' label
     , cast(round(sum(case when reason_disch=1 then 1 else 0 end)*100./count(*)) as integer) percentage
  from aag1_discharge
union all
select 'Services not wanted' label
     , cast(round(sum(case when reason_disch=2 then 1 else 0 end)*100./count(*)) as integer)
  from aag1_discharge
union all
select 'Death' label
     , cast(round(sum(case when reason_disch=3 then 1 else 0 end)*100./count(*)) as integer)
  from aag1_discharge
union all
select 'Moved away from Service Area' label
     , cast(round(sum(case when reason_disch=4 then 1 else 0 end)*100./count(*)) as integer)
  from aag1_discharge
union all
select 'Other' label
     , cast(round(sum(case when reason_disch=5 then 1 else 0 end)*100./count(*)) as integer)
  from aag1_discharge
union all
select 'Not recorded' label
     , cast(round(sum(case when reason_disch in(1,2,3,4,5) then 0 else 1 end)*100./count(*)) as integer)
  from aag1_discharge
/* aag1_discharge_reason1(label,percentage) */;
CREATE VIEW aag1_discharge_reason2 as
select (100+percentage)||label sort_key
     , label
     , percentage
  from aag1_discharge_reason1
 where percentage > 0
/* aag1_discharge_reason2(sort_key,label,percentage) */;
CREATE VIEW aag1_discharge_reason as
select ( select count(*) from aag1_discharge_reason2 where sort_key >= this.sort_key ) rank
     , label
     , percentage
  from aag1_discharge_reason2 this
/* aag1_discharge_reason(rank,label,percentage) */;
CREATE VIEW aag1_6month as
select *
  from aag1
  join aag_date_range d
    on coalesce(date_sixmonth,d.last) between d.first and d.last
    or date_sixmonth = ''
 where redcap_repeat_instrument = 'month_report'
   and record_id in(select record_id from aag1_encountered)
/* aag1_6month(record_id,redcap_repeat_instrument,redcap_repeat_instance,redcap_data_access_group,old_records_lyme,today,status_profile,first_name,last_name,preferred_name,consent_date,upload_form,gender,dob,age,date_1st_contact,meth_1st_contact,notes,referred_by___1,referred_by___2,referred_by___3,referred_by___4,referred_by___5,referred_by___6,referred_by___7,referred_by___8,referred_by___9,notes_1,informant,notes_50,end_life_plan___1,end_life_plan___2,end_life_plan___3,end_life_plan___4,end_life_plan___5,end_life_plan___6,notes_2,acp_location,client_answer,meds_client_before,cliebnt_home_before,client_anx_before,clients_daily_before,what_matters_patient,care_giver,who_cg,cg_func_before,cg_basicneeds_before,cg_conf_before,cg_fatig_before,cg_what_matters,client_profile_must_complete_form_complete,date_contact,address,phone,email,caregiver_info,number_providers,provider_1,provider1_affiliation,provider_2,provider2_affiliation,provider_3,provider3_affiliation,other_provider_info,hospital_used,contact_information_must_complete_form_complete,date_sc,address_v2,notes_52,phone_v2,notes_3,name_2nd_person,client_support_1,non_med_assist___1,non_med_assist___2,non_med_assist___3,non_med_assist___4,non_med_assist___5,non_med_assist___6,non_med_assist___8,non_med_assist___9,notes_4,healthcare_serv___1,healthcare_serv___2,healthcare_serv___3,healthcare_serv___4,healthcare_serv___5,healthcare_serv___6,healthcare_serv___7,healthcare_serv___8,notes_5,soc_lonl_1___1,soc_lonl_1___2,soc_lonl_1___3,soc_lonl_1___4,soc_lonl_1___5,soc_lonl_1___6,soc_lonl_1___7,notes_6,transp___1,transp___2,transp___3,transp___4,transp___5,transp___6,notes_53,finan_1,notes_54,fin_gues_1___1,fin_gues_1___2,fin_gues_1___3,fin_gues_1___4,fin_gues_1___5,notes_7,heal_ins___1,heal_ins___2,heal_ins___3,heal_ins___4,heal_ins___5,heal_ins___6,notes_8,ethn,notes_9,st_language,non_english,other_soc_issue,social_context_complete,date_fh,prob_list2___1,prob_list2___2,prob_list2___3,prob_list2___4,prob_list2___15,prob_list2___5,prob_list2___6,prob_list2___7,prob_list2___8,prob_list2___9,prob_list2___10,prob_list2___11,prob_list2___12,prob_list2___13,prob_list2___14,notes_10,func_lim_1,symp_mng_1___1,symp_mng_1___2,symp_mng_1___3,symp_mng_1___4,symp_mng_1___5,notes_11,polypharm,med_mng_1___1,med_mng_1___2,med_mng_1___3,med_mng_1___4,med_mng_1___5,med_mng_1___6,med_mng_1___7,med_mng_1___8,med_mng_1___9,med_mng_1___10,notes_12,frail_1_v3___1,frail_1_v3___2,frail_1_v3___3,frail_1_v3___4,frail_1_v3___5,frail_1_v3___6,frail_1_v3___7,frail_1_v3___9,notes_13,frai_phe_3,cog_stat_1___1,cog_stat_1___2,cog_stat_1___3,cog_stat_1___4,cog_stat_1___5,cog_stat_1___6,notes_14,mini_cog_score,safe_1___1,safe_1___3,safe_1___4,safe_1___5,safe_1___11,safe_1___6,safe_1___7,safe_1___9,safe_1___10,notes_15,env_risk___1,env_risk___2,env_risk___3,env_risk___4,env_risk___5,env_risk___6,env_risk___7,env_risk___8,env_risk___9,env_risk___10,env_risk___12,env_risk___11,notes_16,mob_1___1,mob_1___2,mob_1___3,mob_1___4,mob_1___5,mob_1___6,mob_1___7,mob_1___8,mob_1___9,mob_1___10,notes_17,tug_1,number_falls,notes_18,falls_reas___1,falls_reas___2,falls_reas___3,falls_reas___4,falls_reas___5,notes_19,fall_impact,notes_20,fall_risk,notes_21,lifeline,emo_stat___1,emo_stat___2,emo_stat___3,emo_stat___4,emo_stat___5,emo_stat___6,emo_stat___7,emo_stat___8,emo_stat___9,emo_stat___10,notes_22,alc_dru___1,alc_dru___2,alc_dru___3,alc_dru___4,alc_dru___5,alc_dru___6,alc_dru___7,alc_dru___8,alc_dru___9,notes_23,eld_abu___1,eld_abu___2,eld_abu___3,eld_abu___4,eld_abu___5,eld_abu___6,eld_abu___7,notes_55,nut_list___1,nut_list___2,nut_list___3,nut_list___4,nut_list___5,nut_list___6,nut_list___7,nut_list___8,nut_list___9,notes_24,height,weight,bmi,bmi_stat,notes_25,eli___1,eli___2,eli___3,eli___4,eli___5,notes_26,future_plan,notes_27,functional_health_complete,med_date_v2,ormore_meds,med_list_start_home,opload_option,current_med_list_1,current_med_list_2,current_med_list_3,medication_list_complete,na_problem_list,problem_list1_date_v2,ed_visits___1,ed_visits___2,ed_visits___3,ed_date_add,ed_manag_date,ed_date_res,incorrect_meds___1,incorrect_meds___2,incorrect_meds___3,incorrect_meds_added,inco_meds_manag_date,incorrect_med_res,ineff_ther___1,ineff_ther___2,ineff_ther___3,ineff_ther_add,ineff_ther_manag_date,ineffe_ther_res,sympt_manag___1,sympt_manag___2,sympt_manag___3,sympt_manag_add,sympt_manag_manag_date,sumpy_manag_res,frailty___1,frailty___2,frailty___3,frail_add,frailty_manag_date,frail_res,impair_cog___1,impair_cog___2,impair_cog___3,impair_cog_add,impair_cog_manag_date,impar_cog_res,ment_heal___1,ment_heal___2,ment_heal___3,ment_heal_add,ment_heal_manag_date,ment_heal_res,self_care_prob_list___1,self_care_prob_list___2,self_care_prob_list___3,self_care_added,self_care_manag_date,self_care_res,imp_phys_mob___1,imp_phys_mob___2,imp_phys_mob___3,imp_phys_mob_add,imp_phys_manag_date,imp_phy_mob_res,fall___1,fall___2,fall___3,fall_add,fall_manag_date,fall_res,stay_home___1,stay_home___2,stay_home___3,stay_home_add,stay_home_manag_date,stay_home_res,prob_bills___1,prob_bills___2,prob_bills___3,prob_bills_add,prob_bills_manag_date,prob_bills_res,stress_trans___1,stress_trans___2,stress_trans___3,stres_trans_add,stess_trans_manag_date,stress_trans_res,incom_acp___1,incom_acp___2,incom_acp___3,incom_acp_date_added,incom_acp_manag_date,incom_acp_date_reso,other_prob_list___1,other_prob_list___2,other_prob_list___3,other_prob_add,other_prob_manag_date,other_prob_res,sdoh_iso___1,sdoh_iso___2,sdoh_iso___3,soc_iso_2,soc_iso_manag_date,soc_iso_date_resol,nutr_poor___1,nutr_poor___2,nutr_poor___3,nutr_poor_date_add,nutr_poor_manag_date,nutr_poor_res_date,hous_def___1,hous_def___2,hous_def___3,hous_added,hous_manag_date,hous_res_date,sdoh_transp___1,sdoh_transp___2,sdoh_transp___3,trans_date_add,trans_manag_date,trans_date_resol,sdoh_finance___1,sdoh_finance___2,sdoh_finance___3,finance_date_add,finance_manag_date,finance_date_resol,sdoh_other_2___1,sdoh_other_2___2,sdoh_other_2___3,sdoh_other_date_add,sdoh_other_manag,other_sdh_date_resol,allerg,notes_56,med_diag_list_v2_v2_v2,goals_prob_cleint,cg_prob_goals,nurse_prob_goals,plan_of_care_problem_list_complete,date_int,ini_int_date,contact_pcp_v2,pcp_for_v2_v2___1,pcp_for_v2_v2___2,pcp_for_v2_v2___3,pcp_for_v2_v2___4,pcp_for_v2_v2___5,pcp_for_v2_v2___6,notes_28,spec_care_v2,ref_v2,med_interv_v2___1,med_interv_v2___2,med_interv_v2___3,med_interv_v2___4,med_interv_v2___5,notes_29,sympt_interv_v2___1,sympt_interv_v2___2,sympt_interv_v2___3,sympt_interv_v2___4,sympt_interv_v2___5,sympt_interv_v2___6,notes_30,mob_interv_v2___1,mob_interv_v2___2,mob_interv_v2___3,mob_interv_v2___4,mob_interv_v2___5,mob_interv_v2___6,notes_31,cg_fam_interv_v2___1,cg_fam_interv_v2___2,cg_fam_interv_v2___3,cg_fam_interv_v2___4,cg_fam_interv_v2___5,notes_32,house_fina_food_interv_v2___1,house_fina_food_interv_v2___2,house_fina_food_interv_v2___3,house_fina_food_interv_v2___4,house_fina_food_interv_v2___5,house_fina_food_interv_v2___6,house_fina_food_interv_v2___7,house_fina_food_interv_v2___8,house_fina_food_interv_v2___9,notes_33,other_interv_notabove,fu_list_v2___1,fu_list_v2___2,fu_list_v2___3,fu_list_v2___4,notes_34,plan_of_care_initial_interventions_complete,today_date_v2,cont_meth_v2___1,cont_meth_v2___2,cont_meth_v2___3,cont_meth_v2___4,cont_meth_v2___5,cont_meth_v2___6,cont_meth_v2___7,cont_meth_v2___8,cont_meth_v2___9,cont_meth_v2___10,notes_57,cont_asses,concerns1_v2___1,concerns1_v2___2,concerns1_v2___3,concerns1_v2___4,concerns1_v2___5,concerns1_v2___6,notes_35,list_issues,phys_cond_nursescale,emot_stat_nursescale,cog_stat_nursescale,notes_48,fall_sincelast,hospit_since_last,care_plan_update,update_plan___1,update_plan___2,update_plan___3,update_plan___4,contact_pcp,pcp_for_v2___1,pcp_for_v2___2,pcp_for_v2___3,pcp_for_v2___4,pcp_for_v2___5,pcp_for_v2___6,notes_36,spec_care,ref,med_interv___1,med_interv___2,med_interv___3,med_interv___4,med_interv___5,med_interv___6,notes_37,sympt_interv___1,sympt_interv___2,sympt_interv___3,sympt_interv___4,sympt_interv___5,sympt_interv___6,notes_38,mob_interv___1,mob_interv___2,mob_interv___3,mob_interv___4,mob_interv___5,mob_interv___6,notes_39,cg_fam_interv___1,cg_fam_interv___2,cg_fam_interv___3,cg_fam_interv___4,cg_fam_interv___5,notes_40,house_fina_food_interv___1,house_fina_food_interv___2,house_fina_food_interv___3,house_fina_food_interv___4,house_fina_food_interv___5,house_fina_food_interv___6,house_fina_food_interv___7,house_fina_food_interv___8,house_fina_food_interv___9,notes_41,other_interv_not_listed,fu_list___1,fu_list___2,fu_list___3,fu_list___4,notes_42,interval_contacts_complete,date_sixmonth,client_answer_v2,meds_client_before_v2,cliebnt_home_before_v2,client_anx_before_v2,clients_daily_before_v2,what_matters_patient_v2,care_giver_v2,who_care_v2,cg_func_before_v2,cg_basic_before_v2,cg_conf_before_v2,cg_fatig_before_v2,cg_what_matters_v2,phys_con_6_month,emot_6_mont,cog_6_mont,notes_47,nurse_out_6_mont___1,nurse_out_6_mont___2,nurse_out_6_mont___3,nurse_out_6_mont___4,nurse_out_6_mont___5,nurse_out_6_mont___6,nurse_out_6_mont___7,nurse_out_6_mont___8,nurse_out_6_mont___9,notes_43,fu_6month___1,fu_6month___2,fu_6month___3,fu_6month___4,notes_44,month_report_complete,date_today_dis,reason_disch,notes_45,disc_status,phys,emotion,cog_stat,notes_49,nurse_report_all___1,nurse_report_all___2,nurse_report_all___3,nurse_report_all___4,nurse_report_all___5,nurse_report_all___6,nurse_report_all___7,notes_46,client_status_2,clien_outcome_dis,client_out2_dis,client_outc3_dis,clie_outc4_dis,most_impo_client,cg_status_2,cg_out1_dis,cg_out2_dis,cg_out3_dis,cg_outc4_dis,cg_con_most,discharge_report_complete,town,"first","last") */;
CREATE VIEW aag1_outcome1 as 
select record_id
     , redcap_data_access_group town
     , redcap_repeat_instrument
     , redcap_repeat_instance
     , nurse_out_6_mont___1 as outcome_1
     , nurse_out_6_mont___2 as outcome_2
     , nurse_out_6_mont___3 as outcome_3
     , nurse_out_6_mont___4 as outcome_4
     , nurse_out_6_mont___5 as outcome_5
     , nurse_out_6_mont___6 as outcome_6
     , nurse_out_6_mont___7 as outcome_7
     , nurse_out_6_mont___8 as outcome_8
     , nurse_out_6_mont___9 as outcome_9
  from aag1_6month
union all
select record_id
     , redcap_data_access_group town
     , redcap_repeat_instrument
     , redcap_repeat_instance
     , 0 as outcome_1
     , 0 as outcome_2
     , nurse_report_all___1 as outcome_3
     , nurse_report_all___2 as outcome_4
     , nurse_report_all___3 as outcome_5
     , nurse_report_all___4 as outcome_6
     , nurse_report_all___5 as outcome_7
     , nurse_report_all___6 as outcome_8
     , nurse_report_all___7 as outcome_9
  from aag1_discharge
/* aag1_outcome1(record_id,town,redcap_repeat_instrument,redcap_repeat_instance,outcome_1,outcome_2,outcome_3,outcome_4,outcome_5,outcome_6,outcome_7,outcome_8,outcome_9) */;
CREATE VIEW aag1_outcome2 as
select 'Decreased risk of falls' label
     ,  cast(round(portion*100./total) as integer) percentage
  from (select count(*) as total
             , sum(case when outcome_1 = 1 then 1 else 0 end) as portion
          from aag1_outcome1)
union all
select 'Improved cognitive function, less confusion' label
     ,  cast(round(portion*100./total) as integer) percentage
  from (select count(*) as total
             , sum(case when outcome_2 = 1 then 1 else 0 end) as portion
          from aag1_outcome1)
union all
select 'Prevented medication-related, adverse outcomes or ineffective therapeutic effect' label
     ,  cast(round(portion*100./total) as integer) percentage
  from (select count(*) as total
             , sum(case when outcome_3 = 1 then 1 else 0 end) as portion
          from aag1_outcome1)
union all
select 'Helped client and/or family to be less anxious about dealing with their situation'
     ,  cast(round(portion*100./total) as integer)
  from (select count(*) as total
             , sum(case when outcome_4 = 1 then 1 else 0 end) as portion
          from aag1_outcome1)
union all
select 'Helped improve client''s management of illness symptoms'
     ,  cast(round(portion*100./total) as integer)
  from (select count(*) as total
             , sum(case when outcome_5 = 1 then 1 else 0 end) as portion
          from aag1_outcome1)
union all
select 'Prevented Emergency Call, ED Visit, or Re-hospitalization'
     ,  cast(round(portion*100./total) as integer)
  from (select count(*) as total
             , sum(case when outcome_6 = 1 then 1 else 0 end) as portion
          from aag1_outcome1)
union all
select 'Improved client''s functioning in daily life'
     ,  cast(round(portion*100./total) as integer)
  from (select count(*) as total
             , sum(case when outcome_7 = 1 then 1 else 0 end) as portion
          from aag1_outcome1)
union all
select 'Enabled client to continue living in home for at least 6 months'
     ,  cast(round(portion*100./total) as integer)
  from (select count(*) as total
             , sum(case when outcome_8 = 1 then 1 else 0 end) as portion
          from aag1_outcome1)
union all
select 'Other'
     ,  cast(round(portion*100./total) as integer)
  from (select count(*) as total
             , sum(case when outcome_9 = 1 then 1 else 0 end) as portion
          from aag1_outcome1)     
union all
select 'Not recorded'
     ,  cast(round(portion*100./total) as integer)
  from (select count(*) as total
             , sum(case 
                    when outcome_1 + outcome_2 + outcome_3 + 
                              outcome_4 + outcome_5 + outcome_6 + 
                              outcome_7 + outcome_8 + outcome_9 > 0 then 0
                    else 1
                   end) as portion
          from aag1_outcome1)
/* aag1_outcome2(label,percentage) */;
CREATE VIEW aag1_outcome3 as
select (100 + percentage)||label as sort_key
     , label
     , percentage
  from aag1_outcome2
 where percentage > 0
/* aag1_outcome3(sort_key,label,percentage) */;
CREATE VIEW aag1_outcome as
select ( select count(*) from aag1_outcome3 where sort_key >= this.sort_key ) rank
     , label
     , percentage
  from aag1_outcome3 this
/* aag1_outcome(rank,label,percentage) */;
CREATE TABLE aag_town(town);
CREATE TABLE redcap_new(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "client_redcap_status_value" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "gender" TEXT,
  "household_comp" TEXT,
  "household_comp_notes" TEXT,
  "health_insurance" TEXT,
  "health_insurance_notes" TEXT,
  "end_life_docs" TEXT,
  "end_life_docs_notes" TEXT,
  "primary_referrer" TEXT,
  "provider1_affiliation" TEXT,
  "hospital_used" TEXT,
  "admitting_nurse" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "contact_information_complete" TEXT,
  "encounter_date" TEXT,
  "limited_concern___1" TEXT,
  "limited_concern_notes" TEXT,
  "encounter_type___1" TEXT,
  "encounter_type___2" TEXT,
  "encounter_type___3" TEXT,
  "encounter_type___5" TEXT,
  "encounter_type___11" TEXT,
  "encounter_type___12" TEXT,
  "encounter_type___4" TEXT,
  "encounter_type___13" TEXT,
  "encounter_type___6" TEXT,
  "encounter_type___10" TEXT,
  "encounter_type_note" TEXT,
  "encounter_nurse" TEXT,
  "encounter_progress_notes" TEXT,
  "encounter_stat_phys" TEXT,
  "encounter_stat_emot" TEXT,
  "encounter_stat_cog" TEXT,
  "encounter_stat_note_flag___1" TEXT,
  "encounter_stat_note" TEXT,
  "encounter_intervention___1" TEXT,
  "encounter_intervention___2" TEXT,
  "encounter_intervention___3" TEXT,
  "encounter_intervention___4" TEXT,
  "encounter_intervention___5" TEXT,
  "encounter_intervention___6" TEXT,
  "encounter_intervention___7" TEXT,
  "encounter_intervention___8" TEXT,
  "encounter_intervention___9" TEXT,
  "encounter_intervention___10" TEXT,
  "encounter_intervene_notes" TEXT,
  "encounter_todo_notes" TEXT,
  "encounters_complete" TEXT,
  "problem_type___1" TEXT,
  "problem_type___2" TEXT,
  "problem_type___3" TEXT,
  "problem_type___4" TEXT,
  "problem_type___5" TEXT,
  "problem_type___6" TEXT,
  "problem_type___7" TEXT,
  "problem_type___8" TEXT,
  "problem_type___9" TEXT,
  "problem_type___10" TEXT,
  "problem_type___11" TEXT,
  "problem_type___12" TEXT,
  "problem_type___13" TEXT,
  "problem_type___14" TEXT,
  "problem_type___20" TEXT,
  "problem_other_note" TEXT,
  "problem_allergies" TEXT,
  "problem_diagnose" TEXT,
  "problem_list_complete" TEXT,
  "social_finan" TEXT,
  "social_finan_note" TEXT,
  "social_isol___1" TEXT,
  "social_isol_note" TEXT,
  "social_trans___1" TEXT,
  "social_trans_note" TEXT,
  "social_house___1" TEXT,
  "social_house_note" TEXT,
  "social_food___1" TEXT,
  "social_food_note" TEXT,
  "social_safe___1" TEXT,
  "social_safe_note" TEXT,
  "social_family___1" TEXT,
  "social_family_note" TEXT,
  "social_lang___1" TEXT,
  "social_lang_note" TEXT,
  "social_other___1" TEXT,
  "social_other_note" TEXT,
  "social_future_plan___1" TEXT,
  "social_future_plan_note" TEXT,
  "social_end_life_plan___1" TEXT,
  "social_end_life_note" TEXT,
  "social_context_complete" TEXT,
  "func_issue1___1" TEXT,
  "func_issue1_note" TEXT,
  "func_issue2___1" TEXT,
  "func_issue2_note" TEXT,
  "func_issue3___1" TEXT,
  "func_issue3_note" TEXT,
  "func_issue4___1" TEXT,
  "func_issue4_note" TEXT,
  "func_issue5___1" TEXT,
  "func_issue5_note" TEXT,
  "func_issue6___1" TEXT,
  "func_issue6_note" TEXT,
  "func_issue7___1" TEXT,
  "func_issue7_note" TEXT,
  "func_issue8___1" TEXT,
  "func_issue8_note" TEXT,
  "func_issue9___1" TEXT,
  "func_issue9_note" TEXT,
  "func_issue10___1" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "func_issue10_note" TEXT,
  "func_issue11___1" TEXT,
  "func_issue11_note" TEXT,
  "func_issue12___1" TEXT,
  "func_issue12_note" TEXT,
  "func_issue13___1" TEXT,
  "func_issue13_note" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "client_redcap_status_date" TEXT,
  "status_update_nurse" TEXT,
  "client_redcap_status" TEXT,
  "status_update_reason" TEXT,
  "status_update_reason_note" TEXT,
  "status_update_outcome___1" TEXT,
  "status_update_outcome___2" TEXT,
  "status_update_outcome___3" TEXT,
  "status_update_outcome___4" TEXT,
  "status_update_outcome___5" TEXT,
  "status_update_outcome___6" TEXT,
  "status_update_outcome___7" TEXT,
  "status_update_outcome___8" TEXT,
  "status_update_outcome___9" TEXT,
  "status_update_outcome___10" TEXT,
  "status_update_outcome___11" TEXT,
  "status_update_outcome___12" TEXT,
  "status_update_outcome___13" TEXT,
  "status_update_outcome_note" TEXT,
  "status_update_complete" TEXT,
  "six_month_date" TEXT,
  "six_month_note" TEXT,
  "six_month_stat_phys" TEXT,
  "six_month_stat_emot" TEXT,
  "six_month_stat_cog" TEXT,
  "six_month_stat_note" TEXT,
  "six_month_outcome___1" TEXT,
  "six_month_outcome___2" TEXT,
  "six_month_outcome___3" TEXT,
  "six_month_outcome___4" TEXT,
  "six_month_outcome___5" TEXT,
  "six_month_outcome___6" TEXT,
  "six_month_outcome___7" TEXT,
  "six_month_outcome___8" TEXT,
  "six_month_outcome___9" TEXT,
  "six_month_outcome___10" TEXT,
  "six_month_outcome___11" TEXT,
  "six_month_outcome___12" TEXT,
  "six_month_outcome___13" TEXT,
  "six_month_outcome_note" TEXT,
  "six_month_outcome_plan" TEXT,
  "six_month_report_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_2019_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_2019_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "problem_list_2019_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_2019_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_2019_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_2019_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_2019_complete" TEXT,
  "status_profile" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "profile_2019_complete" TEXT,
  "date_contact" TEXT,
  "contact_information_2019_complete" TEXT
);
CREATE TABLE redcap_test_export1(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "client_redcap_status_value" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "dob_uncertain___1" TEXT,
  "gender" TEXT,
  "household_comp" TEXT,
  "household_comp_notes" TEXT,
  "health_insurance" TEXT,
  "health_insurance_notes" TEXT,
  "end_life_docs" TEXT,
  "end_life_docs_notes" TEXT,
  "primary_referrer" TEXT,
  "provider1_affiliation" TEXT,
  "hospital_used" TEXT,
  "admitting_nurse" TEXT,
  "profile_created_on" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "contact_information_complete" TEXT,
  "encounter_date" TEXT,
  "limited_concern___1" TEXT,
  "limited_concern_notes" TEXT,
  "encounter_type___1" TEXT,
  "encounter_type___2" TEXT,
  "encounter_type___3" TEXT,
  "encounter_type___5" TEXT,
  "encounter_type___11" TEXT,
  "encounter_type___12" TEXT,
  "encounter_type___4" TEXT,
  "encounter_type___13" TEXT,
  "encounter_type___6" TEXT,
  "encounter_type___10" TEXT,
  "encounter_type_note" TEXT,
  "encounter_nurse" TEXT,
  "encounter_progress_notes" TEXT,
  "encounter_stat_phys" TEXT,
  "encounter_stat_emot" TEXT,
  "encounter_stat_cog" TEXT,
  "encounter_stat_note_flag___1" TEXT,
  "encounter_stat_note" TEXT,
  "encounter_intervention___1" TEXT,
  "encounter_intervention___2" TEXT,
  "encounter_intervention___3" TEXT,
  "encounter_intervention___4" TEXT,
  "encounter_intervention___5" TEXT,
  "encounter_intervention___6" TEXT,
  "encounter_intervention___7" TEXT,
  "encounter_intervention___8" TEXT,
  "encounter_intervention___9" TEXT,
  "encounter_intervention___10" TEXT,
  "encounter_intervene_notes" TEXT,
  "encounter_todo_notes" TEXT,
  "encounters_complete" TEXT,
  "problem_type___1" TEXT,
  "problem_type___2" TEXT,
  "problem_type___3" TEXT,
  "problem_type___4" TEXT,
  "problem_type___5" TEXT,
  "problem_type___6" TEXT,
  "problem_type___7" TEXT,
  "problem_type___8" TEXT,
  "problem_type___9" TEXT,
  "problem_type___10" TEXT,
  "problem_type___11" TEXT,
  "problem_type___12" TEXT,
  "problem_type___13" TEXT,
  "problem_type___14" TEXT,
  "problem_type___20" TEXT,
  "problem_other_note" TEXT,
  "problem_allergies" TEXT,
  "problem_diagnose" TEXT,
  "problem_list_complete" TEXT,
  "social_finan" TEXT,
  "social_finan_note" TEXT,
  "social_isol___1" TEXT,
  "social_isol_note" TEXT,
  "social_trans___1" TEXT,
  "social_trans_note" TEXT,
  "social_house___1" TEXT,
  "social_house_note" TEXT,
  "social_food___1" TEXT,
  "social_food_note" TEXT,
  "social_safe___1" TEXT,
  "social_safe_note" TEXT,
  "social_family___1" TEXT,
  "social_family_note" TEXT,
  "social_lang___1" TEXT,
  "social_lang_note" TEXT,
  "social_other___1" TEXT,
  "social_other_note" TEXT,
  "social_future_plan___1" TEXT,
  "social_future_plan_note" TEXT,
  "social_end_life_plan___1" TEXT,
  "social_end_life_note" TEXT,
  "social_context_complete" TEXT,
  "func_issue1___1" TEXT,
  "func_issue1_note" TEXT,
  "func_issue2___1" TEXT,
  "func_issue2_note" TEXT,
  "func_issue3___1" TEXT,
  "func_issue3_note" TEXT,
  "func_issue4___1" TEXT,
  "func_issue4_note" TEXT,
  "func_issue5___1" TEXT,
  "func_issue5_note" TEXT,
  "func_issue6___1" TEXT,
  "func_issue6_note" TEXT,
  "func_issue7___1" TEXT,
  "func_issue7_note" TEXT,
  "func_issue8___1" TEXT,
  "func_issue8_note" TEXT,
  "func_issue9___1" TEXT,
  "func_issue9_note" TEXT,
  "func_issue10___1" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "func_issue10_note" TEXT,
  "func_issue11___1" TEXT,
  "func_issue11_note" TEXT,
  "func_issue12___1" TEXT,
  "func_issue12_note" TEXT,
  "func_issue13___1" TEXT,
  "func_issue13_note" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "client_redcap_status_date" TEXT,
  "status_update_nurse" TEXT,
  "client_redcap_status" TEXT,
  "status_update_reason" TEXT,
  "status_update_reason_note" TEXT,
  "status_update_outcome___1" TEXT,
  "status_update_outcome___2" TEXT,
  "status_update_outcome___3" TEXT,
  "status_update_outcome___4" TEXT,
  "status_update_outcome___5" TEXT,
  "status_update_outcome___6" TEXT,
  "status_update_outcome___7" TEXT,
  "status_update_outcome___8" TEXT,
  "status_update_outcome___9" TEXT,
  "status_update_outcome___10" TEXT,
  "status_update_outcome___11" TEXT,
  "status_update_outcome___12" TEXT,
  "status_update_outcome___13" TEXT,
  "status_update_outcome_note" TEXT,
  "status_update_complete" TEXT,
  "six_month_date" TEXT,
  "six_month_note" TEXT,
  "six_month_stat_phys" TEXT,
  "six_month_stat_emot" TEXT,
  "six_month_stat_cog" TEXT,
  "six_month_stat_note" TEXT,
  "six_month_outcome___1" TEXT,
  "six_month_outcome___2" TEXT,
  "six_month_outcome___3" TEXT,
  "six_month_outcome___4" TEXT,
  "six_month_outcome___5" TEXT,
  "six_month_outcome___6" TEXT,
  "six_month_outcome___7" TEXT,
  "six_month_outcome___8" TEXT,
  "six_month_outcome___9" TEXT,
  "six_month_outcome___10" TEXT,
  "six_month_outcome___11" TEXT,
  "six_month_outcome___12" TEXT,
  "six_month_outcome___13" TEXT,
  "six_month_outcome_note" TEXT,
  "six_month_outcome_plan" TEXT,
  "six_month_report_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_2019_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_2019_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "problem_list_2019_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_2019_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_2019_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_2019_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_2019_complete" TEXT,
  "status_profile" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "profile_2019_complete" TEXT,
  "date_contact" TEXT,
  "contact_information_2019_complete" TEXT
);
CREATE TABLE redcap_export(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "date_contact" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE redcap_test_export2(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "status_profile" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "gender" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "date_1st_contact" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "date_contact" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider1_affiliation" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "hospital_used" TEXT,
  "contact_information_must_complete_form_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "plan_of_care_problem_list_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_complete" TEXT
);
CREATE TABLE redcap_test_export3(
  "record_id" TEXT,
  "redcap_repeat_instrument" TEXT,
  "redcap_repeat_instance" TEXT,
  "redcap_data_access_group" TEXT,
  "client_redcap_status_value" TEXT,
  "first_name" TEXT,
  "last_name" TEXT,
  "preferred_name" TEXT,
  "address" TEXT,
  "phone" TEXT,
  "email" TEXT,
  "dob" TEXT,
  "age" TEXT,
  "dob_uncertain___1" TEXT,
  "gender" TEXT,
  "household_comp" TEXT,
  "household_comp_notes" TEXT,
  "health_insurance" TEXT,
  "health_insurance_notes" TEXT,
  "end_life_docs" TEXT,
  "end_life_docs_notes" TEXT,
  "primary_referrer" TEXT,
  "provider1_affiliation" TEXT,
  "hospital_used" TEXT,
  "admitting_nurse" TEXT,
  "profile_created_on" TEXT,
  "client_profile_must_complete_form_complete" TEXT,
  "caregiver_info" TEXT,
  "number_providers" TEXT,
  "provider_1" TEXT,
  "provider_2" TEXT,
  "provider2_affiliation" TEXT,
  "provider_3" TEXT,
  "provider3_affiliation" TEXT,
  "other_provider_info" TEXT,
  "contact_information_complete" TEXT,
  "encounter_date" TEXT,
  "limited_concern___1" TEXT,
  "limited_concern_notes" TEXT,
  "encounter_type___1" TEXT,
  "encounter_type___2" TEXT,
  "encounter_type___3" TEXT,
  "encounter_type___5" TEXT,
  "encounter_type___11" TEXT,
  "encounter_type___12" TEXT,
  "encounter_type___4" TEXT,
  "encounter_type___13" TEXT,
  "encounter_type___6" TEXT,
  "encounter_type___10" TEXT,
  "encounter_type_note" TEXT,
  "encounter_nurse" TEXT,
  "encounter_progress_notes" TEXT,
  "encounter_stat_phys" TEXT,
  "encounter_stat_emot" TEXT,
  "encounter_stat_cog" TEXT,
  "encounter_stat_note_flag___1" TEXT,
  "encounter_stat_note" TEXT,
  "encounter_intervention___1" TEXT,
  "encounter_intervention___2" TEXT,
  "encounter_intervention___3" TEXT,
  "encounter_intervention___4" TEXT,
  "encounter_intervention___5" TEXT,
  "encounter_intervention___6" TEXT,
  "encounter_intervention___7" TEXT,
  "encounter_intervention___8" TEXT,
  "encounter_intervention___9" TEXT,
  "encounter_intervention___10" TEXT,
  "encounter_intervene_notes" TEXT,
  "encounter_todo_notes" TEXT,
  "encounters_complete" TEXT,
  "problem_type___1" TEXT,
  "problem_type___2" TEXT,
  "problem_type___3" TEXT,
  "problem_type___4" TEXT,
  "problem_type___5" TEXT,
  "problem_type___6" TEXT,
  "problem_type___7" TEXT,
  "problem_type___8" TEXT,
  "problem_type___9" TEXT,
  "problem_type___10" TEXT,
  "problem_type___11" TEXT,
  "problem_type___12" TEXT,
  "problem_type___13" TEXT,
  "problem_type___14" TEXT,
  "problem_type___20" TEXT,
  "problem_other_note" TEXT,
  "problem_allergies" TEXT,
  "problem_diagnose" TEXT,
  "problem_list_complete" TEXT,
  "social_finan" TEXT,
  "social_finan_note" TEXT,
  "social_isol___1" TEXT,
  "social_isol_note" TEXT,
  "social_trans___1" TEXT,
  "social_trans_note" TEXT,
  "social_house___1" TEXT,
  "social_house_note" TEXT,
  "social_food___1" TEXT,
  "social_food_note" TEXT,
  "social_safe___1" TEXT,
  "social_safe_note" TEXT,
  "social_family___1" TEXT,
  "social_family_note" TEXT,
  "social_lang___1" TEXT,
  "social_lang_note" TEXT,
  "social_other___1" TEXT,
  "social_other_note" TEXT,
  "social_future_plan___1" TEXT,
  "social_future_plan_note" TEXT,
  "social_end_life_plan___1" TEXT,
  "social_end_life_note" TEXT,
  "social_context_complete" TEXT,
  "func_issue1___1" TEXT,
  "func_issue1_note" TEXT,
  "func_issue2___1" TEXT,
  "func_issue2_note" TEXT,
  "func_issue3___1" TEXT,
  "func_issue3_note" TEXT,
  "func_issue4___1" TEXT,
  "func_issue4_note" TEXT,
  "func_issue5___1" TEXT,
  "func_issue5_note" TEXT,
  "func_issue6___1" TEXT,
  "func_issue6_note" TEXT,
  "func_issue7___1" TEXT,
  "func_issue7_note" TEXT,
  "func_issue8___1" TEXT,
  "func_issue8_note" TEXT,
  "func_issue9___1" TEXT,
  "func_issue9_note" TEXT,
  "func_issue10___1" TEXT,
  "height" TEXT,
  "weight" TEXT,
  "bmi" TEXT,
  "func_issue10_note" TEXT,
  "func_issue11___1" TEXT,
  "func_issue11_note" TEXT,
  "func_issue12___1" TEXT,
  "func_issue12_note" TEXT,
  "func_issue13___1" TEXT,
  "func_issue13_note" TEXT,
  "functional_health_complete" TEXT,
  "med_date_v2" TEXT,
  "ormore_meds" TEXT,
  "med_list_start_home" TEXT,
  "opload_option" TEXT,
  "current_med_list_1" TEXT,
  "current_med_list_2" TEXT,
  "current_med_list_3" TEXT,
  "medication_list_complete" TEXT,
  "client_redcap_status_date" TEXT,
  "status_update_nurse" TEXT,
  "client_redcap_status" TEXT,
  "status_update_reason" TEXT,
  "status_update_reason_note" TEXT,
  "status_update_outcome___1" TEXT,
  "status_update_outcome___2" TEXT,
  "status_update_outcome___3" TEXT,
  "status_update_outcome___4" TEXT,
  "status_update_outcome___5" TEXT,
  "status_update_outcome___6" TEXT,
  "status_update_outcome___7" TEXT,
  "status_update_outcome___8" TEXT,
  "status_update_outcome___9" TEXT,
  "status_update_outcome___10" TEXT,
  "status_update_outcome___11" TEXT,
  "status_update_outcome___12" TEXT,
  "status_update_outcome___13" TEXT,
  "status_update_outcome_note" TEXT,
  "status_update_complete" TEXT,
  "six_month_date" TEXT,
  "six_month_note" TEXT,
  "six_month_stat_phys" TEXT,
  "six_month_stat_emot" TEXT,
  "six_month_stat_cog" TEXT,
  "six_month_stat_note" TEXT,
  "six_month_outcome___1" TEXT,
  "six_month_outcome___2" TEXT,
  "six_month_outcome___3" TEXT,
  "six_month_outcome___4" TEXT,
  "six_month_outcome___5" TEXT,
  "six_month_outcome___6" TEXT,
  "six_month_outcome___7" TEXT,
  "six_month_outcome___8" TEXT,
  "six_month_outcome___9" TEXT,
  "six_month_outcome___10" TEXT,
  "six_month_outcome___11" TEXT,
  "six_month_outcome___12" TEXT,
  "six_month_outcome___13" TEXT,
  "six_month_outcome_note" TEXT,
  "six_month_outcome_plan" TEXT,
  "six_month_report_complete" TEXT,
  "date_sc" TEXT,
  "address_v2" TEXT,
  "notes_52" TEXT,
  "phone_v2" TEXT,
  "notes_3" TEXT,
  "name_2nd_person" TEXT,
  "client_support_1" TEXT,
  "non_med_assist___1" TEXT,
  "non_med_assist___2" TEXT,
  "non_med_assist___3" TEXT,
  "non_med_assist___4" TEXT,
  "non_med_assist___5" TEXT,
  "non_med_assist___6" TEXT,
  "non_med_assist___8" TEXT,
  "non_med_assist___9" TEXT,
  "notes_4" TEXT,
  "healthcare_serv___1" TEXT,
  "healthcare_serv___2" TEXT,
  "healthcare_serv___3" TEXT,
  "healthcare_serv___4" TEXT,
  "healthcare_serv___5" TEXT,
  "healthcare_serv___6" TEXT,
  "healthcare_serv___7" TEXT,
  "healthcare_serv___8" TEXT,
  "notes_5" TEXT,
  "soc_lonl_1___1" TEXT,
  "soc_lonl_1___2" TEXT,
  "soc_lonl_1___3" TEXT,
  "soc_lonl_1___4" TEXT,
  "soc_lonl_1___5" TEXT,
  "soc_lonl_1___6" TEXT,
  "soc_lonl_1___7" TEXT,
  "notes_6" TEXT,
  "transp___1" TEXT,
  "transp___2" TEXT,
  "transp___3" TEXT,
  "transp___4" TEXT,
  "transp___5" TEXT,
  "transp___6" TEXT,
  "notes_53" TEXT,
  "finan_1" TEXT,
  "notes_54" TEXT,
  "fin_gues_1___1" TEXT,
  "fin_gues_1___2" TEXT,
  "fin_gues_1___3" TEXT,
  "fin_gues_1___4" TEXT,
  "fin_gues_1___5" TEXT,
  "notes_7" TEXT,
  "heal_ins___1" TEXT,
  "heal_ins___2" TEXT,
  "heal_ins___3" TEXT,
  "heal_ins___4" TEXT,
  "heal_ins___5" TEXT,
  "heal_ins___6" TEXT,
  "notes_8" TEXT,
  "ethn" TEXT,
  "notes_9" TEXT,
  "st_language" TEXT,
  "non_english" TEXT,
  "other_soc_issue" TEXT,
  "social_context_2019_complete" TEXT,
  "date_fh" TEXT,
  "prob_list2___1" TEXT,
  "prob_list2___2" TEXT,
  "prob_list2___3" TEXT,
  "prob_list2___4" TEXT,
  "prob_list2___15" TEXT,
  "prob_list2___5" TEXT,
  "prob_list2___6" TEXT,
  "prob_list2___7" TEXT,
  "prob_list2___8" TEXT,
  "prob_list2___9" TEXT,
  "prob_list2___10" TEXT,
  "prob_list2___11" TEXT,
  "prob_list2___12" TEXT,
  "prob_list2___13" TEXT,
  "prob_list2___14" TEXT,
  "notes_10" TEXT,
  "func_lim_1" TEXT,
  "symp_mng_1___1" TEXT,
  "symp_mng_1___2" TEXT,
  "symp_mng_1___3" TEXT,
  "symp_mng_1___4" TEXT,
  "symp_mng_1___5" TEXT,
  "notes_11" TEXT,
  "polypharm" TEXT,
  "med_mng_1___1" TEXT,
  "med_mng_1___2" TEXT,
  "med_mng_1___3" TEXT,
  "med_mng_1___4" TEXT,
  "med_mng_1___5" TEXT,
  "med_mng_1___6" TEXT,
  "med_mng_1___7" TEXT,
  "med_mng_1___8" TEXT,
  "med_mng_1___9" TEXT,
  "med_mng_1___10" TEXT,
  "notes_12" TEXT,
  "frail_1_v3___1" TEXT,
  "frail_1_v3___2" TEXT,
  "frail_1_v3___3" TEXT,
  "frail_1_v3___4" TEXT,
  "frail_1_v3___5" TEXT,
  "frail_1_v3___6" TEXT,
  "frail_1_v3___7" TEXT,
  "frail_1_v3___9" TEXT,
  "notes_13" TEXT,
  "frai_phe_3" TEXT,
  "cog_stat_1___1" TEXT,
  "cog_stat_1___2" TEXT,
  "cog_stat_1___3" TEXT,
  "cog_stat_1___4" TEXT,
  "cog_stat_1___5" TEXT,
  "cog_stat_1___6" TEXT,
  "notes_14" TEXT,
  "mini_cog_score" TEXT,
  "safe_1___1" TEXT,
  "safe_1___3" TEXT,
  "safe_1___4" TEXT,
  "safe_1___5" TEXT,
  "safe_1___11" TEXT,
  "safe_1___6" TEXT,
  "safe_1___7" TEXT,
  "safe_1___9" TEXT,
  "safe_1___10" TEXT,
  "notes_15" TEXT,
  "env_risk___1" TEXT,
  "env_risk___2" TEXT,
  "env_risk___3" TEXT,
  "env_risk___4" TEXT,
  "env_risk___5" TEXT,
  "env_risk___6" TEXT,
  "env_risk___7" TEXT,
  "env_risk___8" TEXT,
  "env_risk___9" TEXT,
  "env_risk___10" TEXT,
  "env_risk___12" TEXT,
  "env_risk___11" TEXT,
  "notes_16" TEXT,
  "mob_1___1" TEXT,
  "mob_1___2" TEXT,
  "mob_1___3" TEXT,
  "mob_1___4" TEXT,
  "mob_1___5" TEXT,
  "mob_1___6" TEXT,
  "mob_1___7" TEXT,
  "mob_1___8" TEXT,
  "mob_1___9" TEXT,
  "mob_1___10" TEXT,
  "notes_17" TEXT,
  "tug_1" TEXT,
  "number_falls" TEXT,
  "notes_18" TEXT,
  "falls_reas___1" TEXT,
  "falls_reas___2" TEXT,
  "falls_reas___3" TEXT,
  "falls_reas___4" TEXT,
  "falls_reas___5" TEXT,
  "notes_19" TEXT,
  "fall_impact" TEXT,
  "notes_20" TEXT,
  "fall_risk" TEXT,
  "notes_21" TEXT,
  "lifeline" TEXT,
  "emo_stat___1" TEXT,
  "emo_stat___2" TEXT,
  "emo_stat___3" TEXT,
  "emo_stat___4" TEXT,
  "emo_stat___5" TEXT,
  "emo_stat___6" TEXT,
  "emo_stat___7" TEXT,
  "emo_stat___8" TEXT,
  "emo_stat___9" TEXT,
  "emo_stat___10" TEXT,
  "notes_22" TEXT,
  "alc_dru___1" TEXT,
  "alc_dru___2" TEXT,
  "alc_dru___3" TEXT,
  "alc_dru___4" TEXT,
  "alc_dru___5" TEXT,
  "alc_dru___6" TEXT,
  "alc_dru___7" TEXT,
  "alc_dru___8" TEXT,
  "alc_dru___9" TEXT,
  "notes_23" TEXT,
  "eld_abu___1" TEXT,
  "eld_abu___2" TEXT,
  "eld_abu___3" TEXT,
  "eld_abu___4" TEXT,
  "eld_abu___5" TEXT,
  "eld_abu___6" TEXT,
  "eld_abu___7" TEXT,
  "notes_55" TEXT,
  "nut_list___1" TEXT,
  "nut_list___2" TEXT,
  "nut_list___3" TEXT,
  "nut_list___4" TEXT,
  "nut_list___5" TEXT,
  "nut_list___6" TEXT,
  "nut_list___7" TEXT,
  "nut_list___8" TEXT,
  "nut_list___9" TEXT,
  "notes_24" TEXT,
  "bmi_stat" TEXT,
  "notes_25" TEXT,
  "eli___1" TEXT,
  "eli___2" TEXT,
  "eli___3" TEXT,
  "eli___4" TEXT,
  "eli___5" TEXT,
  "notes_26" TEXT,
  "future_plan" TEXT,
  "notes_27" TEXT,
  "functional_health_2019_complete" TEXT,
  "na_problem_list" TEXT,
  "problem_list1_date_v2" TEXT,
  "ed_visits___1" TEXT,
  "ed_visits___2" TEXT,
  "ed_visits___3" TEXT,
  "ed_date_add" TEXT,
  "ed_manag_date" TEXT,
  "ed_date_res" TEXT,
  "incorrect_meds___1" TEXT,
  "incorrect_meds___2" TEXT,
  "incorrect_meds___3" TEXT,
  "incorrect_meds_added" TEXT,
  "inco_meds_manag_date" TEXT,
  "incorrect_med_res" TEXT,
  "ineff_ther___1" TEXT,
  "ineff_ther___2" TEXT,
  "ineff_ther___3" TEXT,
  "ineff_ther_add" TEXT,
  "ineff_ther_manag_date" TEXT,
  "ineffe_ther_res" TEXT,
  "sympt_manag___1" TEXT,
  "sympt_manag___2" TEXT,
  "sympt_manag___3" TEXT,
  "sympt_manag_add" TEXT,
  "sympt_manag_manag_date" TEXT,
  "sumpy_manag_res" TEXT,
  "frailty___1" TEXT,
  "frailty___2" TEXT,
  "frailty___3" TEXT,
  "frail_add" TEXT,
  "frailty_manag_date" TEXT,
  "frail_res" TEXT,
  "impair_cog___1" TEXT,
  "impair_cog___2" TEXT,
  "impair_cog___3" TEXT,
  "impair_cog_add" TEXT,
  "impair_cog_manag_date" TEXT,
  "impar_cog_res" TEXT,
  "ment_heal___1" TEXT,
  "ment_heal___2" TEXT,
  "ment_heal___3" TEXT,
  "ment_heal_add" TEXT,
  "ment_heal_manag_date" TEXT,
  "ment_heal_res" TEXT,
  "self_care_prob_list___1" TEXT,
  "self_care_prob_list___2" TEXT,
  "self_care_prob_list___3" TEXT,
  "self_care_added" TEXT,
  "self_care_manag_date" TEXT,
  "self_care_res" TEXT,
  "imp_phys_mob___1" TEXT,
  "imp_phys_mob___2" TEXT,
  "imp_phys_mob___3" TEXT,
  "imp_phys_mob_add" TEXT,
  "imp_phys_manag_date" TEXT,
  "imp_phy_mob_res" TEXT,
  "fall___1" TEXT,
  "fall___2" TEXT,
  "fall___3" TEXT,
  "fall_add" TEXT,
  "fall_manag_date" TEXT,
  "fall_res" TEXT,
  "stay_home___1" TEXT,
  "stay_home___2" TEXT,
  "stay_home___3" TEXT,
  "stay_home_add" TEXT,
  "stay_home_manag_date" TEXT,
  "stay_home_res" TEXT,
  "prob_bills___1" TEXT,
  "prob_bills___2" TEXT,
  "prob_bills___3" TEXT,
  "prob_bills_add" TEXT,
  "prob_bills_manag_date" TEXT,
  "prob_bills_res" TEXT,
  "stress_trans___1" TEXT,
  "stress_trans___2" TEXT,
  "stress_trans___3" TEXT,
  "stres_trans_add" TEXT,
  "stess_trans_manag_date" TEXT,
  "stress_trans_res" TEXT,
  "incom_acp___1" TEXT,
  "incom_acp___2" TEXT,
  "incom_acp___3" TEXT,
  "incom_acp_date_added" TEXT,
  "incom_acp_manag_date" TEXT,
  "incom_acp_date_reso" TEXT,
  "other_prob_list___1" TEXT,
  "other_prob_list___2" TEXT,
  "other_prob_list___3" TEXT,
  "other_prob_add" TEXT,
  "other_prob_manag_date" TEXT,
  "other_prob_res" TEXT,
  "sdoh_iso___1" TEXT,
  "sdoh_iso___2" TEXT,
  "sdoh_iso___3" TEXT,
  "soc_iso_2" TEXT,
  "soc_iso_manag_date" TEXT,
  "soc_iso_date_resol" TEXT,
  "nutr_poor___1" TEXT,
  "nutr_poor___2" TEXT,
  "nutr_poor___3" TEXT,
  "nutr_poor_date_add" TEXT,
  "nutr_poor_manag_date" TEXT,
  "nutr_poor_res_date" TEXT,
  "hous_def___1" TEXT,
  "hous_def___2" TEXT,
  "hous_def___3" TEXT,
  "hous_added" TEXT,
  "hous_manag_date" TEXT,
  "hous_res_date" TEXT,
  "sdoh_transp___1" TEXT,
  "sdoh_transp___2" TEXT,
  "sdoh_transp___3" TEXT,
  "trans_date_add" TEXT,
  "trans_manag_date" TEXT,
  "trans_date_resol" TEXT,
  "sdoh_finance___1" TEXT,
  "sdoh_finance___2" TEXT,
  "sdoh_finance___3" TEXT,
  "finance_date_add" TEXT,
  "finance_manag_date" TEXT,
  "finance_date_resol" TEXT,
  "sdoh_other_2___1" TEXT,
  "sdoh_other_2___2" TEXT,
  "sdoh_other_2___3" TEXT,
  "sdoh_other_date_add" TEXT,
  "sdoh_other_manag" TEXT,
  "other_sdh_date_resol" TEXT,
  "allerg" TEXT,
  "notes_56" TEXT,
  "med_diag_list_v2_v2_v2" TEXT,
  "goals_prob_cleint" TEXT,
  "cg_prob_goals" TEXT,
  "nurse_prob_goals" TEXT,
  "problem_list_2019_complete" TEXT,
  "date_int" TEXT,
  "ini_int_date" TEXT,
  "contact_pcp_v2" TEXT,
  "pcp_for_v2_v2___1" TEXT,
  "pcp_for_v2_v2___2" TEXT,
  "pcp_for_v2_v2___3" TEXT,
  "pcp_for_v2_v2___4" TEXT,
  "pcp_for_v2_v2___5" TEXT,
  "pcp_for_v2_v2___6" TEXT,
  "notes_28" TEXT,
  "spec_care_v2" TEXT,
  "ref_v2" TEXT,
  "med_interv_v2___1" TEXT,
  "med_interv_v2___2" TEXT,
  "med_interv_v2___3" TEXT,
  "med_interv_v2___4" TEXT,
  "med_interv_v2___5" TEXT,
  "notes_29" TEXT,
  "sympt_interv_v2___1" TEXT,
  "sympt_interv_v2___2" TEXT,
  "sympt_interv_v2___3" TEXT,
  "sympt_interv_v2___4" TEXT,
  "sympt_interv_v2___5" TEXT,
  "sympt_interv_v2___6" TEXT,
  "notes_30" TEXT,
  "mob_interv_v2___1" TEXT,
  "mob_interv_v2___2" TEXT,
  "mob_interv_v2___3" TEXT,
  "mob_interv_v2___4" TEXT,
  "mob_interv_v2___5" TEXT,
  "mob_interv_v2___6" TEXT,
  "notes_31" TEXT,
  "cg_fam_interv_v2___1" TEXT,
  "cg_fam_interv_v2___2" TEXT,
  "cg_fam_interv_v2___3" TEXT,
  "cg_fam_interv_v2___4" TEXT,
  "cg_fam_interv_v2___5" TEXT,
  "notes_32" TEXT,
  "house_fina_food_interv_v2___1" TEXT,
  "house_fina_food_interv_v2___2" TEXT,
  "house_fina_food_interv_v2___3" TEXT,
  "house_fina_food_interv_v2___4" TEXT,
  "house_fina_food_interv_v2___5" TEXT,
  "house_fina_food_interv_v2___6" TEXT,
  "house_fina_food_interv_v2___7" TEXT,
  "house_fina_food_interv_v2___8" TEXT,
  "house_fina_food_interv_v2___9" TEXT,
  "notes_33" TEXT,
  "other_interv_notabove" TEXT,
  "fu_list_v2___1" TEXT,
  "fu_list_v2___2" TEXT,
  "fu_list_v2___3" TEXT,
  "fu_list_v2___4" TEXT,
  "notes_34" TEXT,
  "plan_of_care_initial_interventions_2019_complete" TEXT,
  "today_date_v2" TEXT,
  "cont_meth_v2___1" TEXT,
  "cont_meth_v2___2" TEXT,
  "cont_meth_v2___3" TEXT,
  "cont_meth_v2___4" TEXT,
  "cont_meth_v2___5" TEXT,
  "cont_meth_v2___6" TEXT,
  "cont_meth_v2___7" TEXT,
  "cont_meth_v2___8" TEXT,
  "cont_meth_v2___9" TEXT,
  "cont_meth_v2___10" TEXT,
  "notes_57" TEXT,
  "cont_asses" TEXT,
  "concerns1_v2___1" TEXT,
  "concerns1_v2___2" TEXT,
  "concerns1_v2___3" TEXT,
  "concerns1_v2___4" TEXT,
  "concerns1_v2___5" TEXT,
  "concerns1_v2___6" TEXT,
  "notes_35" TEXT,
  "list_issues" TEXT,
  "phys_cond_nursescale" TEXT,
  "emot_stat_nursescale" TEXT,
  "cog_stat_nursescale" TEXT,
  "notes_48" TEXT,
  "fall_sincelast" TEXT,
  "hospit_since_last" TEXT,
  "care_plan_update" TEXT,
  "update_plan___1" TEXT,
  "update_plan___2" TEXT,
  "update_plan___3" TEXT,
  "update_plan___4" TEXT,
  "contact_pcp" TEXT,
  "pcp_for_v2___1" TEXT,
  "pcp_for_v2___2" TEXT,
  "pcp_for_v2___3" TEXT,
  "pcp_for_v2___4" TEXT,
  "pcp_for_v2___5" TEXT,
  "pcp_for_v2___6" TEXT,
  "notes_36" TEXT,
  "spec_care" TEXT,
  "ref" TEXT,
  "med_interv___1" TEXT,
  "med_interv___2" TEXT,
  "med_interv___3" TEXT,
  "med_interv___4" TEXT,
  "med_interv___5" TEXT,
  "med_interv___6" TEXT,
  "notes_37" TEXT,
  "sympt_interv___1" TEXT,
  "sympt_interv___2" TEXT,
  "sympt_interv___3" TEXT,
  "sympt_interv___4" TEXT,
  "sympt_interv___5" TEXT,
  "sympt_interv___6" TEXT,
  "notes_38" TEXT,
  "mob_interv___1" TEXT,
  "mob_interv___2" TEXT,
  "mob_interv___3" TEXT,
  "mob_interv___4" TEXT,
  "mob_interv___5" TEXT,
  "mob_interv___6" TEXT,
  "notes_39" TEXT,
  "cg_fam_interv___1" TEXT,
  "cg_fam_interv___2" TEXT,
  "cg_fam_interv___3" TEXT,
  "cg_fam_interv___4" TEXT,
  "cg_fam_interv___5" TEXT,
  "notes_40" TEXT,
  "house_fina_food_interv___1" TEXT,
  "house_fina_food_interv___2" TEXT,
  "house_fina_food_interv___3" TEXT,
  "house_fina_food_interv___4" TEXT,
  "house_fina_food_interv___5" TEXT,
  "house_fina_food_interv___6" TEXT,
  "house_fina_food_interv___7" TEXT,
  "house_fina_food_interv___8" TEXT,
  "house_fina_food_interv___9" TEXT,
  "notes_41" TEXT,
  "other_interv_not_listed" TEXT,
  "fu_list___1" TEXT,
  "fu_list___2" TEXT,
  "fu_list___3" TEXT,
  "fu_list___4" TEXT,
  "notes_42" TEXT,
  "interval_contacts_2019_complete" TEXT,
  "date_sixmonth" TEXT,
  "client_answer_v2" TEXT,
  "meds_client_before_v2" TEXT,
  "cliebnt_home_before_v2" TEXT,
  "client_anx_before_v2" TEXT,
  "clients_daily_before_v2" TEXT,
  "what_matters_patient_v2" TEXT,
  "care_giver_v2" TEXT,
  "who_care_v2" TEXT,
  "cg_func_before_v2" TEXT,
  "cg_basic_before_v2" TEXT,
  "cg_conf_before_v2" TEXT,
  "cg_fatig_before_v2" TEXT,
  "cg_what_matters_v2" TEXT,
  "phys_con_6_month" TEXT,
  "emot_6_mont" TEXT,
  "cog_6_mont" TEXT,
  "notes_47" TEXT,
  "nurse_out_6_mont___1" TEXT,
  "nurse_out_6_mont___2" TEXT,
  "nurse_out_6_mont___3" TEXT,
  "nurse_out_6_mont___4" TEXT,
  "nurse_out_6_mont___5" TEXT,
  "nurse_out_6_mont___6" TEXT,
  "nurse_out_6_mont___7" TEXT,
  "nurse_out_6_mont___8" TEXT,
  "nurse_out_6_mont___9" TEXT,
  "notes_43" TEXT,
  "fu_6month___1" TEXT,
  "fu_6month___2" TEXT,
  "fu_6month___3" TEXT,
  "fu_6month___4" TEXT,
  "notes_44" TEXT,
  "month_report_2019_complete" TEXT,
  "date_today_dis" TEXT,
  "reason_disch" TEXT,
  "notes_45" TEXT,
  "disc_status" TEXT,
  "phys" TEXT,
  "emotion" TEXT,
  "cog_stat" TEXT,
  "notes_49" TEXT,
  "nurse_report_all___1" TEXT,
  "nurse_report_all___2" TEXT,
  "nurse_report_all___3" TEXT,
  "nurse_report_all___4" TEXT,
  "nurse_report_all___5" TEXT,
  "nurse_report_all___6" TEXT,
  "nurse_report_all___7" TEXT,
  "notes_46" TEXT,
  "client_status_2" TEXT,
  "clien_outcome_dis" TEXT,
  "client_out2_dis" TEXT,
  "client_outc3_dis" TEXT,
  "clie_outc4_dis" TEXT,
  "most_impo_client" TEXT,
  "cg_status_2" TEXT,
  "cg_out1_dis" TEXT,
  "cg_out2_dis" TEXT,
  "cg_out3_dis" TEXT,
  "cg_outc4_dis" TEXT,
  "cg_con_most" TEXT,
  "discharge_report_2019_complete" TEXT,
  "status_profile" TEXT,
  "old_records_lyme" TEXT,
  "today" TEXT,
  "consent_date" TEXT,
  "upload_form" TEXT,
  "meth_1st_contact" TEXT,
  "notes" TEXT,
  "referred_by___1" TEXT,
  "referred_by___2" TEXT,
  "referred_by___3" TEXT,
  "referred_by___4" TEXT,
  "referred_by___5" TEXT,
  "referred_by___6" TEXT,
  "referred_by___7" TEXT,
  "referred_by___8" TEXT,
  "referred_by___9" TEXT,
  "notes_1" TEXT,
  "informant" TEXT,
  "notes_50" TEXT,
  "end_life_plan___1" TEXT,
  "end_life_plan___2" TEXT,
  "end_life_plan___3" TEXT,
  "end_life_plan___4" TEXT,
  "end_life_plan___5" TEXT,
  "end_life_plan___6" TEXT,
  "notes_2" TEXT,
  "acp_location" TEXT,
  "client_answer" TEXT,
  "meds_client_before" TEXT,
  "cliebnt_home_before" TEXT,
  "client_anx_before" TEXT,
  "clients_daily_before" TEXT,
  "what_matters_patient" TEXT,
  "care_giver" TEXT,
  "who_cg" TEXT,
  "cg_func_before" TEXT,
  "cg_basicneeds_before" TEXT,
  "cg_conf_before" TEXT,
  "cg_fatig_before" TEXT,
  "cg_what_matters" TEXT,
  "profile_2019_complete" TEXT,
  "date_contact" TEXT,
  "contact_information_2019_complete" TEXT
);
CREATE TABLE live_test_col(
  "variable" TEXT
);
CREATE TABLE live_test_col_check(variable);
CREATE TABLE live_test_col1(variable TEXT);
CREATE TABLE aag_date_range(first date,last date);
CREATE TABLE dict_v3(
  "variable" TEXT,
  "Form Name" TEXT,
  "Section Header" TEXT,
  "Field Type" TEXT,
  "Field Label" TEXT,
  "Choices, Calculations, OR Slider Labels" TEXT,
  "Field Note" TEXT,
  "Text Validation Type OR Show Slider Number" TEXT,
  "Text Validation Min" TEXT,
  "Text Validation Max" TEXT,
  "Identifier?" TEXT,
  "Branching Logic (Show field only if...)" TEXT,
  "Required Field?" TEXT,
  "Custom Alignment" TEXT,
  "Question Number (surveys only)" TEXT,
  "Matrix Group Name" TEXT,
  "Matrix Ranking?" TEXT,
  "Field Annotation" TEXT
);
CREATE TABLE dict_v2(
  "variable" TEXT,
  "Form Name" TEXT,
  "Section Header" TEXT,
  "Field Type" TEXT,
  "Field Label" TEXT,
  "Choices, Calculations, OR Slider Labels" TEXT,
  "Field Note" TEXT,
  "Text Validation Type OR Show Slider Number" TEXT,
  "Text Validation Min" TEXT,
  "Text Validation Max" TEXT,
  "Identifier?" TEXT,
  "Branching Logic (Show field only if...)" TEXT,
  "Required Field?" TEXT,
  "Custom Alignment" TEXT,
  "Question Number (surveys only)" TEXT,
  "Matrix Group Name" TEXT,
  "Matrix Ranking?" TEXT,
  "Field Annotation" TEXT
);
CREATE TABLE dict_v3_raw(
  "Variable / Field Name" TEXT,
  "Form Name" TEXT,
  "Section Header" TEXT,
  "Field Type" TEXT,
  "Field Label" TEXT,
  "Choices, Calculations, OR Slider Labels" TEXT,
  "Field Note" TEXT,
  "Text Validation Type OR Show Slider Number" TEXT,
  "Text Validation Min" TEXT,
  "Text Validation Max" TEXT,
  "Identifier?" TEXT,
  "Branching Logic (Show field only if...)" TEXT,
  "Required Field?" TEXT,
  "Custom Alignment" TEXT,
  "Question Number (surveys only)" TEXT,
  "Matrix Group Name" TEXT,
  "Matrix Ranking?" TEXT,
  "Field Annotation" TEXT
);
CREATE TABLE dict_v2_raw(
  "Variable / Field Name" TEXT,
  "Form Name" TEXT,
  "Section Header" TEXT,
  "Field Type" TEXT,
  "Field Label" TEXT,
  "Choices, Calculations, OR Slider Labels" TEXT,
  "Field Note" TEXT,
  "Text Validation Type OR Show Slider Number" TEXT,
  "Text Validation Min" TEXT,
  "Text Validation Max" TEXT,
  "Identifier?" TEXT,
  "Branching Logic (Show field only if...)" TEXT,
  "Required Field?" TEXT,
  "Custom Alignment" TEXT,
  "Question Number (surveys only)" TEXT,
  "Matrix Group Name" TEXT,
  "Matrix Ranking?" TEXT,
  "Field Annotation" TEXT
);

(4) By L Carl (lcarlp) on 2020-04-06 13:58:57 in reply to 3 [link] [source]

If you like, I could start with a minimal database and add objects a few at a time to try to narrow down the problem.

(5) By Gunter Hick (gunter_hick) on 2020-04-06 14:10:14 in reply to 3 [link] [source]

Your schema seems massively undernormalized. Any item that requires numbering of otherwise identical field names should be held in a relation.

(6) By Richard Hipp (drh) on 2020-04-06 14:24:47 in reply to 5 [link] [source]

The OP's schema is kind of a pathological case. But even so, ALTER TABLE ought to be able to deal with it. We are looking into the problem now.

(7) By anonymous on 2020-04-06 14:40:17 in reply to 1 [link] [source]

If this a small database, I'd hate to see your larger ones.

Randomly removing just one of many (not all) views seems to bypass the huge delay. Based on that alone, it seems to me the problem is related to some kind of recursion when modifying the table and trying to adjust views.

(8) By Richard Hipp (drh) on 2020-04-06 14:41:30 in reply to 3 [link] [source]

Aside: The issue of very large forum posts is being discussed separately.

(9) By David Raymond (dvdraymond) on 2020-04-06 14:52:16 in reply to 3 [link] [source]

There also not a single index anywhere in there. No primary keys, no uniques, no even regular indexes. And no "not null" bits in there either.

But, like Dr Hipp said, it should still work.
(Well, it did work, but 3 hours for a 70 MB database is a bit much, yes)

(10) By Richard Hipp (drh) on 2020-04-06 19:03:44 in reply to 1 [link] [source]

Please try again using the latest Pre-release Snapshot and report back whether or not this clears your problem.

(11) By L Carl (lcarlp) on 2020-04-07 22:13:57 in reply to 10 [link] [source]

Well, I’d like to try it, but I’ve got no experience building and installing software like this. I was using SQLite 3.24, which came from Apple with Mojave, and with some flailing I managed to install SQLIte 3.31.1 using homebrew and I don’t feel I have the time to start exploring down another rabbit hole.

I know that schema is ugly. I did not design it. It came from a tool called REDCap which has very limited capabilities. It’s easy to export from REDCap and I found it very easy to import into SQLite for reporting and analysis.

SQLite is absolutely fantastic. I’ve used Oracle heavily since about 1987 doing extensive development work with it. I’ve also used MS SQL Server a fair amount and have dabbled with several other SQL engines. I am very impressed with what I can do with SQLite. Aside from this little problem it has very easily handled everything I’ve thrown at it. Thank you for this jewel of a piece of software.

And yes, this is a small schema compared to others I have worked with, including some I have designed myself. This one was mainly created to produce reports.

BTW, Oracle would not chase around and try to fix all of my triggers and references if I change the name of a table or column and frankly I prefer that behavior. I used to change names in order to hide things. SQLite makes it harder to, for example, to replace a table with a joined view, something I might well want to do. But, maybe you had good reasons to do it this way.

And sorry for the very long post of the schema. I wondered if there was a better way to do that.

(12.1) By Larry Brasfield (LarryBrasfield) on 2020-04-07 22:44:52 edited from 12.0 in reply to 11 [link] [source]

If my older Mac had not gotten pranged during its last airplane trip, I would offer to send you an executable built from yesterday's prelease. Would you like one built for Windows? (If so, email me at myLastName.myFirstname@gmail.com)

With the SQLite shell you have, you can get a text form of your database, including its data and schema, by using the .dump command. A few minutes with a competent editor would allow renaming as you see fit.

It is simple to use the SQLite DDL,

  CREATE TABLE MyOtherlyNamedTable AS
  SELECT * FROM SomeTableToBeGoneSoon
followed by
  DROP TABLE SomeTableToBeGoneSoon
to effect the hiding you miss.

(13) By Warren Young (wyoung) on 2020-04-08 04:01:29 in reply to 11 [link] [source]

I’ve got no experience building and installing software like this.

...A situation that will persist until you try, just once. :)

with some flailing I managed to install SQLIte 3.31.1 using homebrew

You characterize "install Homebrew ; brew install sqlite" as "flailing"? Even a macOS .dmg package is a two-step install procedure.

I don’t feel I have the time to start exploring down another rabbit hole.

Only you can say what your time constraints are, but it really isn't all that difficult. Skip down to "Compiling." The tarball referenced in the first step of those instructions is the snapshot drh just pointed you to.

Oracle would not chase around and try to fix all of my triggers and references if I change the name of a table or column and frankly I prefer that behavior.

Enable legacy ALTER TABLE behavior, then.

maybe you had good reasons to do it this way.

The "legacy" method allowed referential integrity to be broken, which is a violation of the "C" in ACID.

(14) By L Carl (lcarlp) on 2020-04-08 17:03:07 in reply to 13 [link] [source]

I might try the install, but it’s a low priority compared to other things I need to do soon. The brew install was not quite as simple as you imply, since it was “keg-only”, a term I did not know the meaning of before I encountered it. Homebrew’s many beer analogies are endearing but not always transparent to someone like me who drinks mostly gin.

I lied a little about Oracle. The documentation clarifies:

  • Oracle Database automatically transfers integrity constraints, indexes, and grants on the old object to the new object.

  • Oracle Database invalidates all objects that depend on the renamed object, such as views, synonyms, and stored procedures and functions that refer to a renamed table.

I found this behavior easy to live with. Suppose, for example, I had a lot of code referencing table ARTHUR and I decided to refactor/normalize so that ARTHUR was a view joining two or more tables. I was dealing with databases where some tables had billions of rows, so copying a table over was not something to take lightly. I’m happy not to be dealing with stuff like that anymore.

Anyway, thanks to everyone for all the help. I’m very happy with SQLite.