Can someone lend me some knowledge and let me know how to do an action butto to instert previous document variables. I know how to do observations but not having any luck with document variables.
Thanks!
Document variables are temporary and remain in effect only while the document is open. I don't believe there is any way to bring in previous ones.
No, document variables die when the document is signed, they are only temporary. Anything you want to pull forward has to be stored as an observation... unless its part of a clinical list, that'll work too
I apprecaite all the feedback, I thought it might not be possible.
Thanks everyone!
Is there a reason you can't / won't tie it to an obs term? Below is how I have mine setup because I want my fields named certain things rather than a random obs term.
In one of my forms, in the white board, i have this:
{OBSNOW("obs term", DOCUMENT.VARIABLE)}
Then I have a insert previous button set to RUNPROCESS with this:
DOCUMENT.VARIABLE = LAST_SIGNED_OBS_VALUE("obs term")