IBINI0AU ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(399) 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(399.0304,11,21,0)
;;=^^2^2^2931130^
;;^DD(399.0304,11,21,1,0)
;;=The diagnosis most closely related to this procedure. Used only for the
;;^DD(399.0304,11,21,2,0)
;;=HCFA 1500, block 24e.
;;^DD(399.0304,11,"DT")
;;=2931130
;;^DD(399.0304,12,0)
;;=ASSOCIATED DIAGNOSIS (3)^*P362.3'^IBA(362.3,^0;13^S DIC("S")="I +$P(^IBA(362.3,Y,0),U,2)=+$G(DA(1))" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(399.0304,12,3)
;;=Enter a diagnosis related to this procedure.
;;^DD(399.0304,12,12)
;;=Only Diagnosis for this bill may be chosen.
;;^DD(399.0304,12,12.1)
;;=S DIC("S")="I +$P(^IBA(362.3,Y,0),U,2)=+$G(DA(1))"
;;^DD(399.0304,12,21,0)
;;=^^2^2^2931130^
;;^DD(399.0304,12,21,1,0)
;;=The diagnosis most closely related to this procedure. Used only for the
;;^DD(399.0304,12,21,2,0)
;;=HCFA 1500, block 24e.
;;^DD(399.0304,12,"DT")
;;=2931130
;;^DD(399.0304,13,0)
;;=ASSOCIATED DIAGNOSIS (4)^*P362.3'^IBA(362.3,^0;14^S DIC("S")="I +$P(^IBA(362.3,Y,0),U,2)=+$G(DA(1))" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(399.0304,13,3)
;;=Enter a diagnosis related to this procedure.
;;^DD(399.0304,13,12)
;;=Only Diagnosis for this bill may be chosen.
;;^DD(399.0304,13,12.1)
;;=S DIC("S")="I +$P(^IBA(362.3,Y,0),U,2)=+$G(DA(1))"
;;^DD(399.0304,13,21,0)
;;=^^2^2^2931130^
;;^DD(399.0304,13,21,1,0)
;;=The diagnosis most closely related to this procedure. Used only for the
;;^DD(399.0304,13,21,2,0)
;;=HCFA 1500, block 24e.
;;^DD(399.0304,13,"DT")
;;=2931130
;;^DD(399.04,0)
;;=CONDITION CODE SUB-FIELD^^.01^1
;;^DD(399.04,0,"NM","CONDITION CODE")
;;=
;;^DD(399.04,0,"UP")
;;=399
;;^DD(399.04,.01,0)
;;=CONDITION CODE^MSX^02:CONDITION EMPLOYMENT RELATED;03:PT COVERED BY INSURANCE NOT REFLECTED HERE;05:LIEN FILED;06:ESRD PT IN 1ST YR OF ENTITLEMENT;17:PT OVER 100 YRS. OLD;18:MAIDEN NAME RETAINED;^0;1^I X=17!(X=18) D AGE^IBCU K IBC
;;^DD(399.04,.01,3)
;;=Select code(s) used to identify conditions relating to this patient that may affect insurance processing.
;;^DD(399.04,.01,"DT")
;;=2930513
;;^DD(399.041,0)
;;=OCCURRENCE CODE SUB-FIELD^^.04^4
;;^DD(399.041,0,"DIK")
;;=IBXX
;;^DD(399.041,0,"DT")
;;=2931221
;;^DD(399.041,0,"ID",.02)
;;=W ""
;;^DD(399.041,0,"IX","B",399.041,.01)
;;=
;;^DD(399.041,0,"NM","OCCURRENCE CODE")
;;=
;;^DD(399.041,0,"UP")
;;=399
;;^DD(399.041,.01,0)
;;=OCCURRENCE CODE^M*P399.1'^DGCR(399.1,^0;1^S DIC("S")="I $P(^DGCR(399.1,+Y,0),U,4)=1,$S(+Y'=22:1,$P(^DPT($P(^DGCR(399,DA,0),U,2),0),U,2)=""F"":1,1:0)" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(399.041,.01,1,0)
;;=^.1
;;^DD(399.041,.01,1,1,0)
;;=399.041^B
;;^DD(399.041,.01,1,1,1)
;;=S ^DGCR(399,DA(1),"OC","B",$E(X,1,30),DA)=""
;;^DD(399.041,.01,1,1,2)
;;=K ^DGCR(399,DA(1),"OC","B",$E(X,1,30),DA)
;;^DD(399.041,.01,3)
;;=This code defines the event(s) relating to this bill which may affect insurance processing.
;;^DD(399.041,.01,9.6)
;;=I X=10 S DFN=$P(^DGCR(399,DA,0),"^",2) I $D(^DPT(DFN,0)),$P(^DPT(DFN,0),"^",2)="M" W !!,"This patient is a MALE!! Occurrence Code 10 applies only to FEMALES!!",!! K DFN,X Q
;;^DD(399.041,.01,12)
;;=Valid MCCR Occurrence Codes only!
;;^DD(399.041,.01,12.1)
;;=S DIC("S")="I $P(^DGCR(399.1,+Y,0),U,4)=1,$S(+Y'=22:1,$P(^DPT($P(^DGCR(399,DA,0),U,2),0),U,2)=""F"":1,1:0)"
;;^DD(399.041,.01,"DT")
;;=2890131
;;^DD(399.041,.02,0)
;;=DATE^RD^^0;2^S %DT="E" D ^%DT S X=Y K:DT<X!(2000101>X) X
;;^DD(399.041,.02,3)
;;=TYPE A DATE ON OR BEFORE TODAY
;;^DD(399.041,.02,21,0)
;;=^^2^2^2931221^^
;;^DD(399.041,.02,21,1,0)
;;=This is the date that this event occured.
IBINI0AU ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(399)
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(399.0304,11,21,0)
+2 ;;=^^2^2^2931130^
+3 ;;^DD(399.0304,11,21,1,0)
+4 ;;=The diagnosis most closely related to this procedure. Used only for the
+5 ;;^DD(399.0304,11,21,2,0)
+6 ;;=HCFA 1500, block 24e.
+7 ;;^DD(399.0304,11,"DT")
+8 ;;=2931130
+9 ;;^DD(399.0304,12,0)
+10 ;;=ASSOCIATED DIAGNOSIS (3)^*P362.3'^IBA(362.3,^0;13^S DIC("S")="I +$P(^IBA(362.3,Y,0),U,2)=+$G(DA(1))" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+11 ;;^DD(399.0304,12,3)
+12 ;;=Enter a diagnosis related to this procedure.
+13 ;;^DD(399.0304,12,12)
+14 ;;=Only Diagnosis for this bill may be chosen.
+15 ;;^DD(399.0304,12,12.1)
+16 ;;=S DIC("S")="I +$P(^IBA(362.3,Y,0),U,2)=+$G(DA(1))"
+17 ;;^DD(399.0304,12,21,0)
+18 ;;=^^2^2^2931130^
+19 ;;^DD(399.0304,12,21,1,0)
+20 ;;=The diagnosis most closely related to this procedure. Used only for the
+21 ;;^DD(399.0304,12,21,2,0)
+22 ;;=HCFA 1500, block 24e.
+23 ;;^DD(399.0304,12,"DT")
+24 ;;=2931130
+25 ;;^DD(399.0304,13,0)
+26 ;;=ASSOCIATED DIAGNOSIS (4)^*P362.3'^IBA(362.3,^0;14^S DIC("S")="I +$P(^IBA(362.3,Y,0),U,2)=+$G(DA(1))" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+27 ;;^DD(399.0304,13,3)
+28 ;;=Enter a diagnosis related to this procedure.
+29 ;;^DD(399.0304,13,12)
+30 ;;=Only Diagnosis for this bill may be chosen.
+31 ;;^DD(399.0304,13,12.1)
+32 ;;=S DIC("S")="I +$P(^IBA(362.3,Y,0),U,2)=+$G(DA(1))"
+33 ;;^DD(399.0304,13,21,0)
+34 ;;=^^2^2^2931130^
+35 ;;^DD(399.0304,13,21,1,0)
+36 ;;=The diagnosis most closely related to this procedure. Used only for the
+37 ;;^DD(399.0304,13,21,2,0)
+38 ;;=HCFA 1500, block 24e.
+39 ;;^DD(399.0304,13,"DT")
+40 ;;=2931130
+41 ;;^DD(399.04,0)
+42 ;;=CONDITION CODE SUB-FIELD^^.01^1
+43 ;;^DD(399.04,0,"NM","CONDITION CODE")
+44 ;;=
+45 ;;^DD(399.04,0,"UP")
+46 ;;=399
+47 ;;^DD(399.04,.01,0)
+48 ;;=CONDITION CODE^MSX^02:CONDITION EMPLOYMENT RELATED;03:PT COVERED BY INSURANCE NOT REFLECTED HERE;05:LIEN FILED;06:ESRD PT IN 1ST YR OF ENTITLEMENT;17:PT OVER 100 YRS. OLD;18:MAIDEN NAME RETAINED;^0;1^I X=17!(X=18) D AGE^IBCU K IBC
+49 ;;^DD(399.04,.01,3)
+50 ;;=Select code(s) used to identify conditions relating to this patient that may affect insurance processing.
+51 ;;^DD(399.04,.01,"DT")
+52 ;;=2930513
+53 ;;^DD(399.041,0)
+54 ;;=OCCURRENCE CODE SUB-FIELD^^.04^4
+55 ;;^DD(399.041,0,"DIK")
+56 ;;=IBXX
+57 ;;^DD(399.041,0,"DT")
+58 ;;=2931221
+59 ;;^DD(399.041,0,"ID",.02)
+60 ;;=W ""
+61 ;;^DD(399.041,0,"IX","B",399.041,.01)
+62 ;;=
+63 ;;^DD(399.041,0,"NM","OCCURRENCE CODE")
+64 ;;=
+65 ;;^DD(399.041,0,"UP")
+66 ;;=399
+67 ;;^DD(399.041,.01,0)
+68 ;;=OCCURRENCE CODE^M*P399.1'^DGCR(399.1,^0;1^S DIC("S")="I $P(^DGCR(399.1,+Y,0),U,4)=1,$S(+Y'=22:1,$P(^DPT($P(^DGCR(399,DA,0),U,2),0),U,2)=""F"":1,1:0)" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+69 ;;^DD(399.041,.01,1,0)
+70 ;;=^.1
+71 ;;^DD(399.041,.01,1,1,0)
+72 ;;=399.041^B
+73 ;;^DD(399.041,.01,1,1,1)
+74 ;;=S ^DGCR(399,DA(1),"OC","B",$E(X,1,30),DA)=""
+75 ;;^DD(399.041,.01,1,1,2)
+76 ;;=K ^DGCR(399,DA(1),"OC","B",$E(X,1,30),DA)
+77 ;;^DD(399.041,.01,3)
+78 ;;=This code defines the event(s) relating to this bill which may affect insurance processing.
+79 ;;^DD(399.041,.01,9.6)
+80 ;;=I X=10 S DFN=$P(^DGCR(399,DA,0),"^",2) I $D(^DPT(DFN,0)),$P(^DPT(DFN,0),"^",2)="M" W !!,"This patient is a MALE!! Occurrence Code 10 applies only to FEMALES!!",!! K DFN,X Q
+81 ;;^DD(399.041,.01,12)
+82 ;;=Valid MCCR Occurrence Codes only!
+83 ;;^DD(399.041,.01,12.1)
+84 ;;=S DIC("S")="I $P(^DGCR(399.1,+Y,0),U,4)=1,$S(+Y'=22:1,$P(^DPT($P(^DGCR(399,DA,0),U,2),0),U,2)=""F"":1,1:0)"
+85 ;;^DD(399.041,.01,"DT")
+86 ;;=2890131
+87 ;;^DD(399.041,.02,0)
+88 ;;=DATE^RD^^0;2^S %DT="E" D ^%DT S X=Y K:DT<X!(2000101>X) X
+89 ;;^DD(399.041,.02,3)
+90 ;;=TYPE A DATE ON OR BEFORE TODAY
+91 ;;^DD(399.041,.02,21,0)
+92 ;;=^^2^2^2931221^^
+93 ;;^DD(399.041,.02,21,1,0)
+94 ;;=This is the date that this event occured.