I'm tinkering with using datablaze to make my lists but I've run into a snag (see my other post). I've managed to import my table and I am using "multiple select" coloumns. It seems like when I use the run command to initialize my variables they dont seem to actually assign any values (they just assign an empty string ""). When I remove the "run" from the command (ex: {run: plan_selected=db_list["plan default"]} to {plan_selected= db_list["plan default"]}) and check the variable (ex {=plan_selected}) it seems to actually have assigned the list from the database.
Any idea how to fix this?
{note: preview=no; trim=yes}
dx / complaint: {dx="Acute sinusitis"}
{dbselect: SELECT ddx, investigation, treatment, follow-up
, discussion, ddx default
, investigation default
, treatment default
, follow-up default
, discussion default
, plan default
FROM plan WHERE dx / complaint
= @dx; space=57Y9Lcf1LFEnYOwzkFVofq; menu=no; name=db_list}
Variables/Lists:
Ddx list: {ddx_list=db_list["ddx"]}
Investigation list: {investigations_list=db_list["investigation"]}
Treatment list: {treatments_list=db_list["treatment"]}
Discussed list: {discussed_list=db_list["discussion"]}
Follow-up list: {fu_list=db_list["follow-up"]}
Initial selections:
dx / complaint : {run: problem = {=dx}}
Plan selected: {run: plan_selected=db_list["plan default"]}
Ddx selected: {run: ddx_selected=db_list["ddx default"]}
Treatment selected: {run: treatments_selected= db_list["treatment default"]}
Investigations selected: {run: investigations_selected= db_list["investigation default"]}
Follow-up selected: {run: fu_selected= db_list["follow-up default"]}
Discussed selected: {run: discussed_selected= db_list["discussion default"]}
{endnote: trim=yes}
{import: /template-db-plan}