DINIT1 ;SFISC/GFT,XAK-INITIALIZE VA FILEMAN ;6NOV2012
;;22.2;VA FileMan;;Jan 05, 2016;Build 42
;;Per VA Directive 6402, this routine should not be modified.
;;Submitted to OSEHRA 5 January 2015 by the VISTA Expertise Network.
;;Based on Medsphere Systems Corporation's MSC FileMan 1051.
;;Licensed under the terms of the Apache License, Version 2.0.
;
DD F I=1:1 S X=$T(DD+I),Y=$P(X," ",3,99) G ^DINIT11:X?.P S @("^DD(0,"_$E($P(X," ",2),3,99)_")=Y")
;;.26,0 COMPUTE ALGORITHM^FJ30^^9.1;E1,245^K:$L(X)>50 X
;;.27,0 SUB-FIELDS^CJ1^^ ; ^Q:$D(DIQ(0)) X ^DD(0,.27,9.2) S X="" I $D(Y)#2,Y=U S DN=0
;;.27,9.2 S %=$S($D(^DD(DFF,D0,0)):+$P(^(0),U,2),1:0) I %,$D(^DD(%,.01,0)),$P(^(0),U,2)'["W" S DR="DFF=%,DN=1 D ^DIO2 S X="""",DFF="_DFF_",DN="_DN,X="D0" X "F Z=1:1 S DR=X_""=0,""_DR_"",""_X_""=""""""_@X_"""""""",X=""D""_X Q:$D(@X)[0","S "_DR
;;.28,0 MULTIPLE-VALUED^CB^^ ; ^S X=$P(^DD(DFF,D0,0),U,2)>0
;;.29,0 DEPTH OF SUB-FIELD^CJ1^^ ; ^S %=DFF X "F X=0:1 Q:'$D(^DD(%,0,""UP"")) S %=^(""UP"")"
;;.3,0 POINTER^F^^0;3
;;.3,9 ^
;;.4,0 GLOBAL SUBSCRIPT LOCATION^RF^^0;4^K:X'?1.E1";"1.E X I $D(X),@("$D("_DIC_"""GL"",$P(X,"";""),$P(X,"";"",2)))") K X
;;.4,1,0 ^.1^1^1
;;.4,1,1,0 DA(2)^GL
;;.4,1,1,1 S:X'?.P @(DIC_"""GL"",$P(X,"";""),$P(X,"";"",2),DA)=""""")
;;.4,1,1,2 K:X'?.P @(DIC_"""GL"",$P(X,"";""),$P(X,"";"",2),DA)")
;;.4,9 ^
;;.5,0 INPUT TRANSFORM^CJ44^^ ; ^S @("X=$P("_DCC_"D0,0),U,5,99)")
;;.5,9 ^
;;1,0 CROSS-REFERENCE^.1^^1;0
;;1.1,0 AUDIT^S^y:YES, ALWAYS;n:NO;e:EDITED OR DELETED;^AUDIT;1^Q
;;1.1,1,0 ^.1
;;1.1,1,1,0 0^AUD^MUMPS
;;1.1,1,1,1 I "ye"[X,$P(^DD(DA(1),DA,0),U,2)'["a" S $P(^(0),U,2)=$P(^(0),U,2)_"a"
;;1.1,1,1,2 S $P(^(0),U,2)=$P($P(^DD(DA(1),DA,0),U,2),"a")_$P($P(^(0),U,2),"a",2,9)
;;1.1,1,2,0 0^AUDIT^MUMPS
;;1.1,1,2,1 S:"ye"[X ^DD(DA(1),"AUDIT",DA)=""
;;1.1,1,2,2 K ^DD(DA(1),"AUDIT",DA)
;;1.2,0 AUDIT CONDITION^K^^AX;E1,245^D ^DIM
;;1.2,3 Enter Mumps Code that will set $T to 1 for Audit to take place.
;;2,0 OUTPUT TRANSFORM^F^^2;E1,245^D ^DIM
;;3,0 'HELP'-PROMPT^F^^3;E1,245^K:X'?3.E!($L(X)>200) X
;;4,0 XECUTABLE 'HELP'^F^^4;E1,245^D ^DIM
;;7.5,0 PRE-LOOKUP TRANSFORM^F^^7.5;E1,245^D ^DIM
;;8,0 READ ACCESS (OPTIONAL)^F^^8;E1,245^I DUZ(0)'="@" F I=1:1:$L(X) I DUZ(0)'[$E(X,I) K X Q
;;8,3 ENTER A STRING OF CHARACTERS WHICH ARE IN YOUR OWN ACCESS CODE ('DUZ(0)')
;;8.5,0 DELETE ACCESS (OPTIONAL)^F^^8.5;E1,245^I DUZ(0)'="@" F I=1:1:$L(X) I DUZ(0)'[$E(X,I) K X Q
;;9,0 WRITE ACCESS (OPTIONAL)^F^^9;E1,245^I DUZ(0)'="@" F I=1:1:$L(X) I DUZ(0)'[$E(X,I) K X Q
;;9.01,0 COMPUTED FIELDS USED^F^^9.01;E1,250^Q
;;9.01,1,0 ^.1^1^1
;;9.01,1,1,0 DA(2)^ACOMP^MUMPS
;;9.01,1,1,1 F %=1:1 S I=$P(X,";",%) Q:I="" S ^DD("ACOMP",+I,+$P(I,U,2),DA(1),DA)=""
;;9.01,1,1,2 F %=1:1 S I=$P(X,";",%) Q:I="" K ^DD("ACOMP",+I,+$P(I,U,2),DA(1),DA)
;;10,0 SOURCE^F^^10;E1,99^K:$L(X)>99 X
;;10,3 WHERE THIS DATA ELEMENT COMES FROM (UP TO 99 CHARACTERS)
;;11,0 DESTINATION^.2LAP^^11;0
;;12,0 POINTER SCREEN^^^12;E1,250
;;12.1,0 CODE TO SET POINTER SCREEN^^^12.1;E1,250^D ^DIM
;;12.2,0 EXPRESSION FOR POINTER SCREEN^^^12.2;E1,250
;;20,0 GROUP^.3LA^^20;0
;;21,0 DESCRIPTION^.001^^21;0
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HDINIT1 3183 printed Nov 22, 2024@18:00:28 Page 2
DINIT1 ;SFISC/GFT,XAK-INITIALIZE VA FILEMAN ;6NOV2012
+1 ;;22.2;VA FileMan;;Jan 05, 2016;Build 42
+2 ;;Per VA Directive 6402, this routine should not be modified.
+3 ;;Submitted to OSEHRA 5 January 2015 by the VISTA Expertise Network.
+4 ;;Based on Medsphere Systems Corporation's MSC FileMan 1051.
+5 ;;Licensed under the terms of the Apache License, Version 2.0.
+6 ;
DD FOR I=1:1
SET X=$TEXT(DD+I)
SET Y=$PIECE(X," ",3,99)
if X?.P
GOTO ^DINIT11
SET @("^DD(0,"_$EXTRACT($PIECE(X," ",2),3,99)_")=Y")
+1 ;;.26,0 COMPUTE ALGORITHM^FJ30^^9.1;E1,245^K:$L(X)>50 X
+2 ;;.27,0 SUB-FIELDS^CJ1^^ ; ^Q:$D(DIQ(0)) X ^DD(0,.27,9.2) S X="" I $D(Y)#2,Y=U S DN=0
+3 ;;.27,9.2 S %=$S($D(^DD(DFF,D0,0)):+$P(^(0),U,2),1:0) I %,$D(^DD(%,.01,0)),$P(^(0),U,2)'["W" S DR="DFF=%,DN=1 D ^DIO2 S X="""",DFF="_DFF_",DN="_DN,X="D0" X "F Z=1:1 S DR=X_""=0,""_DR_"",""_X_""=""""""_@X_"""""""",X=""D""_X Q:$D(@X)[0","S "_DR
+4 ;;.28,0 MULTIPLE-VALUED^CB^^ ; ^S X=$P(^DD(DFF,D0,0),U,2)>0
+5 ;;.29,0 DEPTH OF SUB-FIELD^CJ1^^ ; ^S %=DFF X "F X=0:1 Q:'$D(^DD(%,0,""UP"")) S %=^(""UP"")"
+6 ;;.3,0 POINTER^F^^0;3
+7 ;;.3,9 ^
+8 ;;.4,0 GLOBAL SUBSCRIPT LOCATION^RF^^0;4^K:X'?1.E1";"1.E X I $D(X),@("$D("_DIC_"""GL"",$P(X,"";""),$P(X,"";"",2)))") K X
+9 ;;.4,1,0 ^.1^1^1
+10 ;;.4,1,1,0 DA(2)^GL
+11 ;;.4,1,1,1 S:X'?.P @(DIC_"""GL"",$P(X,"";""),$P(X,"";"",2),DA)=""""")
+12 ;;.4,1,1,2 K:X'?.P @(DIC_"""GL"",$P(X,"";""),$P(X,"";"",2),DA)")
+13 ;;.4,9 ^
+14 ;;.5,0 INPUT TRANSFORM^CJ44^^ ; ^S @("X=$P("_DCC_"D0,0),U,5,99)")
+15 ;;.5,9 ^
+16 ;;1,0 CROSS-REFERENCE^.1^^1;0
+17 ;;1.1,0 AUDIT^S^y:YES, ALWAYS;n:NO;e:EDITED OR DELETED;^AUDIT;1^Q
+18 ;;1.1,1,0 ^.1
+19 ;;1.1,1,1,0 0^AUD^MUMPS
+20 ;;1.1,1,1,1 I "ye"[X,$P(^DD(DA(1),DA,0),U,2)'["a" S $P(^(0),U,2)=$P(^(0),U,2)_"a"
+21 ;;1.1,1,1,2 S $P(^(0),U,2)=$P($P(^DD(DA(1),DA,0),U,2),"a")_$P($P(^(0),U,2),"a",2,9)
+22 ;;1.1,1,2,0 0^AUDIT^MUMPS
+23 ;;1.1,1,2,1 S:"ye"[X ^DD(DA(1),"AUDIT",DA)=""
+24 ;;1.1,1,2,2 K ^DD(DA(1),"AUDIT",DA)
+25 ;;1.2,0 AUDIT CONDITION^K^^AX;E1,245^D ^DIM
+26 ;;1.2,3 Enter Mumps Code that will set $T to 1 for Audit to take place.
+27 ;;2,0 OUTPUT TRANSFORM^F^^2;E1,245^D ^DIM
+28 ;;3,0 'HELP'-PROMPT^F^^3;E1,245^K:X'?3.E!($L(X)>200) X
+29 ;;4,0 XECUTABLE 'HELP'^F^^4;E1,245^D ^DIM
+30 ;;7.5,0 PRE-LOOKUP TRANSFORM^F^^7.5;E1,245^D ^DIM
+31 ;;8,0 READ ACCESS (OPTIONAL)^F^^8;E1,245^I DUZ(0)'="@" F I=1:1:$L(X) I DUZ(0)'[$E(X,I) K X Q
+32 ;;8,3 ENTER A STRING OF CHARACTERS WHICH ARE IN YOUR OWN ACCESS CODE ('DUZ(0)')
+33 ;;8.5,0 DELETE ACCESS (OPTIONAL)^F^^8.5;E1,245^I DUZ(0)'="@" F I=1:1:$L(X) I DUZ(0)'[$E(X,I) K X Q
+34 ;;9,0 WRITE ACCESS (OPTIONAL)^F^^9;E1,245^I DUZ(0)'="@" F I=1:1:$L(X) I DUZ(0)'[$E(X,I) K X Q
+35 ;;9.01,0 COMPUTED FIELDS USED^F^^9.01;E1,250^Q
+36 ;;9.01,1,0 ^.1^1^1
+37 ;;9.01,1,1,0 DA(2)^ACOMP^MUMPS
+38 ;;9.01,1,1,1 F %=1:1 S I=$P(X,";",%) Q:I="" S ^DD("ACOMP",+I,+$P(I,U,2),DA(1),DA)=""
+39 ;;9.01,1,1,2 F %=1:1 S I=$P(X,";",%) Q:I="" K ^DD("ACOMP",+I,+$P(I,U,2),DA(1),DA)
+40 ;;10,0 SOURCE^F^^10;E1,99^K:$L(X)>99 X
+41 ;;10,3 WHERE THIS DATA ELEMENT COMES FROM (UP TO 99 CHARACTERS)
+42 ;;11,0 DESTINATION^.2LAP^^11;0
+43 ;;12,0 POINTER SCREEN^^^12;E1,250
+44 ;;12.1,0 CODE TO SET POINTER SCREEN^^^12.1;E1,250^D ^DIM
+45 ;;12.2,0 EXPRESSION FOR POINTER SCREEN^^^12.2;E1,250
+46 ;;20,0 GROUP^.3LA^^20;0
+47 ;;21,0 DESCRIPTION^.001^^21;0