Surgery or endoscopy - Sample snippets

Although the setup of GALLERY and Awesome New Stories is great it would be even better to have FORUMS where like-minded users (eg in my case in Healthcare) can exchange and discuss snippets and even request snippets. Maybe staff from TB can even facilitate or help?
For example the snippet below is for making recommendations to stop the use of blood thinning agents before any surgery or endoscopy. Although it is ok and functional for me (who designed it) it is not intuitive or easy to use by others. Can someone help improve it? I think many healthcare workers would find it very useful.
The snippet is as follows:

{note: trim=right}

{reasonslist=["- Reason for taking Anti-Platelet Medications such as Low-dose aspirin, Clopidogrel or Dipyridamole -", "IHD without coronary artery stents", "IHD with coronary artery stents inserted over 12 months ago", "IHD with coronary artery stents inserted within 12 months", "Cerebrovascular disease", "Peripheral vascular disease", "NO recognised clinical indication for taking this treatment", "", "- Reason for taking Anti-Coagulant Medication such as Warfarin, Eliquis, Xarelto or Pradaxa -", "AF without valvular disease", "AF and mitral stenosis", "Prosthetic metal heart valve and AF", "Prosthetic metal heart valve in mitral position", "Prosthetic metal heart valve in aortic position", "Xenograft heart valve", "Greater than 6-months after Pulmonary Embolism or Deep Venous Thrombosis", "Less than 6-months after Pulmonary Embolism or Deep Venous Thrombosis", "Thrombophilia syndromes"]}

{anti_platelet_drug=["- Anti-Platelet Medications -", "Low-dose aspirin", "Clopidogrel (Plavix or Iscover)", "Low-dose aspirin + Clopidogrel (Co-Plavix)", "Dipyridamole (Persantin or Asasantin)", ""]; trim=yes}

{anti_coagulant_drug=["- Anti-Coagulant Medications -", "Warfarin", "Eliquis (Apixaban)", "Xarelto (Rivaroxaban)", "Pradaxa (Dabigatran)"]; trim=yes}

{allmeds=merge(anti_platelet_drug, anti_coagulant_drug); trim=yes}

{endnote: trim=yes}

Blood-Thinning Medication(s): {note}{formmenu: name=medstaken; default=No; Yes; cols=8; trim=right}{endnote: trim=right}{if: medstaken=="No"}No Blood-Thinning medication taken.{elseif: medstaken=="Yes"}{note}Blood-Thinning Medication(s) currently taken: {endnote: trim=right}{formmenu: name=medication; values={=allmeds}; multiple=yes; cols=40}
{if: medication==[]}{else}Reason for taking Blood-Thinning Medication(s): {formmenu: name=reasons; values={=reasonslist}; multiple=yes; cols=40}
{endif: trim=yes}

{if: includes(medication, "Low-dose aspirin")}
For Low-dose aspirin:
{if: includes(reasons, "IHD with coronary artery stents inserted within 12 months")}Do not stop low-dose aspirin before procedure - ONLY omit on day of procedure; restart low-dose aspirin on the next day after procedure.{elseif: includes(reasons, "NO recognised clinical indication for taking this treatment")}Stop low-dose aspirin for 5-days prior procedure; restart low-dose aspirin 7 days after the procedure if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart low-dose aspirin on the next day after procedure.{elseif: includes(reasons, "IHD without coronary artery stents") or includes(reasons, "IHD with coronary artery stents inserted over 12 months ago") or includes(reasons, "Cerebrovascular disease") or includes(reasons, "Peripheral vascular disease")}Stop low-dose aspirin ONLY for 2-days prior procedure; restart low-dose aspirin on the next day after procedure.

{endif: trim=left}{endif: trim=right}

{if: includes(medication, "Clopidogrel (Plavix or Iscover)")}
For Clopidogrel (Plavix or Iscover):
{if: includes(reasons, "IHD with coronary artery stents inserted within 12 months")}Discontinue Clopidogrel medication 7 days before the procedure & replace with low-dose aspirin; do not stop low-dose aspirin before procedure - ONLY omit on day of procedure & restart low-dose aspirin on the next day after procedure; restart Clopidogrel medication 7 days after the procedure (and stop low-dose aspirin) if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart Clopidogrel medication on the next day after the procedure (and stop low-dose aspirin).{elseif: includes(reasons, "NO recognised clinical indication for taking this treatment")}Discontinue Clopidogrel medication therapy 7 days before the procedure. Restart Clopidogrel medication 7 days after the procedure if biopsy specimens taken; otherwise if no biopsy specimens are taken restart Clopidogrel medication on the next day after the procedure.{elseif: includes(reasons, "IHD without coronary artery stents") or includes(reasons, "IHD with coronary artery stents inserted over 12 months ago") or includes(reasons, "Cerebrovascular disease") or includes(reasons, "Peripheral vascular disease")}Discontinue Clopidogrel medication 7 days before the procedure & replace with low-dose aspirin; stop low-dose aspirin 2-days before procedure & restart low-dose aspirin on the next day after procedure; restart Clopidogrel medication 7 days after the procedure (and stop low-dose aspirin) if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart Clopidogrel medication on the next day after the procedure (and stop low-dose aspirin).

{endif: trim=left}{endif: trim=right}

{if: includes(medication, "Low-dose aspirin + Clopidogrel (Co-Plavix)")}
For Low-dose aspirin + Clopidogrel (Co-Plavix):
{if: includes(reasons, "IHD with coronary artery stents inserted within 12 months")}Liaise with cardiologist about the risk/benefit of discontinuation of one of the anti-platelet agents (discontinue dual anti-platelet therapy for 7 days prior to the procedure & continue with low-dose aspirin alone); omit low-dose aspirin ONLY on day of procedure & restart low-dose aspirin on the next day after procedure; restart dual anti-platelet therapy 7 days after the procedure if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart dual anti-platelet therapy on the next day after the procedure.{elseif: includes(reasons, "NO recognised clinical indication for taking this treatment")}Discontinue dual anti-platelet therapy 7 days prior to the procedure & continue with low-dose aspirin alone; stop low-dose aspirin 2-days before procedure & restart low-dose aspirin on the next day after procedure; restart dual anti-platelet therapy 7 days after the procedure if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart dual anti-platelet therapy on the next day after the procedure.{elseif: includes(reasons, "IHD without coronary artery stents") or includes(reasons, "IHD with coronary artery stents inserted over 12 months ago") or includes(reasons, "Cerebrovascular disease") or includes(reasons, "Peripheral vascular disease")}Discontinue dual anti-platelet therapy 7 days prior to the procedure & continue with low-dose aspirin alone; omit low-dose aspirin ONLY on day of procedure & restart low-dose aspirin on the next day after procedure; restart dual anti-platelet therapy 7 days after the procedure if specimens taken; otherwise if no biopsy specimens are taken restart dual anti-platelet therapy on the next day after the procedure.

{endif: trim=left}{endif: trim=right}

{if: includes(medication, "Dipyridamole (Persantin or Asasantin)")}
For Dipyridamole (Persantin or Asasantin):
{if: includes(reasons, "IHD with coronary artery stents inserted within 12 months")}Discontinue Dipyridamole (Persantin or Asasantin) treatment 7 days before the procedure & replace with low-dose aspirin; do not stop low-dose aspirin before procedure - ONLY omit on day of procedure & restart low-dose aspirin on the next day after procedure; restart Dipyridamole (Persantin or Asasantin) treatment 7 days after the procedure (and stop low-dose aspirin) if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart Dipyridamole (Persantin or Asasantin) treatment on the next day after the procedure (and stop low-dose aspirin).{elseif: includes(reasons, "NO recognised clinical indication for taking this treatment")}Discontinue Dipyridamole (Persantin or Asasantin) 5 days before the procedure. Restart Dipyridamole (Persantin or Asasantin) 7 days after the procedure if biopsy specimens taken; otherwise if no biopsy specimens are taken restart Dipyridamole (Persantin or Asasantin) on the next day after the procedure.{elseif: includes(reasons, "IHD without coronary artery stents") or includes(reasons, "IHD with coronary artery stents inserted over 12 months ago") or includes(reasons, "Cerebrovascular disease") or includes(reasons, "Peripheral vascular disease")}Discontinue Dipyridamole (Persantin or Asasantin) 7 days before the procedure & replace with low-dose aspirin; stop low-dose aspirin 2-days before procedure & restart low-dose aspirin on the next day after procedure; restart Dipyridamole (Persantin or Asasantin) 7 days after the procedure (and stop low-dose aspirin) if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart Dipyridamole (Persantin or Asasantin) on the next day after the procedure (and stop low-dose aspirin).

{endif: trim=left}{endif: trim=right}

{if: includes(medication, "Warfarin")}
For Warfarin:
{if: includes(reasons, "AF without valvular disease") or includes(reasons, "Xenograft heart valve") or includes(reasons, "Greater than 6-months after Pulmonary Embolism or Deep Venous Thrombosis")}Stop Warfarin 5 days before the procedure + check INR prior to the procedure is < 1.5; restart Warfarin on the evening following the procedure with usual daily dose + check INR 1 week later to ensure adequate anti-coagulation.{elseif: includes(reasons, "AF and mitral stenosis") or includes(reasons, "Prosthetic metal heart valve and AF") or includes(reasons, "Prosthetic metal heart valve in mitral position") or includes(reasons, "Prosthetic metal heart valve in aortic position") or includes(reasons, "Less than 6-months after Pulmonary Embolism or Deep Venous Thrombosis") or includes(reasons, "Thrombophilia syndromes")}Stop warfarin 7 days before procedure + start LMWH (Clexane) 2 days after stopping warfarin + give last dose of LMWH (Clexane) ≥ 24 hours before procedure; restart Warfarin on the same evening of procedure with usual daily dose continue LMWH (Clexane) until INR > 1.5.

{endif: trim=left}{endif: trim=right}

{if: includes(medication, "Eliquis (Apixaban)")}
For Eliquis (Apixaban):
{if: includes(reasons, "AF without valvular disease") or includes(reasons, "Xenograft heart valve") or includes(reasons, "Greater than 6-months after Pulmonary Embolism or Deep Venous Thrombosis")}Omit Eliquis for 2-days before the procedure; restart Eliquis on the evening following the procedure with usual daily dose if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart restart Eliquis on the evening of procedure with usual daily dose.{elseif: includes(reasons, "AF and mitral stenosis") or includes(reasons, "Prosthetic metal heart valve and AF") or includes(reasons, "Prosthetic metal heart valve in mitral position") or includes(reasons, "Prosthetic metal heart valve in aortic position") or includes(reasons, "Less than 6-months after Pulmonary Embolism or Deep Venous Thrombosis") or includes(reasons, "Thrombophilia syndromes")}Omit Eliquis for 3-days before the procedure + start LMWH (Clexane) 24 hours after stopping Eliquis; take last dose of LMWH ≥24 hours before procedure (day before procedure); restart Eliquis on the evening following the procedure with usual daily dose if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart restart Eliquis on the evening of procedure with usual daily dose; stop taking LMWH 2-days after restarting Eliquis.

{endif: trim=left}{endif: trim=right}

{if: includes(medication, "Xarelto (Rivaroxaban)")}
For Xarelto (Rivaroxaban):
{if: includes(reasons, "AF without valvular disease") or includes(reasons, "Xenograft heart valve") or includes(reasons, "Greater than 6-months after Pulmonary Embolism or Deep Venous Thrombosis")}Omit Xarelto for 2-days before the procedure; restart Xarelto on the evening following the procedure with usual daily dose if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart restart Xarelto on the evening of procedure with usual daily dose.{elseif: includes(reasons, "AF and mitral stenosis") or includes(reasons, "Prosthetic metal heart valve and AF") or includes(reasons, "Prosthetic metal heart valve in mitral position") or includes(reasons, "Prosthetic metal heart valve in aortic position") or includes(reasons, "Less than 6-months after Pulmonary Embolism or Deep Venous Thrombosis") or includes(reasons, "Thrombophilia syndromes")}Omit Xarelto for 3-days before the procedure + start LMWH (Clexane) 24 hours after stopping Xarelto take last dose of LMWH ≥24 hours before procedure (day before procedure); restart Xarelto on the evening following the procedure with usual daily dose if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart restart Xarelto on the evening of procedure with usual daily dose; stop taking LMWH 2-days after restarting Xarelto.

{endif: trim=left}{endif: trim=right}

{if: includes(medication, "Pradaxa (Dabigatran)")}
For Pradaxa (Dabigatran):
{if: includes(reasons, "AF without valvular disease") or includes(reasons, "Xenograft heart valve") or includes(reasons, "Greater than 6-months after Pulmonary Embolism or Deep Venous Thrombosis")}Omit Pradaxa for 2-days before the procedure; restart Pradaxa on the evening following the procedure with usual daily dose if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart restart Pradaxa on the evening of procedure with usual daily dose; (if eGFR between 30-50, stop Pradaxa ≥ 3-days before procedure; in any patient with rapidly deteriorating renal function -> consult a haematologist).{elseif: includes(reasons, "AF and mitral stenosis") or includes(reasons, "Prosthetic metal heart valve and AF") or includes(reasons, "Prosthetic metal heart valve in mitral position") or includes(reasons, "Prosthetic metal heart valve in aortic position") or includes(reasons, "Less than 6-months after Pulmonary Embolism or Deep Venous Thrombosis") or includes(reasons, "Thrombophilia syndromes")}Omit Pradaxa for 3-days before the procedure + start LMWH (Clexane) 24 hours after stopping Pradaxa take last dose of LMWH ≥24 hours before procedure (day before procedure); restart Pradaxa on the evening following the procedure with usual daily dose if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart restart Pradaxa on the evening of procedure with usual daily dose; stop taking LMWH 2-days after restarting Pradaxa; (if eGFR between 30-50, stop Pradaxa ≥ 3-days before procedure; in any patient with rapidly deteriorating renal function -> consult a haematologist)

{endif: trim=left}{endif: trim=left}{endif: trim=left}

Hi @George_Marinos - Let's start with a dedicated thread and see how it goes. I've just created one here:

Could you please replicate your post in there, so we can get it going?

By the way, I've turned your snippet syntax into a dynamic snippet. You can do this by clicking in the "gear" icon at the far right of the editing menu at the top when your typing your post.

image

Then click "Text Blaze Snippet". You'll get a piece of code that looks like this:

[snippet]
Snippet contents.
[/snippet]

Just paste your snippet where it says Snippet contents.

Hope this helps :slight_smile:

Thanks Cedric,
I worked on the snippet myself for a while and I think I have made it simpler and easier to use. What do you think?

Does anyone have any suggestions?

{note: trim=right}

{reasonslist=["- Reason for taking Anti-Platelet Medications such as Low-dose aspirin, Clopidogrel or Dipyridamole -", "IHD without coronary artery stents", "IHD with coronary artery stents inserted over 12 months ago", "IHD with coronary artery stents inserted within 12 months", "Cerebrovascular disease", "Peripheral vascular disease", "NO recognised clinical indication for taking this treatment", "", "- Reason for taking Anti-Coagulant Medication such as Warfarin, Eliquis, Xarelto or Pradaxa -", "AF without valvular disease", "AF and mitral stenosis", "Prosthetic metal heart valve and AF", "Prosthetic metal heart valve in mitral position", "Prosthetic metal heart valve in aortic position", "Xenograft heart valve", "Greater than 6-months after Pulmonary Embolism or Deep Venous Thrombosis", "Less than 6-months after Pulmonary Embolism or Deep Venous Thrombosis", "Thrombophilia syndromes"]}

{blood_thinning_med=["Low-dose aspirin", "Clopidogrel (Plavix or Iscover)", "Low-dose aspirin + Clopidogrel (Co-Plavix)", "Dipyridamole (Persantin or Asasantin)", "", "Warfarin", "Eliquis (Apixaban)", "Xarelto (Rivaroxaban)", "Pradaxa (Dabigatran)"]; trim=yes}

{endnote: trim=yes}

{formtoggle: name=No blood-thinning medication taken}No blood-thinning medication is currently being taken.{endformtoggle: trim=yes}{formtoggle: name=Blood-thinning medication taken}Blood-Thinning Medication(s) currently taken: {formmenu: name=medication; values={=blood_thinning_med}; multiple=yes; cols=40}
{if: medication==[]}{else}Reason for taking Blood-Thinning Medication(s): {formmenu: name=reasons; values={=reasonslist}; multiple=yes; cols=40}{if: "Blood-thinning medication taken"==yes}{"No blood-thinning medication taken"=no}{endif: trim=yes}
{if: "No blood-thinning medication taken"==yes}{"Blood-thinning medication taken"=no}{endif: trim=yes}
{endif: trim=yes}{endformtoggle: trim=yes}

{if: includes(medication, "Low-dose aspirin")}
-> For Low-dose aspirin: {if: includes(reasons, "IHD with coronary artery stents inserted within 12 months")}Do not stop low-dose aspirin before procedure - ONLY omit on day of procedure; restart low-dose aspirin on the next day after procedure.{elseif: includes(reasons, "NO recognised clinical indication for taking this treatment")}Stop low-dose aspirin for 5-days prior procedure; restart low-dose aspirin 7 days after the procedure if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart low-dose aspirin on the next day after procedure.{elseif: includes(reasons, "IHD without coronary artery stents") or includes(reasons, "IHD with coronary artery stents inserted over 12 months ago") or includes(reasons, "Cerebrovascular disease") or includes(reasons, "Peripheral vascular disease")}Stop low-dose aspirin ONLY for 2-days prior procedure; restart low-dose aspirin on the next day after procedure.

{endif: trim=left}{endif: trim=right}

{if: includes(medication, "Clopidogrel (Plavix or Iscover)")}
-> For Clopidogrel (Plavix or Iscover): {if: includes(reasons, "IHD with coronary artery stents inserted within 12 months")}Discontinue Clopidogrel medication 7 days before the procedure & replace with low-dose aspirin; do not stop low-dose aspirin before procedure - ONLY omit on day of procedure & restart low-dose aspirin on the next day after procedure; restart Clopidogrel medication 7 days after the procedure (and stop low-dose aspirin) if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart Clopidogrel medication on the next day after the procedure (and stop low-dose aspirin).{elseif: includes(reasons, "NO recognised clinical indication for taking this treatment")}Discontinue Clopidogrel medication therapy 7 days before the procedure. Restart Clopidogrel medication 7 days after the procedure if biopsy specimens taken; otherwise if no biopsy specimens are taken restart Clopidogrel medication on the next day after the procedure.{elseif: includes(reasons, "IHD without coronary artery stents") or includes(reasons, "IHD with coronary artery stents inserted over 12 months ago") or includes(reasons, "Cerebrovascular disease") or includes(reasons, "Peripheral vascular disease")}Discontinue Clopidogrel medication 7 days before the procedure & replace with low-dose aspirin; stop low-dose aspirin 2-days before procedure & restart low-dose aspirin on the next day after procedure; restart Clopidogrel medication 7 days after the procedure (and stop low-dose aspirin) if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart Clopidogrel medication on the next day after the procedure (and stop low-dose aspirin).

{endif: trim=left}{endif: trim=right}

{if: includes(medication, "Low-dose aspirin + Clopidogrel (Co-Plavix)")}
-> For Low-dose aspirin + Clopidogrel (Co-Plavix): {if: includes(reasons, "IHD with coronary artery stents inserted within 12 months")}Liaise with cardiologist about the risk/benefit of discontinuation of one of the anti-platelet agents (discontinue dual anti-platelet therapy for 7 days prior to the procedure & continue with low-dose aspirin alone); omit low-dose aspirin ONLY on day of procedure & restart low-dose aspirin on the next day after procedure; restart dual anti-platelet therapy 7 days after the procedure if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart dual anti-platelet therapy on the next day after the procedure.{elseif: includes(reasons, "NO recognised clinical indication for taking this treatment")}Discontinue dual anti-platelet therapy 7 days prior to the procedure & continue with low-dose aspirin alone; stop low-dose aspirin 2-days before procedure & restart low-dose aspirin on the next day after procedure; restart dual anti-platelet therapy 7 days after the procedure if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart dual anti-platelet therapy on the next day after the procedure.{elseif: includes(reasons, "IHD without coronary artery stents") or includes(reasons, "IHD with coronary artery stents inserted over 12 months ago") or includes(reasons, "Cerebrovascular disease") or includes(reasons, "Peripheral vascular disease")}Discontinue dual anti-platelet therapy 7 days prior to the procedure & continue with low-dose aspirin alone; omit low-dose aspirin ONLY on day of procedure & restart low-dose aspirin on the next day after procedure; restart dual anti-platelet therapy 7 days after the procedure if specimens taken; otherwise if no biopsy specimens are taken restart dual anti-platelet therapy on the next day after the procedure.

{endif: trim=left}{endif: trim=right}

{if: includes(medication, "Dipyridamole (Persantin or Asasantin)")}
-> For Dipyridamole (Persantin or Asasantin): {if: includes(reasons, "IHD with coronary artery stents inserted within 12 months")}Discontinue Dipyridamole (Persantin or Asasantin) treatment 7 days before the procedure & replace with low-dose aspirin; do not stop low-dose aspirin before procedure - ONLY omit on day of procedure & restart low-dose aspirin on the next day after procedure; restart Dipyridamole (Persantin or Asasantin) treatment 7 days after the procedure (and stop low-dose aspirin) if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart Dipyridamole (Persantin or Asasantin) treatment on the next day after the procedure (and stop low-dose aspirin).{elseif: includes(reasons, "NO recognised clinical indication for taking this treatment")}Discontinue Dipyridamole (Persantin or Asasantin) 5 days before the procedure. Restart Dipyridamole (Persantin or Asasantin) 7 days after the procedure if biopsy specimens taken; otherwise if no biopsy specimens are taken restart Dipyridamole (Persantin or Asasantin) on the next day after the procedure.{elseif: includes(reasons, "IHD without coronary artery stents") or includes(reasons, "IHD with coronary artery stents inserted over 12 months ago") or includes(reasons, "Cerebrovascular disease") or includes(reasons, "Peripheral vascular disease")}Discontinue Dipyridamole (Persantin or Asasantin) 7 days before the procedure & replace with low-dose aspirin; stop low-dose aspirin 2-days before procedure & restart low-dose aspirin on the next day after procedure; restart Dipyridamole (Persantin or Asasantin) 7 days after the procedure (and stop low-dose aspirin) if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart Dipyridamole (Persantin or Asasantin) on the next day after the procedure (and stop low-dose aspirin).

{endif: trim=left}{endif: trim=right}

{if: includes(medication, "Warfarin")}
-> For Warfarin: {if: includes(reasons, "AF without valvular disease") or includes(reasons, "Xenograft heart valve") or includes(reasons, "Greater than 6-months after Pulmonary Embolism or Deep Venous Thrombosis")}Stop Warfarin 5 days before the procedure + check INR prior to the procedure is < 1.5; restart Warfarin on the evening following the procedure with usual daily dose + check INR 1 week later to ensure adequate anti-coagulation.{elseif: includes(reasons, "AF and mitral stenosis") or includes(reasons, "Prosthetic metal heart valve and AF") or includes(reasons, "Prosthetic metal heart valve in mitral position") or includes(reasons, "Prosthetic metal heart valve in aortic position") or includes(reasons, "Less than 6-months after Pulmonary Embolism or Deep Venous Thrombosis") or includes(reasons, "Thrombophilia syndromes")}Stop warfarin 7 days before procedure + start LMWH (Clexane) 2 days after stopping warfarin + give last dose of LMWH (Clexane) ≥ 24 hours before procedure; restart Warfarin on the same evening of procedure with usual daily dose continue LMWH (Clexane) until INR > 1.5.

{endif: trim=left}{endif: trim=right}

{if: includes(medication, "Eliquis (Apixaban)")}
-> For Eliquis (Apixaban): {if: includes(reasons, "AF without valvular disease") or includes(reasons, "Xenograft heart valve") or includes(reasons, "Greater than 6-months after Pulmonary Embolism or Deep Venous Thrombosis")}Omit Eliquis for 2-days before the procedure; restart Eliquis on the evening following the procedure with usual daily dose if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart restart Eliquis on the evening of procedure with usual daily dose.{elseif: includes(reasons, "AF and mitral stenosis") or includes(reasons, "Prosthetic metal heart valve and AF") or includes(reasons, "Prosthetic metal heart valve in mitral position") or includes(reasons, "Prosthetic metal heart valve in aortic position") or includes(reasons, "Less than 6-months after Pulmonary Embolism or Deep Venous Thrombosis") or includes(reasons, "Thrombophilia syndromes")}Omit Eliquis for 3-days before the procedure + start LMWH (Clexane) 24 hours after stopping Eliquis; take last dose of LMWH ≥24 hours before procedure (day before procedure); restart Eliquis on the evening following the procedure with usual daily dose if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart restart Eliquis on the evening of procedure with usual daily dose; stop taking LMWH 2-days after restarting Eliquis.

{endif: trim=left}{endif: trim=right}

{if: includes(medication, "Xarelto (Rivaroxaban)")}
-> For Xarelto (Rivaroxaban): {if: includes(reasons, "AF without valvular disease") or includes(reasons, "Xenograft heart valve") or includes(reasons, "Greater than 6-months after Pulmonary Embolism or Deep Venous Thrombosis")}Omit Xarelto for 2-days before the procedure; restart Xarelto on the evening following the procedure with usual daily dose if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart restart Xarelto on the evening of procedure with usual daily dose.{elseif: includes(reasons, "AF and mitral stenosis") or includes(reasons, "Prosthetic metal heart valve and AF") or includes(reasons, "Prosthetic metal heart valve in mitral position") or includes(reasons, "Prosthetic metal heart valve in aortic position") or includes(reasons, "Less than 6-months after Pulmonary Embolism or Deep Venous Thrombosis") or includes(reasons, "Thrombophilia syndromes")}Omit Xarelto for 3-days before the procedure + start LMWH (Clexane) 24 hours after stopping Xarelto take last dose of LMWH ≥24 hours before procedure (day before procedure); restart Xarelto on the evening following the procedure with usual daily dose if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart restart Xarelto on the evening of procedure with usual daily dose; stop taking LMWH 2-days after restarting Xarelto.

{endif: trim=left}{endif: trim=right}

{if: includes(medication, "Pradaxa (Dabigatran)")}
-> For Pradaxa (Dabigatran): {if: includes(reasons, "AF without valvular disease") or includes(reasons, "Xenograft heart valve") or includes(reasons, "Greater than 6-months after Pulmonary Embolism or Deep Venous Thrombosis")}Omit Pradaxa for 2-days before the procedure; restart Pradaxa on the evening following the procedure with usual daily dose if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart restart Pradaxa on the evening of procedure with usual daily dose; (if eGFR between 30-50, stop Pradaxa ≥ 3-days before procedure; in any patient with rapidly deteriorating renal function -> consult a haematologist).{elseif: includes(reasons, "AF and mitral stenosis") or includes(reasons, "Prosthetic metal heart valve and AF") or includes(reasons, "Prosthetic metal heart valve in mitral position") or includes(reasons, "Prosthetic metal heart valve in aortic position") or includes(reasons, "Less than 6-months after Pulmonary Embolism or Deep Venous Thrombosis") or includes(reasons, "Thrombophilia syndromes")}Omit Pradaxa for 3-days before the procedure + start LMWH (Clexane) 24 hours after stopping Pradaxa take last dose of LMWH ≥24 hours before procedure (day before procedure); restart Pradaxa on the evening following the procedure with usual daily dose if biopsy specimens are taken; otherwise if no biopsy specimens are taken restart restart Pradaxa on the evening of procedure with usual daily dose; stop taking LMWH 2-days after restarting Pradaxa; (if eGFR between 30-50, stop Pradaxa ≥ 3-days before procedure; in any patient with rapidly deteriorating renal function -> consult a haematologist)

{endif: trim=left}{endif: trim=left}

Cedric - can you make the 2 toggles mutually exclusive (can only pick one or the other)?

Hey George,

That's possible with an {if} statement that evaluates the values of those toggles. Here's an example someone else wrote in the community a little while back: Deselect default formtoggle - #17 by Peter_Monterubio

Thanks Andrew,

It works perfectly.

George

Below is a snippet used to remind patients and clinicians about what to do if the patient takes any diabetic medication. Would appreciate any comments and improvements/suggestions.

{formtoggle: name=Diabetic_Medications; formatter=(value) -> "" if value else "Patient does not take any diabetic medications."}{if: Diabetic_Medications}{note}{formmenu: name=diabetic_meds; multiple=yes; Diabex -> this medication needs to be stopped 1-day prior to & on the morning of the procedure.; Diaformin -> this medication needs to be stopped 1-day prior to & on the morning of the procedure.; Metformin -> this medication needs to be stopped 1-day prior to & on the morning of the procedure.; Janumet -> this medication needs to be stopped 1-day prior to & on the morning of the procedure.; -----------------------------------------------------------------------------------------------------------------------------------------------------------------; Forxiga (Dapagliflozin) -> this medication needs to be stopped 3-days prior to & on the morning of the procedure.; Glyxambi (Empagliflozin / Linagliptin) -> this medication needs to be stopped 3-days prior to & on the morning of the procedure.; Invokana (Canagliflozin) -> this medication needs to be stopped 3-days prior to & on the morning of the procedure.; Jardiamet (Empagliflozin / Metformin) -> this medication needs to be stopped 3-days prior to & on the morning of the procedure.; Jardiance (Empagliflozin) -> this medication needs to be stopped 3-days prior to & on the morning of the procedure.; Qtern (Saxagliptin / Dapagliflozin) -> this medication needs to be stopped 3-days prior to & on the morning of the procedure.; Segluromet (Ertugliflozin / Metformin) -> this medication needs to be stopped 3-days prior to & on the morning of the procedure.; Steglatro (Ertugliflozin) -> this medication needs to be stopped 3-days prior to & on the morning of the procedure.; Steglujan (Ertugliflozin / Sitagliptin) -> this medication needs to be stopped 3-days prior to & on the morning of the procedure.; Xigduo (Dapagliflozin / Metformin) -> this medication needs to be stopped 3-days prior to & on the morning of the procedure.; --------------------------------------------------------------------------------------------------------------------------------------------------------------------; Insulin -> this medication must not be taken on the evening before & on the morning of the procedure.; Lantis -> this medication must not be taken on the evening before & on the morning of the procedure.; Byetta -> this medication must not be taken on the evening before & on the morning of the procedure.; Saxenda -> this medication must not be taken on the evening before & on the morning of the procedure.}{endnote}{if: len(diabetic_meds) > 0 and count(diabetic_meds) > 0; trim=yes}
Diabetic medications taken are:{repeat: for i in seq(1, count(diabetic_meds))}
{=i}. {=diabetic_meds[i]}{endrepeat} {endif: trim=left}{endif}

1 Like