IBINI07E ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(356.94) F I=1:2 S X=$T(Q+I) Q:X="" S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
Q Q
;;^DD(356.94,.02,1,0)
;;=^.1
;;^DD(356.94,.02,1,1,0)
;;=356.94^C
;;^DD(356.94,.02,1,1,1)
;;=S ^IBT(356.94,"C",$E(X,1,30),DA)=""
;;^DD(356.94,.02,1,1,2)
;;=K ^IBT(356.94,"C",$E(X,1,30),DA)
;;^DD(356.94,.02,1,1,"%D",0)
;;=^^2^2^2940222^^
;;^DD(356.94,.02,1,1,"%D",1,0)
;;=Regular cross reference of all inpatient provider entries by the admission
;;^DD(356.94,.02,1,1,"%D",2,0)
;;=movement.
;;^DD(356.94,.02,1,1,"DT")
;;=2940222
;;^DD(356.94,.02,1,2,0)
;;=356.94^ADG^MUMPS
;;^DD(356.94,.02,1,2,1)
;;=S:$P(^IBT(356.94,DA,0),U,4)=3&($P(^(0),U,3)) ^IBT(356.94,"ADG",X,+$P(^(0),U,3),DA)=""
;;^DD(356.94,.02,1,2,2)
;;=K ^IBT(356.94,"ADG",X,+$P(^IBT(356.94,DA,0),U,3),DA)
;;^DD(356.94,.02,1,2,"%D",0)
;;=^^2^2^2940222^
;;^DD(356.94,.02,1,2,"%D",1,0)
;;=Cross reference of all admitting provider entries by admission movement,
;;^DD(356.94,.02,1,2,"%D",2,0)
;;=by provider.
;;^DD(356.94,.02,1,2,"DT")
;;=2940222
;;^DD(356.94,.02,1,3,0)
;;=356.94^ADGPM^MUMPS
;;^DD(356.94,.02,1,3,1)
;;=S:$P(^IBT(356.94,DA,0),U,3) ^IBT(356.94,"ADGPM",X,+$P(^(0),U,3),DA)=""
;;^DD(356.94,.02,1,3,2)
;;=K ^IBT(356.94,"ADGPM",X,+$P(^IBT(356.94,DA,0),U,3),DA)
;;^DD(356.94,.02,1,3,"%D",0)
;;=^^2^2^2940222^
;;^DD(356.94,.02,1,3,"%D",1,0)
;;=Cross reference of all inpatient provider entries by patient movement,
;;^DD(356.94,.02,1,3,"%D",2,0)
;;=by provider.
;;^DD(356.94,.02,1,3,"DT")
;;=2940222
;;^DD(356.94,.02,1,4,0)
;;=356.94^ATP^MUMPS
;;^DD(356.94,.02,1,4,1)
;;=S:$P(^IBT(356.94,DA,0),U,4) ^IBT(356.94,"ATP",X,+$P(^(0),U,4),DA)=""
;;^DD(356.94,.02,1,4,2)
;;=K ^IBT(356.94,"ATP",X,+$P(^IBT(356.94,DA,0),U,4),DA)
;;^DD(356.94,.02,1,4,"%D",0)
;;=^^2^2^2940222^
;;^DD(356.94,.02,1,4,"%D",1,0)
;;=Cross reference of all inpatient provider entries by admission movement
;;^DD(356.94,.02,1,4,"%D",2,0)
;;=by type of provider.
;;^DD(356.94,.02,1,4,"DT")
;;=2940222
;;^DD(356.94,.02,12)
;;=Must be an admission movement.
;;^DD(356.94,.02,12.1)
;;=S DIC("S")="I $P(^(0),U,2)=1"
;;^DD(356.94,.02,21,0)
;;=^^1^1^2940202^
;;^DD(356.94,.02,21,1,0)
;;=This is the admission movement that the provider is responsible for.
;;^DD(356.94,.02,"DT")
;;=2940222
;;^DD(356.94,.03,0)
;;=PROVIDER^*P200'^VA(200,^0;3^S DIC("S")="I $D(^VA(200,""AK.PROVIDER"",$P(^(0),U,1),+Y))" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(356.94,.03,1,0)
;;=^.1
;;^DD(356.94,.03,1,1,0)
;;=356.94^D
;;^DD(356.94,.03,1,1,1)
;;=S ^IBT(356.94,"D",$E(X,1,30),DA)=""
;;^DD(356.94,.03,1,1,2)
;;=K ^IBT(356.94,"D",$E(X,1,30),DA)
;;^DD(356.94,.03,1,1,"%D",0)
;;=^^2^2^2940222^
;;^DD(356.94,.03,1,1,"%D",1,0)
;;=Regular cross-reference of all inpatient provider entries by
;;^DD(356.94,.03,1,1,"%D",2,0)
;;=provider.
;;^DD(356.94,.03,1,1,"DT")
;;=2940222
;;^DD(356.94,.03,1,2,0)
;;=356.94^ADG1^MUMPS
;;^DD(356.94,.03,1,2,1)
;;=S:$P(^IBT(356.94,DA,0),U,4)=3&($P(^(0),U,2)) ^IBT(356.94,"ADG",+$P(^(0),U,2),X,DA)=""
;;^DD(356.94,.03,1,2,2)
;;=K ^IBT(356.94,"ADG",+$P(^IBT(356.94,DA,0),U,2),X,DA)
;;^DD(356.94,.03,1,2,"%D",0)
;;=^^2^2^2940222^
;;^DD(356.94,.03,1,2,"%D",1,0)
;;=Cross reference of all admitting provider entries by admission movement,
;;^DD(356.94,.03,1,2,"%D",2,0)
;;=by provider.
;;^DD(356.94,.03,1,2,"DT")
;;=2940222
;;^DD(356.94,.03,1,3,0)
;;=356.94^ADGPM1^MUMPS
;;^DD(356.94,.03,1,3,1)
;;=S:$P(^IBT(356.94,DA,0),U,2) ^IBT(356.94,"ADGPM",+$P(^(0),U,2),X,DA)=""
;;^DD(356.94,.03,1,3,2)
;;=K ^IBT(356.94,"ADGPM",+$P(^IBT(356.94,DA,0),U,2),X,DA)
;;^DD(356.94,.03,1,3,"%D",0)
;;=^^2^2^2940222^
;;^DD(356.94,.03,1,3,"%D",1,0)
;;=Cross reference of all inpatient provider entries by patient movement,
IBINI07E ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(356.94)
QUIT
FOR I=1:2
SET X=$TEXT(Q+I)
IF X=""
QUIT
SET Y=$EXTRACT($TEXT(Q+I+1),4,999)
SET X=$EXTRACT(X,4,999)
IF $ASCII(Y)=126
SET I=I+1
SET Y=$EXTRACT(Y,2,999)_$EXTRACT($TEXT(Q+I+1),5,99)
IF $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
XECUTE NO
IF '$TEST
SET @X=Y
Q QUIT
+1 ;;^DD(356.94,.02,1,0)
+2 ;;=^.1
+3 ;;^DD(356.94,.02,1,1,0)
+4 ;;=356.94^C
+5 ;;^DD(356.94,.02,1,1,1)
+6 ;;=S ^IBT(356.94,"C",$E(X,1,30),DA)=""
+7 ;;^DD(356.94,.02,1,1,2)
+8 ;;=K ^IBT(356.94,"C",$E(X,1,30),DA)
+9 ;;^DD(356.94,.02,1,1,"%D",0)
+10 ;;=^^2^2^2940222^^
+11 ;;^DD(356.94,.02,1,1,"%D",1,0)
+12 ;;=Regular cross reference of all inpatient provider entries by the admission
+13 ;;^DD(356.94,.02,1,1,"%D",2,0)
+14 ;;=movement.
+15 ;;^DD(356.94,.02,1,1,"DT")
+16 ;;=2940222
+17 ;;^DD(356.94,.02,1,2,0)
+18 ;;=356.94^ADG^MUMPS
+19 ;;^DD(356.94,.02,1,2,1)
+20 ;;=S:$P(^IBT(356.94,DA,0),U,4)=3&($P(^(0),U,3)) ^IBT(356.94,"ADG",X,+$P(^(0),U,3),DA)=""
+21 ;;^DD(356.94,.02,1,2,2)
+22 ;;=K ^IBT(356.94,"ADG",X,+$P(^IBT(356.94,DA,0),U,3),DA)
+23 ;;^DD(356.94,.02,1,2,"%D",0)
+24 ;;=^^2^2^2940222^
+25 ;;^DD(356.94,.02,1,2,"%D",1,0)
+26 ;;=Cross reference of all admitting provider entries by admission movement,
+27 ;;^DD(356.94,.02,1,2,"%D",2,0)
+28 ;;=by provider.
+29 ;;^DD(356.94,.02,1,2,"DT")
+30 ;;=2940222
+31 ;;^DD(356.94,.02,1,3,0)
+32 ;;=356.94^ADGPM^MUMPS
+33 ;;^DD(356.94,.02,1,3,1)
+34 ;;=S:$P(^IBT(356.94,DA,0),U,3) ^IBT(356.94,"ADGPM",X,+$P(^(0),U,3),DA)=""
+35 ;;^DD(356.94,.02,1,3,2)
+36 ;;=K ^IBT(356.94,"ADGPM",X,+$P(^IBT(356.94,DA,0),U,3),DA)
+37 ;;^DD(356.94,.02,1,3,"%D",0)
+38 ;;=^^2^2^2940222^
+39 ;;^DD(356.94,.02,1,3,"%D",1,0)
+40 ;;=Cross reference of all inpatient provider entries by patient movement,
+41 ;;^DD(356.94,.02,1,3,"%D",2,0)
+42 ;;=by provider.
+43 ;;^DD(356.94,.02,1,3,"DT")
+44 ;;=2940222
+45 ;;^DD(356.94,.02,1,4,0)
+46 ;;=356.94^ATP^MUMPS
+47 ;;^DD(356.94,.02,1,4,1)
+48 ;;=S:$P(^IBT(356.94,DA,0),U,4) ^IBT(356.94,"ATP",X,+$P(^(0),U,4),DA)=""
+49 ;;^DD(356.94,.02,1,4,2)
+50 ;;=K ^IBT(356.94,"ATP",X,+$P(^IBT(356.94,DA,0),U,4),DA)
+51 ;;^DD(356.94,.02,1,4,"%D",0)
+52 ;;=^^2^2^2940222^
+53 ;;^DD(356.94,.02,1,4,"%D",1,0)
+54 ;;=Cross reference of all inpatient provider entries by admission movement
+55 ;;^DD(356.94,.02,1,4,"%D",2,0)
+56 ;;=by type of provider.
+57 ;;^DD(356.94,.02,1,4,"DT")
+58 ;;=2940222
+59 ;;^DD(356.94,.02,12)
+60 ;;=Must be an admission movement.
+61 ;;^DD(356.94,.02,12.1)
+62 ;;=S DIC("S")="I $P(^(0),U,2)=1"
+63 ;;^DD(356.94,.02,21,0)
+64 ;;=^^1^1^2940202^
+65 ;;^DD(356.94,.02,21,1,0)
+66 ;;=This is the admission movement that the provider is responsible for.
+67 ;;^DD(356.94,.02,"DT")
+68 ;;=2940222
+69 ;;^DD(356.94,.03,0)
+70 ;;=PROVIDER^*P200'^VA(200,^0;3^S DIC("S")="I $D(^VA(200,""AK.PROVIDER"",$P(^(0),U,1),+Y))" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+71 ;;^DD(356.94,.03,1,0)
+72 ;;=^.1
+73 ;;^DD(356.94,.03,1,1,0)
+74 ;;=356.94^D
+75 ;;^DD(356.94,.03,1,1,1)
+76 ;;=S ^IBT(356.94,"D",$E(X,1,30),DA)=""
+77 ;;^DD(356.94,.03,1,1,2)
+78 ;;=K ^IBT(356.94,"D",$E(X,1,30),DA)
+79 ;;^DD(356.94,.03,1,1,"%D",0)
+80 ;;=^^2^2^2940222^
+81 ;;^DD(356.94,.03,1,1,"%D",1,0)
+82 ;;=Regular cross-reference of all inpatient provider entries by
+83 ;;^DD(356.94,.03,1,1,"%D",2,0)
+84 ;;=provider.
+85 ;;^DD(356.94,.03,1,1,"DT")
+86 ;;=2940222
+87 ;;^DD(356.94,.03,1,2,0)
+88 ;;=356.94^ADG1^MUMPS
+89 ;;^DD(356.94,.03,1,2,1)
+90 ;;=S:$P(^IBT(356.94,DA,0),U,4)=3&($P(^(0),U,2)) ^IBT(356.94,"ADG",+$P(^(0),U,2),X,DA)=""
+91 ;;^DD(356.94,.03,1,2,2)
+92 ;;=K ^IBT(356.94,"ADG",+$P(^IBT(356.94,DA,0),U,2),X,DA)
+93 ;;^DD(356.94,.03,1,2,"%D",0)
+94 ;;=^^2^2^2940222^
+95 ;;^DD(356.94,.03,1,2,"%D",1,0)
+96 ;;=Cross reference of all admitting provider entries by admission movement,
+97 ;;^DD(356.94,.03,1,2,"%D",2,0)
+98 ;;=by provider.
+99 ;;^DD(356.94,.03,1,2,"DT")
+100 ;;=2940222
+101 ;;^DD(356.94,.03,1,3,0)
+102 ;;=356.94^ADGPM1^MUMPS
+103 ;;^DD(356.94,.03,1,3,1)
+104 ;;=S:$P(^IBT(356.94,DA,0),U,2) ^IBT(356.94,"ADGPM",+$P(^(0),U,2),X,DA)=""
+105 ;;^DD(356.94,.03,1,3,2)
+106 ;;=K ^IBT(356.94,"ADGPM",+$P(^IBT(356.94,DA,0),U,2),X,DA)
+107 ;;^DD(356.94,.03,1,3,"%D",0)
+108 ;;=^^2^2^2940222^
+109 ;;^DD(356.94,.03,1,3,"%D",1,0)
+110 ;;=Cross reference of all inpatient provider entries by patient movement,