LRAPHDR ; IHS/DIR/AAB - ANATOMIC PATH DEFAULTS 8/13/95 16:42 ;
;;5.2;LR;**1002**;JUN 01, 1998
;;5.2;LAB SERVICE;**72**;Sep 27, 1994
D END S DIC="^LRO(68,",DIC(0)="AEQM",DIC("S")="I ""AUCYEMSP""[$P(^(0),U,2)&($G(^(3,+DUZ(2),0)))" D ^DIC K DIC G:Y<1 END S DA=+Y,X=^LRO(68,DA,0),LRSS=$P(X,U,2),LRY=$P(X,U)
I '$D(^LRO(69.2,DA,0)) W $C(7),!!,"Not an entry in the Pathology PArameter File (#69.2)" G LRAPHDR
S DIE="^LRO(69.2,",DR="[LRAPHDR]" D ^DIE
I "SPCYEM"[LRSS W ! S DIE="^LAB(69.9,",DA=1,DR=$S(LRSS="SP":"11.1;11.2",LRSS="CY":11.3,LRSS="EM":11.4,1:"") D ^DIE
END D V^LRU Q
LRAPHDR ; IHS/DIR/AAB - ANATOMIC PATH DEFAULTS 8/13/95 16:42 ;
+1 ;;5.2;LR;**1002**;JUN 01, 1998
+2 ;;5.2;LAB SERVICE;**72**;Sep 27, 1994
+3 DO END
SET DIC="^LRO(68,"
SET DIC(0)="AEQM"
SET DIC("S")="I ""AUCYEMSP""[$P(^(0),U,2)&($G(^(3,+DUZ(2),0)))"
DO ^DIC
KILL DIC
IF Y<1
GOTO END
SET DA=+Y
SET X=^LRO(68,DA,0)
SET LRSS=$PIECE(X,U,2)
SET LRY=$PIECE(X,U)
+4 IF '$DATA(^LRO(69.2,DA,0))
WRITE $CHAR(7),!!,"Not an entry in the Pathology PArameter File (#69.2)"
GOTO LRAPHDR
+5 SET DIE="^LRO(69.2,"
SET DR="[LRAPHDR]"
DO ^DIE
+6 IF "SPCYEM"[LRSS
WRITE !
SET DIE="^LAB(69.9,"
SET DA=1
SET DR=$SELECT(LRSS="SP":"11.1;11.2",LRSS="CY":11.3,LRSS="EM":11.4,1:"")
DO ^DIE
END DO V^LRU
QUIT