IBINI079 ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(356.91) 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
;;^DIC(356.91,0,"GL")
;;=^IBT(356.91,
;;^DIC("B","INPATIENT PROCEDURE",356.91)
;;=
;;^DIC(356.91,"%D",0)
;;=^^3^3^2940214^^^^
;;^DIC(356.91,"%D",1,0)
;;=This file holds inpatient procedures.
;;^DIC(356.91,"%D",2,0)
;;=
;;^DIC(356.91,"%D",3,0)
;;=Per VHA Directive 10-93-142, this file definition should not be modified.
;;^DD(356.91,0)
;;=FIELD^^.03^3
;;^DD(356.91,0,"DT")
;;=2930901
;;^DD(356.91,0,"ID",.03)
;;=W " ",$E($P(^(0),U,3),4,5)_"-"_$E($P(^(0),U,3),6,7)_"-"_$E($P(^(0),U,3),2,3)
;;^DD(356.91,0,"ID","WRITE")
;;=N Y S Y=$G(^(0)) W " ",$P($G(^DPT(+$P($G(^DGPM(+$P(Y,U,2),0)),U,3),0)),U)
;;^DD(356.91,0,"IX","ADGPM",356.91,.01)
;;=
;;^DD(356.91,0,"IX","ADGPM1",356.91,.02)
;;=
;;^DD(356.91,0,"IX","APP",356.91,.02)
;;=
;;^DD(356.91,0,"IX","APP1",356.91,.03)
;;=
;;^DD(356.91,0,"IX","B",356.91,.01)
;;=
;;^DD(356.91,0,"IX","C",356.91,.02)
;;=
;;^DD(356.91,0,"IX","D",356.91,.03)
;;=
;;^DD(356.91,0,"NM","INPATIENT PROCEDURE")
;;=
;;^DD(356.91,.01,0)
;;=PROCEDURE^RP80.1'^ICD0(^0;1^Q
;;^DD(356.91,.01,1,0)
;;=^.1
;;^DD(356.91,.01,1,1,0)
;;=356.91^B
;;^DD(356.91,.01,1,1,1)
;;=S ^IBT(356.91,"B",$E(X,1,30),DA)=""
;;^DD(356.91,.01,1,1,2)
;;=K ^IBT(356.91,"B",$E(X,1,30),DA)
;;^DD(356.91,.01,1,2,0)
;;=356.91^ADGPM^MUMPS
;;^DD(356.91,.01,1,2,1)
;;=S:$P(^IBT(356.91,DA,0),U,2) ^IBT(356.91,"ADGPM",+$P(^(0),U,2),X,DA)=""
;;^DD(356.91,.01,1,2,2)
;;=K ^IBT(356.91,+$P(^IBT(356.91,DA,0),U,2),X,DA)
;;^DD(356.91,.01,1,2,"%D",0)
;;=^^1^1^2930901^
;;^DD(356.91,.01,1,2,"%D",1,0)
;;=Cross-reference of procedures by patient movement
;;^DD(356.91,.01,1,2,"DT")
;;=2930901
;;^DD(356.91,.01,3)
;;=
;;^DD(356.91,.01,21,0)
;;=^^1^1^2930713^^
;;^DD(356.91,.01,21,1,0)
;;=This is the procedure for this patient.
;;^DD(356.91,.01,"DT")
;;=2930901
;;^DD(356.91,.02,0)
;;=ADMISSION MOVEMENT^*P405'^DGPM(^0;2^S DIC("S")="I $P(^(0),U,2)=1" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(356.91,.02,1,0)
;;=^.1
;;^DD(356.91,.02,1,1,0)
;;=356.91^C
;;^DD(356.91,.02,1,1,1)
;;=S ^IBT(356.91,"C",$E(X,1,30),DA)=""
;;^DD(356.91,.02,1,1,2)
;;=K ^IBT(356.91,"C",$E(X,1,30),DA)
;;^DD(356.91,.02,1,1,"DT")
;;=2930713
;;^DD(356.91,.02,1,2,0)
;;=356.91^APP^MUMPS
;;^DD(356.91,.02,1,2,1)
;;=S:$P(^IBT(356.91,DA,0),U,3) ^IBT(356.91,"APP",X,-$P(^(0),U,3),DA)=""
;;^DD(356.91,.02,1,2,2)
;;=K ^IBT(356.91,"APP",X,-$P(^IBT(356.91,DA,0),U,3),DA)
;;^DD(356.91,.02,1,2,"%D",0)
;;=^^1^1^2930713^^
;;^DD(356.91,.02,1,2,"%D",1,0)
;;=Cross reference of all procedures by tracking ID and procedure date.
;;^DD(356.91,.02,1,2,"DT")
;;=2930713
;;^DD(356.91,.02,1,3,0)
;;=356.91^ADGPM1^MUMPS
;;^DD(356.91,.02,1,3,1)
;;=S:+^IBT(356.91,DA,0) ^IBT(356.91,"ADGPM",X,+^(0),DA)=""
;;^DD(356.91,.02,1,3,2)
;;=K ^IBT(356.91,"ADGPM",X,+^IBT(356.91,DA,0),DA)
;;^DD(356.91,.02,1,3,"%D",0)
;;=^^1^1^2930901^
;;^DD(356.91,.02,1,3,"%D",1,0)
;;=Cross-reference of all procedures by patient movement
;;^DD(356.91,.02,1,3,"DT")
;;=2930901
;;^DD(356.91,.02,12)
;;=Must be an admission movement
;;^DD(356.91,.02,12.1)
;;=S DIC("S")="I $P(^(0),U,2)=1"
;;^DD(356.91,.02,21,0)
;;=^^1^1^2930901^^^
;;^DD(356.91,.02,21,1,0)
;;=This is the pointer to the admission movement that this is associated with.
;;^DD(356.91,.02,"DT")
;;=2930901
;;^DD(356.91,.03,0)
;;=PROCEDURE DATE^RDX^^0;3^S %DT="EX" D ^%DT S X=Y K:Y<1 X K:$G(X)+.9<+$G(^DGPM(+$P(^IBT(356.91,DA,0),U,2),0)) X
;;^DD(356.91,.03,1,0)
;;=^.1
;;^DD(356.91,.03,1,1,0)
;;=356.91^D
;;^DD(356.91,.03,1,1,1)
;;=S ^IBT(356.91,"D",$E(X,1,30),DA)=""
;;^DD(356.91,.03,1,1,2)
;;=K ^IBT(356.91,"D",$E(X,1,30),DA)
IBINI079 ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(356.91)
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 ;;^DIC(356.91,0,"GL")
+2 ;;=^IBT(356.91,
+3 ;;^DIC("B","INPATIENT PROCEDURE",356.91)
+4 ;;=
+5 ;;^DIC(356.91,"%D",0)
+6 ;;=^^3^3^2940214^^^^
+7 ;;^DIC(356.91,"%D",1,0)
+8 ;;=This file holds inpatient procedures.
+9 ;;^DIC(356.91,"%D",2,0)
+10 ;;=
+11 ;;^DIC(356.91,"%D",3,0)
+12 ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
+13 ;;^DD(356.91,0)
+14 ;;=FIELD^^.03^3
+15 ;;^DD(356.91,0,"DT")
+16 ;;=2930901
+17 ;;^DD(356.91,0,"ID",.03)
+18 ;;=W " ",$E($P(^(0),U,3),4,5)_"-"_$E($P(^(0),U,3),6,7)_"-"_$E($P(^(0),U,3),2,3)
+19 ;;^DD(356.91,0,"ID","WRITE")
+20 ;;=N Y S Y=$G(^(0)) W " ",$P($G(^DPT(+$P($G(^DGPM(+$P(Y,U,2),0)),U,3),0)),U)
+21 ;;^DD(356.91,0,"IX","ADGPM",356.91,.01)
+22 ;;=
+23 ;;^DD(356.91,0,"IX","ADGPM1",356.91,.02)
+24 ;;=
+25 ;;^DD(356.91,0,"IX","APP",356.91,.02)
+26 ;;=
+27 ;;^DD(356.91,0,"IX","APP1",356.91,.03)
+28 ;;=
+29 ;;^DD(356.91,0,"IX","B",356.91,.01)
+30 ;;=
+31 ;;^DD(356.91,0,"IX","C",356.91,.02)
+32 ;;=
+33 ;;^DD(356.91,0,"IX","D",356.91,.03)
+34 ;;=
+35 ;;^DD(356.91,0,"NM","INPATIENT PROCEDURE")
+36 ;;=
+37 ;;^DD(356.91,.01,0)
+38 ;;=PROCEDURE^RP80.1'^ICD0(^0;1^Q
+39 ;;^DD(356.91,.01,1,0)
+40 ;;=^.1
+41 ;;^DD(356.91,.01,1,1,0)
+42 ;;=356.91^B
+43 ;;^DD(356.91,.01,1,1,1)
+44 ;;=S ^IBT(356.91,"B",$E(X,1,30),DA)=""
+45 ;;^DD(356.91,.01,1,1,2)
+46 ;;=K ^IBT(356.91,"B",$E(X,1,30),DA)
+47 ;;^DD(356.91,.01,1,2,0)
+48 ;;=356.91^ADGPM^MUMPS
+49 ;;^DD(356.91,.01,1,2,1)
+50 ;;=S:$P(^IBT(356.91,DA,0),U,2) ^IBT(356.91,"ADGPM",+$P(^(0),U,2),X,DA)=""
+51 ;;^DD(356.91,.01,1,2,2)
+52 ;;=K ^IBT(356.91,+$P(^IBT(356.91,DA,0),U,2),X,DA)
+53 ;;^DD(356.91,.01,1,2,"%D",0)
+54 ;;=^^1^1^2930901^
+55 ;;^DD(356.91,.01,1,2,"%D",1,0)
+56 ;;=Cross-reference of procedures by patient movement
+57 ;;^DD(356.91,.01,1,2,"DT")
+58 ;;=2930901
+59 ;;^DD(356.91,.01,3)
+60 ;;=
+61 ;;^DD(356.91,.01,21,0)
+62 ;;=^^1^1^2930713^^
+63 ;;^DD(356.91,.01,21,1,0)
+64 ;;=This is the procedure for this patient.
+65 ;;^DD(356.91,.01,"DT")
+66 ;;=2930901
+67 ;;^DD(356.91,.02,0)
+68 ;;=ADMISSION MOVEMENT^*P405'^DGPM(^0;2^S DIC("S")="I $P(^(0),U,2)=1" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+69 ;;^DD(356.91,.02,1,0)
+70 ;;=^.1
+71 ;;^DD(356.91,.02,1,1,0)
+72 ;;=356.91^C
+73 ;;^DD(356.91,.02,1,1,1)
+74 ;;=S ^IBT(356.91,"C",$E(X,1,30),DA)=""
+75 ;;^DD(356.91,.02,1,1,2)
+76 ;;=K ^IBT(356.91,"C",$E(X,1,30),DA)
+77 ;;^DD(356.91,.02,1,1,"DT")
+78 ;;=2930713
+79 ;;^DD(356.91,.02,1,2,0)
+80 ;;=356.91^APP^MUMPS
+81 ;;^DD(356.91,.02,1,2,1)
+82 ;;=S:$P(^IBT(356.91,DA,0),U,3) ^IBT(356.91,"APP",X,-$P(^(0),U,3),DA)=""
+83 ;;^DD(356.91,.02,1,2,2)
+84 ;;=K ^IBT(356.91,"APP",X,-$P(^IBT(356.91,DA,0),U,3),DA)
+85 ;;^DD(356.91,.02,1,2,"%D",0)
+86 ;;=^^1^1^2930713^^
+87 ;;^DD(356.91,.02,1,2,"%D",1,0)
+88 ;;=Cross reference of all procedures by tracking ID and procedure date.
+89 ;;^DD(356.91,.02,1,2,"DT")
+90 ;;=2930713
+91 ;;^DD(356.91,.02,1,3,0)
+92 ;;=356.91^ADGPM1^MUMPS
+93 ;;^DD(356.91,.02,1,3,1)
+94 ;;=S:+^IBT(356.91,DA,0) ^IBT(356.91,"ADGPM",X,+^(0),DA)=""
+95 ;;^DD(356.91,.02,1,3,2)
+96 ;;=K ^IBT(356.91,"ADGPM",X,+^IBT(356.91,DA,0),DA)
+97 ;;^DD(356.91,.02,1,3,"%D",0)
+98 ;;=^^1^1^2930901^
+99 ;;^DD(356.91,.02,1,3,"%D",1,0)
+100 ;;=Cross-reference of all procedures by patient movement
+101 ;;^DD(356.91,.02,1,3,"DT")
+102 ;;=2930901
+103 ;;^DD(356.91,.02,12)
+104 ;;=Must be an admission movement
+105 ;;^DD(356.91,.02,12.1)
+106 ;;=S DIC("S")="I $P(^(0),U,2)=1"
+107 ;;^DD(356.91,.02,21,0)
+108 ;;=^^1^1^2930901^^^
+109 ;;^DD(356.91,.02,21,1,0)
+110 ;;=This is the pointer to the admission movement that this is associated with.
+111 ;;^DD(356.91,.02,"DT")
+112 ;;=2930901
+113 ;;^DD(356.91,.03,0)
+114 ;;=PROCEDURE DATE^RDX^^0;3^S %DT="EX" D ^%DT S X=Y K:Y<1 X K:$G(X)+.9<+$G(^DGPM(+$P(^IBT(356.91,DA,0),U,2),0)) X
+115 ;;^DD(356.91,.03,1,0)
+116 ;;=^.1
+117 ;;^DD(356.91,.03,1,1,0)
+118 ;;=356.91^D
+119 ;;^DD(356.91,.03,1,1,1)
+120 ;;=S ^IBT(356.91,"D",$E(X,1,30),DA)=""
+121 ;;^DD(356.91,.03,1,1,2)
+122 ;;=K ^IBT(356.91,"D",$E(X,1,30),DA)