This should work, you want to get the txn.account (BAR.PAT.urn) from the field in the batch, then get the primary insurance for that account from BAR.PAT, then get the insured.policy.number field.
xx.pi.policy DAT=FREE LEN=30 [EMAIL PROTECTED],1^BAR.PAT.insurance.order,@BAR.PAT.i ns.mVAL=nemonic^BAR.PAT.insurance,@BAR.PAT.insured.policy.number} Joe Cocuzzo Vice President NPR Services Iatric Systems, Inc. Phone/Fax: (978) 805-4115 Email: [EMAIL PROTECTED] Web: www.iatric.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carol Higley Sent: Monday, June 25, 2007 8:07 AM To: [email protected] Subject: [MEDITECH-L] Need help with report field I have a report that I am writing in BAR.BCH. What I want to pull is the primary insurance policy number. I am having problems getting this field. Anyone have any ideas? Thanks. Carol Carol L. Higley Data Systems Analyst Howard Regional Health System 765-453-8140 The opinions expressed in this e-mail message are those of the author and may not be representative of Howard Regional Health System or affiliates. This e-mail message and attachments, if any, may contain confidential or privileged information. If you are not the addressee or authorized to receive this message for the addressee, you must not use, copy, disclose, or take any action based on this message, any attachments to this message, or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message in its entirety. =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= To subscribe or unsubscribe to the meditech-l, visit http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com To check the status of the meditech-l, visit MTUsers.NET For help, email [EMAIL PROTECTED] Please visit and add information to the MTUsers WikiPedia at MTUsers.NET/mwiki ______________________________________ meditech-l mailing list [email protected] http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= To subscribe or unsubscribe to the meditech-l, visit http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com To check the status of the meditech-l, visit MTUsers.NET For help, email [EMAIL PROTECTED] Please visit and add information to the MTUsers WikiPedia at MTUsers.NET/mwiki ______________________________________ meditech-l mailing list [email protected] http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com
