Hello,
I am looking to pull in the previous observation for only the current user. Is there some way to accomplish this? thanks
LASTOBSVALUEBYUSER()
Have you tried that?
If we consult the EMR Help file, we find a section titled 'Using Data Symbols'. I encourage any form developer the read this section of the Help file often, especially after an update. Reading it will familiarize the form engineer with the possible 'stock functions' available to them without having to create a custom solution. Certainly it does not cover every instance, but for those that it does, it knocks out the need to recreate the wheel in many instances.
That said, the data symbol you want to use is 'LASTOBSVALUEBYUSER(‘obsname’)'. Note that this does have a slight limitation if the signed in user is not the same as the user that created the value, it will appear blank instead, so be certain to use it with this in mind.
I must say, I never noticed that before. Thanks for the section as well.
Glad to help. To clarify, if the signed in user does not have a value recorded, then the data symbol will be blank. If the signed in user does have a value recorded (and signed), it will return that value. Also note that it is possible for different users to see different results, which is natural, since it returns the signed in user's last signed value. For this reason, I avoid using this symbol for items like test/lab results, cancer staging/treatment, and most pregnancy data. Clinically, those items should be consistent regardless of the user. There are, of course, other instances where you might want to apply this rule, but typically I leave that up to local policy - but I stand firm on the 3 areas I mentioned.
Exactly. My providers use the same form to dictate into, sometimes a different provider sees the patient but they really want to see their note. I already have a button that allows them to see/pull in the last note but its not always their's or relevant to why they are seeing the patient. So I am adding a second button that will allow them to see their own note instead of having to go back to the patient's chart and look it up.