What's wrong when adding patients in FileMan?

34 views
Skip to first unread message

tongtong zhang

unread,
Nov 16, 2009, 8:12:09 AM11/16/09
to Hardhats
I want ot use FileMan to add patients. I select ENTER OR EDIT
FILE ENTRIES
menu, the prompt and my answers are below:
==================================================
Input to what File: PATIENT// (4 entries)
EDIT WHICH FIELD: ALL//



Unable to proceed. DUZ(2) is undefined.
===================================================
what's the problem? what's the meaning of DUZ(2)?
thanks.

David Whitten

unread,
Nov 16, 2009, 10:00:11 AM11/16/09
to hard...@googlegroups.com
From the routine ^XUP:

DUZ(DA)  ;Build DUZ for a user.  Used by Mailman.
         ;(p284) Make the setting of several DUZ parts conditional.
         N Y
         S Y(0)=$G(^VA(200,+DA,0)),Y("XUS")=$G(^XTV(8989.3,1,"XUS"))
         S DUZ=DA
         S:$G(DUZ(0))'="@" DUZ(0)=$P(Y(0),"^",4)
         S DUZ(1)="",DUZ("AG")=$P($G(^XTV(8989.3,1,0)),"^",8)
         S:'$G(DUZ(2)) DUZ(2)=$O(^VA(200,DUZ,2,0))
         S:'DUZ(2) DUZ(2)=+$P(Y("XUS"),"^",17)
         S:'$L($G(DUZ("LANG"))) DUZ("LANG")=$P(Y("XUS"),"^",7)
         Q

as you can see DUZ(2) comes from ^VA(200,DUZ,2,<entry>,0) or from $P(^XTV(8989.3,1,"XUS"),"^",17)
From FileMan List File Attributes option:

^VA(200,D0,2,0)=^200.02P^^  (#16) DIVISION
^VA(200,D0,2,D1,0)= (#.01) DIVISION [1P:4] ^ (#1) DEFAULT [2S] ^

^XTV(8989.3,D0,XUS)=  ^ (#202) DEFAULT # OF ATTEMPTS [2N] ^ (#203) DEFAULT
                  ==>LOCK-OUT TIME [3N] ^ (#204) DEFAULT MULTIPLE SIGN-ON
                  ==>[4S] ^ (#205) ASK DEVICE TYPE AT SIGN-ON [5S] ^ (#206)
                  ==>DEFAULT AUTO-MENU [6S] ^ (#207) DEFAULT LANGUAGE
                  ==>[7P:.85] ^  ^ (#209) DEFAULT TYPE-AHEAD [9S] ^ (#210)
                  ==>DEFAULT TIMED-READ (SECONDS) [10N] ^ (#211) BYPASS
                  ==>DEVICE LOCK-OUT [11S] ^ (#212) RESERVED [12S] ^ (#213)
                  ==>RESERVED [13S] ^ (#212.5) FAILED ACCESS ATTEMPT AUDIT
                  ==>[14S] ^ (#214) LIFETIME OF VERIFY CODE [15N] ^ (#216)
                  ==>INTERACTIVE USER'S PRIORITY [16N] ^ (#217) DEFAULT
                  ==>INSTITUTION [17P:4] ^ (#218) DEFAULT AUTO SIGN-ON [18S]
                  ==>^ (#219) DEFAULT MULTIPLE SIGN-ON LIMIT [19N] ^

So the "2" nodes in the NEW PERSON File #200 specify which institution a person is working within, and if they are not defined, it defaults to DEFAULT INSTITUTION (Field #217 ) of the KERNEL SYSTEM PARAMETERS File  #8989.3

As to using FileMan to add patients, there are business rules implicit in the VistA code which may or may not be enforced by the Data Dictionary.  You might mess yourself up by ignoring the proper way to put data into the system.  I can't be exact in saying whether you will or will not hurt your data acquisition because I don't know which data you are putting in using FileMan, and I don't know how complete you are being in maintaining the complete data entry.

Best Regards,
David

Nancy Anthracite

unread,
Nov 16, 2009, 10:34:47 AM11/16/09
to hard...@googlegroups.com, David Whitten
Also, it just may be that you went stright to fileman without running D ^XUP or
something that sets your variables.

See below.

nancy@owl:~$ gtm

GTM>S DUZ=9

GTM>ZWR
DUZ=9

GTM>D ^XUP

Setting up programmer environment
This is a TEST account.

Terminal Type set to: C-VT100

You have 62 new messages.
Select OPTION NAME:

GTM>ZWR
DILOCKTM=3
DISYS=19
DT=3091116
DTIME=9999
DUZ=9
DUZ(0)="@"
DUZ(1)=""
DUZ(2)=67
DUZ("AG")="E"
DUZ("BUF")=1
DUZ("LANG")=""
IO="/dev/pts/1"
IO(0)="/dev/pts/1"
IO(1,"/dev/pts/1")=""
IO("ERROR")=""
IO("HOME")="50^/dev/pts/1"
IO("ZIO")="/dev/pts/1"
IOBS="$C(8)"
IOF="#,$C(27,91,50,74,27,91,72)"
IOM=80
ION="TELNET"
IOS=50
IOSL=24
IOST="C-VT100"
IOST(0)=9
IOT="VTRM"
IOXY="W $C(27,91)_((DY+1))_$C(59)_((DX+1))_$C(72)"
U="^"
X="5;DIC(4.2,"
XPARSYS="5;DIC(4.2,"
XQXFLG="^^XUP"

GTM>
--
Nancy Anthracite

tongtong zhang

unread,
Nov 19, 2009, 7:46:21 AM11/19/09
to hard...@googlegroups.com
Thanks Nancy, I have solved that with your method:)

2009/11/16 Nancy Anthracite <nanth...@earthlink.net>

Nancy Anthracite

unread,
Nov 19, 2009, 8:08:18 AM11/19/09
to hard...@googlegroups.com, tongtong zhang
Fortunately, it was also the easiest solution! Glad to hear it worked.
--
Nancy Anthracite

tongtong zhang

unread,
Nov 21, 2009, 1:23:11 AM11/21/09
to Hardhats
Not so lucky. It worked earlier on, but it doesn't work now.
I enter Test account (D ^XUP) and select the 'FileMan' option, and then I select
'Inquire' option, and the prompt below:
===========
Output from what File:
===========
I want to choose the file 'patient', but there isn't such a file.

The other way: I enter the 'FileMan' option directly by the command  'D P^DI', and
then I choose  the 'Inquire' option, I get the same prompt. But when I choose
the file  'patient',  then the same question remains:
====================

 Input to what File: PATIENT//             (4 entries)
EDIT WHICH FIELD: ALL//
  Unable to proceed.  DUZ(2) is undefined.
===================================================
I remembered that I could enter patient file in the Test account (D ^XUP),
but now I can't. So I can't see the patients whom I created on
the client.
I'm puzzled. Thanks to all the help you can offer.

 

2009/11/16 tongtong zhang <zhangtt.s...@gmail.com>

tongtong zhang

unread,
Nov 21, 2009, 5:56:44 AM11/21/09
to Hardhats
Sorry, The problem is solved. The key is that I must use the command 'ZWR', though I
don't know what that mean.
I think I need to learn more.Thanks:)

2009/11/21 tongtong zhang <zhangtt.s...@gmail.com>

Nancy Anthracite

unread,
Nov 21, 2009, 8:58:27 AM11/21/09
to hard...@googlegroups.com
Did you change users?
--
Nancy Anthracite

Nancy Anthracite

unread,
Nov 21, 2009, 9:04:59 AM11/21/09
to hard...@googlegroups.com, tongtong zhang
ZWR just shows you the variables. I don't know why that should seem to make a
difference. I think something else was going on and that just seemed to work,
but maybe something that runs when you use ZWR triggers something that did the
trick.

The experts will have to chime in here.

On Saturday 21 November 2009, tongtong zhang wrote:
--
Nancy Anthracite

r...@rcresearch.us

unread,
Nov 21, 2009, 9:14:27 AM11/21/09
to hard...@googlegroups.com
You also might try ZSH "*" that shows the stack and the symbol table in
GTM. The equivalent to ZWR in Cache is ZW or ZWRITE. Eventually, we may
add to the standard a means of saving the whole symbol table and context
as a recovery point, and then be able to re-establish it. But for now,
that will have to suffice.

tongtong zhang

unread,
Nov 21, 2009, 9:24:21 AM11/21/09
to Hardhats
I don't change users, I use the user 'worldvistaEHR' to test on the
server.
If I want to use FileMan to inquire the file "PATIENT" , or
do other things(such as edit, print etc), I need to do these
steps:
===============================
GTM>S DUZ=9

GTM>ZWR

GTM>D ^XUP

GTM>ZWR

GTM>D ^XUP
Select OPTION NAME:FILEMAN ZZFILEMAN
====================================
If I directly enter 'D ^XUP' after the prompt 'GTM>', and select
the 'FILEMAN ZZFILEMAN'option, I can't enter the file 'patient'(
there's no such file for selection).
I don't know why I must input the first four lines:
=====================
GTM>S DUZ=9

GTM>ZWR

GTM>D ^XUP

GTM>ZWR
======================
What's the up meaning? Why it works?
thanks.

On Nov 21, 9:58 pm, Nancy Anthracite <nanthrac...@earthlink.net>
wrote:
> Did you change users?
>
> On Saturday 21 November 2009, tongtong zhang wrote:
>
>
>
> > Not so lucky. It worked earlier on, but it doesn't work now.
> > I enter Test account (D ^XUP) and select the 'FileMan' option, and then I
> > select
> > 'Inquire' option, and the prompt below:
> > ===========
> > Output from what File:
> > ===========
> > I want to choose the file 'patient', but there isn't such a file.
>
> > The other way: I enter the 'FileMan' option directly by the command  'D
> > P^DI', and
> > then I choose  the 'Inquire' option, I get the same prompt. But when I
> > choose
> > the file  'patient',  then the same question remains:
> > ====================
> >  Input to what File: PATIENT//             (4 entries)
> > EDIT WHICH FIELD: ALL//
> >   Unable to proceed.  DUZ(2) is undefined.
> > ===================================================
> > I remembered that I could enter patient file in the Test account (D ^XUP),
> > but now I can't. So I can't see the patients whom I created on
> > the client.
> > I'm puzzled. Thanks to all the help you can offer.
>
> > 2009/11/16 tongtong zhang <zhangtt.skineff...@gmail.com>

r...@rcresearch.us

unread,
Nov 21, 2009, 9:40:03 AM11/21/09
to hard...@googlegroups.com
The first ZWR should have, at least, listed your DUZ and its value. Did
you do an OPEN and a USE command earlier and redirected the output
elsewhere such that the first D ^XUP reset USE to 0, but then the second
ZWR should have listed some symbols create by the first D ^XUP. Try doing
a USE 0 before the D ^XUP. I'm not sure what is goingon here, but has
there been an attempt to re-compile GTM? You might want to download GTM
again or the EHR again and see if you got a good copy. The results you
are seeing are not typical.

David Whitten

unread,
Nov 21, 2009, 1:09:36 PM11/21/09
to hard...@googlegroups.com
"worldvistaEHR" is the user at the Linux level.  The User at the VistA level that you are using is user number 9. (this is technically entry #9 in the NEW PERSON File)

I don't know what the ZZFILEMAN menu option looks like. Could you use D P^DI and go into FileMan that way, and tell me what the entry in the OPTION File #19 is ?

Best Regards,
David

Nancy Anthracite

unread,
Nov 21, 2009, 3:18:26 PM11/21/09
to hard...@googlegroups.com
Include COMPUTED fields: (N/Y/R/B): NO// BOTH Computed Fields and Record
Number
(IEN)

NUMBER: 520 NAME: ZZFILEMAN
MENU TEXT: FileMan TYPE: run routine
CREATOR: WVEHR,PATCH INSTALLER ROUTINE: DII
TIMESTAMP OF PRIMARY MENU: 56770,60072
UPPERCASE MENU TEXT: FILEMAN
--
Nancy Anthracite

tongtong zhang

unread,
Nov 21, 2009, 8:32:11 PM11/21/09
to hard...@googlegroups.com
When I use D P^DI to enter the FileMan, and choose identity as 'user,test',
I could enter the file 'patient' directly and successfully.

2009/11/22 Nancy Anthracite <nanth...@earthlink.net>

David Whitten

unread,
Nov 21, 2009, 9:19:10 PM11/21/09
to hard...@googlegroups.com
Tongtong,
using the MUMPS command DO P^DI is not the same thing as the call in the menu option ZZFILEMAN.  As you can see in the OPTION listing below, it is the equivalent of DO ^DII.

The two calls don't do the same thing.

David

tongtong zhang

unread,
Nov 21, 2009, 9:24:37 PM11/21/09
to hard...@googlegroups.com
Yes, I know,.Thanks:)

2009/11/22 David Whitten <whi...@worldvista.org>
Reply all
Reply to author
Forward
0 new messages