Good Afternoon,
I am having a little bit of trouble figuring out a request from one of our physicians. We have an echocardiogram report which was custom made. What he would like is if any of the values are abnormal to automatically populate to our conclusion section. The problem is that each section where he would fill out its abnormality are tied to OBS terms. I have created something very minimal but if there are more then one that are abnormal it overwrites. I need this to append to the document variable. Here is what I drafted this morning.
{IF OBSNOW("AROOTECHOMSR") =="Dilated" THEN DOCUMENT.CONCLUSION="Aortic root dilated. " else "" endif} {IF OBSNOW("AROOTECHOMSR") =="Borderline" THEN DOCUMENT.CONCLUSION="Aortic root borderline. " else "" endif} {IF OBSNOW("VEXCURECHMSR") =="Restricted" THEN DOCUMENT.CONCLUSION="Valve excursion restricted. " else "" endif}
Does anyone know how I could accomplish this?
{IF OBSNOW("AROOTECHOMSR") =="Dilated" and match(DOCUMENT.CONCLUSION,"Aortic root dilated.")<1 THEN DOCUMENT.CONCLUSION=DOCUMENT.CONCLUSION + "Aortic root dilated. " else "" endif}
{IF OBSNOW("AROOTECHOMSR") =="Aortic root borderline." and match(DOCUMENT.CONCLUSION,"Aortic root dilated.")<1 THEN DOCUMENT.CONCLUSION=DOCUMENT.CONCLUSION + "Aortic root borderline. " else "" endif}
{IF OBSNOW("VEXCURECHMSR") =="Restricted" and match(DOCUMENT.CONCLUSION,"Valve excursion restricted.")<1 THEN DOCUMENT.CONCLUSION=DOCUMENT.CONCLUSION + "Valve excursion restricted. " else "" endif}
remove all but the outermost {} and add a + between the statements.