I am trying to pull an unsigned value for an observation term from one update into another. Is this possible? I thought using LASTOBSVALUE but I am not able to pull it.
If a document is opened and has Obs terms, but is not signed, then no other document has access to those terms. It has caused some headaches for us as well, but we changed our workflows to minimize this happening. now it is a once in a blue moon problem. :/
Only signed values from previous visits can be retrieved via MEL, not unsigned.
I was afraid that would be the answer 🙂 / 🙁
....not via MEL, but a SQL query can be executed against the database to retrieve the value. This is not trivial but doable. Contact me directly if you would like to see this approach.
LIST_OBS(obsTerm, "Pencil", "","") return all obs including unsigned but you will have to loop through the result to get the unsigned value.
Pencil will give you unsigned observation values, but only from within the same update.
In that case you might have to go to the database. There might be something in meldef files to access database
You can use the _MelCurObs object from the mldef files to retrieve obs dated after the update was started/in another update.
I think this is the right answer. There are a few different meldef objects you can use to the pull the data. We have done it successfully for years. You have to loop through the rows though and if you don't exit your loops when you should it can slow down your encounter a lot, like 20-30 seconds for larger charts.
You could also use sql for a more direct lookup, that's what we do now. If you are interested in learning how that could work check out my product in the marketplace.
is there then a away to sign the obs value without signing the visit?
End the update and when putting it on hold, check the box for signing the clinical list changes.
I thought that too, but that's not working.
Unfortunately no. Even by signing the clinical list changes in an update, it does not populate into the flowsheet until the document has been signed.