36 lines
1.2 KiB
Mathematica
36 lines
1.2 KiB
Mathematica
DIFG7 ;SFISC/DG(OHPRD)-CALLS TO DIC,DIE,DIK ;1/7/92 2:47 PM
|
|
;;22.0;VA FileMan;;Mar 30, 1999
|
|
;Per VHA Directive 10-93-142, this routine should not be modified.
|
|
CALLDIC ;
|
|
I $D(^UTILITY("DIFG",$J,DIFGORDR,DIFGFILE,"DINUM")) S DINUM=^("DINUM")
|
|
S DIADD=1,DIC(0)="FLI" I $P(^UTILITY("DIFG",$J,DIFGORDR,DIFGFILE,"X"),U,2)]"" S X="`"_X
|
|
S DLAYGO=DIFGFILE
|
|
S DITC=""
|
|
D ^DIC
|
|
K DITC
|
|
I Y<1 S DIFGER=16_U_$P(^UTILITY("DIFG",$J,DIFGORDR,DIFGFILE,"MODE"),U,2) D ERROR^DIFG
|
|
K DIADD,DLAYGO,DR,DINUM
|
|
Q
|
|
;
|
|
CALLDIE ;
|
|
I DR[".01///"&($P(^DD(DIFGFILE,.01,0),U,5,99)["DINUM"!$D(^UTILITY("DIFG",$J,DIFGORDR,DIFGFILE,"DINUM"))) S DIFGDRVL=$P($P(DR,".01///",2),";"),DR=$P(DR,".01///"_DIFGDRVL)_$P(DR,".01///"_DIFGDRVL_";",2)
|
|
NEW I F I=0:1 Q:'$D(@("D"_I)) K @("D"_I)
|
|
S DITC=""
|
|
D ^DIE K DITC
|
|
Q
|
|
;
|
|
WP ;PROCESS WORD PROCESSING FIELD
|
|
S DIFG("FIELD")=^UTILITY("DIFG",$J,DIFGORDR,DIFGFILE,"WP",0)
|
|
F DIFGI=1:1 Q:'$D(^UTILITY("DIFG",$J,DIFGORDR,DIFGFILE,"WP",DIFGI)) D:^(DIFGI)[";" CHANGE S DR=DIFG("FIELD")_"///+"_^(DIFGI) D ^DIE
|
|
K DR
|
|
Q
|
|
;
|
|
CHANGE ;TEXT CONTAINS A ";"
|
|
S DIFGSECP=^UTILITY("DIFG",$J,DIFGORDR,DIFGFILE,"WP",DIFGI) D PARSE^DIFG1 S ^UTILITY("DIFG",$J,DIFGORDR,DIFGFILE,"WP",DIFGI)="^S X="_DIFGSECP
|
|
Q
|
|
;
|
|
CALLDIK ;
|
|
D ^DIK
|
|
Q
|
|
;
|