Hello,
Looking for some help.
Can I use this in a form with a data display mel expression:
{if ((DURATIONDAYS(LASTOBSDATE("GBSTREP"), str(._todaysdate)) < 300) and LASTOBSDATE("GBSTREP") <> "" )then
OBSANY("GBSTREP")
else ""
endif
}
But add the last obs date as well to display?
Replace OBSANY with LASTOBSVALUEDATE. The help file explains the usage.
David Shower
OU Tulsa School of Community Medicine.
Thank you for your response. Is it possible to have both the obs term & date display in the same data display box?
Yes, from the help:
example
{'{LASTOBSVALUEDATE("HEIGHT")}'}
returns
72 (03/24/1997 7:21 PM)
So change OBSANY("GBSTREP") to LASTOBSVALUEDATE("GBSTREP") and both the value and the date associated with the obs term will show in your data display box (provided it is wide enough).
David Shower
OU Tulsa School of Community Medicine
Thank you. This is of great help to me in revamping some OB prenatal forms.
Much appreciated!
I happened to stumble across this posting at it has been very helpful in developement of our history view for prenatal care! Thank you so much! If you jave any more OB tips and tricks it would be much appreciated because we continously struggle with "old data" being pulled into our OB forms.