CPS 12 - Using VFE
I am trying to insert a button that will clear a previous obs term or mark as inactive.
For example: a provider sets a patient goal stored as an obsterm, the next time they open the note the patient may have completed the goal or the goal is no longer relevant. How can they remove without writing a new goal?
I'm sure it's an easy solution, I just don't think I've seen it yet.
Thank You in Advance.
I would also be interested in an easy fix. In the past I have been told you cannot replace an obs with nothing so we have always replaced wtih a period or some other character.
You can't change a previous obs term.
If you use ObsPrev() in a field on your form, and you clear the term, it will fill back in with the previous value. Make sense??? What you can do is use ObsNow() for your field, and initialize it as ObsNow("xxx",obsPrev("xxx")). Now you can clear the ObsNow() field.
jfitzmd,
That worked great! Although when I put the document on hold and came back to it the obsprev is populated again despite removing it. So it would work great if you were going to remove and then sign the note right then.
Thank You.
Whatever the observation is, mark the connection as a new observation <br>
Example
obsnow("CHEM DRUG 1")
Do NOT use new obs (default previous)
Next you have to setup your button, make that connection a "runprocess"
In the programming box below enter this
IF OBSNOW("CHEM DRUG 1") = "" THEN OBSNOW("CHEM DRUG 1", (OBSPREV("CHEM DRUG 1"))) ENDIF
Now every time the user presses the button it will bring in the previous values. The advantage here is that the observation value will only pop up when you want it to. If you use new obs (previous default) it will always pop up with the value, even if you remove it.
ugh, why don't any of my responses format correctly?
Scott Forest,
I actually decided to go with your idea. Because when I put the note on hold and then reopened the other way, the obsprev would still populate despite removing it.
Thank You!
btw, this can be used to populate everything on that page with previous obsterms, or on an entire multi-page document. Just add that same line of code on another line and change the obsterm associated with it accordingly.
Great, Thanks!
Scott, when you are putting in code, change from the Visual tab to the Text tab and enclose your code with "code" tags. That should help.
Thanks David!