VistA-WorldVistAEHR/r/MENTAL_HEALTH-YS-RUCL-YI-YT/YSPHYR.m

20 lines
839 B
Mathematica

YSPHYR ;SLC/RWF,SLC/DKG,SLC/TGA-PRINT PHYSICAL EXAM ; 3/3/89 08:57 ;
;;5.01;MENTAL HEALTH;;Dec 30, 1994
;
; Called by routine YSPHY
U IO S YSX="^YTX(2,1,",YSFHDR="Physical Examination",YSFTR="SF 506" D EN1^YSPROSE G:YSLFT END
S YSX="^MR(YSDFN,YSPE,YSIDT,20," I $D(@(YSX_"1,0)")) D EN1^YSPROSE G:YSLFT END
S YSX="^MR(YSDFN,YSPE,YSIDT,19," I $D(@(YSX_"1,0)")) D:$Y+4>YSPPL H G:YSLFT END W !!,"Comments:",! D EN1^YSPROSE G:YSLFT END
D:$Y+4>YSPPL H G:YSLFT END W !!!! S X=$P(^MR(YSDFN,"PE",YSIDT,0),U,10) D PSIG^YSUTL W Y
END ;
D ENFT^YSFORM:YST D ^%ZISC,KILL^%ZTLOAD G END^YSPHY1
H ;
S:YST YSCON=1 D ENFT^YSFORM:YST,WAIT:'YST Q:YSLFT D:YST ENHD^YSFORM Q
WAIT ;
Q:$E(IOST,1,2)["P-"
F I0=1:1:IOSL-$Y-2 W !
W:$Y+1<IOSL !
N DTOUT,DUOUT,DIRUT
S DIR(0)="E" D ^DIR K DIR S YSTOUT=$D(DUOUT),YSUOUT=$D(DUOUT),YSLFT=$D(DIRUT) W @IOF
Q