Notifications
Clear all
Topic starter
I created a quality form listing services due for a patient. Next to Chlamydia/GC I created a button labeled "Abstinent." I want to add an end date when this button is clicked. I want the value to clear after 1 year so the provider can review the abstinence status with the patient. Here is the code I have currently.
{IF LASTOBSVALUE("ABSTINENT") <> "" then "ABSTINENT" ELSE LASTOBSVALUE("CHLAMYDIA/GC") ENDIF}
Posted : August 5, 2015 4:04 am
This is off the top of my head and I didn't have a chance to check it... but maybe something like this:
{IF LASTOBSVALUE(“ABSTINENT”) <> “” AND DURATIONDAYS(LASTOBSDATE(“ABSTINENT”),str(._TODAYSDATE)) < 365 then “ABSTINENT” ELSE LASTOBSVALUE(“CHLAMYDIA/GC”) ENDIF}
Posted : August 5, 2015 4:43 am
Topic starter
It worked perfectly. Thank you so much for your help!!!
Posted : August 5, 2015 5:42 am