.117 |
Read w/Fileman |
The VIST ROSTER file (#2040) contains a computed field
COUNTY (10) that uses the COUNTY field (.117) and the STATE field (.115) in
the PATIENT File (#2). We need to request a DBIA to access the COUNTY field
(.117) and the STATE field (.115) in the PATIENT file (#2) via FileMan.
The computed field has the following algorithm:
NAME:STATE:COUNTY:COUNTY:NAME_VA COUNTY CODE_COUNTY
The actual FileMan generated code reads as follows:
2040,10 COUNTY ; COMPUTED
MUMPS CODE: X ^DD(2040,10,9.6) S
X=X_$P(Y(2040,10,303),U,3)
_$P(Y(2040,10,303),U,1) S D0=Y(2040,10,80)
S D1=Y(2040,10,281)
9.2 = S I(200)="^DIC(5,",J(200)=5 F D=0:0
S (D,D1)=$N(^DIC(5,D0,1,D)) Q:D'>0 I
$D(^(D,0))#2 S
X=$P(^(0),U,1) X DICMX Q:'$D(D) S D=D1
9.3 = S
Y(2040,10,80)=$S($D(D0):D0,1:""),Y(2040
,10,1)=$S($D(^ANRV(2040,D0,0)):^(0),1:""),
D0=$P (Y(2040,10,1),U,1)
S:'$D(^DPT(+D0,0)) D0=-1 S Y
(2040,10,180)=$S($D(D0):D0,1:"")
9.4 = X ^DD(2040,10,9.3) S
Y(2040,10,101)=$S($D
(^DPT(D0,.11)):^(.11),1:""),D0=$P(Y(2040,1
0,101 ),U,5) S:'$D(^DIC(5,+D0,0)) D0=-1 S
Y(2040,10,2 80)=$S($D(D0):D0,1:"")
9.5 = X ^DD(2040,10,9.4) S
Y(2040,10,281)=$S($D
(D1):D1,1:"") X ^DD(2040,10,9.2):D0>0 S
X="" K DIC S
Y=-1,DIC="^DIC(5,D0,1,",DIC(0)="NMF" D
^DIC:D0>0 S (D,D1)=+Y
|
COUNTY |
.11;7 |
.115 |
Read w/Fileman |
The VIST ROSTER file (#2040) contains a computed field
COUNTY (10)that uses the COUNTY field (.117) and the STATE field (.115) in the
PATIENT File (#2). We need to request a DBIA to access the COUNTY field (.117)
and the STATE field (.115) in the PATIENT file (#2) via FileMan.
The computed field has the following algorithm:
NAME:STATE:COUNTY:COUNTY:NAME_VA COUNTY CODE_COUNTY
The actual FileMan generated code reads as follows:
2040,10 COUNTY ; COMPUTED
MUMPS CODE: X ^DD(2040,10,9.6) S
X=X_$P(Y(2040,10,303),U,3)
_$P(Y(2040,10,303),U,1) S D0=Y(2040,10,80)
S D1=Y(2040,10,281)
9.2 = S I(200)="^DIC(5,",J(200)=5 F D=0:0 S
(D,D1)=$N(^DIC(5,D0,1,D)) Q:D'>0 I
$D(^(D,0))#2 S X=$P(^(0),U,1) X DICMX
Q:'$D(D) S D=D1
9.3 = S
Y(2040,10,80)=$S($D(D0):D0,1:""),Y(2040
,10,1)=$S($D(^ANRV(2040,D0,0)):^(0),1:""),
D0=$P (Y(2040,10,1),U,1)
S:'$D(^DPT(+D0,0)) D0=-1 S Y
(2040,10,180)=$S($D(D0):D0,1:"")
9.4 = X ^DD(2040,10,9.3) S
Y(2040,10,101)=$S($D
(^DPT(D0,.11)):^(.11),1:""),D0=$P(Y(2040,1
0,101),U,5) S:'$D(^DIC(5,+D0,0)) D0=-1 S
Y(2040,10,2 80)=$S($D(D0):D0,1:"")
9.5 = X ^DD(2040,10,9.4) S
Y(2040,10,281)=$S($D
(D1):D1,1:"") X ^DD(2040,10,9.2):D0>0 S
X="" K DIC S
Y=-1,DIC="^DIC(5,D0,1,",DIC(0)="NMF" D
^DIC:D0>0 S (D,D1)=+Y
|
STATE |
.11;5 |