All messages should be posted in plain text.  HTML will be converted to
attachments.    The meditech-l web site is MTUsers.com
======================================

Hi Brenda, 

You could wrap the date in a %Z.date.out(/DTE)

IFE=IF{[ANS,"NURBLOOD2"]|0^/DTE,
IFE=/DTE^/[ANS%0,"NURBLOO134"]|0,P(R,S,%Z.date.out(/DTE))^#,""}


Or

You could use the DFT attribute to default in the date and thus avoid
the complicated code you have.

DFT=[ANS,"NURBL00D2"]|0

Would also do the trick. It would mean the cursor would staop and they
have to hit {ENTER} to continue. Sometimes simple is better.

John Toop
Humber River Regional Hospital
Toronto, Ontario
(416) 249-8111 x 8019
[EMAIL PROTECTED]
 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brenda Wiley
Sent: Thursday, August 17, 2006 3:27 PM
To: MediTech Users Group
Subject: [MEDITECH-L] Attribute help to convert date to "normal"
MM/DD/YYYY

All messages should be posted in plain text.  HTML will be converted to
attachments.    The meditech-l web site is MTUsers.com
======================================

Hi folks,

I have the following attribute on a query that is set up as a DATE field
in the query dictionary:

IFE=IF{[ANS,"NURBLOOD2"]|0^/DTE,
IFE=/DTE^/[ANS%0,"NURBLOO134"]|0,P(R,S,/DTE)^#,""}

The query's name that this attribute is on is "NURBLOO134".  It is
pulling the info from the date field "NURBLOOD2" earlier on the same
CDS.

Trouble is, when it fills in the date field, it fills it in in the
internal date format (YYYYMMDD ....
20060817 for today for example).

After the CDS is filled in and saved, viewing it under View History
properly shows the 08/17/2006 format, but while the users are in the
screen for the first time, all they will see is the internal format.

How do I get it to fill in initially with the MM/DD/YYYY format?  I'm
assuming I need to use the z.date.out z function, but do not know how to
insert it into my attribute above.

Thanks as always for the indispensible L-List help!!

Brenda Wiley, RN
Transylvania Community Hospital, Inc.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com _______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l


_______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to