We are on CPS 12. Seems OBSPREV is still an issue in this version. I need to pull in the LAST SIGNED OBS and the previous OBS. Any ideas what I can use besides OBSPREV?
LAST_SIGNED_OBS_VALUE
You can try that.
I always use LAST_SIGNED_OBS_VALUE because of OBSPREV's buginess.
-Chris
I am using LAST_SIGNED_OBS_VALUE which gives me the correct value but I also need to pull in the value prior to that one. This is for a letter template where we give the patient the recent value and the value prior to compare.
You can probably use LIST_OBS not sure if there is way to limit only last two though.
Are you trying to find the last or most recent result? Or, are you also trying to find the 2nd most recent result?
LAST_SIGNED_OBS is the original version of OBSPREV, which was created for ease of use. They pull the same value.
If you need a value 'older' than the last signed/previous obs, you would need to use a function and loop through the values using LIST_OBS.
I had not heard that OBSPREV was buggy. Can someone describe this for me please ?
- Beverly