source: WorldVistAEHR/trunk/r/MENTAL_HEALTH-YS-RUCL-YI-YT/YSXRAT4.m@ 1361

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

initial load of WorldVistAEHR

File size: 1.1 KB
Line 
1YSXRAT4 ; COMPILED XREF FOR FILE #618.4 ; 01/30/05
2 ;
3 S DIKZK=1
4 S DIKZ(0)=$G(^YSG("INP",DA,0))
5 S X=$P(DIKZ(0),U,1)
6 I X'="" S ^YSG("INP","B",$E(X,1,30),DA)=""
7 S X=$P(DIKZ(0),U,2)
8 I X'="" S ^YSG("INP","C",$E(X,1,30),DA)=""
9 S X=$P(DIKZ(0),U,2)
10 I X'="" I $P($G(^YSG("INP",DA,7)),U,4) S ^YSG("INP","CP",X,DA)=""
11 S X=$P(DIKZ(0),U,3)
12 I X'="" S ^YSG("INP","AIN",9999999-X,DA)=""
13 S X=$P(DIKZ(0),U,4)
14 I X'="" D CROSS^YSCEN5
15 S X=$P(DIKZ(0),U,4)
16 I X'="" D
17 .N DIK,DIV,DIU,DIN
18 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^YSG("INP",D0,7)):^(7),1:"") S X=$P(Y(1),U,4),X=X S DIU=X K Y S X=DIV S X=DIV,X=X X ^DD(618.4,3,1,2,1.4)
19 S DIKZ(0)=$G(^YSG("INP",DA,0))
20 S X=$P(DIKZ(0),U,5)
21 I X'="" I $D(^YSG("INP",DA,7)),$P(^YSG("INP",DA,7),U,4)?1N.N S ^YSG("INP","AC",X,DA)=""
22 S X=$P(DIKZ(0),U,6)
23 I X'="" I $D(^YSG("INP",DA,7)),$P(^YSG("INP",DA,7),U,4)?1N.N S ^YSG("INP","ACP",X,DA)=""
24 S X=$P(DIKZ(0),U,7)
25 I X'="" I $D(^YSG("INP",DA,7)),$P(^YSG("INP",DA,7),U,4)?1N.N S ^YSG("INP","ACR",X,DA)=""
26 S DIKZ(7)=$G(^YSG("INP",DA,7))
27 S X=$P(DIKZ(7),U,2)
28 I X'="" S ^YSG("INP","AOUT",9999999-X,DA)=""
29 S X=$P(DIKZ(7),U,4)
30 I X'="" D ENTRY^YSCEN5
31END G ^YSXRAT5
Note: See TracBrowser for help on using the repository browser.