How to avoid writing duplicate code in dtl InterSystems Ensemble
Hi!
There is a question for Ensemble on Stackoverflow:
I have the below dtl. In the foreach
loop, I am just copying the same code in another part under anif
condition. How can I avoid this redundancy? Can I reuse using sub transformation?
Here is the dtl class file :https://docs.google.com/document/d/1snJXElyw13hAfb8Lmg5IaySc7md_DE8J40FB79hBaXU/edit?usp=sharing
Maybe I'm missing something, but it seems like you could have an OR condition to eliminate the code duplication
if condition='ExcludeInactiveAllergiesAlerts="No" OR flag'="No"
Hi, Nic!
Thank you for your answer!
Would you please put it on Stackoverflow too? http://stackoverflow.com/questions/36400699/how-to-avoid-writing-duplica...
Thank you in advance!