source: FOIAVistA/trunk/r/MENTAL_HEALTH-YS-RUCL-YI-YT/YSXRAY1.m@ 1607

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

initial load of FOIAVistA 6/30/08 version

File size: 1.3 KB
Line 
1YSXRAY1 ; COMPILED XREF FOR FILE #627.8 ; 10/15/04
2 ;
3 S DIKZK=2
4 S DIKZ(0)=$G(^YSD(627.8,DA,0))
5 S X=$P(DIKZ(0),U,2)
6 I X'="" K ^YSD(627.8,"C",$E(X,1,30),DA)
7 S DIKZ(1)=$G(^YSD(627.8,DA,1))
8 S X=$P(DIKZ(1),U,1)
9 I X'="" S X1=$S(X["ICD":"I",X["DIC":"D",1:"Z") K ^YSD(627.8,"AE",X1,$P(^YSD(627.8,DA,0),"^",2),$P(^YSD(627.8,DA,0),"^",3),$E(X,1,30),DA)
10 S X=$P(DIKZ(1),U,1)
11 I X'="" K ^YSD(627.8,"AF",$P(^YSD(627.8,DA,0),"^",2),9999999.0000-$P(^YSD(627.8,DA,0),"^",3),$E(X,1,30),DA)
12 S X=$P(DIKZ(1),U,1)
13 I X'="" S X1=$S(X["ICD":"I",X["DIC":"D",1:"Z") K ^YSD(627.8,"AG",X1,$P(^YSD(627.8,DA,0),"^",2),$E(X,1,30),DA)
14 S X=$P(DIKZ(1),U,4)
15 I X'="" K ^YSD(627.8,"AC",$P(^YSD(627.8,DA,0),"^",2),9999999-$P(^YSD(627.8,DA,0),"^",3),$P(^YSD(627.8,DA,1),"^"),X,DA)
16 S X=$P(DIKZ(1),U,3)
17 I X'="" K:X="y" ^YSD(627.8,"AD",$P(^YSD(627.8,DA,0),"^",2),9999999.0000-$P(^YSD(627.8,DA,0),"^",3),DA)
18 S X=$P(DIKZ(1),U,3)
19 I X'="" I "yc"[X K ^YSD(627.8,"AH",$P(^YSD(627.8,DA,0),"^",2),9999999-$P(^YSD(627.8,DA,0),"^",3),DA)
20 S DIKZ(60)=$G(^YSD(627.8,DA,60))
21 S X=$P(DIKZ(60),U,2)
22 I X'="" N X1 S X1=$G(^YSD(627.8,DA,0)) K ^YSD(627.8,"AX4",$P(X1,U,2),9999999-$P(X1,U,3),DA)
23 S X=$P(DIKZ(60),U,3)
24 I X'="" N X1 S X1=$G(^YSD(627.8,DA,0)) K ^YSD(627.8,"AX5",$P(X1,U,2),9999999-$P(X1,U,3),DA)
25 S X=$P(DIKZ(0),U,1)
26 I X'="" K ^YSD(627.8,"B",$E(X,1,30),DA)
27END G ^YSXRAY2
Note: See TracBrowser for help on using the repository browser.