Is there a way to enter an observation date from within a VFE form instead of having to go to the flowsheet and change the date and then enter the value? For example: if I wanted to enter in a historical Pap Smear Result, I would want the result to go to the PAP SMEAR obs term but not with the date I am entering, I want the ability to edit the date from within a form.
Is this possible?
Thanks,
Lisa
OBSNOW("PAP SMEAR","Done",document.pap_date) where document.pap_date is an edit field that accepts a date, you could hard code a date there as well if you want to
Thank you, am I able to also have another dropdown to include the Pap Smear result using the same obs term? So if I enter a date of 01/14/14 on the pap date edit field and then enter Negative on the dropdown field will it throw errors?
Yes you can, just do this then
OBSNOW("PAP SMEAR",document.pap_result,document.pap_date)
the general syntax is
OBSNOW(obsterm, value, date[optional])
Michael-
I am almost there, LOL... I got it working when I enter it under the Chart Note field but I do not want the value to disply, what is the syntax to have it not displayed in the note?
Thank you again, you have been so helpful.
I have found that the best way to save observations to past dates is to use a 'commit' button. The problem with not using an action buttton is if the user enters the wrong date and goes to change it, the form will record the observation on both dates. So I would post the code in an action button (connection type runprocess) and leave chart note blank. If you dont want to use an action button then just place the code in the code panel on the right and it will fire when there either variable is changed (date or value) and will not translate.
I would "like" Michael's post if we had that option I agree and try to use the button approach to set dates other than today for obs terms. Providers may like like the extra "click" but you get much better data that way.
Thank you both very much for your help. I have created the button and it seems to be working wonderfullt in TEST. I am working on Clearing the value when the commit button is selected.
That should have been ...may not like the extra "click:
Thanks David,
Lisa you can clear the edit fields by adding -
{document.pap_result = ""}
{document.pap_date = ""}
To the runprocess box in the action button.
Thank you, thank you, thank you. You guys are the best!!! Everything works great and my doctors are very happy:)