IBINI076 ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(356.9) 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.9,0,"GL")
;;=^IBT(356.9,
;;^DIC("B","INPATIENT DIAGNOSIS",356.9)
;;=
;;^DIC(356.9,"%D",0)
;;=^^3^3^2940214^^^^
;;^DIC(356.9,"%D",1,0)
;;=This file is designed to hold all inpatient diagnoses.
;;^DIC(356.9,"%D",2,0)
;;=
;;^DIC(356.9,"%D",3,0)
;;=Per VHA Directive 10-93-142, this file definition should not be modified.
;;^DD(356.9,0)
;;=FIELD^^.04^4
;;^DD(356.9,0,"DT")
;;=2930901
;;^DD(356.9,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.9,0,"ID",.04)
;;=W " ",@("$P($P($C(59)_$S($D(^DD(356.9,.04,0)):$P(^(0),U,3),1:0)_$E("_DIC_"Y,0),0),$C(59)_$P(^(0),U,4)_"":"",2),$C(59),1)")
;;^DD(356.9,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.9,0,"IX","ADG",356.9,.01)
;;=
;;^DD(356.9,0,"IX","ADG1",356.9,.02)
;;=
;;^DD(356.9,0,"IX","ADG2",356.9,.04)
;;=
;;^DD(356.9,0,"IX","ADGPM",356.9,.01)
;;=
;;^DD(356.9,0,"IX","ADGPM1",356.9,.02)
;;=
;;^DD(356.9,0,"IX","APD",356.9,.02)
;;=
;;^DD(356.9,0,"IX","APD1",356.9,.03)
;;=
;;^DD(356.9,0,"IX","ATP",356.9,.04)
;;=
;;^DD(356.9,0,"IX","ATP1",356.9,.02)
;;=
;;^DD(356.9,0,"IX","B",356.9,.01)
;;=
;;^DD(356.9,0,"IX","C",356.9,.02)
;;=
;;^DD(356.9,0,"IX","D",356.9,.03)
;;=
;;^DD(356.9,0,"NM","INPATIENT DIAGNOSIS")
;;=
;;^DD(356.9,0,"PT",356,.3)
;;=
;;^DD(356.9,.01,0)
;;=DIAGNOSIS^RP80'^ICD9(^0;1^Q
;;^DD(356.9,.01,1,0)
;;=^.1
;;^DD(356.9,.01,1,1,0)
;;=356.9^B
;;^DD(356.9,.01,1,1,1)
;;=S ^IBT(356.9,"B",$E(X,1,30),DA)=""
;;^DD(356.9,.01,1,1,2)
;;=K ^IBT(356.9,"B",$E(X,1,30),DA)
;;^DD(356.9,.01,1,2,0)
;;=356.9^ADG^MUMPS
;;^DD(356.9,.01,1,2,1)
;;=S:$P(^IBT(356.9,DA,0),U,4)=3&($P(^(0),U,2)) ^IBT(356.9,"ADG",+$P(^(0),U,2),X,DA)=""
;;^DD(356.9,.01,1,2,2)
;;=K ^IBT(356.9,"ADG",+$P(^IBT(356.9,DA,0),U,2),X,DA)
;;^DD(356.9,.01,1,2,"%D",0)
;;=^^1^1^2930901^
;;^DD(356.9,.01,1,2,"%D",1,0)
;;=Cross-reference of admitting diagnosis by admission movement.
;;^DD(356.9,.01,1,2,"DT")
;;=2930901
;;^DD(356.9,.01,1,3,0)
;;=356.9^ADGPM^MUMPS
;;^DD(356.9,.01,1,3,1)
;;=S:$P(^IBT(356.9,DA,0),U,2) ^IBT(356.9,"ADGPM",+$P(^(0),U,2),X,DA)=""
;;^DD(356.9,.01,1,3,2)
;;=K ^IBT(356.9,"ADGPM",+$P(^IBT(356.9,DA,0),U,2),X,DA)
;;^DD(356.9,.01,1,3,"%D",0)
;;=^^1^1^2930901^
;;^DD(356.9,.01,1,3,"%D",1,0)
;;=Cross-reference of all diagnosis by admission movement
;;^DD(356.9,.01,1,3,"DT")
;;=2930901
;;^DD(356.9,.01,3)
;;=
;;^DD(356.9,.01,21,0)
;;=^^1^1^2930720^^^^
;;^DD(356.9,.01,21,1,0)
;;=This is the diagnosis for this patient for this episode of care.
;;^DD(356.9,.01,"DT")
;;=2930901
;;^DD(356.9,.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.9,.02,1,0)
;;=^.1
;;^DD(356.9,.02,1,1,0)
;;=356.9^C
;;^DD(356.9,.02,1,1,1)
;;=S ^IBT(356.9,"C",$E(X,1,30),DA)=""
;;^DD(356.9,.02,1,1,2)
;;=K ^IBT(356.9,"C",$E(X,1,30),DA)
;;^DD(356.9,.02,1,1,"DT")
;;=2930713
;;^DD(356.9,.02,1,2,0)
;;=356.9^APD^MUMPS
;;^DD(356.9,.02,1,2,1)
;;=S:$P(^IBT(356.9,DA,0),U,3) ^IBT(356.9,"APD",X,-$P(^(0),U,3),DA)=""
;;^DD(356.9,.02,1,2,2)
;;=K ^IBT(356.9,"APD",X,-$P(^IBT(356.9,DA,0),U,3),DA)
;;^DD(356.9,.02,1,2,"%D",0)
;;=^^1^1^2940213^^^^
;;^DD(356.9,.02,1,2,"%D",1,0)
;;=cross reference of all diagnoses by tracking id and inverse date
;;^DD(356.9,.02,1,2,"DT")
;;=2930713
;;^DD(356.9,.02,1,3,0)
;;=356.9^ATP1^MUMPS
;;^DD(356.9,.02,1,3,1)
;;=S:$P(^IBT(356.9,DA,0),U,4) ^IBT(356.9,"ATP",X,$P(^(0),U,4),DA)=""
;;^DD(356.9,.02,1,3,2)
;;=K ^IBT(356.9,"ATP",X,+$P(^IBT(356.9,DA,0),U,4),DA)
IBINI076 ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(356.9)
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.9,0,"GL")
+2 ;;=^IBT(356.9,
+3 ;;^DIC("B","INPATIENT DIAGNOSIS",356.9)
+4 ;;=
+5 ;;^DIC(356.9,"%D",0)
+6 ;;=^^3^3^2940214^^^^
+7 ;;^DIC(356.9,"%D",1,0)
+8 ;;=This file is designed to hold all inpatient diagnoses.
+9 ;;^DIC(356.9,"%D",2,0)
+10 ;;=
+11 ;;^DIC(356.9,"%D",3,0)
+12 ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
+13 ;;^DD(356.9,0)
+14 ;;=FIELD^^.04^4
+15 ;;^DD(356.9,0,"DT")
+16 ;;=2930901
+17 ;;^DD(356.9,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.9,0,"ID",.04)
+20 ;;=W " ",@("$P($P($C(59)_$S($D(^DD(356.9,.04,0)):$P(^(0),U,3),1:0)_$E("_DIC_"Y,0),0),$C(59)_$P(^(0),U,4)_"":"",2),$C(59),1)")
+21 ;;^DD(356.9,0,"ID","WRITE")
+22 ;;=N Y S Y=$G(^(0)) W " ",$P($G(^DPT(+$P($G(^DGPM(+$P(Y,U,2),0)),U,3),0)),U)
+23 ;;^DD(356.9,0,"IX","ADG",356.9,.01)
+24 ;;=
+25 ;;^DD(356.9,0,"IX","ADG1",356.9,.02)
+26 ;;=
+27 ;;^DD(356.9,0,"IX","ADG2",356.9,.04)
+28 ;;=
+29 ;;^DD(356.9,0,"IX","ADGPM",356.9,.01)
+30 ;;=
+31 ;;^DD(356.9,0,"IX","ADGPM1",356.9,.02)
+32 ;;=
+33 ;;^DD(356.9,0,"IX","APD",356.9,.02)
+34 ;;=
+35 ;;^DD(356.9,0,"IX","APD1",356.9,.03)
+36 ;;=
+37 ;;^DD(356.9,0,"IX","ATP",356.9,.04)
+38 ;;=
+39 ;;^DD(356.9,0,"IX","ATP1",356.9,.02)
+40 ;;=
+41 ;;^DD(356.9,0,"IX","B",356.9,.01)
+42 ;;=
+43 ;;^DD(356.9,0,"IX","C",356.9,.02)
+44 ;;=
+45 ;;^DD(356.9,0,"IX","D",356.9,.03)
+46 ;;=
+47 ;;^DD(356.9,0,"NM","INPATIENT DIAGNOSIS")
+48 ;;=
+49 ;;^DD(356.9,0,"PT",356,.3)
+50 ;;=
+51 ;;^DD(356.9,.01,0)
+52 ;;=DIAGNOSIS^RP80'^ICD9(^0;1^Q
+53 ;;^DD(356.9,.01,1,0)
+54 ;;=^.1
+55 ;;^DD(356.9,.01,1,1,0)
+56 ;;=356.9^B
+57 ;;^DD(356.9,.01,1,1,1)
+58 ;;=S ^IBT(356.9,"B",$E(X,1,30),DA)=""
+59 ;;^DD(356.9,.01,1,1,2)
+60 ;;=K ^IBT(356.9,"B",$E(X,1,30),DA)
+61 ;;^DD(356.9,.01,1,2,0)
+62 ;;=356.9^ADG^MUMPS
+63 ;;^DD(356.9,.01,1,2,1)
+64 ;;=S:$P(^IBT(356.9,DA,0),U,4)=3&($P(^(0),U,2)) ^IBT(356.9,"ADG",+$P(^(0),U,2),X,DA)=""
+65 ;;^DD(356.9,.01,1,2,2)
+66 ;;=K ^IBT(356.9,"ADG",+$P(^IBT(356.9,DA,0),U,2),X,DA)
+67 ;;^DD(356.9,.01,1,2,"%D",0)
+68 ;;=^^1^1^2930901^
+69 ;;^DD(356.9,.01,1,2,"%D",1,0)
+70 ;;=Cross-reference of admitting diagnosis by admission movement.
+71 ;;^DD(356.9,.01,1,2,"DT")
+72 ;;=2930901
+73 ;;^DD(356.9,.01,1,3,0)
+74 ;;=356.9^ADGPM^MUMPS
+75 ;;^DD(356.9,.01,1,3,1)
+76 ;;=S:$P(^IBT(356.9,DA,0),U,2) ^IBT(356.9,"ADGPM",+$P(^(0),U,2),X,DA)=""
+77 ;;^DD(356.9,.01,1,3,2)
+78 ;;=K ^IBT(356.9,"ADGPM",+$P(^IBT(356.9,DA,0),U,2),X,DA)
+79 ;;^DD(356.9,.01,1,3,"%D",0)
+80 ;;=^^1^1^2930901^
+81 ;;^DD(356.9,.01,1,3,"%D",1,0)
+82 ;;=Cross-reference of all diagnosis by admission movement
+83 ;;^DD(356.9,.01,1,3,"DT")
+84 ;;=2930901
+85 ;;^DD(356.9,.01,3)
+86 ;;=
+87 ;;^DD(356.9,.01,21,0)
+88 ;;=^^1^1^2930720^^^^
+89 ;;^DD(356.9,.01,21,1,0)
+90 ;;=This is the diagnosis for this patient for this episode of care.
+91 ;;^DD(356.9,.01,"DT")
+92 ;;=2930901
+93 ;;^DD(356.9,.02,0)
+94 ;;=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
+95 ;;^DD(356.9,.02,1,0)
+96 ;;=^.1
+97 ;;^DD(356.9,.02,1,1,0)
+98 ;;=356.9^C
+99 ;;^DD(356.9,.02,1,1,1)
+100 ;;=S ^IBT(356.9,"C",$E(X,1,30),DA)=""
+101 ;;^DD(356.9,.02,1,1,2)
+102 ;;=K ^IBT(356.9,"C",$E(X,1,30),DA)
+103 ;;^DD(356.9,.02,1,1,"DT")
+104 ;;=2930713
+105 ;;^DD(356.9,.02,1,2,0)
+106 ;;=356.9^APD^MUMPS
+107 ;;^DD(356.9,.02,1,2,1)
+108 ;;=S:$P(^IBT(356.9,DA,0),U,3) ^IBT(356.9,"APD",X,-$P(^(0),U,3),DA)=""
+109 ;;^DD(356.9,.02,1,2,2)
+110 ;;=K ^IBT(356.9,"APD",X,-$P(^IBT(356.9,DA,0),U,3),DA)
+111 ;;^DD(356.9,.02,1,2,"%D",0)
+112 ;;=^^1^1^2940213^^^^
+113 ;;^DD(356.9,.02,1,2,"%D",1,0)
+114 ;;=cross reference of all diagnoses by tracking id and inverse date
+115 ;;^DD(356.9,.02,1,2,"DT")
+116 ;;=2930713
+117 ;;^DD(356.9,.02,1,3,0)
+118 ;;=356.9^ATP1^MUMPS
+119 ;;^DD(356.9,.02,1,3,1)
+120 ;;=S:$P(^IBT(356.9,DA,0),U,4) ^IBT(356.9,"ATP",X,$P(^(0),U,4),DA)=""
+121 ;;^DD(356.9,.02,1,3,2)
+122 ;;=K ^IBT(356.9,"ATP",X,+$P(^IBT(356.9,DA,0),U,4),DA)