I have the function below working great to add an lab result with a test date. The problem I am having is if the user commits the OBS term, but then wants to remove it, I cannot get the OBS term back to null. If I remove the date from the function I have no issue.
OBSNOW("WBC",Document.Lab_Result,Document.Test_Date)
Send the obs term a blank string. You should no longer see the obs term listed if you look at clinical list updates. If you specify a date I'm not sure how they would play into it. You might want to try these two and see if either one works for you:
OBSNOW(“WBC”,"")
OBSNOW(“WBC”,"",Document.Test_Date)
Brad
...if the user commits the OBS term...
Once it is committed, I do not think it can be "blanked out".
Unless the encounter is just on-hold, maybe you can discard the document and start over.
You can update it with a period, or phrase "no value"
OBSNOW(“WBC”,".",Document.Test_Date)
You COULD manually delete the obsterm value for that date by going into an update for the chart, and editing the flowsheet to REMOVE the obsterm on that date.
- Beverly
Thank you for the responses. Did some more research and found, if a date other than the date of the document is attached to the obs term Centricity, in lack of better words, see the obs value as an obsprev which cannot be changed. I have tested using both of the function below with the current date and had no issues nulling the value. If I used any other date it does not work unless you go through the flowsheet.
OBSNOW(“WBC”,"",Document.Test_Date)
Update: I wrote this out while you were posting your response David. What you figured out makes sense given what worked for me. Will leave the following below for reference sake in case anyone has question in the future.
I messed about with this a little bit. It seems that if you do not assign a date to the obs term:
OBSNOW("OBSTERM","VALUE")
You can then remove the value by passing a blank string:
OBSNOW("OBSTERM","")
However, if you pass a date whether hard coded or via variable:
OBSNOW(OBSTERM, "VALUE","11/11/2015")
You cannot remove the term by passing a blank string even with the same date value sent (neither of these worked for me):
OBSNOW(OBSTERM,"VALUE") -- This makes sense because it is looking for an obsterm from today
OBSNOW(OBSTERM,"VALUE","11/11/2015") -- Not sure why this won't work if the example above does