ORD21 ; COMPILED XREF FOR FILE #100 ; 06/29/23
;
S DIKZK=2
S DIKZ(0)=$G(^OR(100,DA,0))
S X=$P($G(DIKZ(0)),U,2)
I X'="" D KILALL^ORDD100(DA)
S X=$P($G(DIKZ(0)),U,2)
I X'="" X ^DD(100,.02,1,5,2)
S X=$P($G(DIKZ(0)),U,2)
I X'="" X ^DD(100,.02,1,7,2)
S X=$P($G(DIKZ(0)),U,2)
I X'="" D WK^ORDD100
S X=$P($G(DIKZ(0)),U,2)
I X'="" D OI2^ORDD100A(DA)
S X=$P($G(DIKZ(0)),U,2)
I X'="" X ^DD(100,.02,1,11,2)
S DIKZ(.61)=$G(^OR(100,DA,.61))
S X=$P($G(DIKZ(.61)),U,1)
I X'="" K ^OR(100,"E",$E(X,1,30),DA)
S DIKZ(0)=$G(^OR(100,DA,0))
S X=$P($G(DIKZ(0)),U,5)
I X'="" K ^OR(100,"C",$E(X,1,30),DA)
S DIKZ(3)=$G(^OR(100,DA,3))
S X=$P($G(DIKZ(3)),U,4)
I X'="" K ^OR(100,"D",$E(X,1,30),DA)
S X=$P($G(DIKZ(0)),U,8)
I X'="" D SK^ORDD100
S X=$P($G(DIKZ(0)),U,8)
I X'="" D WK^ORDD100
S X=$P($G(DIKZ(0)),U,8)
I X'="" D OI2^ORDD100A(DA)
S X=$P($G(DIKZ(0)),U,9)
I X'="" D EK^ORDD100A
S X=$P($G(DIKZ(0)),U,11)
I X'="" D WK^ORDD100
S X=$P($G(DIKZ(0)),U,11)
I X'="" X ^DD(100,23,1,3,2)
CR1 S DIXR=187
K X
S DIKZ(0)=$G(^OR(100,DA,0))
S X(1)=$P(DIKZ(0),U,2)
S X(2)=$P(DIKZ(0),U,17)
S X=$G(X(1))
I $G(X(1))]"",$G(X(2))]"" D
. K X1,X2 M X1=X,X2=X
. S:$D(DIKIL) (X2,X2(1),X2(2))=""
. K ^OR(100,"AEVNT",X(1),X(2),DA)
CR2 S DIXR=210
K X
S DIKZ(0)=$G(^OR(100,DA,0))
S X(1)=$P(DIKZ(0),U,2)
S DIKZ(7)=$G(^OR(100,DA,7))
S X=$P(DIKZ(7),U,1)
I $G(X)]"" S X=9999999-X
S:$D(X)#2 X(2)=X
S X=$G(X(1))
I $G(X(1))]"",$G(X(2))]"" D
. K X1,X2 M X1=X,X2=X
. S:$D(DIKIL) (X2,X2(1),X2(2))=""
. K ^OR(100,"ARS",X(1),X(2),DA)
CR3 K X
END G ^ORD22
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HORD21 1610 printed Dec 13, 2024@02:29:26 Page 2
ORD21 ; COMPILED XREF FOR FILE #100 ; 06/29/23
+1 ;
+2 SET DIKZK=2
+3 SET DIKZ(0)=$GET(^OR(100,DA,0))
+4 SET X=$PIECE($GET(DIKZ(0)),U,2)
+5 IF X'=""
DO KILALL^ORDD100(DA)
+6 SET X=$PIECE($GET(DIKZ(0)),U,2)
+7 IF X'=""
XECUTE ^DD(100,.02,1,5,2)
+8 SET X=$PIECE($GET(DIKZ(0)),U,2)
+9 IF X'=""
XECUTE ^DD(100,.02,1,7,2)
+10 SET X=$PIECE($GET(DIKZ(0)),U,2)
+11 IF X'=""
DO WK^ORDD100
+12 SET X=$PIECE($GET(DIKZ(0)),U,2)
+13 IF X'=""
DO OI2^ORDD100A(DA)
+14 SET X=$PIECE($GET(DIKZ(0)),U,2)
+15 IF X'=""
XECUTE ^DD(100,.02,1,11,2)
+16 SET DIKZ(.61)=$GET(^OR(100,DA,.61))
+17 SET X=$PIECE($GET(DIKZ(.61)),U,1)
+18 IF X'=""
KILL ^OR(100,"E",$EXTRACT(X,1,30),DA)
+19 SET DIKZ(0)=$GET(^OR(100,DA,0))
+20 SET X=$PIECE($GET(DIKZ(0)),U,5)
+21 IF X'=""
KILL ^OR(100,"C",$EXTRACT(X,1,30),DA)
+22 SET DIKZ(3)=$GET(^OR(100,DA,3))
+23 SET X=$PIECE($GET(DIKZ(3)),U,4)
+24 IF X'=""
KILL ^OR(100,"D",$EXTRACT(X,1,30),DA)
+25 SET X=$PIECE($GET(DIKZ(0)),U,8)
+26 IF X'=""
DO SK^ORDD100
+27 SET X=$PIECE($GET(DIKZ(0)),U,8)
+28 IF X'=""
DO WK^ORDD100
+29 SET X=$PIECE($GET(DIKZ(0)),U,8)
+30 IF X'=""
DO OI2^ORDD100A(DA)
+31 SET X=$PIECE($GET(DIKZ(0)),U,9)
+32 IF X'=""
DO EK^ORDD100A
+33 SET X=$PIECE($GET(DIKZ(0)),U,11)
+34 IF X'=""
DO WK^ORDD100
+35 SET X=$PIECE($GET(DIKZ(0)),U,11)
+36 IF X'=""
XECUTE ^DD(100,23,1,3,2)
CR1 SET DIXR=187
+1 KILL X
+2 SET DIKZ(0)=$GET(^OR(100,DA,0))
+3 SET X(1)=$PIECE(DIKZ(0),U,2)
+4 SET X(2)=$PIECE(DIKZ(0),U,17)
+5 SET X=$GET(X(1))
+6 IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+7 KILL X1,X2
MERGE X1=X,X2=X
+8 if $DATA(DIKIL)
SET (X2,X2(1),X2(2))=""
+9 KILL ^OR(100,"AEVNT",X(1),X(2),DA)
End DoDot:1
CR2 SET DIXR=210
+1 KILL X
+2 SET DIKZ(0)=$GET(^OR(100,DA,0))
+3 SET X(1)=$PIECE(DIKZ(0),U,2)
+4 SET DIKZ(7)=$GET(^OR(100,DA,7))
+5 SET X=$PIECE(DIKZ(7),U,1)
+6 IF $GET(X)]""
SET X=9999999-X
+7 if $DATA(X)#2
SET X(2)=X
+8 SET X=$GET(X(1))
+9 IF $GET(X(1))]""
IF $GET(X(2))]""
Begin DoDot:1
+10 KILL X1,X2
MERGE X1=X,X2=X
+11 if $DATA(DIKIL)
SET (X2,X2(1),X2(2))=""
+12 KILL ^OR(100,"ARS",X(1),X(2),DA)
End DoDot:1
CR3 KILL X
END GOTO ^ORD22