ORD29 ; COMPILED XREF FOR FILE #100 ; 08/08/13
;
S DIKZK=1
S DIKZ(0)=$G(^OR(100,DA,0))
S X=$P($G(DIKZ(0)),U,1)
I X'="" S ^OR(100,"AZ",DA,$P(^OR(100,DA,0),U,2))=""
S X=$P($G(DIKZ(0)),U,2)
I X'="" D SETALL^ORDD100(DA)
S X=$P($G(DIKZ(0)),U,2)
I X'="" X ^DD(100,.02,1,5,1)
S X=$P($G(DIKZ(0)),U,2)
I X'="" X ^DD(100,.02,1,7,1)
S X=$P($G(DIKZ(0)),U,2)
I X'="" D WS^ORDD100
S X=$P($G(DIKZ(0)),U,2)
I X'="" D OI1^ORDD100A(DA)
S X=$P($G(DIKZ(0)),U,2)
I X'="" X ^DD(100,.02,1,11,1)
S DIKZ(0)=$G(^OR(100,DA,0))
S X=$P($G(DIKZ(0)),U,8)
I X'="" D SS^ORDD100
S X=$P($G(DIKZ(0)),U,8)
I X'="" D WS^ORDD100
S X=$P($G(DIKZ(0)),U,8)
I X'="" D OI1^ORDD100A(DA)
S X=$P($G(DIKZ(0)),U,9)
I X'="" D ES^ORDD100A
S X=$P($G(DIKZ(0)),U,11)
I X'="" D WS^ORDD100
S X=$P($G(DIKZ(0)),U,11)
I X'="" X ^DD(100,23,1,3,1)
CR1 S DIXR=143
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 ^OR(100,"AEVNT",X(1),X(2),DA)=""
CR2 S DIXR=158
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 ^OR(100,"ARS",X(1),X(2),DA)=""
CR3 K X
END G ^ORD210
ORD29 ; COMPILED XREF FOR FILE #100 ; 08/08/13
+1 ;
+2 SET DIKZK=1
+3 SET DIKZ(0)=$GET(^OR(100,DA,0))
+4 SET X=$PIECE($GET(DIKZ(0)),U,1)
+5 IF X'=""
SET ^OR(100,"AZ",DA,$PIECE(^OR(100,DA,0),U,2))=""
+6 SET X=$PIECE($GET(DIKZ(0)),U,2)
+7 IF X'=""
DO SETALL^ORDD100(DA)
+8 SET X=$PIECE($GET(DIKZ(0)),U,2)
+9 IF X'=""
XECUTE ^DD(100,.02,1,5,1)
+10 SET X=$PIECE($GET(DIKZ(0)),U,2)
+11 IF X'=""
XECUTE ^DD(100,.02,1,7,1)
+12 SET X=$PIECE($GET(DIKZ(0)),U,2)
+13 IF X'=""
DO WS^ORDD100
+14 SET X=$PIECE($GET(DIKZ(0)),U,2)
+15 IF X'=""
DO OI1^ORDD100A(DA)
+16 SET X=$PIECE($GET(DIKZ(0)),U,2)
+17 IF X'=""
XECUTE ^DD(100,.02,1,11,1)
+18 SET DIKZ(0)=$GET(^OR(100,DA,0))
+19 SET X=$PIECE($GET(DIKZ(0)),U,8)
+20 IF X'=""
DO SS^ORDD100
+21 SET X=$PIECE($GET(DIKZ(0)),U,8)
+22 IF X'=""
DO WS^ORDD100
+23 SET X=$PIECE($GET(DIKZ(0)),U,8)
+24 IF X'=""
DO OI1^ORDD100A(DA)
+25 SET X=$PIECE($GET(DIKZ(0)),U,9)
+26 IF X'=""
DO ES^ORDD100A
+27 SET X=$PIECE($GET(DIKZ(0)),U,11)
+28 IF X'=""
DO WS^ORDD100
+29 SET X=$PIECE($GET(DIKZ(0)),U,11)
+30 IF X'=""
XECUTE ^DD(100,23,1,3,1)
CR1 SET DIXR=143
+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 SET ^OR(100,"AEVNT",X(1),X(2),DA)=""
End DoDot:1
CR2 SET DIXR=158
+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 SET ^OR(100,"ARS",X(1),X(2),DA)=""
End DoDot:1
CR3 KILL X
END GOTO ^ORD210