source: WorldVistAEHR/trunk/r/MEDICINE-MC/MCARD.m@ 1714

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

initial load of WorldVistAEHR

File size: 2.3 KB
RevLine 
[613]1MCARD ;WISC/TJK,JA-SCREEN HANDLER ;7/22/96 14:55
2 ;;2.3;Medicine;;09/13/1996
3EN K ^TMP($J,"DJST"),DJST,^TMP($J,"DJ") S:$D(DJSC) X=DJSC S DJPEDT=$P(^VA(200,DUZ,1),U,5)
4 S Y=$O(^MCAR(697.3,"B",X,0)) S:Y="" Y=-1
5 I Y<0 W !!,"SCREEN NOT DEFINED",*7 Q
6 ;WISC/DCB-The next line sets up the PF and cursor keys for input
7 S X="IOPF1;IOPF2;IOPF3;IOPF4;IOECH;IOCUB;IOCUF;IOCUD;IOCUU;IOKP1;IOKP2"
8 D ENDR^%ZISS
9 S X="IOKP3;IOKP4;IOKP5;IOKP6;IOKP7;IOKP8;IOKP9;IORVOFF;IORVON;IOKPAM;IOKPNM"
10 D ENDR^%ZISS
11 W IOKPNM S DJCHO="C",MCMASS=1,MCHELPSW=1
12 S DJR=Y,DJR(0)=^MCAR(697.3,Y,0),DJZ=$P(DJR(0),"^",6) I '$D(DJZ) S DJZ=$S(DJZ="":"",$D(^DIC(DJZ,0,"GL"))=1:^("GL"),1:"") I DJZ=""!($D(^MCAR(697.3,+Y,1))=0) W !,"SCREEN OR GLOBAL NOT DEFINED PROPERLY",*7 H 1 Q
13 S DJNM=$P(^MCAR(697.3,Y,0),"^",1) G:$D(DJDN) D
14RD ;D RL Q:X="^"!(X="") G RD
15RL K V
16D D:'$D(DJRJ) ^MCARDPAR Q:'$D(DJRJ)
17 I '$D(DJDN) D ^MCARDPL G EXIT1:$D(DJY) D ^MCARDNJ G EXIT1
18 I '$D(DJDIS),$D(DJDN) D ^MCARDPL G EXIT1:$D(DJY) S (DA,W(V))=DJDN D ^MCARD1 S DJW=1,DJW1=1 D EN^MCARDNJ G EXIT1
19 I $D(DJDIS) D ^MCARDPL G EXIT1:$D(DJY) S (DA,W(V))=DJDN D ^MCARD1 S DJW=1,DJW1=1 D EN^MCARDNJ G EXIT1
20 ;
21Q ; LOCATE SCREEN
22 D:'$D(DJRJ) ^MCARDPAR Q:'$D(DJRJ)
23 S DIC("A")="Select Screen Name: ",DIC(0)="AEMQ",DIC="^MCAR(697.3," S:DJOP=2 DLAYGO=697.3,DIC(0)=DIC(0)_"L"
24 S DIC("S")=$S(DUZ(0)'="@":"I 1 S DJX=$P(^MCAR(697.3,+Y,0),""^"",4) F DJK=1:1:$L(DJX) I DUZ(0)[$E(DJX,DJK) Q",1:"I Y") I DJOP=5 S DIC("S")="I $P(^MCAR(697.3,+Y,0),""^"",3)="""",'$D(^DD($P(^MCAR(697.3,+Y,0),""^"",6),0,""UP"")) "_DIC("S")
25 D ^DIC K DIC(0),DLAYGO,DIC("A"),DIC("S") Q:Y<0
26 S (X,DJDNM)=$P(Y,U,2) Q
27EX K DIC,DJRJ,I,J,K,O,S,X,XY Q
28EXIT1 X DJCL W DJLIN K DJLIN,DJCL,DJCP,DJEOP,DJRJ,DJR I $D(IOST),IOST?1"C-Q".E W DJHIN
29 K DJHIN
30EXIT I $D(X),X=U S DUOUT=""
31 W IOKPNM
32 K DJJ,C,V,X,Y,DIC,DJQ,DJDPL,DJKV,DJNM,DJW,DIE,DE,DJ,DH,DI,DJDIS,DJW1,DJDN,DJ0,DJAT,DJMU,DJST,DJSC,DJI,DJOP,DWLW,DJLG,DJNN,DJSW2,DIADD
33 K D,D0,DA,DJ4,DJ3,DJ2,DJDD,DJDNM,DJERR,DJF,DJL,DJN,DJP,DJRNM,DJT,DJX,DJY,DJZ,DFAST,DU,MCARDC,MCDSPTYP
34 K ^TMP($J,"DJST"),DJ5,DJ6,DJ7,DJ9,DJA,DJAD,DJBD,DJD,DJDA,DJDP,DJDUZ,DJFF,DJLSTN,DJSM,DJ44,DJNODE,XY
35 K DJ11,DJ01,DJXL,DJXT,DJXX,DJX1,DJX3,DJ8,DX,DY,DJK,DJDIC,DJDICS,W,DJWR,D0,MCDF,MCBDIC,MCHELPSW,DJCHO
36 K IOPF1,IOPF2,IOPF3,IOPF4,IOECH,IOCUB,IOCUF,IOCUD,IOCUU,IORVON
37 K IOKP1,IOKP2,IOKP3,IOKP4,IOKP5,IOKP6,IOKP7,IOKP8,IOKP9,IORVOFF
38 K DJTOGGLE
39 Q
40 ;
Note: See TracBrowser for help on using the repository browser.