Hope everyone had a great holiday!
I am looking to make a basic form to help my RN's quickly enter labs from previous providers. i.e. my OB patient's often come in with their labs that need to be entered into our system.
I was thinking the best way to do this is to use OBSNOW. I know the first argument is the OBS term, second is the value, and third is the date. I cannot figure out how to get the date to populate on the flowsheet (it is using the current date).
The format in my head is three columns. One with value of the test and the other is date of lab test. Then have an action button set to RUNPROCESS in the third to "commit" the value to the flowsheet.
Is this as simple as setting the button to:
OBSNOW("HCT",DOCUMENT.HCT,DOCUMENT.DATEOFLAB)
or will I need to write a function to call this?
Thanks for anyone and everyones help!
Geoff
you got it right.
I thought I was on the right track but it keeps populating with today's date instead of the date the labs were actually drawn.
My second edit field(DOCUMENT.DATEOFLAB) is masked to a date field. Would that make a difference?
Thanks!
We use a combination of two fields and then a record button to accomplish this. One field is for the test value/result (DOCUMENT.AST from below), and one field is for the date of that test/result (DOCUMENT.DATE19 from below). The function attached to the Record button (Rec_AST from below) then pushes those two values. My coding skills are somewhat weak, so I suspect someone else could help you with something cleaner. Still, for our enterprise, this seems to work well enough.
{fn Rec_AST(){ if DOCUMENT.DATE19 <>"" then IF mtch_dt(DOCUMENT.DATE19) == TRUE THEN OBSNOW("SGOT (AST)", DOCUMENT.AST, DOCUMENT.DATE19) ELSE USEROK("Please enter a valid date - mm/dd/yyyy. Click OK to continue") ENDIF else if USERYESNO("Use today's date for AST?")=="Yes" then OBSNOW("SGOT (AST)", DOCUMENT.AST , str(._TODAYSDATE)) DOCUMENT.DATE19=str(._TODAYSDATE) else "" endif endif }}
Mary,
Hello. I am trying your method. But, I keep getting a function error?
Any help is appreciated.
Rebecca B.
Rather than posting this again, take a look at my post here for a form to enter prior-dated data, relative to HEDIS measures. However, should be pretty straightforward to modify for other OBS fields.