IBINI05A ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(355.7) 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(355.7,.03,1,1,0)
;;=355.7^APP2^MUMPS
;;^DD(355.7,.03,1,1,1)
;;=S:$P(^IBA(355.7,DA,0),U,2) ^IBA(355.7,"APP",+$P(^(0),U,2),X,+^(0),DA)=""
;;^DD(355.7,.03,1,1,2)
;;=K ^IBA(355.7,"APP",+$P(^IBA(355.7,DA,0),U,2),X,+^(0),DA)
;;^DD(355.7,.03,1,1,"%D",0)
;;=^^2^2^2931129^
;;^DD(355.7,.03,1,1,"%D",1,0)
;;=Cross reference of riders by patient, policy, rider. Used to make sure
;;^DD(355.7,.03,1,1,"%D",2,0)
;;=only one entry for each policy.
;;^DD(355.7,.03,1,1,"DT")
;;=2931129
;;^DD(355.7,.03,2)
;;=S Y(0)=Y S Y=$P($G(^DIC(36,+$P($G(^DPT(+$P(^IBA(355.7,DA,0),U,2),.312,+$G(Y),0)),U),0)),U)
;;^DD(355.7,.03,2.1)
;;=S Y=$P($G(^DIC(36,+$P($G(^DPT(+$P(^IBA(355.7,DA,0),U,2),.312,+$G(Y),0)),U),0)),U)
;;^DD(355.7,.03,3)
;;=Select the correct policy for this patient. Answer must be 1-30 characters in length.
;;^DD(355.7,.03,4)
;;=S DFN=$P(^IBA(355.7,DA,0),U,2) D DISP^IBCNS W !
;;^DD(355.7,.03,21,0)
;;=^^3^3^2940213^
;;^DD(355.7,.03,21,1,0)
;;=This is the policy for the patient that this is a rider for.
;;^DD(355.7,.03,21,2,0)
;;=
;;^DD(355.7,.03,21,3,0)
;;=One or more riders may be associated with any policy for any patient.
;;^DD(355.7,.03,"DT")
;;=2931129
IBINI05A ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(355.7)
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(355.7,.03,1,1,0)
+2 ;;=355.7^APP2^MUMPS
+3 ;;^DD(355.7,.03,1,1,1)
+4 ;;=S:$P(^IBA(355.7,DA,0),U,2) ^IBA(355.7,"APP",+$P(^(0),U,2),X,+^(0),DA)=""
+5 ;;^DD(355.7,.03,1,1,2)
+6 ;;=K ^IBA(355.7,"APP",+$P(^IBA(355.7,DA,0),U,2),X,+^(0),DA)
+7 ;;^DD(355.7,.03,1,1,"%D",0)
+8 ;;=^^2^2^2931129^
+9 ;;^DD(355.7,.03,1,1,"%D",1,0)
+10 ;;=Cross reference of riders by patient, policy, rider. Used to make sure
+11 ;;^DD(355.7,.03,1,1,"%D",2,0)
+12 ;;=only one entry for each policy.
+13 ;;^DD(355.7,.03,1,1,"DT")
+14 ;;=2931129
+15 ;;^DD(355.7,.03,2)
+16 ;;=S Y(0)=Y S Y=$P($G(^DIC(36,+$P($G(^DPT(+$P(^IBA(355.7,DA,0),U,2),.312,+$G(Y),0)),U),0)),U)
+17 ;;^DD(355.7,.03,2.1)
+18 ;;=S Y=$P($G(^DIC(36,+$P($G(^DPT(+$P(^IBA(355.7,DA,0),U,2),.312,+$G(Y),0)),U),0)),U)
+19 ;;^DD(355.7,.03,3)
+20 ;;=Select the correct policy for this patient. Answer must be 1-30 characters in length.
+21 ;;^DD(355.7,.03,4)
+22 ;;=S DFN=$P(^IBA(355.7,DA,0),U,2) D DISP^IBCNS W !
+23 ;;^DD(355.7,.03,21,0)
+24 ;;=^^3^3^2940213^
+25 ;;^DD(355.7,.03,21,1,0)
+26 ;;=This is the policy for the patient that this is a rider for.
+27 ;;^DD(355.7,.03,21,2,0)
+28 ;;=
+29 ;;^DD(355.7,.03,21,3,0)
+30 ;;=One or more riders may be associated with any policy for any patient.
+31 ;;^DD(355.7,.03,"DT")
+32 ;;=2931129