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

James:

Here are some examples of simple default attributes that you can add to queries 
to default/display this information.

Good Luck,

Attributes: TEST

[EMAIL PROTECTED]

Attributes: TEST2

[EMAIL PROTECTED]

Attributes: TEST3

[EMAIL PROTECTED]

Attributes: TEST4

[EMAIL PROTECTED]

[EMAIL PROTECTED]

[EMAIL PROTECTED]

      ZIP:    37064
 COUNTY:      WILLI
--------------------------------

Bill Mullins RN
Williamson Medical Center
2021 Carothers Road
Franklin,Tn  37067
615-435-5630
-----Original Message-----
From: Bill Mullins 
Sent: Wednesday, August 09, 2006 8:18 PM
To: 'Dio, James'; [email protected]
Subject: RE: [MEDITECH-L] CDS C/S Attribute Help

James:

I have done this in MAGIC, here are some attributes I have saved.

Tomorrow I will look for the ones I wrote to do this:
-------------------------------------------------------------------
Thank you, Brian.  That s exactly what I needed.  I was also therefore able to 
default in the state and zip to their particular queries.  I ended up with this:

[EMAIL PROTECTED]/CITY&(/CITY?5N) 1,
FCL1=IF{%ADM.PAT.check.zipcode(A)^TEMP'="Z" TEMP|0^A,TEMP|1^/ST,TEMP|2^/ZIP;
FCL1=/CITY^/ZIP}}

The only thing I couldn t figure out is if the entry is 5 digits, but the 
routine returns Z, then how to delete the original response but make the cursor 
stay in that field waiting for input.

ANSWER:

BRIAN S

Here is something that might work for you.  Meditech has a standard program 
that takes in the zip code and returns the city, state, and zip code (assuming 
it is a valid zip code in your Meditech MIS Zip Code dictionary).

FCL1=IF{%ADM.PAT.check.zipcode(A)^TEMP'="Z" TEMP|0^A}

ADM.PAT.check.zipcode is the program that takes the zip code and returns the 
city, state, and zip code (as a queued string).  If the response is not a valid 
zip code, then it returns the letter "Z".  Using an FCL attribute like this 
should save you the trouble of having to use the Position function to display 
the value yourself.

Also, please keep in mind that this ADM.PAT program is available to you for use 
in your CDS
attributes IF the CDS is being exected on the same segment as your ADM 
application.  If it
is on a different segment, you will need to use the Z.switch.appl utility 
program to access
that ADM.PAT program.

QUESTION:

How do I take a response to a query and replace it with something else?  I want 
to duplicate the function where a user enters a zip code and it is replaced by 
the city if it is a valid zip code.  Maybe there s a Z routine to do this?  So 
far I ve created a macro MIS.zcus.convert.zip.M.city that returns the city in 
/ANS and this works correctly.  The closest I can come to the attribute 
replaces the zip input with the city, and displays it
on that query, but it is also displaying it in the upper left position of the 
CDS.  So I don t have my P s and R s and whatever right and I ve tried so many 
permutations that my mind is all spaghetti now.  This has to be fairly simple 
so any help is greatly appreciated.
--------------------------------------------------------------------
From: BILL A MULLINS
Subj: Re: COUNTY/ZIP
Date: Thur Jul 21, 2005 10:12 am

@[EMAIL PROTECTED]
@[EMAIL PROTECTED]

MIS.CNTY.DICT.mnemonic
zip.or.county
----------------------------------------------------------------------


Bill Mullins RN
Williamson Medical Center
2021 Carothers Road
Franklin,Tn  37067
615-435-5630

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dio, James
Sent: Wednesday, August 09, 2006 8:15 AM
To: [email protected]; Dio, James
Subject: [MEDITECH-L] CDS C/S Attribute Help

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

Hi Meditech L,

        I had originally sent this question out, but in HTML. I am resending it 
in Text in hopes it gets more attention.
        
            I am new to custom defined screens and custom defined fields. We 
have set up fields for two additional contacts in ADM using a PT REG screen. I 
am looking to find a way to have the City, State and Zip fields fill in when 
entering the zip code into the city field. Below is the current attribute I 
have for the City field.

FCL1=IF{A?5N 1,
FCL1=IF{%ADM.PAT.check.zipcode(A)^TEMP'="Z"
FCL1= TEMP|0^A,TEMP|1^/ST,TEMP|2^/ZIP}}

       When entering a zip code into the city field and move on to the next 
field the City field is populated by the city from the zip code dictionary (if 
there is a zip code there). I am having a problem filling in the state and zip 
code fields from this point on. I have followed instructions from different 
sites with attribute help, but unfortunately I have not found a solution. I 
tried using this IFE statement in the state field, which will show the state 
from the zip code lookup, but will not save the information when filing the 
screen: 

IFE=IF{/ST P(ZR,ZC,/ST^/[ANS%0,/S.LAST.QUERY]|0)^#,""}

I am not sure if this is not working because we are Client/Server and the 
resources I'm using are based on the Magic platform or if there is a problem 
with the attributes I am using.

Also, if anyone has a website that has information about attributes for 
Client/Server and wouldn't mind sharing it with me, I would appreciate it. 

Thank you,
James Dio


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

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. 

This footnote also confirms that this email message has been swept by Sophos 
and MIMEsweeper for the presence of computer viruses.
**********************************************************************


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

Reply via email to