source: WorldVistAEHR/trunk/r/MEDICINE-MC/MCARSRP.m@ 1036

Last change on this file since 1036 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 1.8 KB
Line 
1MCARSRP ;WISC/TJK,RMP-CATH SURGICAL RISK REPORT ;5/10/96 14:36
2 ;;2.3;Medicine;;09/13/1996
3LOOK S DIC="^MCAR(694.5,",DIC(0)="AEZMQ",DIC("A")="Select Patient:" D ^DIC G EXIT:Y<0 S MCARGDA=+Y
4DEV K IO("Q") S %ZIS="MQ" D ^%ZIS G EXIT:POP
5 I $D(IO("Q")) S ZTRTN="PRINT^MCARSRP",ZTSAVE("MCARGDA")="",ZTDESC="SURGICAL RISK ANALYSIS REPORT" D ^%ZTLOAD K ZTSK G EXIT
6 U IO
7PRINT K DXS,DIOT(2),^UTILITY($J),MCOUT S PG=0,D0=MCARGDA
8 S ^UTILITY($J,1)="S MCY="""" I $Y>(IOSL-3) R:$E(IOST,1,2)=""C-"" !!,""Press RETURN to continue"",MCY:DTIME S:'$T MCY=U S:MCY=U DN=0,MCOUT=1 D:DN HEAD^MCARSRP K MCY"
9 S Y0=^MCAR(694.5,D0,0),DFN=$P(Y0,U,2),MCARHOS=$P(Y0,U,3) K Y0 I $D(^(10)) S MCARGDT=$P(^(10),U),MCARGDT=$E(MCARGDT,4,5)_"/"_$E(MCARGDT,6,7)_"/"_$E(MCARGDT,2,3) K Y0
10 I MCARHOS,$D(^DIC(4,MCARHOS,99)) S MCARHOS=$P(^(99),U)
11 ; ------------------------
12 ; SSN = Enternal Format of the patients SSN.
13 ; ------------------------
14 D DEM^VADPT S MCARGNM=VADM(1),SSN=$P(VADM(2),U,2) D KVAR^VADPT
15 ; ^MCAROS0 below was ^MCAROS; changed to eliminate possibility
16 ; of overwrite of compiled routine ^MCAROS1 that shares subnamespace
17 D HEAD,^MCAROS0 K DXS G EXIT:$D(MCOUT) D ^MCAROS1 K DXS G EXIT:$D(MCOUT) D ^MCAROS2
18 K DXS G EXIT:$D(MCOUT) D ^MCAROS3
19EXIT I IOST'?1"P-".E,'$D(MCOUT) R !!,"PRESS RETURN TO CONTINUE",X:DTIME
20 S:$D(ZTQUEUED) ZTREQ="@" K ZTSK,^UTILITY($J),IO("Q"),MCARGDA,MCARGDT,SSN
21 K MCARGNM,X,DFN,SSN,MCARHOS,DN,D0,FLDS,M1,M2,M3,M4,II,IJ,PC,ND,MCARLC
22 K DIOEND,DIOBEG,DI,DICS,DJ,BY,A,DICSS,MCOUT
23 K DIEDT,DIQ,DIWF,DIPZ,DIL,DXS,DALL,DSC,DCL,DPP,DPQ,DIC,DU,DQI,DY,S,DC
24 K DL,DV,DE,DA,DK,Y,R,C,D,I,J,Q,M,P,N,D1,DIW,DIWL,DIWR,DIWT,PG,Z,L,VA
25 W:IOST?1"P-".E @IOF D ^%ZISC Q
26HEAD S PG=PG+1 W @IOF,!!,?25,"CARDIAC SURGERY RISK ASSESSMENT",?72,"Pg ",PG
27 W !,?2,"PATIENT NAME: ",MCARGNM,?45,"HOSPITAL: ",MCARHOS,!,?2,"SSN: ",SSN,?45,"DATE OF SURGERY: ",$S($D(MCARGDT):MCARGDT,1:"NONE ENTERED")
28 W ! Q
Note: See TracBrowser for help on using the repository browser.