The is that for "HIGH thrombotic risk - thus must continue anti-platelet agents", you include a period at the end in your {formmenu} but not in your list. They two strings need to be exactly the same to match.
Here is a fixed version (please make sure to read beyond this snippet as I have another example of how to improve it):
{formtoggle: name=Anti_Platelet_Rx;formatter=(value) -> "Anti-platelet medication(s) taken - " if value else ""} {if: Anti_Platelet_Rx}{note} Type {endnote} {formmenu: name=anti_platelet_drug; default= ; Low-dose aspirin; Clopidogrel (Plavix or Iscover); Low-dose aspirin + Clopidogrel (Co-Plavix); Dipyridamole (Persantin or Asasantin)}{note} Duration {endnote} {formmenu: default=;- for 1;- for 2;- for 3;- for 4;- for 5;- for 6;- for 7;- for 8;- for 9;- for 10;- for 11;- for 12;- for 15;- for 20;- for 24;- for 30;- for 36}{formmenu: default=;-day;-days;-week;-weeks;-month;-months;-year;-years}
{formtoggle: name=Reasons_Anti_Platelet_Taken; formatter=(value) -> "Anti-platelet medication(s) taken because of - " if value else ""}{if: Reasons_Anti_Platelet_Taken}{formmenu: name=reason; default= Select; IHD with coronary artery stents inserted within 12 months.; IHD with coronary artery stents inserted over 12 months ago.; IHD without coronary artery stents.; Cerebrovascular disease.; Peripheral vascular disease.;- Other:; trim=left}{if: reason==="- Other:"}{formtext: name=Other reason;default=; trim=left}{endif}
{formtext: default= Patient's thrombotic risk profile for stopping anti-platelet treatment should be considered as:; trim=left} {= thrombotic_risk}{endif}
{thrombotic_risk="HIGH thrombotic risk - thus must continue anti-platelet agents." if (reason==" IHD with coronary artery stents inserted within 12 months.") else "LOW thrombotic risk - thus can stop anti-platelet agents."}
{formtoggle: name=Procedure_Bleeding_Risk; formatter=(value) -> "Procedure Bleeding Risk - " if value else ""} {if: Procedure_Bleeding_Risk} {formmenu: name=proc_bleed_risk; default= ; Low; High}{endif}{endif}
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Anti-Platelet Medication: {formmenu: name=anti_platelet_drug; Low-dose aspirin; Clopidogrel (Plavix or Iscover); Low-dose aspirin + Clopidogrel (Co-Plavix); Dipyridamole (Persantin or Asasantin)}
Patient Thrombotic Risk: {formmenu: name=thrombotic_risk; LOW thrombotic risk - thus can stop anti-platelet agents.; HIGH thrombotic risk - thus must continue anti-platelet agents.}
Procedure Bleeding Risk: {formmenu: name=proc_bleed_risk; Low; High}
{treatments=[
"Low-dose aspirin" = [
"Low" = [ "LOW thrombotic risk - thus can stop anti-platelet agents." = "abra-cadabra", "HIGH thrombotic risk - thus must continue anti-platelet agents." = "hocus-pocus" ],
"High" = [ "LOW thrombotic risk - thus can stop anti-platelet agents." = "Ali-babba", "HIGH thrombotic risk - thus must continue anti-platelet agents." = "Genie" ]
],
"Clopidogrel (Plavix or Iscover)" = [
"Low" = [ "LOW thrombotic risk - thus can stop anti-platelet agents." = "Netflix", "HIGH thrombotic risk - thus must continue anti-platelet agents." = "Hulu" ],
"High" = [ "LOW thrombotic risk - thus can stop anti-platelet agents." = "Stan", "HIGH thrombotic risk - thus must continue anti-platelet agents." = "YouTube" ]
],
"Low-dose aspirin + Clopidogrel (Co-Plavix)" = [
"Low" = [ "LOW thrombotic risk - thus can stop anti-platelet agents." = "Windows", "HIGH thrombotic risk - thus must continue anti-platelet agents." = "Apple" ],
"High" = [ "LOW thrombotic risk - thus can stop anti-platelet agents." = "Linux", "HIGH thrombotic risk - thus must continue anti-platelet agents." = "Android" ]
],
"Dipyridamole (Persantin or Asasantin)" = [
"Low" = [ "LOW thrombotic risk - thus can stop anti-platelet agents." = "Spotify", "HIGH thrombotic risk - thus must continue anti-platelet agents." = "Pandora" ],
"High" = [ "LOW thrombotic risk - thus can stop anti-platelet agents." = "Deezer", "HIGH thrombotic risk - thus must continue anti-platelet agents." = "Google Play" ]
]
]}
Outcome: {= treatments[anti_platelet_drug][proc_bleed_risk][thrombotic_risk]}
This example illustrates something that is an interesting point. Generallu you don't want to hard code long strings like "HIGH thrombotic risk - thus must continue anti-platelet agents." multiple times as it can make it hard to change them or make sure they always match. One way to address this is to pull these labels into variables that allow you to reuse them. I've done that below.
This makes the snippet more readable and makes it very easy to change the labels if you need to down the road.
{formtoggle: name=Anti_Platelet_Rx;formatter=(value) -> "Anti-platelet medication(s) taken - " if value else ""} {if: Anti_Platelet_Rx}{note} Type {endnote} {formmenu: name=anti_platelet_drug; default= ; Low-dose aspirin; Clopidogrel (Plavix or Iscover); Low-dose aspirin + Clopidogrel (Co-Plavix); Dipyridamole (Persantin or Asasantin)}{note} Duration {endnote} {formmenu: default=;- for 1;- for 2;- for 3;- for 4;- for 5;- for 6;- for 7;- for 8;- for 9;- for 10;- for 11;- for 12;- for 15;- for 20;- for 24;- for 30;- for 36}{formmenu: default=;-day;-days;-week;-weeks;-month;-months;-year;-years}
{formtoggle: name=Reasons_Anti_Platelet_Taken; formatter=(value) -> "Anti-platelet medication(s) taken because of - " if value else ""}{if: Reasons_Anti_Platelet_Taken}{formmenu: name=reason; default= Select; IHD with coronary artery stents inserted within 12 months.; IHD with coronary artery stents inserted over 12 months ago.; IHD without coronary artery stents.; Cerebrovascular disease.; Peripheral vascular disease.;- Other:; trim=left}{if: reason==="- Other:"}{formtext: name=Other reason;default=; trim=left}{endif}
{formtext: default= Patient's thrombotic risk profile for stopping anti-platelet treatment should be considered as:; trim=left} {= thrombotic_risk}{endif}
{thrombotic_risk="HIGH thrombotic risk - thus must continue anti-platelet agents." if (reason==" IHD with coronary artery stents inserted within 12 months.") else "LOW thrombotic risk - thus can stop anti-platelet agents."}
{formtoggle: name=Procedure_Bleeding_Risk; formatter=(value) -> "Procedure Bleeding Risk - " if value else ""} {if: Procedure_Bleeding_Risk} {formmenu: name=proc_bleed_risk; default= ; Low; High}{endif}{endif}
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Anti-Platelet Medication: {formmenu: name=anti_platelet_drug; Low-dose aspirin; Clopidogrel (Plavix or Iscover); Low-dose aspirin + Clopidogrel (Co-Plavix); Dipyridamole (Persantin or Asasantin)}
{low_risk_label="LOW thrombotic risk - thus can stop anti-platelet agents."}
{high_risk_label="HIGH thrombotic risk - thus must continue anti-platelet agents."}
Patient Thrombotic Risk: {formmenu: name=thrombotic_risk; {=low_risk_label}; {=high_risk_label}}
Procedure Bleeding Risk: {formmenu: name=proc_bleed_risk; Low; High}
{treatments=[
"Low-dose aspirin" = [
"Low" = [ low_risk_label = "abra-cadabra", high_risk_label = "hocus-pocus" ],
"High" = [ low_risk_label = "Ali-babba", high_risk_label = "Genie" ]
],
"Clopidogrel (Plavix or Iscover)" = [
"Low" = [ low_risk_label = "Netflix", high_risk_label = "Hulu" ],
"High" = [ low_risk_label = "Stan", high_risk_label = "YouTube" ]
],
"Low-dose aspirin + Clopidogrel (Co-Plavix)" = [
"Low" = [ low_risk_label = "Windows", high_risk_label = "Apple" ],
"High" = [ low_risk_label = "Linux", high_risk_label = "Android" ]
],
"Dipyridamole (Persantin or Asasantin)" = [
"Low" = [ low_risk_label = "Spotify", high_risk_label = "Pandora" ],
"High" = [ low_risk_label = "Deezer", high_risk_label = "Google Play" ]
]
]}
Outcome: {= treatments[anti_platelet_drug][proc_bleed_risk][thrombotic_risk]}