I have this working but now I need it to calculate based on today's date + 3 months - this would be during the encounter not based on last OBS Term...
Any ideas???
Thanks!
I don't know how you have this set up, but you probably could use:
adddates(str(._todaysdate), "", "3","")
Can I put the obsname in there somewhere?
probably, but don't know what you need. do you mean you want to push the result of the date calculation to an obsterm? that would be: obsnow("term", adddates(str(._todaysdate), "", "3",""))
do you mean you want to add 3 months to an obs date? adddates(lastobsdate("term"), "","3","")
something else? You may need to explain further what you need, or post some of the code you're working with.
Oh sorry - basically, I need to calculate a due date for a TEST for 3 months from the current update?
and what part of that involves the obsterm? calculating from previous obs date, or pushing new calculated date to it?
today + 3 months is what I first wrote: adddates(str(._todaysdate),"","3","") - that adds 3 months to today's date
in my last post, the first example pushes that date to your obsterm - just replace "term" with your obsterm
You may contact me directly if you need further assitance or clarification:
Paul Atkinson, M.S.
Senior Informatics Consultant
Community Health Network
7155 Shadeland Station
Indianapolis, IN 46256
Phone: 317.621.2885
Fax: 317.621.7609
Mobile: 317.714.2652
[email protected]