IBINI078 ; ; 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
;;^DD(356.9,.04,1,2,"%D",0)
;;=^^1^1^2930901^
;;^DD(356.9,.04,1,2,"%D",1,0)
;;=Cross-reference of admitting diagnosis by admission movement.
;;^DD(356.9,.04,1,2,"DT")
;;=2930901
;;^DD(356.9,.04,12)
;;=Only one diagnosis can be primary or admitting diagnosis for an admission.
;;^DD(356.9,.04,12.1)
;;=S DIC("S")="I $$DICS^IBTRED1(Y)"
;;^DD(356.9,.04,21,0)
;;=^^3^3^2930901^^
;;^DD(356.9,.04,21,1,0)
;;=Enter 'PRIMARY' if this is the primary diagnosis for this date, enter
;;^DD(356.9,.04,21,2,0)
;;='SECONDARY' if this is not the primary diagnosis for this date.
;;^DD(356.9,.04,21,3,0)
;;=Enter "ADMITTING" if this is the admitting diagnosis.
;;^DD(356.9,.04,"DT")
;;=2930901
IBINI078 ; ; 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 ;;^DD(356.9,.04,1,2,"%D",0)
+2 ;;=^^1^1^2930901^
+3 ;;^DD(356.9,.04,1,2,"%D",1,0)
+4 ;;=Cross-reference of admitting diagnosis by admission movement.
+5 ;;^DD(356.9,.04,1,2,"DT")
+6 ;;=2930901
+7 ;;^DD(356.9,.04,12)
+8 ;;=Only one diagnosis can be primary or admitting diagnosis for an admission.
+9 ;;^DD(356.9,.04,12.1)
+10 ;;=S DIC("S")="I $$DICS^IBTRED1(Y)"
+11 ;;^DD(356.9,.04,21,0)
+12 ;;=^^3^3^2930901^^
+13 ;;^DD(356.9,.04,21,1,0)
+14 ;;=Enter 'PRIMARY' if this is the primary diagnosis for this date, enter
+15 ;;^DD(356.9,.04,21,2,0)
+16 ;;='SECONDARY' if this is not the primary diagnosis for this date.
+17 ;;^DD(356.9,.04,21,3,0)
+18 ;;=Enter "ADMITTING" if this is the admitting diagnosis.
+19 ;;^DD(356.9,.04,"DT")
+20 ;;=2930901